

:root {
  --navy:    #0d1b2a;
  --navy2:   #16293d;
  --gold:    #c9a84c;
  --gold2:   #e2c97e;
  --cream:   #f5f0e8;
  --white:   #fdfcf9;
  --gray:    #8a8a8a;
  --light:   #ececec;
  --radius:  4px;
  --trans:   all 0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}


.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 60px;
  transition: var(--trans);
}
.navbar.scrolled {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  padding: 14px 60px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
.nav-logo { display: flex; align-items: baseline; gap: 2px; text-decoration: none; }
.logo-v { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; color: var(--gold); line-height: 1; }
.logo-text { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 300; color: var(--cream); letter-spacing: 0.3em; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.72rem; font-weight: 500; color: var(--cream); text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; transition: var(--trans); }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold) !important;
  padding: 10px 22px !important;
  color: var(--gold) !important;
  opacity: 1 !important;
  border-radius: var(--radius);
  transition: var(--trans) !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--navy) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 200; }
.hamburger span { width: 24px; height: 1.5px; background: var(--cream); display: block; transition: all 0.3s ease; }


.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  padding: 120px 60px 80px;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-bg-text {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(200px, 30vw, 420px);
  font-weight: 300;
  color: rgba(201,168,76,0.04);
  right: -60px; bottom: -60px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-content { flex: 1; max-width: 620px; z-index: 1; animation: fadeUp 1s ease both; }
.hero-tagline {
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.hero-tagline::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 28px;
}
.hero-title em { color: var(--gold); font-style: italic; font-weight: 400; }
.hero-sub {
  font-size: 0.9rem; font-weight: 300; line-height: 1.8;
  color: rgba(245,240,232,0.65); margin-bottom: 44px; max-width: 480px;
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--navy); font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 36px; border-radius: var(--radius); text-decoration: none;
  transition: var(--trans);
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,0.35); }
.btn-ghost {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  text-decoration: none; color: rgba(245,240,232,0.7); transition: var(--trans);
}
.btn-ghost:hover { color: var(--gold); }
.hero-image-wrap { flex: 0 0 auto; position: relative; z-index: 1; animation: fadeUp 1s 0.2s ease both; }
.hero-image {
  width: 380px; height: 480px;
  border: 1px solid rgba(201,168,76,0.25);
  position: relative;
  overflow: hidden;
}
.hero-image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy2) 30%, #1a3a5c 100%);
}
.hero-image::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, var(--navy), transparent);
}
.hero-img-inner {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 5 L55 20 L55 40 L30 55 L5 40 L5 20 Z' fill='none' stroke='rgba(201,168,76,0.07)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px;
  opacity: 0.5;
}

.hero-img-inner::after {
  content: '⚖';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 100px; opacity: 0.07; color: var(--gold);
}

.hero-image-wrap { position: relative; }

.float-stat {
  position: absolute;
  backdrop-filter: blur(10px);
  animation: floatBob 5s ease-in-out infinite;
}


.fs-top-left {
  top: -24px; left: -40px;
  background: var(--gold);
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 8px;
  width: 160px;
  animation-delay: 0s;
}
.fs-top-left .fs-pre {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(13,27,42,0.6);
}
.fs-top-left .fs-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 600; color: var(--navy); line-height: 1;
}
.fs-bar { width: 100%; height: 3px; background: rgba(13,27,42,0.15); border-radius: 2px; overflow: hidden; }
.fs-bar-fill {
  height: 100%; width: 78%; background: var(--navy);
  border-radius: 2px;
  animation: growBar 2s 0.5s ease both;
}
@keyframes growBar { from{width:0} to{width:78%} }


.fs-bottom-right {
  bottom: -32px; right: -130px;
  background: var(--navy2);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
  width: 150px;
  animation-delay: 1.5s;
}
.fs-bottom-right .fs-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem; font-weight: 600; color: var(--gold); line-height: 1;
}
.fs-unit { font-size: 1.4rem; }
.fs-bottom-right .fs-pre {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(245,240,232,0.45);
}
.fs-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.fs-dots .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(201,168,76,0.2);
}
.fs-dots .dot.active { background: var(--gold); }

.fs-right-mid {
  top: 50%; right: -120px;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation-delay: 3s;
}
.fs-ring {
  width: 88px; height: 88px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(13,27,42,0.7);
  position: relative;
}
.fs-ring::before {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.2);
}
.fs-ring-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem; font-weight: 600; color: var(--gold); line-height: 1;
}
.fs-ring-sub {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(245,240,232,0.5);
}
.fs-right-mid .fs-pre {
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(245,240,232,0.45);
  white-space: nowrap;
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.fs-right-mid { animation: floatBobMid 5s 3s ease-in-out infinite; }
@keyframes floatBobMid {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 8px)); }
}
.hero-scroll {
  position: absolute; bottom: 36px; left: 60px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(245,240,232,0.4);
}
.scroll-line { width: 60px; height: 1px; background: rgba(245,240,232,0.3); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--gold); animation: scrollLine 2s ease infinite; }
@keyframes scrollLine { 0%{left:-100%} 100%{left:100%} }


.marquee-wrap {
  background: var(--gold);
  padding: 16px 0;
  overflow: hidden;
}
.marquee {
  display: flex; gap: 40px; align-items: center;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); }
.marquee .dot { font-size: 0.5rem; color: var(--navy); opacity: 0.5; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }


.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--navy); line-height: 1.2;
}
.section-header h2 em { color: var(--gold); font-style: italic; }
.section-header p { font-size: 0.88rem; font-weight: 300; color: var(--gray); margin-top: 16px; max-width: 500px; margin-inline: auto; line-height: 1.8; }
.section-header.light h2 { color: var(--cream); }
.section-label {
  display: inline-block; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}


.areas { padding: 100px 60px; background: var(--white); }
.areas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto;
  justify-items: center;
}
.areas-grid .area-card:last-child:nth-child(3n+1) {
  grid-column: 2;
}
.areas-grid .area-card:last-child:nth-child(3n+2) {
  grid-column: 2 / 4;
}
.area-card {
  position: relative; padding: 40px 36px; border: 1px solid var(--light);
  transition: var(--trans); background: var(--white);
  opacity: 0; transform: translateY(30px);
}
.area-card.visible { opacity: 1; transform: translateY(0); }
.area-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(13,27,42,0.09); }
.area-card.featured { background: var(--navy); border-color: var(--navy); }
.area-card.featured h3, .area-card.featured p { color: var(--cream); }
.area-card.featured .area-link { color: var(--gold); }
.area-card::before {
  content: attr(data-num);
  position: absolute; top: 24px; right: 28px;
  font-family: 'Cormorant Garamond', serif; font-size: 0.9rem;
  color: var(--light); font-weight: 400; letter-spacing: 0.1em;
}
.area-card.featured::before { color: rgba(201,168,76,0.25); }
.area-icon { font-size: 2rem; margin-bottom: 20px; }
.area-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; color: var(--navy); margin-bottom: 12px; }
.area-card p { font-size: 0.83rem; font-weight: 300; color: var(--gray); line-height: 1.8; margin-bottom: 24px; }
.area-link { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); text-decoration: none; transition: var(--trans); }
.area-link:hover { letter-spacing: 0.2em; }

/* ── NOSOTROS ─────────────────────────────── */
.nosotros {
  display: flex; align-items: stretch;
  background: var(--cream);
  min-height: 600px;
}
.nosotros-img {
  flex: 0 0 42%;
  background: var(--navy2);
  position: relative;
  overflow: hidden;
  opacity: 0; transform: translateX(-40px); transition: all 0.8s ease;
}
.nosotros-img.visible { opacity: 1; transform: translateX(0); }
.nosotros-img-inner {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0d1b2a 0%, #1a3a5c 100%);
  display: flex; align-items: flex-end; padding: 48px;
}
.nosotros-img::before {
  content: '§';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: 'Cormorant Garamond', serif; font-size: 280px; font-weight: 300;
  color: rgba(201,168,76,0.06); pointer-events: none;
}
.nosotros-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 300; font-style: italic;
  color: var(--cream); line-height: 1.5;
  border-left: 2px solid var(--gold); padding-left: 20px;
}
.nosotros-content {
  flex: 1; padding: 80px 72px;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateX(40px); transition: all 0.8s 0.2s ease;
}
.nosotros-content.visible { opacity: 1; transform: translateX(0); }
.nosotros-content h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300;
  color: var(--navy); margin: 12px 0 24px; line-height: 1.2;
}
.nosotros-content h2 em { color: var(--gold); font-style: italic; }
.nosotros-content p { font-size: 0.88rem; font-weight: 300; color: #555; line-height: 1.9; margin-bottom: 16px; max-width: 520px; }
.stats-row { display: flex; gap: 40px; margin-top: 40px; }
.stat-box { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.stat-box.visible { opacity: 1; transform: translateY(0); }
.stat-box:nth-child(2) { transition-delay: 0.1s; }
.stat-box:nth-child(3) { transition-delay: 0.2s; }
.snum { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 600; color: var(--gold); line-height: 1; }
.slabel { display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-top: 4px; }

/* ── EQUIPO ───────────────────────────────── */
.equipo { padding: 100px 60px; background: var(--white); }
.equipo .section-header { text-align: center; margin-bottom: 64px; }
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
}
.team-card {
  width: 280px;
  flex: 0 0 280px;
  opacity: 0; transform: translateY(30px); transition: all 0.6s ease;
}
.team-card.visible { opacity: 1; transform: translateY(0); }
.team-card:nth-child(2) { transition-delay: 0.15s; }
.team-photo {
  width: 100%; height: 280px;
  position: relative; overflow: hidden;
  margin-bottom: 20px;
}
.team-photo::before { content: ''; position: absolute; inset: 0; }
.p1 { background: linear-gradient(145deg, #1a3a5c 0%, #0d2033 100%); }
.p2 { background: linear-gradient(145deg, #2c1a40 0%, #160d22 100%); }
.p3 { background: linear-gradient(145deg, #1a3333 0%, #0d2222 100%); }
.p4 { background: linear-gradient(145deg, #2c2a1a 0%, #1a1800 100%); }
.team-photo::after {
  content: '👤';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 72px; opacity: 0.12;
}
.team-info h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--navy); margin-bottom: 4px; }
.team-info span { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.team-info p { font-size: 0.8rem; font-weight: 300; color: var(--gray); line-height: 1.7; }

/* ── TESTIMONIOS ─────────────────────────── */
.testimonios {
  padding: 100px 60px;
  background: var(--navy);
}
.testimonios .section-header { margin-bottom: 56px; }
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto;
}
.testi-card {
  padding: 40px 36px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--trans);
  opacity: 0; transform: translateY(30px);
}
.testi-card.visible { opacity: 1; transform: translateY(0); }
.testi-card:hover { border-color: rgba(201,168,76,0.3); background: rgba(201,168,76,0.04); }
.testi-card.featured { border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.06); }
.stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 3px; margin-bottom: 20px; }
.testi-card p { font-size: 0.88rem; font-weight: 300; color: rgba(245,240,232,0.75); line-height: 1.9; font-style: italic; margin-bottom: 28px; font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 42px; height: 42px; background: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--navy); flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--cream); }
.testi-author span { font-size: 0.72rem; color: rgba(245,240,232,0.45); font-weight: 300; }

/* ── CONTACTO ─────────────────────────────── */
.contacto {
  display: flex; align-items: stretch;
  background: var(--cream);
  min-height: 640px;
}
.contacto-left {
  flex: 0 0 40%; padding: 80px 72px;
  background: var(--navy);
  display: flex; flex-direction: column; justify-content: center;
}
.contacto-left .section-label { margin-bottom: 12px; }
.contacto-left h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 300;
  color: var(--cream); line-height: 1.15; margin-bottom: 20px;
}
.contacto-left h2 em { color: var(--gold); font-style: italic; }
.contacto-left > p { font-size: 0.85rem; font-weight: 300; color: rgba(245,240,232,0.6); line-height: 1.8; margin-bottom: 40px; max-width: 360px; }
.contact-data { display: flex; flex-direction: column; gap: 20px; }
.cd-item { display: flex; align-items: flex-start; gap: 16px; }
.cd-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.cd-item strong { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.cd-item span { font-size: 0.83rem; font-weight: 300; color: rgba(245,240,232,0.65); }
.contacto-right { flex: 1; padding: 80px 72px; display: flex; align-items: center; }
.contact-form { width: 100%; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); opacity: 0.65; }
.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--light); border-radius: var(--radius);
  padding: 13px 16px; font-family: 'Montserrat', sans-serif; font-size: 0.83rem;
  font-weight: 300; color: var(--navy); background: var(--white);
  outline: none; transition: var(--trans);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%; padding: 16px; background: var(--navy); color: var(--cream);
  border: 2px solid var(--navy); font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: none; border-radius: var(--radius); transition: var(--trans);
  margin-top: 4px;
}
.btn-submit:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(201,168,76,0.25); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none; }
.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 500;
  margin-bottom: 16px;
}
.form-feedback.success {
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.4);
  color: #7a6020;
}
.form-feedback.error {
  background: rgba(180,40,40,0.07);
  border: 1px solid rgba(180,40,40,0.3);
  color: #8b2020;
}

/* ── FOOTER ───────────────────────────────── */
.footer { background: #070f18; }
.footer-top {
  padding: 60px 60px 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .footer-logo { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.78rem; font-weight: 300; color: rgba(245,240,232,0.35); line-height: 1.7; }
.footer-links h5 { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.8rem; font-weight: 300; color: rgba(245,240,232,0.4); text-decoration: none; transition: var(--trans); }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  padding: 24px 60px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; font-weight: 300; color: rgba(245,240,232,0.2);
  flex-wrap: wrap; gap: 8px;
}

/* ── ANIMACIONES ──────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .hero { padding: 120px 40px 80px; }
  .hero-image { width: 300px; height: 380px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros { flex-direction: column; }
  .nosotros-img { flex: 0 0 360px; }
  .nosotros-content { padding: 60px 48px; }
  .contacto { flex-direction: column; }
  .contacto-left { flex: none; padding: 60px 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 20px 28px; }
  .navbar.scrolled { padding: 14px 28px; }
  .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: -100%; width: 75%; max-width: 300px; height: 100vh;
    background: var(--navy); padding: 100px 40px 40px;
    gap: 8px; list-style: none;
    transition: right 0.4s cubic-bezier(0.16,1,0.3,1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.4);
    z-index: 150;
  }
  .nav-links.open { right: 0; }
  .nav-links li a {
    font-size: 1rem !important; opacity: 1 !important;
    padding: 14px 0; border-bottom: 1px solid rgba(245,240,232,0.08);
    display: block;
  }
  .nav-links .nav-cta {
    margin-top: 16px; text-align: center;
    padding: 14px 22px !important;
  }
  .hamburger { display: flex; }

  /* Hero */
  .hero { flex-direction: column; padding: 120px 24px 60px; text-align: center; }
  .hero-tagline { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-image-wrap { display: none; }
  .hero-scroll { left: 24px; }
  .hero-bg-text { display: none; }

  /* Áreas */
  .areas { padding: 80px 24px; }
  .areas-grid { grid-template-columns: 1fr; }
  .areas-grid .area-card:last-child:nth-child(3n+1) { grid-column: 1; }
  .areas-grid .area-card:last-child:nth-child(3n+2) { grid-column: 1; }
  .nosotros { flex-direction: column; }
  .nosotros-img { flex: 0 0 300px; }
  .nosotros-content { padding: 48px 24px; }
  .equipo { padding: 80px 24px; }
  .team-grid { flex-direction: column; align-items: center; gap: 24px; }
  .team-card { width: 100%; max-width: 380px; flex: none; }
  .testimonios { padding: 80px 24px; }
  .testi-grid { grid-template-columns: 1fr; }
  .contacto { flex-direction: column; }
  .contacto-left, .contacto-right { padding: 48px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { padding: 48px 24px; grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding: 20px 24px; flex-direction: column; text-align: center; }
  .stats-row { gap: 24px; flex-wrap: wrap; }
  .marquee-wrap { overflow: hidden; }
}

/* ── BANNER DE COOKIES ───────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  padding: 0 24px 24px;
  pointer-events: none;
}
.cookie-banner.visible { transform: translateY(0); pointer-events: all; }

.cookie-inner {
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.25);
  border-bottom: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 24px 32px;
  max-width: 1200px; margin: 0 auto;
  box-shadow: 0 -8px 60px rgba(0,0,0,0.25);
}
.cookie-left { display: flex; align-items: flex-start; gap: 16px; flex: 1; }
.cookie-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.cookie-text strong {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--cream); margin-bottom: 4px;
}
.cookie-text p {
  font-size: 0.75rem; font-weight: 300; color: rgba(245,240,232,0.55);
  line-height: 1.7; max-width: 560px;
}
.cookie-text a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 11px 20px;
  border: none; cursor: pointer; transition: all 0.25s; white-space: nowrap;
}
.cookie-config {
  background: transparent; color: rgba(245,240,232,0.5);
  border: 1px solid rgba(245,240,232,0.15) !important;
}
.cookie-config:hover { color: var(--cream); border-color: rgba(245,240,232,0.35) !important; }
.cookie-reject {
  background: transparent; color: rgba(245,240,232,0.7);
  border: 1px solid rgba(201,168,76,0.3) !important;
}
.cookie-reject:hover { border-color: var(--gold) !important; color: var(--gold); }
.cookie-accept {
  background: var(--gold); color: var(--navy);
  border: 1px solid var(--gold) !important;
}
.cookie-accept:hover { background: var(--gold2); transform: translateY(-1px); }

/* ── MODAL DE PERSONALIZACIÓN ─────────────── */
.cookie-overlay {
  position: fixed; inset: 0; z-index: 9001;
  background: rgba(13,27,42,0.7); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cookie-overlay.visible { opacity: 1; pointer-events: all; }

.cookie-modal {
  position: fixed; bottom: 0; left: 50%; 
  transform: translateX(-50%) translateY(120%);
  z-index: 9002; width: 100%; max-width: 560px;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none; padding: 0 16px 24px;
}
.cookie-modal.visible { transform: translateX(-50%) translateY(0); pointer-events: all; }

.cookie-modal-inner {
  background: var(--white);
  border: 1px solid var(--light);
  padding: 32px;
  box-shadow: 0 -4px 60px rgba(0,0,0,0.2);
}
.cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-modal-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400; color: var(--navy);
}
.cookie-modal-close {
  background: none; border: none; font-size: 0.9rem; cursor: pointer;
  color: var(--gray); padding: 4px 8px; transition: color 0.2s;
}
.cookie-modal-close:hover { color: var(--navy); }
.cookie-modal-intro {
  font-size: 0.78rem; font-weight: 300; color: var(--gray);
  line-height: 1.8; margin-bottom: 24px;
}
.cookie-modal-intro a { color: var(--gold); }

.cookie-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 0;
  border-bottom: 1px solid var(--light);
}
.cookie-toggle-row:last-of-type { border-bottom: none; }
.cookie-toggle-info { flex: 1; }
.cookie-toggle-info strong {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--navy); margin-bottom: 3px;
}
.cookie-toggle-info span {
  font-size: 0.72rem; font-weight: 300; color: var(--gray); line-height: 1.6;
}
.cookie-toggle.locked .toggle-on {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); white-space: nowrap;
}

/* Toggle switch */
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--light); border-radius: 24px; transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: white; border-radius: 50%; transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.cookie-modal-footer {
  display: flex; gap: 10px; margin-top: 24px; justify-content: flex-end;
}

@media (max-width: 768px) {
  .cookie-inner { flex-direction: column; gap: 16px; padding: 20px; }
  .cookie-left { flex-direction: column; gap: 12px; }
  .cookie-actions { width: 100%; flex-direction: column; gap: 8px; }
  .cookie-btn { width: 100%; text-align: center; padding: 13px; }
  .cookie-modal { max-width: 100%; padding: 0 0 16px; }
  .cookie-modal-inner { padding: 24px 20px; }
  .cookie-modal-footer { flex-direction: column; }
  .cookie-modal-footer .cookie-btn { width: 100%; text-align: center; }
}