/* 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: calc(100vh - var(--header-h));
  padding: 0;
  margin: 0;
  display:flex;
  align-items: stretch;
  background:#fff;
  overflow:hidden;
}

.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;
  background: rgba(31,45,61,0.55);
  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%;
  height: 100%;
  margin: 0;
  position: relative;
  z-index: 2;

  padding: clamp(22px, 3vw, 42px);
  padding-right: clamp(90px, 7vw, 120px);

  display:grid;
  grid-template-columns: 45% 55%;
  gap: clamp(18px, 2.2vw, 34px);

  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:14px;
}

.hero-logo{
  width: clamp(220px, 28vw, 420px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display:block;
  margin: 0 auto 8px;
}

.hero-brand{ text-align:center; }

.hero-title{
  font-size: clamp(30px, 3.4vw, 46px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:1px;
}

.hero-subtitle{
  font-size: clamp(16px, 1.5vw, 20px);
  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:flex;
  justify-content:center;
  padding:80px 24px;
  background:#fff;
}

.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-right: 42px;
  }
  .social-float{display:none}
  .header-phones{display:none}

  .hero-left{align-items:center}
  .hero-text, .hero-location{ text-align:center; }
  .hero-actions{justify-content:center}

  .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){
  .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;
}
