/* =============================================
   LB GÉNEROS S.A.
   Diseño: Editorial de lujo — Azul marino + Blanco
   Tipografía: Cormorant Garamond + Jost
   ============================================= */

/* ===== VARIABLES ===== */
:root {
  --navy:        #003057;
  --navy-deep:   #001e3a;
  --navy-mid:    #0a4070;
  --white:       #ffffff;
  --off-white:   #f6f4f1;
  --text:        #1c1c1c;
  --text-muted:  #666666;
  --border:      rgba(0, 48, 87, 0.12);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Jost', system-ui, -apple-system, sans-serif;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --duration:    0.35s;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.4);
}

.section-label--center {
  text-align: center;
  margin-bottom: 4rem;
}


/* ===================================================
   NAVBAR
   =================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 3rem;
  transition:
    background var(--duration) var(--ease),
    backdrop-filter var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    padding var(--duration) var(--ease);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.9rem 3rem;
}

/* Nav logo */
.nav-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--duration) var(--ease), height var(--duration) var(--ease);
}

#navbar.scrolled .nav-logo img {
  filter: none;
  height: 38px;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.75rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration) var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

#navbar.scrolled .nav-links a {
  color: var(--navy);
  opacity: 0.7;
}

#navbar.scrolled .nav-links a:hover {
  opacity: 1;
}

/* Nav right group (lang + hamburger) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-sep {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--duration) var(--ease);
}

#navbar.scrolled .lang-sep {
  color: rgba(0, 48, 87, 0.25);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  padding: 2px 0;
  transition: color var(--duration) var(--ease);
  line-height: 1;
}

.lang-btn.active {
  color: rgba(255, 255, 255, 0.9);
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.75);
}

#navbar.scrolled .lang-btn {
  color: rgba(0, 48, 87, 0.35);
}

#navbar.scrolled .lang-btn.active {
  color: var(--navy);
}

#navbar.scrolled .lang-btn:hover {
  color: var(--navy-mid);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}

#navbar.scrolled .nav-toggle span {
  background: var(--navy);
}

.nav-toggle.open span {
  background: white !important;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-color: var(--navy);

  /*
    FOTO HERO (stock temporal — reemplazar con foto propia):
    Specs foto propia: JPG horizontal, mín. 1920px, interior del local
    con géneros desplegados, luz natural. Reemplazar assets/hero.jpg.
  */
  background-image: url('assets/hero.webp'), url('assets/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Overlay marino sobre la foto + viñeta */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 30, 58, 0.45) 0%, rgba(0, 20, 50, 0.75) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Textura sutil */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;

  opacity: 0;
  animation: heroReveal 1.6s var(--ease) 0.2s forwards;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo {
  width: clamp(130px, 16vw, 210px);
  height: auto;
  margin-bottom: 2.25rem;
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.3));
}

.hero-divider {
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.75rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  color: var(--white);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2.75rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    border-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    background var(--duration) var(--ease);
}

.btn-cta:hover {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.3);
  z-index: 1;
  animation: scrollBounce 2.4s ease-in-out infinite;
  opacity: 0;
  animation-delay: 2s;
  animation-fill-mode: forwards;
  animation-name: fadeInBounce;
}

@keyframes fadeInBounce {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0); }
  30%  { opacity: 1; }
  50%  { transform: translateX(-50%) translateY(5px); }
  100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
}


/* ===================================================
   NOSOTROS
   =================================================== */
.section-nosotros {
  padding: 9rem 2.5rem;
  background: var(--white);
}

.section-nosotros .container {
  max-width: 800px;
}

.section-nosotros h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.body-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: #555;
  max-width: 640px;
}


/* ===================================================
   QUÉ HACEMOS
   =================================================== */
.section-servicios {
  padding: 9rem 2.5rem;
  background: var(--off-white);
}

.cards {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr 1fr;
}

.card {
  padding: 0 2.75rem 0 0;
  position: relative;
}

.card + .card {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
  border-left: 1px solid var(--border);
}

.card:last-child {
  padding-right: 0;
}

/* Animated left border on hover */
.card + .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 0;
  background: var(--navy);
  transition: height 0.5s var(--ease);
}

.card + .card:hover::after {
  height: 100%;
}

.card--logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card--logo img {
  width: clamp(80px, 10vw, 130px);
  height: auto;
  opacity: 0.85;
}

.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(0, 48, 87, 0.3);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: #666;
}


/* ===================================================
   CONTACTO
   =================================================== */
.section-contacto {
  background: var(--navy);
  overflow: hidden;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

.contacto-info {
  padding: 7rem 5% 7rem 8%;
  max-width: 600px;
}

.contacto-info h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.contacto-invite {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.dato {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: start;
}

.dato-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding-top: 0.1rem;
}

.dato-value {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.dato-value a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--duration) var(--ease);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1px;
}

.dato-value a:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Mapa */
.contacto-mapa {
  position: relative;
  min-height: 400px;
}

.contacto-mapa iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) invert(92%) contrast(88%) hue-rotate(190deg);
  opacity: 0.75;
}


/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: var(--navy-deep);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-logo {
  height: 34px;
  width: auto;
  opacity: 0.35;
}

footer p {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}


/* ===================================================
   WHATSAPP FLOTANTE
   =================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  animation: waPulse 3s ease-in-out 3s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: none;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15); }
  50%       { box-shadow: 0 4px 36px rgba(37, 211, 102, 0.6), 0 2px 8px rgba(0, 0, 0, 0.15); }
}


/* ===================================================
   ANIMACIONES DE REVEAL (IntersectionObserver)
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card:nth-child(1) { transition-delay: 0.05s; }
.reveal-card:nth-child(2) { transition-delay: 0.18s; }
.reveal-card:nth-child(3) { transition-delay: 0.31s; }
.reveal-card:nth-child(4) { transition-delay: 0.44s; }


/* ===================================================
   RESPONSIVE — TABLET (≤ 960px)
   =================================================== */
@media (max-width: 960px) {
  #navbar {
    padding: 1.1rem 1.75rem;
  }

  #navbar.scrolled {
    padding: 0.8rem 1.75rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.75rem;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8) !important;
    letter-spacing: 0.22em;
    opacity: 1 !important;
  }

  .nav-links a:hover {
    color: white !important;
  }

  .nav-toggle {
    display: flex;
  }

  /* Lang toggle siempre visible en mobile */
  .lang-toggle {
    z-index: 101;
    position: relative;
  }

  .nav-toggle.open ~ * .lang-btn,
  .nav-toggle.open .lang-btn {
    color: rgba(255, 255, 255, 0.5);
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card {
    padding: 2.5rem 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .card:first-child {
    border-top: none;
    padding-top: 0;
  }

  .card + .card {
    padding-left: 0;
    border-left: none;
  }

  .card + .card::after {
    display: none;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .contacto-info {
    padding: 5rem 1.75rem;
    max-width: 100%;
  }

  .contacto-mapa {
    min-height: 320px;
    position: relative;
  }
}


/* ===================================================
   RESPONSIVE — MOBILE (≤ 600px)
   =================================================== */
@media (max-width: 600px) {
  .section-nosotros,
  .section-servicios {
    padding: 5.5rem 1.5rem;
  }

  .section-nosotros .container,
  .section-servicios .container {
    padding: 0;
  }

  .dato {
    grid-template-columns: 75px 1fr;
    gap: 0.75rem;
  }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .contacto-info {
    padding: 4rem 1.5rem;
  }
}
