/* ─── IMPORTACIONES DE FUENTES ─── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ─── VARIABLES GLOBALES (:ROOT) ─── */
:root {
  --font-main: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --navy: #0d1b2e;
  --navy-light: #162845;
  --gold: #e8a020;
  --gold-light: #f5b942;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #8899aa;
  --text-muted-light: #b0bec5;
  --text-hero: #b0bec5; /* Alias para consistencia */
  --text-sub: #aaaaaa;
  --white: #ffffff;
  --bg-light: #f5f5f5;
  --gray-bg: #f5f5f5; /* Alias */
  --bg-gold-light: #fff8ec;
  --gold-bg-light: #fff8ec; /* Alias */
  --bg-white-trans: rgba(255, 255, 255, 0.04);
  --border-light: #e8e8e8;
  --gray-border: #e8e8e8; /* Alias */
  --border-trans: rgba(255, 255, 255, 0.08);
  --border-gold-trans: rgba(232, 160, 32, 0.4);
  --border-divider: rgba(255, 255, 255, 0.1);
  --overlay-bg: rgba(0, 0, 0, 0.45);
  --shadow-light: rgba(13, 27, 46, 0.12);
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: var(--font-main); 
}

body {
  background-color: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-moz-selection { background: var(--gold); color: var(--navy); }
::selection { background: var(--gold); color: var(--navy); }

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
button { cursor: pointer; border: none; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAVBAR (ORIGINAL) ── */
nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 54px; width: auto; object-fit: contain; }

.logo-icon {
  width: 54px; height: 54px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 900;
  color: var(--navy); line-height: 1;
}

.logo-text { line-height: 1.1; }
.logo-text .luz { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: 2px; }
.logo-text .spa { font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: 3px; }

nav ul { list-style: none; display: flex; gap: 32px; align-items: center; }
nav ul a {
  color: var(--white);
  font-size: 14px; font-weight: 500;
  position: relative; padding-bottom: 4px;
}

nav ul a:hover { color: var(--gold); }

/* Actualizado: Usamos .active en lugar de :first-child para poder moverlo de página */
nav ul a.active::after {
  content: ''; position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold); border-radius: 2px;
}

.btn-nav {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 9px 22px !important; /* Reducimos el alto y ancho del botón */
  border-radius: 6px;
  font-weight: 600 !important; /* Letra más delgada, menos "pesada" */
  font-size: 13px !important; /* Tamaño exacto para igualar al menú */
  display: flex; 
  align-items: center; 
  gap: 9px; /* Menos espacio entre el ícono y el texto */
  transition: background .2s, transform .15s !important;
}

/* Reducimos ligeramente el tamaño del ícono dentro del botón para mantener la proporción */
.btn-nav .material-icon {
  font-size: 18px !important; 
}

.btn-nav:hover { 
  background: var(--gold-light) !important; 
  transform: translateY(-1px); 
}

/* ── HAMBURGER & MOBILE MENU (ORIGINAL) ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 201; position: relative;
}
.hamburger span {
  display: block; width: 26px; height: 2.5px; background: var(--white);
  border-radius: 3px; transition: transform .3s, opacity .3s, background .2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: var(--gold); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: var(--gold); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--navy); z-index: 200;
  transform: translateY(-100%); transition: transform .4s cubic-bezier(.4,0,.2,1);
  padding-top: 72px; border-bottom: 3px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-inner { display: flex; flex-direction: column; }
.mobile-menu a {
  color: var(--white); font-family: var(--font-heading);
  font-size: 15px; font-weight: 600; padding: 16px 24px;
  border-bottom: 1px solid var(--border-trans); text-align: center; letter-spacing: .5px;
}
.mobile-menu a:hover { color: var(--gold); background: rgba(232,160,32,.06); }

/* Actualizado: Usamos .active en el menú móvil también */
.mobile-menu a.active {
  border-top: 1px solid var(--border-trans);
  color: var(--gold); position: relative;
}
.mobile-menu a.active::after {
  content: ''; position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px;
  background: var(--gold); border-radius: 2px;
}

.mobile-menu .btn-nav-mobile {
  margin: 20px 24px 24px; background: var(--gold); color: var(--navy);
  padding: 15px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; border-bottom: none;
}
.mobile-menu .btn-nav-mobile:hover { background: var(--gold-light); color: var(--navy); }

.menu-overlay {
  position: fixed; inset: 0; background: var(--overlay-bg); z-index: 199;
  opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(2px);
}
.menu-overlay.active { opacity: 1; pointer-events: all; }

/* ── TIPOGRAFÍAS ESPECÍFICAS SECCIÓN NOSOTROS ── */
.label-caps {
  font-family: var(--font-heading); font-size: 12px; line-height: 16px; letter-spacing: 0.12em;
  font-weight: 700; color: var(--gold); display: block; margin-bottom: 16px;
}
.display-xl {
  font-family: var(--font-heading); font-size: 36px; line-height: 44px; letter-spacing: -0.02em;
  font-weight: 800; color: var(--white);
}
.headline-lg {
  font-family: var(--font-heading); font-size: 28px; line-height: 36px;
  font-weight: 700; color: var(--navy);
}
.title-md {
  font-family: var(--font-heading); font-size: 20px; line-height: 28px;
  font-weight: 700; color: var(--navy);
}
.body-base { font-size: 16px; line-height: 26px; font-weight: 400; }

.txt-muted { color: var(--text-muted); }
.txt-hero { color: var(--text-hero); }
.txt-white { color: var(--white); }
.text-variant { color: var(--text-light); }
.text-accent { color: var(--gold); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mb-16 { margin-bottom: 64px; }
.space-y p { margin-bottom: 16px; }
.space-y p:last-child { margin-bottom: 0; }

.material-icon {
  font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal;
  font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: middle;
}

.max-container { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.grid-twocol { display: grid; grid-template-columns: 1fr; gap: 48px; }

/* ── SECCIÓN: HERO NOSOTROS ── */
.hero-section { 
  position: relative; 
  background-color: var(--navy); 
  padding: 96px 0; 
  overflow: hidden; 
}

/* Sugerencia: Cambié el degradado lateral por uno uniforme para que el texto centrado contraste mejor con el fondo en ambos lados */
.hero-overlay { 
  position: absolute; 
  inset: 0; 
  background: rgba(13, 27, 46, 0.75); 
  z-index: 10; 
}

.hero-bg-img { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: 0.15; 
  z-index: 0; 
}

.hero-content { 
  position: relative; 
  z-index: 20; 
  max-width: 800px; 
  margin: 0 auto; /* Centra el bloque contenedor en medio de la pantalla */
  text-align: center; /* Centra los textos */
  display: flex;
  flex-direction: column;
  align-items: center; /* Asegura que la etiqueta "NUESTRA IDENTIDAD" quede al medio */
}

.hero-content h1 { 
  margin-bottom: 24px; 
}

/* ── SECCIÓN: HISTORIA ── */
.history-section { padding: 96px 0; background-color: var(--white); }
.stats-group { margin-top: 40px; display: flex; gap: 48px; }
.stat-number { display: block; font-family: var(--font-heading); font-size: 48px; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-family: var(--font-heading); font-size: 11px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.history-visual .image-wrapper { position: relative; aspect-ratio: 1 / 1; background-color: var(--gray-bg); border-radius: 4px; overflow: hidden; border: 1px solid var(--gray-border); }
.history-visual img { width: 100%; height: 100%; object-fit: cover; }
.quote-box { position: absolute; bottom: 24px; left: 24px; right: 24px; background-color: rgba(13, 27, 46, 0.95); padding: 24px; border-left: 4px solid var(--gold); }
.quote-text { color: var(--text-hero); font-style: italic; }

/* ── SECCIÓN: PILARES ── */
.pillars-section { padding: 96px 0; background-color: var(--gray-bg); }
.pillars-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.pillar-card { background-color: var(--white); padding: 48px; border-radius: 4px; border: 1px solid var(--gray-border); box-shadow: 0 4px 6px var(--shadow-light); transition: all 0.3s ease; }
.pillar-card:hover { border-color: var(--border-gold-trans); transform: translateY(-4px); }
.card-icon-wrapper { width: 128px; height: 128px; margin: 0 auto 32px auto; transition: transform 0.3s ease; }
.pillar-card:hover .card-icon-wrapper { transform: scale(1.05); }
.pillar-card h3 { margin-bottom: 16px; }

/* ── SECCIÓN: EQUIPO ── */
.team-section { padding: 96px 0; background-color: var(--navy); }
.team-image-container { position: relative; }
.glow-effect { position: absolute; inset: -16px; background-color: var(--gold); opacity: 0.12; filter: blur(24px); border-radius: 16px; }
.team-img { position: relative; width: 100%; border-radius: 4px; border: 2px solid var(--border-gold-trans); }
.badge-manager { position: absolute; bottom: 32px; right: 32px; background-color: var(--gold); color: var(--navy); padding: 16px 24px; border-radius: 4px; box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.manager-name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.manager-role { font-family: var(--font-heading); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.team-info h2 { margin-bottom: 32px; }
.guarantee-badge { display: flex; align-items: center; gap: 16px; padding-top: 16px; }
.g-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background-color: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-gold-trans); border-radius: 50%; color: var(--gold); }

/* ── SECCIÓN: CTA NOSOTROS ── */
.cta-section { padding: 80px 0; background-color: var(--gold-bg-light); border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border); }
.cta-wrapper { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 40px; }
.cta-text h2 { color: var(--navy); margin-bottom: 16px; }
.cta-text p { color: var(--text-light); }
.btn-dark { background-color: var(--navy); color: var(--white); font-family: var(--font-heading); padding: 16px 32px; border-radius: 4px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 12px var(--shadow-light); }
.btn-dark:hover { background-color: var(--navy-light); }

/* ── FOOTER (ORIGINAL) ── */
.footer-top {
  background: var(--navy); padding: 50px 60px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px;
  border-top: 3px solid var(--gold);
}
.footer-brand p { color: var(--text-muted); font-size: 13px; line-height: 1.7; max-width: 240px; }
.footer-col-title { font-family: var(--font-heading); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.footer-social { margin-top: 4px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1.5px solid var(--border-gold-trans); border-radius: 8px; color: var(--text-muted); transition: background .2s, color .2s, border-color .2s; }
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  background: var(--navy-light); padding: 18px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--border-trans); flex-wrap: wrap;
}
.footer-bottom-item { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }
.footer-divider { width: 1px; height: 26px; background: var(--border-divider); }

/* ── MEDIA QUERIES (RESPONSIVE FUSIONADO) ── */
@media (min-width: 768px) {
  /* Diseño en PC de la página Nosotros */
  .display-xl { font-size: 48px; line-height: 56px; }
  .headline-lg { font-size: 32px; line-height: 40px; }
  .grid-twocol { grid-template-columns: repeat(12, 1fr); }
  .history-text { grid-column: span 7; }
  .history-visual { grid-column: span 5; }
  .team-visual { grid-column: span 6; }
  .team-info { grid-column: span 6; }
  .hero-section { padding: 128px 0; }
  .hero-content { padding-left: 40px; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-wrapper { flex-direction: row; align-items: center; }
}

@media (max-width: 900px) {
  /* Reglas Móviles Originales (Nav/Footer) */
  nav { padding: 0 24px; }
  nav ul { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 40px 24px 24px; gap: 30px; }
  .footer-bottom { padding: 18px 24px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-divider { display: none; }
}

@media (max-width: 560px) {
  /* Reglas Móviles Originales Pequeñas (Nav/Footer) */
  nav { padding: 0 18px; height: 64px; }
  .logo img { height: 46px; }
  .footer-top { grid-template-columns: 1fr; padding: 36px 18px 20px; }
  .footer-bottom { padding: 16px 18px; }
}