/* styles.css â€” Landing Entre Cortes */
/* Fuente local: Oswald variable */
@font-face {
  font-family: "Oswald";
  src: url("./assets/fonts/Oswald-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root{
 /* --bg-brand: #de2a1b; */
  --bg-brand: #000000;
  --text: #302f28;
  --btn-bg: #ffffff;
  --btn-text: #000000;
  --content-gap: clamp(16px, 3vw, 28px);
  --btn-gap: clamp(8px, 2vw, 16px);
  --container-padding: clamp(16px, 4vw, 40px);
--container-padding: clamp(24px, 5vw, 60px);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Oswald", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: none;
}

/* Contenedor a toda pantalla con background centrado */

.hero-wrap{
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: url("./assets/entre-cortes-bg-tapiz.webp");
  background-size: auto;
  background-repeat: repeat;
  background-position: center ;
background-position: 8% 0;
}

.hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:var(--content-gap);
  text-align:center;
  padding:var(--container-padding);
  background: rgba(250, 250, 250, 0.8);
opacity: 0;
transform: translateY(18px);
animation: hero-fade-slide .55s ease-out .15s forwards;}

/* Logotipo: 25% desktop, 30% tablet, 75% mÃ³vil */
.logo{
  display: block;
  height: auto;
  max-width: 20vw;
}
@media (max-width: 1024px){ .logo{ max-width: 30vw; } }
@media (max-width: 640px){ .logo{ max-width: 65vw; } }

/* TipografÃ­a y tamaÃ±os responsivos */
h1{
  margin: 0;
  line-height: 1.1;
  font-size: clamp(30px, calc(2vw + 24px), 40px);
  letter-spacing: 0.2px;
  text-wrap: balance;
  font-weight:500;
  letter-spacing: 1px;
   
}
.lead{
  margin: 0;
  font-size: clamp(18px, calc(1vw + 14px), 24px);
  line-height: 1.35;
  max-width: 70ch;
  text-wrap: pretty;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Bloques de CTA */
.cta-group{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--btn-gap);
}

/* Iconos sociales como enlaces (no botones) */
.social{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}


.social a{
  display: inline-block;
  width: 25px;
  height: 25px;
  line-height: 0;   /* evita espacio extra alrededor de <img> */
  transition: all 0.3s ease-in-out 0s;

}

.social a:hover{ transform: translateY(-5px); opacity: 0.95; }
.social a:active{ transform: translateY(0); opacity: 0.9; }
/* Iconos sociales blancos (sobre fondo rojo) */
.social a img{
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
  /* convierte iconos negros a blancos */
  filter: invert(1) brightness(1.2);
  /* opcional: un pelÃ­n menos de intensidad al pasar el ratÃ³n */
  transition: filter .15s ease, opacity .15s ease;
}

.social a img{
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
  filter: none;
  transition: opacity .15s ease;
}

.social a:hover img{
  opacity: .9;
}


/* BotÃ³n de llamada */
.btn{
  background: #302f28;   /* botón oscuro */
  color: #ffffff;        /* texto blanco */
 font-size: 25px;
  text-decoration: none;
  padding: 10px 35px;
  border: 1px solid transparent;
  border-radius: 0; /* bordes rectos */
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  display: inline-block;
  transition: all 0.3s ease-in-out 0s;

}
.btn:hover{ transform: translateY(-5px); opacity: 0.95; }
.btn:active{ transform: translateY(0); opacity: 0.9; }

/* Accesibilidad */
.btn:focus-visible,
.social a:focus-visible{
  outline: 2px dashed currentColor;
  outline-offset: 2px;
}

.address{
  font-style: normal;
  font-size: 16px;
  opacity: 0.95;
}

/* ANIMACIONES */

/* === Slide-up secuencial === */
@keyframes ec-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Suavizado y rendimiento */
:root{
  --ec-dur: 2s;                            /* duraciÃ³n mÃ¡s larga */
  --ec-ease: cubic-bezier(.16,.84,.44,1);     /* easing mÃ¡s suave */
}

/* Orden y retardos:
   1) logo 0.5s
   2) h1   0.6s
   3) p    0.7s
   4) cta  0.8s
   5) addr 0.9s
*/
.hero .logo{
  opacity: 0;
  will-change: transform, opacity;
  animation: ec-slide-up var(--ec-dur) var(--ec-ease) .5s both;
}
.hero h1{
  opacity: 0;
  will-change: transform, opacity;
  animation: ec-slide-up var(--ec-dur) var(--ec-ease) .7s both;
}
.hero .lead{
  opacity: 0;
  will-change: transform, opacity;
  animation: ec-slide-up var(--ec-dur) var(--ec-ease) .9s both;
}
.hero .cta-group{
  opacity: 0;
  will-change: transform, opacity;
  animation: ec-slide-up var(--ec-dur) var(--ec-ease) 1s both;
}
.hero .address{
  opacity: 0;
  will-change: transform, opacity;
  animation: ec-slide-up var(--ec-dur) var(--ec-ease) 1.2s both;
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hero-fade-slide {
  from {
    opacity: 0;
    transform: translateY(18px); /* desplazamiento leve hacia abajo */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respeto a usuarios con reducciÃ³n de movimiento */
@media (prefers-reduced-motion: reduce){
  .hero .logo,
  .hero h1,
  .hero .lead,
  .hero .cta-group,
  .hero .address{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px){
  .btn{
    font-size: 20px;
  }
}
@media (max-width: 640px){
  .hero{
    padding-top: calc(var(--container-padding) + 25px);
    padding-bottom: calc(var(--container-padding) + 25px);
  }
}


/* Para botones paralelos de reserva y carta */


.cta-group{
  display: flex;
  flex-direction: row;   /* ANTES: column */
  flex-wrap: wrap;       /* permite saltar a segunda línea */
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
}
@media (max-width: 480px){
  .cta-group{
    flex-direction: column;
    align-items: center;
  }

  .btn[href*="carta.pdf"]{
    margin-bottom: 10px;
  }
}
.hero .social{
  opacity: 0;
  will-change: transform, opacity;
  animation: ec-slide-up var(--ec-dur) var(--ec-ease) 0.9s both;
}
