/* styles.css */

/* ================= RESET ================= */
*{margin:0;padding:0;box-sizing:border-box}

:root{
  --olivos-blue:#1f6f8b;
  --olivos-green:#6fa93a;
  --olivos-gray:#f4f6f8;
  --text-dark:#1f2d3d;

  --wrap: 1300px;
  --header-h: 64px;
}

html{scroll-padding-top: 96px;}
body{
  font-family:"Segoe UI", Arial, sans-serif;
  background:#fff;
  color:#333;
  line-height:1.6;
}
a{text-decoration:none;color:inherit}

/* ================= HEADER ================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 2000;
  background:#fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-row{
  width:100%;
  height: var(--header-h);
  padding: 0 24px;
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:nowrap;
}

.header-phones{
  display:flex;
  align-items:center;
  gap:18px;
  white-space:nowrap;
  flex: 0 0 auto;
}
.phone-link{
  font-size:13px;
  font-weight:900;
  color:var(--text-dark);
}
.phone-link:hover{color:var(--olivos-blue)}

.mainnav{
  display:flex;
  gap:22px;
  align-items:center;
  white-space:nowrap;
  margin-left: auto;
}
.mainnav a{
  font-weight:900;
  color:var(--text-dark);
  padding:8px 10px;
  border-radius:10px;
}
.mainnav a:hover{
  background:rgba(31,111,139,0.08);
  color:var(--olivos-blue);
}
.mainnav a[aria-current="page"]{
  background:rgba(31,111,139,0.12);
  color:var(--olivos-blue);
}

.btn-primary{
  background:var(--olivos-blue);
  color:#fff;
  padding:12px 18px;
  border-radius:14px;
  font-weight:900;
  white-space:nowrap;
  flex: 0 0 auto;
}
.btn-primary:hover{background:#17566b}
.btn-primary:focus-visible{
  outline: 3px solid rgba(255,255,255,0.85);
  outline-offset: 3px;
}

/* ================= HERO ================= */
.hero{
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 520px;
  padding: 0;
  margin: 0;
  display:flex;
  align-items: stretch;
  background:#fff;
  overflow:hidden;
}
/* Medium screens: let hero grow if content doesn't fit */
@media (max-width: 1200px) and (min-width: 981px) {
  .hero {
    height: auto;
    min-height: calc(100vh - var(--header-h));
  }
}
@media (max-width: 980px) {
  .hero {
    height: auto;
    min-height: 0;
  }
}

.hero-fade{
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(900px 420px at 25% 40%, rgba(31,111,139,0.10), transparent 60%);
  z-index:0;
}

/* Redes */
.social-float{
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:50;
}
.social-btn{
  width:40px;height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,0.22);

  background: rgba(31,45,61,0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);

  transition: transform .15s ease, background .15s ease;
}
@supports not ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))){
  .social-btn{ background: rgba(31,45,61,0.82); }
}
.social-btn:hover{
  transform: translateY(-2px);
  background: rgba(31,111,139,0.60);
}
.social-btn svg{width:18px;height:18px;fill:#fff}

/* Panel */
.hero-panel{
  width: 100%;
  min-height: inherit;
  margin: 0;
  position: relative;
  z-index: 2;

  padding: clamp(16px, 2.5vw, 36px);
  padding-right: clamp(60px, 6vw, 110px);

  display:grid;
  grid-template-columns: 45% 55%;
  gap: clamp(14px, 2vw, 28px);

  background: radial-gradient(1200px 700px at 70% 30%, rgba(111,169,58,0.22), rgba(0,0,0,0) 60%),
              linear-gradient(135deg, #1f2d3d 0%, #1f6f8b 55%, #123141 100%);
}

/* Fade-in */
.fade-in{
  opacity:0;
  transform: translateY(14px);
  animation: enter .95s ease forwards;
}
@keyframes enter{to{opacity:1;transform:translateY(0)}}

.hero-left{
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: clamp(8px, 1.2vh, 14px);
}

.hero-logo{
  width: clamp(180px, 22vw, 340px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display:block;
  margin: 0 auto 8px;
}

.hero-brand{ text-align:center; }

.hero-title{
  font-size: clamp(24px, 2.8vw, 40px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:1px;
}

.hero-subtitle{
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight:500;
  opacity:.92;
}

.hero-text{
  margin-top:6px;
  font-size: clamp(14px, 1.25vw, 16px);
  opacity:.96;
  text-align: center;
}

.hero-location{
  font-size:14px;
  opacity:.92;
  text-align: center;
}

.hero-actions{
  margin-top:18px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}

.btn-hero-primary,
.btn-hero-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  border-radius:999px;
  color:#fff;
  font-weight:900;
  white-space:nowrap;
  border:1px solid rgba(255,255,255,0.55);
  transition: background .2s ease, transform .15s ease;
}
.btn-hero-primary{background: rgba(255,255,255,0.12)}
.btn-hero-primary:hover{background: rgba(255,255,255,0.20)}
.btn-hero-ghost{background: transparent}
.btn-hero-ghost:hover{background: rgba(255,255,255,0.12)}
.btn-hero-primary:focus-visible,
.btn-hero-ghost:focus-visible{
  outline: 3px solid rgba(255,255,255,0.85);
  outline-offset: 4px;
}

.scroll-hint{
  margin-top:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  opacity:.85;
}
.scroll-hint span{
  width:20px;height:34px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,0.6);
  position:relative;
}
.scroll-hint span::after{
  content:"";
  width:6px;height:6px;
  border-radius:999px;
  background: rgba(255,255,255,0.85);
  position:absolute;
  left:50%;
  top:8px;
  transform: translateX(-50%);
  animation: wheel 1.35s ease-in-out infinite;
}
@keyframes wheel{
  0%{transform:translate(-50%,0);opacity:.9}
  60%{transform:translate(-50%,12px);opacity:.2}
  100%{transform:translate(-50%,0);opacity:0}
}
.scroll-hint small{font-weight:800}

/* Carrusel */
.hero-right{
  width:100%;
  height:100%;
  display:flex;
  align-items:stretch;
  justify-content:stretch;
}
.hero-carousel{
  width:100%;
  height:100%;
  border-radius:28px;
  overflow:hidden;
  position:relative;
  background: rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.18);
  box-shadow: 0 22px 60px rgba(0,0,0,0.35);
}
.hero-carousel img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 1.8s ease;
  will-change: transform, opacity;
}
.hero-carousel img.active{
  opacity:1;
  transform: scale(1);
}

/* ================= SERVICIOS ================= */
.services{
  width:100%;
  display:block;
  padding:0;
  background:transparent;
}

.services-grid{
  width:100%;
  max-width: var(--wrap);
  display:grid;
  grid-template-columns:repeat(3, minmax(240px, 1fr));
  gap:32px;
}

.svc-card{
  position:relative;
  height:360px;
  border-radius:26px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  box-shadow:0 30px 50px rgba(0,0,0,.18);
  transition:.5s cubic-bezier(.2,.9,.2,1);
  border:1px solid rgba(255,255,255,.08);

  will-change: transform;
}

.svc-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform .55s ease;
  z-index:0;
}

.svc-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(5,40,60,.65),rgba(5,40,60,.85));
  transition:.4s;
  z-index:1;
}
.svc-overlay::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top,rgba(255,255,255,.12),transparent 60%);
  display:block;
  opacity:.4;
}

.svc-content{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  padding:24px;
  gap:14px;
}

.svc-title{
  font-size:22px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
  line-height:1.15;
  max-width: 18ch;
}

.svc-sub{
  font-size:13px;
  opacity:.92;
  font-weight:800;
  text-transform:uppercase;
}

.svc-btn{
  margin-top:18px;
  padding:12px 28px;
  border-radius:30px;
  background:#18b6c9;
  color:#fff;
  font-weight:900;
  text-decoration:none;
  opacity:0;
  transform:translateY(20px);
  transition:.4s cubic-bezier(.2,.9,.2,1);
}
.svc-btn:focus-visible{
  outline: 3px solid rgba(255,255,255,0.9);
  outline-offset: 4px;
}

.svc-card:hover{
  transform:translateY(-10px) scale(1.02);
  box-shadow:0 50px 80px rgba(0,0,0,.25);
}
.svc-card:hover::before{transform: scale(1.06);}
.svc-card:hover .svc-overlay{
  background:linear-gradient(180deg,rgba(5,40,60,.35),rgba(5,40,60,.85));
}
.svc-card:hover .svc-btn{
  opacity:1;
  transform:translateY(0);
}

.svc-card::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:28px;
  background:linear-gradient(120deg, rgba(24,182,201,0), rgba(24,182,201,.45), rgba(24,182,201,0));
  opacity:0;
  transition:.5s;
  pointer-events:none;
}
.svc-card:hover::after{opacity:1;}

.services-grid .svc-card:nth-child(1){ background-image:url("img/services/especialidades.webp"); }
.services-grid .svc-card:nth-child(2){ background-image:url("img/services/laboratorio.webp"); }
.services-grid .svc-card:nth-child(3){ background-image:url("img/services/rayosx.webp"); }
.services-grid .svc-card:nth-child(4){ background-image:url("img/services/ecografia.webp"); }
.services-grid .svc-card:nth-child(5){ background-image:url("img/services/fisioterapia.webp"); }
.services-grid .svc-card:nth-child(6){ background-image:url("img/services/ocupacional.webp"); }

/* ================= ESPECIALIDADES (FINAL) ================= */
.specialties{
  padding: 90px 24px;
  background: #f4f6f8;
}
.specialties-wrap{
  max-width: var(--wrap);
  margin: 0 auto;
}
.specialties-title{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-dark);
  margin-bottom: 40px;
  text-transform: uppercase;
}
.specialties-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.spec-card{
  background:#fff;
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.05);
  transition: .35s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.spec-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.14);
}
.spec-card h3{
  font-size: 18px;
  font-weight: 900;
  color: var(--olivos-blue);
  margin-bottom: 10px;
}
.spec-card ul{
  list-style:none;
  padding:0 0 54px;
  margin:0;
}
.spec-card li{
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.25;
  color:#2b3a4a;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.spec-card li:last-child{ border-bottom:none; }

.spec-btn{
  position:absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--olivos-blue);
  color:#fff;
  font-weight: 900;
  text-decoration:none;
  transition: .25s ease;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.spec-card:hover .spec-btn{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.spec-btn:hover{ background:#17566b; }
.spec-btn:focus-visible{
  outline: 3px solid rgba(31,111,139,0.35);
  outline-offset: 4px;
}

.spec-list-2col{
  list-style:none;
  padding:0 0 54px;
  margin:0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
}
.spec-list-2col li{
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.25;
  color:#2b3a4a;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}

/* ================= CONVENIOS (CINTA INFINITA) ================= */
.partners-marquee{
  padding: 70px 24px 86px;
  background:#fff;
}
.partners-wrap{
  width:100%;
  max-width: var(--wrap);
  margin: 0 auto;
  text-align:center;
}
.partners-title{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-dark);
  text-transform: uppercase;
}
.partners-subtitle{
  margin-top: 10px;
  color: #2b3a4a;
  opacity: .9;
  font-size: 14px;
}

.marquee{
  margin-top: 26px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(135deg, rgba(31,111,139,0.06), rgba(111,169,58,0.05));
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
}
.marquee::before,
.marquee::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 90px;
  pointer-events:none;
  z-index: 3;
}
.marquee::before{
  left:0;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
}
.marquee::after{
  right:0;
  background: linear-gradient(270deg, rgba(255,255,255,1), rgba(255,255,255,0));
}
.marquee-track{
  display:flex;
  align-items:center;
  gap: 18px;
  padding: 26px;
  will-change: transform;
}
.partner-logo{
  flex: 0 0 auto;
  width: 220px;
  height: 110px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.partner-logo img{
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: saturate(1.05);
  opacity: .98;
}
.marquee:hover .marquee-track{
  animation-play-state: paused;
}

/* ================= NOSOTROS ================= */
.about{
  padding: 70px 24px 86px;
  background:#fff;
}
.about-wrap{
  width:100%;
  max-width: var(--wrap);
  margin: 0 auto;
}
.about-title{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-dark);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.about-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}
.about-card{
  background:#fff;
  border:1px solid rgba(0,0,0,0.06);
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.10);
  text-align: left;
}
.about-card h3{
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.about-onep{
  margin-top: 10px;
  font-size: 15px;
  color:#2b3a4a;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}
.about-card strong{color: var(--olivos-blue);}

.about-banner{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,0.16);
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(31,111,139,0.06);
  aspect-ratio: 16 / 9;
}
.about-carousel{
  position:absolute;
  inset:0;
}
.about-carousel img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  opacity:0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 1.8s ease;
  will-change: transform, opacity;
}
.about-carousel img.active{
  opacity:1;
  transform: scale(1);
}

.about-dots{
  position:absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display:flex;
  gap: 8px;
  z-index: 5;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
}
.about-dots .dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(0,0,0,0.18);
  transition: transform .2s ease, background .2s ease;
  cursor: pointer;
}
.about-dots .dot.active{
  background: rgba(255,255,255,0.95);
  transform: scale(1.25);
}
.about-dots .dot:focus{
  outline:2px solid rgba(255,255,255,.95);
  outline-offset:3px;
}

/* ================= ACCESIBILIDAD ================= */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 16px;
  background:#fff;
  color:#000;
  font-weight:800;
  border-radius:10px;
  z-index:3000;
  box-shadow:0 10px 30px rgba(0,0,0,0.25);
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ================= CITAS ================= */
.appointments{
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(31,111,139,0.08), rgba(111,169,58,0.06));
}
.appointments-wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  text-align:center;
}
.appointments-title{
  font-size: 32px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.appointments-sub{
  font-size: 15px;
  opacity:.9;
  margin-bottom: 24px;
}

/* ================= CONTACTO ================= */
.contact{
  padding: 70px 24px 90px;
  background:#fff;
}
.contact-wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  text-align:center;
}
.contact-title{
  font-size: 32px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 22px;
}
.contact-item{
  font-size:15px;
  margin-bottom:10px;
}
.contact-item a{
  color: var(--olivos-blue);
  font-weight:800;
}
.contact-item a:hover{
  text-decoration:underline;
}

/* ================= UBICACIÓN ================= */
.location{
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(31,111,139,0.06), rgba(111,169,58,0.05));
}
.location-wrap{
  max-width: var(--wrap);
  margin: 0 auto;
}
.location-head{
  text-align:center;
  margin-bottom: 22px;
}
.location-title{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-dark);
  text-transform: uppercase;
}
.location-sub{
  margin-top: 10px;
  font-size: 14px;
  color: #2b3a4a;
  opacity: .92;
}

.location-grid{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.location-card{
  background:#fff;
  border:1px solid rgba(0,0,0,0.06);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.10);
  text-align:left;
}
.location-card-title{
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.location-line{
  margin-top: 10px;
  color:#2b3a4a;
  font-size: 15px;
}
.location-line a{
  color: var(--olivos-blue);
  font-weight: 900;
}
.location-line a:hover{ text-decoration: underline; }

.location-actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
}

.location-note{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(31,111,139,0.06);
  border: 1px solid rgba(31,111,139,0.12);
}
.location-note p{
  margin:0;
  font-size: 13px;
  color:#2b3a4a;
  opacity: .92;
}

.location-map{
  border-radius: 26px;
  overflow:hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,0.16);
  border: 1px solid rgba(0,0,0,0.06);
  background:#fff;
  min-height: 380px;
}
.location-map iframe{
  width:100%;
  height:100%;
  min-height: 380px;
  border:0;
  display:block;
}

/* ================= RESPONSIVE ================= */
@media (max-width:1100px){
  .services-grid{grid-template-columns: repeat(2, minmax(240px, 1fr))}
}

@media (max-width:980px){
  .hero-panel{
    grid-template-columns: 1fr;
    padding: 32px 20px 36px;
    gap: 24px;
  }
  .social-float{display:none}
  .header-phones{display:none}

  .hero-left{
    align-items:center;
    order: 2;
  }
  .hero-right{
    order: 1;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
  }
  .hero-right img, .hero-carousel, .hero-carousel img {
    height: 260px;
    border-radius: 16px;
    object-fit: cover;
    width: 100%;
  }
  .hero-text, .hero-location{ text-align:center; }
  .hero-actions{justify-content:center; flex-wrap: wrap; gap: 10px;}

  .about-grid{grid-template-columns: 1fr;}
  .about-title{font-size: 28px;}
  .about-card{padding: 22px;}

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

  .spec-btn{
    position: static;
    margin-top: 14px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .spec-card ul{ padding-bottom: 0; }
  .spec-list-2col{ grid-template-columns: 1fr; padding-bottom: 0; }
  .spec-card{ padding: 22px; }

  .partners-title{font-size: 28px;}
  .partner-logo{ width: 190px; height: 96px; }
  .marquee-track{ padding: 18px; }
  .marquee::before, .marquee::after{ width: 70px; }

  .location-grid{ grid-template-columns: 1fr; }
  .location-title{ font-size: 28px; }
  .location-map{ min-height: 320px; }
  .location-map iframe{ min-height: 320px; }
}

@media (max-width:600px){
  .hero-panel {
    padding: 20px 16px 28px;
    gap: 18px;
  }
  .hero-right, .hero-right img, .hero-carousel, .hero-carousel img {
    height: 220px;
  }
  .hero-title {
    font-size: clamp(22px, 6vw, 32px) !important;
  }
  .hero-sub {
    font-size: 14px !important;
  }
  .btn-hero-primary, .btn-hero-ghost {
    font-size: 13px !important;
    padding: 11px 18px !important;
  }
  .hero-actions {
    gap: 8px;
  }
  .services{ padding: 64px 18px; }
  .specialties{ padding: 70px 18px; }
  .about{ padding: 64px 18px 76px; }
  .partners-marquee{ padding: 64px 18px 76px; }

  .services-grid{grid-template-columns:1fr}
  .svc-card{height: 360px;}

  .partner-logo{ width: 170px; height: 90px; }
  .marquee{ border-radius: 18px; }
  .marquee::before, .marquee::after{ width: 55px; }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .fade-in{ animation: none !important; opacity:1 !important; transform:none !important; }
  .hero-carousel img,
  .about-carousel img{
    transition: none !important;
    transform: none !important;
  }
  .svc-card,
  .spec-card{
    transition: none !important;
  }
  .scroll-hint span::after{
    animation: none !important;
    opacity: 0 !important;
  }
  .marquee-track{
    animation: none !important;
    transform: none !important;
  }
}

/* =============== COOKIES UI =============== */
.cookie-lock { overflow: hidden; }

/* FIX CRÍTICO: que hidden oculte aunque haya display:grid */
.cookie-banner[hidden],
.cookie-modal[hidden]{
  display:none !important;
}

/* Banner: NO bloquea la página */
.cookie-banner{
  position: fixed;
  left: 0; right: 0; bottom: 0; top: auto;
  z-index: 5000;
  display: grid;
  place-items: end center;
  padding: 14px;

  background: transparent;
  pointer-events: none; /* deja interactuar con la web */
}
.cookie-banner .cookie-card{
  pointer-events: auto; /* pero el card sí se puede clickear */
}

/* Modal: SÍ bloquea (es diálogo) */
.cookie-modal{
  position: fixed;
  inset: 0;
  z-index: 5001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,0.45);
}

.cookie-card,
.cookie-modal-card{
  width: min(920px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  padding: 18px 18px;
}

.cookie-card h2,
.cookie-modal-card h2{
  font-size: 18px;
  margin: 0 0 8px;
  color: #1f2d3d;
}

.cookie-card p,
.cookie-modal-card p{
  margin: 0 0 12px;
  color: #344150;
  line-height: 1.45;
}

.cookie-card a,
.cookie-modal-card a{
  color: #1f6f8b;
  text-decoration: underline;
}

.cookie-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-actions-right{
  justify-content: flex-end;
  margin-top: 14px;
}

.btn{
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s ease, opacity .2s ease;
}
.btn:active{ transform: scale(0.98); }

/* Botones SOLO cookies */
.cookie-banner .btn-primary,
.cookie-modal  .btn-primary{
  background: #1f6f8b;
  color: #fff;
}
.cookie-banner .btn-ghost,
.cookie-modal  .btn-ghost{
  background: #eef3f6;
  color: #1f2d3d;
}
.btn-ghost{
  background: #eef3f6;
  color: #1f2d3d;
}

.cookie-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.cookie-x{
  border: 0;
  background: #eef3f6;
  color: #1f2d3d;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.cookie-muted{ font-size: 13px; opacity: .85; }

.cookie-rows{ display: grid; gap: 10px; margin-top: 12px; }

.cookie-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 12px;
  background: #f6f8fa;
}

.cookie-pill{
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: #d9f0df;
  color: #1f6b2c;
}
.cookie-on{ background:#d9f0df; color:#1f6b2c; }

/* Switch */
.cookie-switch{
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.cookie-switch input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
}
.cookie-slider{
  width: 46px;
  height: 28px;
  background: #cfd8e3;
  border-radius: 999px;
  position: relative;
  transition: .2s ease;
}
.cookie-slider::after{
  content:"";
  position:absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.cookie-switch input:checked + .cookie-slider{
  background: #6fa93a;
}
.cookie-switch input:checked + .cookie-slider::after{
  left: 22px;
}

/* Botón "Cambiar cookies" */
.cookie-manage{
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 3000;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: #1f2d3d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  opacity: .92;
}
.cookie-manage:hover{ opacity: 1; }

@media (max-width: 520px){
  .cookie-actions{ justify-content: stretch; }
  .btn{ width: 100%; }
}

/* ================= FOOTER NUEVO ================= */
.site-footer{
  width:100%;
  background: #0f2530;
  color: rgba(255,255,255,0.92);
  padding: 70px 24px 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-wrap{
  width:100%;
  max-width: var(--wrap);
  margin: 0 auto;
}

.footer-grid{
  width:100%;
  display:grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.footer-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

/* ✅ LOGO A ANCHO COMPLETO DEL CUADRO */
.footer-brand .footer-logo{
  width:80%;
  display:flex;
  justify-content:flex-start;
  align-items:center;
}

.footer-brand .footer-logo img{
  width: 100%;
  height: auto;
  display:block;
  max-width: none;     /* <- quita el límite */
  object-fit: contain; /* <- mantiene proporción */
}

.footer-desc{
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.92;
}

.footer-title{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .5px;
  color: #fff;
}

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 8px;
}

.footer-links a{
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}

.footer-links a:hover{
  background: rgba(255,255,255,0.08);
}

.footer-contact p{
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.95;
}

.footer-contact a{
  color: #fff;
  text-decoration: underline;
  font-weight: 900;
}

.footer-social{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-btn{
  width: 40px;
  height: 40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  transition: transform .15s ease, background .15s ease;
}

.footer-social-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
}

.footer-social-btn svg{
  width: 18px;
  height: 18px;
  fill: #fff;
}

.footer-cta{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}

.footer-ghost{
  border-color: rgba(255,255,255,0.55);
}

.footer-bottom{
  width:100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display:flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  opacity: .95;
}

.footer-legal{
  display:flex;
  gap: 10px;
  align-items:center;
  font-size: 13px;
}

.footer-legal a{
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  font-weight: 800;
}

.footer-legal a:hover{ opacity: 0.95; }

/* Responsive */
@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr; }
  /* ✅ ya no limitamos el logo en móvil */
}

/* ================= HERO INTRO ANIMATION ================= */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  animation: revealUp .85s cubic-bezier(.2,.9,.2,1) forwards;
  will-change: transform, opacity, filter;
}

@keyframes revealUp{
  to{
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Stagger (delays) */
.d1{ animation-delay: .10s; }
.d2{ animation-delay: .22s; }
.d3{ animation-delay: .34s; }
.d4{ animation-delay: .46s; }
.d5{ animation-delay: .58s; }
.d6{ animation-delay: .70s; }

/* Carrusel: entra con un pequeño zoom y sombra */
.hero-right.reveal{
  transform: translateY(16px) scale(.985);
  animation-name: revealHeroRight;
}
@keyframes revealHeroRight{
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Respeta Reduced Motion */
@media (prefers-reduced-motion: reduce){
  .reveal{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ================= MOBILE MENU (HAMBURGUESA) ================= */
.nav-toggle{
  display:none;
  border:1px solid rgba(0,0,0,0.08);
  background:#fff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
}
.nav-toggle:focus-visible{
  outline: 3px solid rgba(31,111,139,0.30);
  outline-offset: 3px;
}
.nav-toggle-bars{
  width: 22px;
  height: 2px;
  background: #1f2d3d;
  display:block;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background:#1f2d3d;
}
.nav-toggle-bars::before{ top:-7px; }
.nav-toggle-bars::after{ top:7px; }

/* Overlay */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 3000;
}

/* Drawer */
.mobile-nav{
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  background: #fff;
  z-index: 3001;
  box-shadow: -20px 0 60px rgba(0,0,0,0.25);
  border-left: 1px solid rgba(0,0,0,0.06);
  display:flex;
  flex-direction:column;
}

.mobile-nav-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mobile-nav-title{
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #1f2d3d;
}
.mobile-nav-close{
  border: 0;
  background: #eef3f6;
  color: #1f2d3d;
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}

.mobile-nav-links{
  padding: 10px 10px 16px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.mobile-nav-links a{
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 900;
  color: #1f2d3d;
  background: rgba(31,111,139,0.06);
  border: 1px solid rgba(31,111,139,0.10);
}
.mobile-nav-links a:hover{
  background: rgba(31,111,139,0.10);
}
.mobile-nav-links a:focus-visible{
  outline: 3px solid rgba(31,111,139,0.25);
  outline-offset: 3px;
}
.mobile-nav-cta{
  margin-top: 8px;
  background: var(--olivos-blue) !important;
  color:#fff !important;
  border-color: rgba(0,0,0,0) !important;
}

/* Bloqueo de scroll cuando menú está abierto */
.body-lock{
  overflow:hidden;
}

/* RESPONSIVE: desktop vs mobile */
@media (max-width: 980px){
  .mainnav-desktop{ display:none; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .header-row{ padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: no-preference){
  .nav-overlay{ transition: opacity .18s ease; }
  .mobile-nav{ transition: transform .18s ease; }
}

/* ✅ CRÍTICO: que hidden oculte el overlay y el drawer */
.mobile-nav[hidden],
.nav-overlay[hidden]{
  display:none !important;
}

.svc-home{
  margin-top: 10px;
  display:inline-flex;
  font-weight: 900;
  color:#fff;
  opacity: .92;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.svc-home:hover{ opacity: 1; }

/* Oculta cualquier pseudo-flecha accidental en hero/carrusel */
.hero::before, .hero::after,
.hero-panel::before, .hero-panel::after,
.hero-carousel::before, .hero-carousel::after{
  content: none !important;
  display: none !important;
}
.dir-sheet[hidden]{display:none}
.dir-sheet__backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:4000;
}
.dir-sheet__card{
  position:fixed;left:50%;bottom:16px;transform:translateX(-50%);
  width:min(520px, calc(100% - 24px));
  background:#fff;border-radius:16px;padding:14px;z-index:4001;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.dir-sheet__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.dir-sheet__x{border:0;background:transparent;font-size:18px;cursor:pointer}
.dir-sheet__actions{display:grid;gap:10px}
.dir-sheet__btn{
  display:block;text-align:center;padding:12px 14px;border-radius:12px;
  background:#f4f6f8;
}

button.btn-hero-ghost,
button.btn-primary{
  font: inherit;
  cursor: pointer;
  border: 0;
}

.btn-location-secondary{
  color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.75);
}
.btn-location-secondary:hover{
  background: rgba(31,111,139,0.08);
  border-color: rgba(31,111,139,0.35);
  color: var(--olivos-blue);
}
.page-wrap{max-width:var(--wrap);margin:0 auto;padding:42px 18px}
.page-title{font-size:34px;font-weight:900;color:var(--text-dark);margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}
.page-sub{color:#2b3a4a;opacity:.92;margin-bottom:22px;max-width:75ch}

.card{
  background:#fff;border:1px solid rgba(0,0,0,0.06);border-radius:22px;
  padding:18px;box-shadow:0 18px 50px rgba(0,0,0,0.10)
}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
label{font-weight:900;color:#1f2d3d;font-size:13px}

input, select, textarea{
  width:100%;padding:12px 12px;border-radius:14px;border:1px solid rgba(0,0,0,0.12);
  font:inherit;outline:none
}
textarea{min-height:140px;resize:vertical}
input:focus, select:focus, textarea:focus{
  border-color: rgba(31,111,139,0.55);
  box-shadow: 0 0 0 4px rgba(31,111,139,0.10)
}

.hint{font-size:12px;opacity:.85;color:#2b3a4a}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}

.btn-form{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;border:0;cursor:pointer;font-weight:900
}
.btn-send{background:var(--olivos-blue);color:#fff}
.btn-send:hover{background:#17566b}
.btn-ghost2{background:#eef3f6;color:#1f2d3d}
.btn-ghost2:hover{opacity:.95}

.note{
  margin-top:12px;padding:12px 14px;border-radius:16px;
  background: rgba(31,111,139,0.06);border:1px solid rgba(31,111,139,0.12)
}
.note strong{color:var(--olivos-blue)}
.note-text{margin:0;font-size:13px;line-height:1.55;color:#2b3a4a}

.status{margin-top:10px;font-size:13px;font-weight:800}

.consent-row{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}
.consent-label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  cursor:pointer;
  font-weight:800;
  color:#1f2d3d;
  line-height:1.45;
  font-size:13px;
}
.consent-label input{ width:auto; margin-top:3px; }

.mt-12{margin-top:12px}
.mt-16{margin-top:16px}
.mt-6{margin-top:6px}

/* Honeypot hidden (sin inline) */
.hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

@media (max-width: 820px){
  .grid{grid-template-columns:1fr}
  .page-title{font-size:28px}
}

/* Estilos SOLO para esta página (CSP-friendly, sin inline) */
.work{
  padding: 90px 24px;
  background: linear-gradient(135deg, rgba(31,111,139,.08), rgba(111,169,58,.06));
}
.work-wrap{ max-width: 980px; margin: 0 auto; }
.work-head{ text-align:center; margin-bottom: 22px; }
.work-title{
  font-size: 34px; font-weight: 900; color: #1f2d3d; letter-spacing: 1px;
  text-transform: uppercase;
}
.work-sub{ margin-top: 10px; font-size: 14px; color:#2b3a4a; opacity:.92; line-height:1.7; }

.work-card{
  margin-top: 18px;
  background:#fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 26px;
  box-shadow: 0 22px 60px rgba(0,0,0,.10);
  padding: 26px;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field{ text-align:left; }
.field label{ display:block; font-weight: 800; color:#1f2d3d; margin-bottom: 6px; font-size: 13px; }
.field input, .field select, .field textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  background:#fff;
}
.field textarea{ min-height: 110px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus{
  border-color: rgba(31,111,139,.55);
  box-shadow: 0 0 0 4px rgba(31,111,139,.10);
}

.span-2{ grid-column: 1 / -1; }

.hint{
  font-size: 12px; opacity:.85; margin-top: 8px; color:#2b3a4a; line-height:1.55;
}

.actions{
  margin-top: 16px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  justify-content: flex-end;
}

.status{
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 14px;
  display:none;
}
.status.ok{ display:block; background: rgba(111,169,58,.12); color:#1f6b2c; border:1px solid rgba(111,169,58,.25); }
.status.err{ display:block; background: rgba(220,38,38,.10); color:#991b1b; border:1px solid rgba(220,38,38,.20); }

/* Consent block */
.consent-block{ margin-top: 12px; }
.consent-label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-weight:800;
  cursor:pointer;
  color:#1f2d3d;
  line-height:1.45;
  font-size:13px;
}
.consent-label input{ width:auto; margin-top:3px; }

/* Footer sin inline */
.work-footer{
  padding:18px 24px;
  text-align:center;
  background:#fff;
  border-top:1px solid rgba(0,0,0,0.06);
}

/* Honeypot hidden */
.hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

@media (max-width: 860px){
  .form-grid{ grid-template-columns: 1fr; }
}

.page-wrap{max-width:var(--wrap);margin:0 auto;padding:42px 18px}
.page-title{font-size:34px;font-weight:900;color:var(--text-dark);margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}
.page-sub{color:#2b3a4a;opacity:.92;margin-bottom:18px;max-width:80ch}

.card{
  background:#fff;border:1px solid rgba(0,0,0,0.06);border-radius:22px;
  padding:18px;box-shadow:0 18px 50px rgba(0,0,0,0.10)
}

.list{margin:10px 0 0 18px;color:#2b3a4a;line-height:1.65}

.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

.btn2{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;border:0;cursor:pointer;font-weight:900;
  text-decoration:none;
}

.btn-main{background:var(--olivos-blue);color:#fff}
.btn-main:hover{background:#17566b}
.btn-ghost2{background:#eef3f6;color:#1f2d3d}
.btn-ghost2:hover{opacity:.95}

.note{
  margin-top:12px;padding:12px 14px;border-radius:16px;
  background: rgba(31,111,139,0.06);
  border:1px solid rgba(31,111,139,0.12)
}
.note strong{color:var(--olivos-blue)}
.note-text{margin:0;font-size:13px;line-height:1.55;color:#2b3a4a}

.page-sub-tight{margin-bottom:10px}
.page-sub-note{margin-top:12px}

@media (max-width: 820px){
  .page-title{font-size:28px}
}
/* Reutiliza el look de tus páginas de formularios */
.page-wrap{max-width:var(--wrap);margin:0 auto;padding:42px 18px}
.page-title{font-size:34px;font-weight:900;color:var(--text-dark);margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}
.page-sub{color:#2b3a4a;opacity:.92;margin-bottom:18px;max-width:80ch}

.card{
  background:#fff;border:1px solid rgba(0,0,0,0.06);border-radius:22px;
  padding:18px;box-shadow:0 18px 50px rgba(0,0,0,0.10)
}

.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

.btn2{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;border:0;cursor:pointer;font-weight:900;
  text-decoration:none;
}

.btn-main{background:var(--olivos-blue);color:#fff}
.btn-main:hover{background:#17566b}
.btn-ghost2{background:#eef3f6;color:#1f2d3d}
.btn-ghost2:hover{opacity:.95}

@media (max-width: 820px){
  .page-title{font-size:28px}
}
.thanks{
  padding: 90px 24px;
  background: linear-gradient(135deg, rgba(31,111,139,.08), rgba(111,169,58,.06));
  min-height: calc(100vh - 64px);
  display:flex;
  align-items:center;
  justify-content:center;
}

.thanks-card{
  width: min(760px, 100%);
  background:#fff;
  border-radius: 26px;
  padding: 38px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.15);
  text-align:center;
}

.thanks-title{
  font-size: 34px;
  font-weight: 900;
  color: #1f2d3d;
  margin-bottom: 10px;
  letter-spacing: .5px;
}

.thanks-sub{
  font-size: 15px;
  color:#2b3a4a;
  opacity: .9;
  line-height: 1.7;
  margin: 0 auto 22px;
  max-width: 60ch;
}

.thanks-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 10px;
}

.thanks-mini{
  margin-top: 16px;
  font-size: 13px;
  opacity: .8;
  max-width: 70ch;
  margin-left:auto;
  margin-right:auto;
  line-height:1.6;
}

/* reemplazo del style="margin-left:auto" */
.thanks-ml-auto{ margin-left: auto; }

/* footer sin inline */
.thanks-footer{
  padding:18px 24px;
  text-align:center;
  background:#fff;
  border-top:1px solid rgba(0,0,0,0.06);
}

/* Reutiliza el look de tus páginas de formularios */
.page-wrap{max-width:var(--wrap);margin:0 auto;padding:42px 18px}
.page-title{font-size:34px;font-weight:900;color:var(--text-dark);margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}
.page-sub{color:#2b3a4a;opacity:.92;margin-bottom:18px;max-width:80ch}

.card{
  background:#fff;border:1px solid rgba(0,0,0,0.06);border-radius:22px;
  padding:18px;box-shadow:0 18px 50px rgba(0,0,0,0.10)
}

.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

.btn2{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;border:0;cursor:pointer;font-weight:900;
  text-decoration:none;
}

.btn-main{background:var(--olivos-blue);color:#fff}
.btn-main:hover{background:#17566b}
.btn-ghost2{background:#eef3f6;color:#1f2d3d}
.btn-ghost2:hover{opacity:.95}

@media (max-width: 820px){
  .page-title{font-size:28px}
}

.page-wrap{max-width:var(--wrap);margin:0 auto;padding:42px 18px}
.page-title{font-size:34px;font-weight:900;color:var(--text-dark);margin-bottom:10px;text-transform:uppercase;letter-spacing:1px}
.page-sub{color:#2b3a4a;opacity:.92;margin-bottom:22px;max-width:75ch}

.card{
  background:#fff;border:1px solid rgba(0,0,0,0.06);border-radius:22px;
  padding:18px;box-shadow:0 18px 50px rgba(0,0,0,0.10)
}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
label{font-weight:900;color:#1f2d3d;font-size:13px}

input, select, textarea{
  width:100%;padding:12px 12px;border-radius:14px;border:1px solid rgba(0,0,0,0.12);
  font:inherit;outline:none
}
textarea{min-height:140px;resize:vertical}
input:focus, select:focus, textarea:focus{
  border-color: rgba(31,111,139,0.55);
  box-shadow: 0 0 0 4px rgba(31,111,139,0.10)
}

.hint{font-size:12px;opacity:.85;color:#2b3a4a}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}

.btn-form{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;border:0;cursor:pointer;font-weight:900
}
.btn-send{background:var(--olivos-blue);color:#fff}
.btn-send:hover{background:#17566b}
.btn-ghost2{background:#eef3f6;color:#1f2d3d}
.btn-ghost2:hover{opacity:.95}

.note{
  margin-top:12px;padding:12px 14px;border-radius:16px;
  background: rgba(31,111,139,0.06);border:1px solid rgba(31,111,139,0.12)
}
.note strong{color:var(--olivos-blue)}
.note-text{margin:0;font-size:13px;line-height:1.55;color:#2b3a4a}

.status{margin-top:10px;font-size:13px;font-weight:800}

.consent-row{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}
.consent-label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  cursor:pointer;
  font-weight:800;
  color:#1f2d3d;
  line-height:1.45;
  font-size:13px;
}
.consent-label input{ width:auto; margin-top:3px; }

.mt-12{margin-top:12px}
.mt-16{margin-top:16px}
.mt-6{margin-top:6px}

/* Honeypot 100% invisible */
.hp-field{
  position:absolute !important;
  left:-9999px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

@media (max-width: 820px){
  .grid{grid-template-columns:1fr}
  .page-title{font-size:28px}
}
.body-lock { overflow: hidden; 
}
/* =========================
   Directions sheet (estético)
========================= */

.dir-sheet[hidden]{display:none}

.dir-sheet{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
}

.dir-sheet__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(6px);
}

.dir-sheet__card{
  position:relative;
  width: min(520px, 100%);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
  border: 1px solid rgba(0,0,0,0.06);
  overflow:hidden;
  animation: dirPop .18s ease-out;
}

@keyframes dirPop{
  from{ transform: translateY(10px); opacity: .85; }
  to{ transform: translateY(0); opacity: 1; }
}

.dir-sheet__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.dir-sheet__head strong{
  font-size: 15px;
  letter-spacing: .2px;
  color: #1f2d3d;
}

.dir-sheet__x{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: rgba(0,0,0,0.05);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.dir-sheet__x:hover{ background: rgba(0,0,0,0.08); }

.dir-sheet__actions{
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.dir-sheet__btn{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #f6f7f9;
  color: #1f2d3d;
  text-decoration:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  user-select:none;
}

.dir-sheet__btn:hover{
  background:#ffffff;
  border-color: rgba(31,111,139,0.25);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  transform: translateY(-1px);
}

.dir-sheet__btn:active{
  transform: translateY(0);
  box-shadow: none;
}

.dir-ico{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(31,111,139,0.10);
  border: 1px solid rgba(31,111,139,0.14);
  flex: 0 0 auto;
}

.dir-ico svg{
  width: 22px;
  height: 22px;
  fill: currentColor;
  opacity: .92;
}

.dir-label{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
}

.dir-title{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
}

.dir-sub{
  font-size: 12px;
  opacity: .78;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 34ch;
}

.dir-arrow{
  margin-left:auto;
  font-size: 26px;
  opacity: .45;
  padding-right: 4px;
}

@media (max-width: 480px){
  .dir-sheet__card{ border-radius: 18px; }
  .dir-sub{ max-width: 26ch; }
}

/* ===== Botones de formulario deshabilitados ===== */
.btn-form:disabled,
.btn-form[aria-disabled="true"],
button.btn-form.btn-send:disabled,
#reclamoForm .actions #btnEnviar:disabled,
#workForm .actions #btnEnviarPost:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.25) !important;
  background: #9aa7b1 !important;
  border-color: #9aa7b1 !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}


/* ================= HEADER LOGO ================= */
.header-logo-link{
  display:flex;
  align-items:center;
  flex: 0 0 auto;
}
.header-logo{
  height: 36px;
  width: auto;
  object-fit: contain;
  display:block;
}

/* ================= FLOATING WHATSAPP ================= */
.wa-float{
  position:fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.wa-float svg{
  width: 30px;
  height: 30px;
  fill: #fff;
}
@media (max-width: 600px){
  .wa-float{ bottom:16px; right:16px; width:50px; height:50px; }
  .wa-float svg{ width:26px; height:26px; }
}

/* ================= MARQUEE PAUSE ================= */
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none !important; }
}
.marquee:hover .marquee-track{
  animation-play-state: paused;
}

/* =====================================================
   SERVICES SECTION v2 — refined cards
   ===================================================== */

#servicios {
  padding: clamp(56px, 7vw, 88px) 24px;
  background: #f4f7f9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.svc2-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto clamp(36px, 4vw, 52px);
  width: 100%;
}
.svc2-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1f6f8b;
  margin-bottom: 10px;
}
.svc2-heading {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  color: #0d2233;
  margin-bottom: 12px;
  line-height: 1.15;
}
.svc2-lead {
  font-size: 15px;
  color: #5a6a77;
  line-height: 1.65;
}

.svc2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.svc2-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.svc2-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.10);
}

.svc2-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/8;
  overflow: hidden;
  flex-shrink: 0;
}
.svc2-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.svc2-card:hover .svc2-img {
  transform: scale(1.04);
}
.svc2-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,30,50,0) 50%, rgba(10,30,50,0.28) 100%);
  pointer-events: none;
}

.svc2-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.svc2-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1f6f8b;
  background: #e8f4f8;
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 8px;
  width: fit-content;
}
.svc2-title {
  font-size: 15px;
  font-weight: 800;
  color: #0d2233;
  line-height: 1.25;
  margin: 0 0 6px;
}
.svc2-desc {
  font-size: 12.5px;
  color: #68788a;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}
.svc2-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin-bottom: 12px;
}
.svc2-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.svc2-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #1f6f8b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 99px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
}
.svc2-cta:hover {
  background: #155870;
  transform: translateY(-1px);
}
.svc2-more {
  font-size: 12px;
  font-weight: 700;
  color: #1f6f8b;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(31,111,139,0.35);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.svc2-more:hover {
  color: #155870;
  border-color: #155870;
}

@media (max-width: 900px) {
  .svc2-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .svc2-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc2-img-wrap { aspect-ratio: 16/7; }
}

/* =====================================================
   HEADER NAV DROPDOWN
   ===================================================== */

.mainnav .nav-item-dropdown {
  position: relative;
}
/* Invisible hit area that bridges gap between trigger and panel */
.mainnav .nav-item-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 20px;
  background: transparent;
}
.mainnav .nav-item-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* chevron moved to .nav-dropdown-trigger::after */

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.07);
  min-width: 220px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 900;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,0.07);
  border-top: 1px solid rgba(0,0,0,0.07);
}
/* Invisible bridge — prevents gap from closing menu on mouse travel */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.mainnav .nav-item-dropdown:hover .nav-dropdown,
.mainnav .nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2e3b;
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: #edf5f9;
  color: #1f6f8b;
}
.nav-dropdown-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f6f8b;
  opacity: 0.45;
  flex-shrink: 0;
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 4px 8px;
}

/* Dropdown group labels */
.nav-dropdown-group-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa0ae;
  padding: 8px 12px 4px;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

/* ── Location hours ── */
.location-hours {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.location-hours-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark, #0d2233);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.location-hours-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
.location-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}
.location-hours-day {
  color: #3d5060;
  font-weight: 500;
}
.location-hours-time {
  font-weight: 700;
  color: #0d2233;
  background: #edf5f9;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12.5px;
}
.location-hours-note {
  font-size: 12px;
  color: #5a6a77;
  line-height: 1.55;
  background: #f7fafc;
  border-left: 3px solid #1f6f8b;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
}
.location-hours-note strong { color: #1f6f8b; }

.footer-hours { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,0.72); line-height: 1.6; }
.footer-hours-label { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.footer-hours strong { color: #fff; }
.footer-hours-sub { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 4px; font-style: italic; }

/* Nav dropdown trigger button (replaces <a> to prevent redirect) */
.nav-dropdown-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 900;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: inherit;
}
.nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.65;
  transition: transform 0.2s ease;
  margin-left: 2px;
}
.mainnav .nav-item-dropdown:hover .nav-dropdown-trigger::after,
.mainnav .nav-item-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* Dropdown open state via JS (click/keyboard) */
.mainnav .nav-item-dropdown.is-open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mainnav .nav-item-dropdown.is-open .nav-dropdown-trigger::after {
  transform: rotate(-135deg) translateY(-2px);
}
