/* ============ HERO — LA PUERTA ============ */
.hero{
  position: relative;
  height: 100vh;
  min-height: 640px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,165,92,0.12), transparent 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 65%, var(--navy-mid) 100%);
  overflow: hidden;
}
.hero-pin{
  position: relative;
  width:100%;
  height:100%;
  perspective: 3600px;
}

/* Fondo con sensacion de profundidad: 2 capas a distinta velocidad + textura viva */
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}
.bg-layer{
  position:absolute;
  inset:-15%;
  will-change: transform;
}
.hero-photo-texture{
  position:absolute;
  inset:-12%;
  background-image: url('../img/hero-texture-navy.jpg');
  background-size: cover;
  background-position: center 40%;
  filter: blur(5px) contrast(1.15) brightness(1.1);
  opacity: .68;
  will-change: transform;
}
.bg-layer-far{
  background:
    radial-gradient(circle at 20% 26%, rgba(201,165,92,0.26), transparent 48%),
    radial-gradient(circle at 84% 70%, rgba(120,148,200,0.34), transparent 58%);
  filter: blur(50px);
  opacity: 1;
}
.bg-layer-near{
  background:
    radial-gradient(circle at 76% 20%, rgba(201,165,92,0.32), transparent 42%),
    radial-gradient(circle at 22% 84%, rgba(201,165,92,0.20), transparent 48%);
  filter: blur(22px);
  opacity: 1;
}
.hero-noise{
  position:absolute;
  inset:-50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .035;
  mix-blend-mode: overlay;
  animation: heroNoiseShift 9s steps(10) infinite;
}
@keyframes heroNoiseShift{
  0%{ transform: translate(0,0); }
  10%{ transform: translate(-1.5%,-1%); }
  20%{ transform: translate(1%,1.5%); }
  30%{ transform: translate(-1%,0.5%); }
  40%{ transform: translate(1.5%,-1.5%); }
  50%{ transform: translate(-1.5%,1.5%); }
  60%{ transform: translate(1%,-0.5%); }
  70%{ transform: translate(-0.5%,-1.5%); }
  80%{ transform: translate(1.5%,1%); }
  90%{ transform: translate(-1%,-1%); }
  100%{ transform: translate(0,0); }
}
@media (prefers-reduced-motion: reduce){
  .hero-noise{ animation: none; }
}

/* Particulas flotantes: dan movimiento continuo e independiente del scroll */
.hero-particles{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
}
.particle{
  position:absolute;
  bottom:-6%;
  border-radius:50%;
  background: radial-gradient(circle, var(--gold-light) 0%, rgba(201,165,92,0) 72%);
  animation-name: particleFloat;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
@keyframes particleFloat{
  0%   { transform: translate3d(0,0,0); opacity:0; }
  8%   { opacity: var(--p-op, .5); }
  85%  { opacity: var(--p-op, .5); }
  100% { transform: translate3d(var(--p-drift,20px), -118vh, 0); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .particle{ display:none; }
}

/* Contenido detras de la puerta */
.hero-content{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 0 24px;
  z-index: 1;
}
.hero-content img.hero-crest{
  width: 84px;
  margin-bottom: 22px;
  opacity: .95;
}
.hero-content .eyebrow{ color: var(--gold-light); justify-content:center; }
.hero-content .eyebrow::before{ display:none; }
.hero-slogan{
  color: #fff;
  font-size: clamp(30px, 5.6vw, 68px);
  max-width: 15ch;
  margin: 0 0 20px;
  letter-spacing: -.5px;
}
.hero-slogan em{
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub{
  color: #cdd4e8;
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 34px;
}
.hero-ctas{
  display:flex;
  gap: 16px;
  flex-wrap:wrap;
  justify-content:center;
}
.hero-scroll-hint{
  position:absolute;
  bottom: 34px;
  left:50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  z-index: 3;
}
.hero-scroll-hint .line{
  width:1px; height:34px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse{
  0%,100%{ transform: scaleY(1); opacity:.5; }
  50%{ transform: scaleY(1.3); opacity:1; }
}

/* Las puertas */
.door{
  position:absolute;
  top:0; bottom:0;
  width: 50%;
  z-index: 2;
  background:
    linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  box-shadow: inset 0 0 80px rgba(0,0,0,.45);
  will-change: transform;
}
.door::before{ /* panel decorativo */
  content:"";
  position:absolute;
  inset: 6% 12%;
  border: 1.5px solid rgba(201,165,92,0.55);
  border-radius: 4px;
}
.door::after{ /* panel interior secundario */
  content:"";
  position:absolute;
  inset: 14% 20%;
  border: 1px solid rgba(201,165,92,0.3);
  border-radius: 3px;
}
.door-left{
  left:0;
  transform-origin: left center;
  border-right: 2px solid rgba(201,165,92,.5);
}
.door-right{
  right:0;
  transform-origin: right center;
  border-left: 2px solid rgba(201,165,92,.5);
}
.door-handle{
  position:absolute;
  top:50%;
  width:10px; height:44px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dim));
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  transform: translateY(-50%);
}
.door-left .door-handle{ right: 8%; }
.door-right .door-handle{ left: 8%; }

/* Escudo partido a la mitad, uno en cada puerta */
:root{
  --crest-w: clamp(150px, 20vw, 280px);
  --crest-h: calc(var(--crest-w) * 1.2);
}
.door-crest{
  position:absolute;
  top:50%;
  width: calc(var(--crest-w) / 2);
  height: var(--crest-h);
  transform: translateY(-50%);
  background-image: url('../img/logo-crest.png');
  background-repeat: no-repeat;
  background-size: var(--crest-w) var(--crest-h);
  opacity: .95;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.4));
  pointer-events: none;
}
.door-left .door-crest{ right: 0; background-position: left center; }
.door-right .door-crest{ left: 0; background-position: right center; }

@media (max-width: 720px){
  :root{ --crest-w: clamp(110px, 34vw, 190px); }
}

@media (max-width: 720px){
  .hero-content img.hero-crest{ width:64px; }
  .hero-sub{ font-size:15.5px; }
  .door::before{ inset: 8% 8%; }
}

/* ============ SLOGAN / MISION ============ */
.mission{
  background: var(--cream);
  padding: 110px 0 90px;
  text-align:center;
}
.mission-text{
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--navy);
  font-weight:500;
  line-height:1.5;
}
.mission-text strong{
  color: var(--gold-dim);
  font-weight:600;
}
.mission-stats{
  display:flex;
  justify-content:center;
  gap: 60px;
  margin-top: 56px;
  flex-wrap:wrap;
}
.stat{ text-align:center; }
.stat-num{
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--navy);
  font-weight:700;
}
.stat-label{
  font-size: 12.5px;
  text-transform:uppercase;
  letter-spacing: 1.4px;
  color: var(--grey);
  font-weight:700;
  margin-top:4px;
}

/* ============ SERVICIOS ============ */
.services{
  background: #fff;
  padding: 100px 0;
}
.services-head{
  max-width: 620px;
  margin: 0 auto 60px;
  text-align:center;
}
.services-head h2{ font-size: clamp(28px,4vw,42px); }
.services-head p{ color: var(--grey); font-size:16px; }
.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px){ .services-grid{ grid-template-columns:1fr; } }
.service-card{
  position:relative;
  background: var(--navy-deep);
  border-radius: var(--radius);
  padding: 40px 32px 34px;
  overflow:hidden;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  min-height: 320px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(13,23,48,.28);
}
.service-card::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at 90% 0%, rgba(201,165,92,0.22), transparent 60%);
}
.service-num{
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing:2px;
  margin-bottom:22px;
  position:relative;
}
.service-card h3{
  color:#fff;
  font-size: 24px;
  margin-bottom: 12px;
  position:relative;
}
.service-card p{
  color: #b9c1da;
  font-size: 14.5px;
  flex:1;
  position:relative;
}
.service-link{
  color: var(--gold-light);
  font-weight:700;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  position:relative;
}
.service-card:hover .service-link{ gap:10px; }
.service-link svg{ width:16px; height:16px; transition: transform .2s; }

/* ============ QUIENES SOMOS ============ */
.about{
  background: var(--cream);
  padding: 110px 0;
}
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items:center;
}
@media (max-width: 860px){ .about-grid{ grid-template-columns:1fr; gap:40px; } }
.about-photo{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 30px 60px rgba(13,23,48,.18);
}
.about-photo img{ width:100%; height:100%; object-fit:cover; }
.about-photo-tag{
  position:absolute;
  bottom: 18px; left:18px;
  background: rgba(13,23,48,.85);
  color:#fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  backdrop-filter: blur(4px);
}
.about-photo-tag strong{ color: var(--gold-light); display:block; font-size:13.5px; }
.about-copy h2{ font-size: clamp(28px, 3.6vw, 38px); }
.about-copy p{ color:#4a5165; font-size:16px; }
.about-badges{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top: 26px;
}
.badge{
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1.5px solid var(--line);
  padding: 9px 16px;
  border-radius: 22px;
  font-size: 13px;
  font-weight:700;
  color: var(--navy);
}
.badge svg{ width:15px; height:15px; color: var(--gold-dim); flex:0 0 auto; }

/* ============ POR QUE ELEGIRNOS ============ */
.why{
  background: var(--navy-deep);
  padding: 110px 0;
  position:relative;
  overflow:hidden;
}
.why::before{
  content:"";
  position:absolute;
  top:-20%; right:-10%;
  width:60%; height:140%;
  background: radial-gradient(circle, rgba(201,165,92,0.08), transparent 65%);
}
.why-head{
  max-width: 560px;
  margin-bottom: 56px;
  position:relative;
}
.why-head h2{ color:#fff; font-size: clamp(28px,4vw,40px); }
.why-head p{ color:#aab2cc; font-size:16px; }
.why-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position:relative;
}
@media (max-width: 940px){ .why-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .why-grid{ grid-template-columns: 1fr; } }
.why-item h3{
  color:#fff;
  font-size:17px;
  font-weight:600;
  margin-bottom:10px;
}
.why-item p{ color:#9aa3c0; font-size:14px; margin:0; }
.why-icon{
  width: 44px; height:44px;
  border-radius: 12px;
  background: rgba(201,165,92,0.14);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.why-icon svg{ width:22px; height:22px; color: var(--gold-light); }

/* ============ CTA FINAL ============ */
.final-cta{
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 80px 0;
  text-align:center;
}
.final-cta h2{
  color: var(--navy-deep);
  font-size: clamp(26px, 4vw, 38px);
  max-width: 700px;
  margin: 0 auto 14px;
}
.final-cta p{ color: var(--navy-mid); font-size:16px; margin-bottom:30px; }
.final-cta-ctas{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.btn-navy{
  background: var(--navy-deep);
  color:#fff;
}
.btn-navy:hover{ transform: translateY(-2px); box-shadow: 0 10px 26px rgba(13,23,48,.35); }

/* reveal-on-scroll util */
.reveal{ opacity:0; transform: translateY(28px); }
