﻿
#nosotros{

  background:
  linear-gradient(
  180deg,
  #ffffff,
  #f8fafc
  );

  border-top:
  1px solid #e5e7eb;

  border-bottom:
  1px solid #e5e7eb;

}

.nosotros-box{
  max-width: 950px;
  margin: auto;
  text-align: center;
  line-height: 1.9;
  color:#4b5563;
  font-size: 1.05rem;
}

.nosotros-proposito{
  text-align:center;
  margin-top:30px;
  color:#6b7280;
  font-size:1rem;
}

.nosotros-proposito strong{
  color:#ff1737;
}

/* =========================
RESET
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
  -webkit-tap-highlight-color:transparent;
}

body{
  font-family:'Inter',sans-serif;
  background:#f8fafc;
  color:#1f2937;
  overflow-x:hidden;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

.hidden{
  display:none !important;
}

::selection{
  background:rgba(255,23,55,.35);
  color:white;
}

/* =========================
FONDO
========================= */

body::before{
  content:'';
  position:fixed;
  width:700px;
  height:700px;
  background:
  radial-gradient(
    circle,
    rgba(255,0,43,.13),
    transparent 70%
  );

  filter:blur(120px);
  top:-250px;
  right:-250px;
  z-index:-2;
  animation:glowMove 12s ease-in-out infinite alternate;
}

body::after{
  content:'';
  position:fixed;
  width:600px;
  height:600px;
  background:
  radial-gradient(
    circle,
    rgba(255,255,255,.04),
    transparent 70%
  );

  filter:blur(140px);

  bottom:-250px;
  left:-250px;

  z-index:-2;

  animation:glowMove2 14s ease-in-out infinite alternate;
}

@keyframes glowMove{

  0%{
    transform:translate(0,0) scale(1);
  }

  100%{
    transform:translate(-40px,40px) scale(1.15);
  }

}

@keyframes glowMove2{

  0%{
    transform:translate(0,0) scale(1);
  }

  100%{
    transform:translate(40px,-30px) scale(1.1);
  }

}
/* =========================
NAVBAR
========================= */

.menu-toggle{
  display:none;
  font-size:1.8rem;
  color:white;
  cursor:pointer;
  z-index:100001;
}

.navbar{

  position:fixed;

  top:0;
  left:0;

  width:100%;

  padding:22px 7%;

  display:flex;

  justify-content:space-between;

  align-items:center;

  background:rgba(255,255,255,.56);

  backdrop-filter:blur(10px) saturate(1.08);
  -webkit-backdrop-filter:blur(10px) saturate(1.08);

  border-bottom:1px solid rgba(229,231,235,.42);

  box-shadow:
  0 10px 34px rgba(15,23,42,.045);

  z-index:99999;

  transition:
  background .4s ease,
  padding .4s ease,
  box-shadow .4s ease;

}
.navbar.scrolled{

  padding:16px 7%;

  background:rgba(255,255,255,.66);

  backdrop-filter:blur(12px) saturate(1.08);
  -webkit-backdrop-filter:blur(12px) saturate(1.08);

  border-bottom:1px solid rgba(229,231,235,.50);

  box-shadow:
  0 12px 36px rgba(15,23,42,.06);

}
.logo{
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo img{
  width:clamp(210px, 13vw, 250px);
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 10px 22px rgba(15,23,42,.10));
  transition:.35s;
}
.logo img:hover{
  transform:scale(1.03);
}

.nav-links{
  display:flex;
  gap:40px;
  overflow-y:auto;
  max-height:calc(100vh - 90px);
}

.nav-links a{

  color:#374151;

  text-decoration:none;

  font-weight:600;

  font-size:1rem;

  position:relative;

  transition:.3s;

  letter-spacing:.02em;

}

.nav-links a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-10px;
  width:0%;
  height:2px;
  background:#ff1737;
  transition:.3s;
}

.nav-links a:hover{
  color:#ff1737;
}

.nav-links a:hover::after{
  width:100%;
}

.nav-btn{

  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:16px 30px;
  border:none;
  border-radius:15px;
  background:
  linear-gradient(135deg,#ff1737,#b1001d);
  color:white;
  font-weight:700;
  font-size:1rem;
  text-decoration:none;
  cursor:pointer;
  transition:.35s;
  box-shadow:
  0 15px 45px rgba(255,0,51,.22);

}

.nav-btn:hover{
  transform:translateY(-2px);
}


/* =========================
SECCIONES
========================= */

.section{
  position:relative;
  overflow:hidden;
  padding:85px 7%;
}

#proyectos{

background:
linear-gradient(
180deg,
#ffffff,
#f8fafc
);

}

#servicios{

  position:relative;

  background:
  linear-gradient(
  rgba(248,250,252,.60),
  rgba(248,250,252,.68)
  ),
  url('../imagenes/Sanitarias.webp');

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;

  overflow:hidden;

}

#servicios::before{

  content:'';

  position:absolute;

  inset:0;

  background:
  radial-gradient(
    circle at top right,
    rgba(255,23,55,.10),
    transparent 38%
  );

  pointer-events:none;

}

.section-title{
  position:relative;
  z-index:1;
  text-align:center;
  margin-bottom:65px;
}

.section-title span{
  color:#ff1737;
  font-weight:800;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:.9rem;
}

/* =========================
TITULO PRINCIPAL
========================= */

.section-title h2{

  color:#111827;

  font-size:clamp(2.3rem,4vw,4rem);

  margin-top:15px;

  font-weight:900;

  line-height:1.1;

}

/* =========================
SERVICIOS
========================= */

.projects-slider{

position:relative;

z-index:1;

display:flex;

gap:35px;

width:max-content;

overflow:visible;

padding-bottom:0px;

background:transparent;

animation:scrollProjects 100s linear infinite;

}

@keyframes scrollProjects{

0%{
transform:translateX(0);
}

100%{
transform:translateX(-50%);
}

}

.projects-wrapper:hover .projects-slider{

animation-play-state:paused;

}

.projects-slider::-webkit-scrollbar{
  display:none;
}

.project-filters{
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin:-28px auto 42px;
}

.project-filter{
  appearance:none;
  min-height:44px;
  padding:0 18px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:999px;
  background:#ffffff;
  color:#334155;
  font:inherit;
  font-size:.9rem;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
  box-shadow:0 12px 34px rgba(15,23,42,.08);
  transition:
    transform .25s ease,
    background .25s ease,
    color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.project-filter:hover{
  transform:translateY(-2px);
  border-color:rgba(255,23,55,.26);
  color:#111827;
  box-shadow:0 16px 38px rgba(15,23,42,.12);
}

.project-filter.active,
.project-filter[aria-pressed="true"]{
  border-color:#ff1737;
  background:linear-gradient(135deg,#ff1737,#c90025);
  color:#ffffff;
  box-shadow:0 16px 38px rgba(255,23,55,.22);
}

.project-filter:focus-visible{
  outline:3px solid rgba(255,23,55,.30);
  outline-offset:3px;
}

.projects-wrapper{

position:relative;

z-index:1;

display:flex;

align-items:center;

overflow:hidden;

background:transparent;

}

.slider-btn{
display:none;
}

.slider-btn:hover{
  background:#ff1737;
  transform:translateY(-50%) scale(1.08);
  box-shadow:0 0 25px rgba(255,0,43,.35);
}

.slider-btn.prev{
  left:-25px;
}

.slider-btn.next{
  right:-25px;
}

/* oculta scrollbar */
.projects-slider::-webkit-scrollbar{
  height:8px;
}

.project-card{
  min-width:320px;
  scroll-snap-align:start;
}

.projects-slider.is-filtered{
  width:100%;
  max-width:1220px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:30px;
  animation:none;
  transform:none !important;
}

.projects-slider.is-filtered .project-card{
  min-width:0;
  width:min(380px,100%);
  flex:0 1 380px;
}

.projects-slider.is-filtered .project-card[hidden]{
  display:none;
}

.projects-wrapper.is-filtered{
  overflow:visible;
}

@media (max-width:480px){
  .projects-slider{
    gap:22px;
  }

  .project-card{
    width:min(380px,86vw);
    min-width:min(380px,86vw);
    height:400px;
    border-radius:24px;
  }
}

/* =========================
CLIENTES
========================= */

.clients-section{
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}

.clients-section .section-title{
  margin-bottom:42px;
}

.clients-marquee{
  position:relative;
  z-index:1;
  overflow:hidden;
  width:100%;
  padding:10px 0 14px;
  -webkit-mask-image:linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image:linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.clients-track{
  display:flex;
  width:max-content;
  animation:scrollClients 70s linear infinite;
  animation-play-state:running;
  transform:translate3d(0,0,0);
  will-change:transform;
}

@media (hover:hover) and (pointer:fine){
  .clients-marquee:hover .clients-track{
    animation-play-state:paused;
  }
}

.clients-group{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:34px;
  padding-right:72px;
}

.client-logo-card{
  flex:0 0 230px;
  height:122px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px 18px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  transition:transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.client-logo-card:hover{
  transform:translateY(-4px);
  border-color:rgba(15,23,42,.16);
  box-shadow:0 22px 54px rgba(15,23,42,.12);
}

.client-logo-card img{
  display:block;
  width:auto;
  max-width:190px;
  max-height:86px;
  height:auto;
  object-fit:contain;
}

@keyframes scrollClients{
  0%{
    transform:translate3d(0,0,0);
  }

  100%{
    transform:translate3d(-50%,0,0);
  }
}

@media (max-width:768px){
  .clients-group{
    gap:22px;
    padding-right:48px;
  }

  .client-logo-card{
    flex-basis:178px;
    height:96px;
    padding:13px 15px;
    border-radius:14px;
  }

  .client-logo-card img{
    max-width:148px;
    max-height:68px;
  }
}

@media (prefers-reduced-motion:reduce){
  .clients-track{
    animation:scrollClients 140s linear infinite;
    animation-play-state:running;
  }

  .client-logo-card{
    transition:none;
  }
}

/* =========================
STATS
========================= */

.services{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:35px;
}

.service-card{

  isolation:isolate;

  position:relative;

  background:#ffffff;

  border-radius:30px;

  overflow:hidden;

  border:1px solid #e5e7eb;

  transition:
  transform .35s ease,
  box-shadow .35s ease,
  border-color .35s ease;

  box-shadow:
  0 18px 45px rgba(15,23,42,.10);

}

.service-card:hover{

  transform:
  translateY(-8px)
  scale(1.015);

  box-shadow:
  0 25px 65px rgba(15,23,42,.16),
  0 0 30px rgba(255,23,55,.10);

  border-color:rgba(255,23,55,.22);

}

.service-card img{
  width:100%;
  height:260px;
  object-fit:cover;

  transition:
  transform .45s ease,
  filter .45s ease;

  filter:brightness(.92) contrast(1.03);
}

.service-card:hover img{
  transform:scale(1.045);
  filter:brightness(1) contrast(1.05);
}

.service-content{
  padding:35px;
}

.service-content h3{

  font-size:1.8rem;

  margin-bottom:18px;

  color:#111827;

}

.service-content h3 i{
  margin-right:10px;
  color:#ff1737;
}

.service-content p{

  line-height:1.8;

  color:#4b5563;

  font-weight:500;

}

/* =========================
MISION VISION
========================= */

.mv-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
}

.mv-card{

  background:#ffffff;

  padding:50px;

  border-radius:30px;

  border:1px solid #e5e7eb;

  box-shadow:
  0 18px 45px rgba(15,23,42,.08);

  transition:
  transform .35s ease,
  box-shadow .35s ease,
  border-color .35s ease;

}

.mv-card:hover{

  transform:translateY(-6px);

  border-color:rgba(255,23,55,.22);

  box-shadow:
  0 25px 60px rgba(15,23,42,.13);

}

.mv-card h3{

  font-size:2rem;

  margin-bottom:20px;

  color:#111827;

}
.mv-card h3 i{
  margin-right:10px;
  color:#ff1737;
}
.mv-card p{

  line-height:1.9;

  color:#4b5563;

  font-weight:500;

}

#mision{

  background:
  linear-gradient(
    180deg,
    #f8fafc,
    #ffffff
  );

}

/* =========================
EXPERIENCIA
========================= */

.experience{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
}

.experience-image{
  position:relative;
}

.experience-image img{

  width:100%;
  height:620px;

  object-fit:cover;

  border-radius:32px;

  box-shadow:
  0 25px 70px rgba(0,0,0,.45),
  0 0 40px rgba(255,0,43,.10);

  transition:.5s;

  filter:
  brightness(.95)
  contrast(1.04);

}

.experience-image img:hover{

transform:
scale(1.02)
translateY(-6px);

filter:
brightness(1)
contrast(1.08);

box-shadow:
0 30px 90px rgba(0,0,0,.55),
0 0 55px rgba(255,0,43,.18);

}

.exp-panel{

background:#ffffff;

padding:50px;

border-radius:30px;

border:1px solid #e5e7eb;

box-shadow:
0 18px 45px rgba(15,23,42,.10);

}

.exp-panel h2{

  color:#111827;

  font-size:3rem;

  margin:25px 0;

}

.tags{
display:grid;
grid-template-columns:1fr 1fr;
gap:18px;
margin-top:35px;
}

.tag{

padding:16px 18px;

border-radius:16px;

background:#f8fafc;

border:1px solid #e5e7eb;

color:#374151;

font-weight:600;

line-height:1.4;

transition:.3s;

}

.tag:hover{

transform:translateY(-2px);

border-color:rgba(255,23,55,.25);

background:#ffffff;

box-shadow:
0 10px 25px rgba(15,23,42,.08);

}

#experiencia{

  position:relative;

  background:
  linear-gradient(
    rgba(248,250,252,.84),
    rgba(255,255,255,.77)
  ),
  url('../imagenes/clinicaa.webp');

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;

  overflow:hidden;

}

#experiencia::before{
content:'';
position:absolute;
inset:0;

background:
radial-gradient(circle at left center,
rgba(255,0,43,.14),
transparent 35%);

pointer-events:none;
}

.experience-image::before{
content:'';

position:absolute;

inset:0;

border-radius:32px;

background:
linear-gradient(to top,
rgba(0,0,0,.35),
transparent 45%);

pointer-events:none;
}

/* =========================
CONTACTO
========================= */

.contact-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:50px;
align-items:center;
}

.contact-section-title{
text-align:left;
margin-bottom:30px;
}

.contact-heading{
font-size:3.2rem;
}

.contact-copy{
color:#4b5563;
line-height:1.9;
font-size:1.15rem;
font-weight:500;
max-width:620px;
}

.contact-box{

background:#ffffff;

padding:55px;

border-radius:32px;

border:1px solid #e5e7eb;

box-shadow:
0 25px 70px rgba(15,23,42,.12),
0 0 45px rgba(255,23,55,.06);

}

form{
display:grid;
gap:20px;
width:100%;
}

input,
textarea{

width:100%;

padding:18px;

background:#f8fafc;

border:1px solid #d1d5db;

border-radius:16px;

color:#111827;

font-size:1rem;

outline:none;

transition:.3s;

font-family:'Inter',sans-serif;

}

input::placeholder,
textarea::placeholder{
  color:#6b7280;
}

input:focus,
textarea:focus{
border:1px solid rgba(255,0,43,.45);
box-shadow:0 0 18px rgba(255,0,43,.12);
}

textarea{
min-height:170px;
resize:none;
}

#contacto{

background:
linear-gradient(
135deg,
#ffffff 0%,
#f8fafc 55%,
#fff1f3 100%
);

}

/* =========================
FOOTER PREMIUM
========================= */

.footer{

position:relative;
overflow:hidden;

background:
linear-gradient(
135deg,
#ffffff 0%,
#f8fafc 60%,
#fff1f3 100%
);

padding:90px 7% 30px;

border-top:1px solid #e5e7eb;

}

.footer-container{

display:grid;

grid-template-columns:
1.8fr .8fr .8fr .8fr 1.5fr;

gap:50px;

}

.footer-box{

display:flex;

flex-direction:column;

gap:16px;

}

.footer-container,
.footer-bottom{
  position:relative;
  z-index:1;
}

.footer-box p,
.footer-box a{

color:#374151 !important;

text-decoration:none !important;

line-height:1.9;

font-size:1rem;

transition:.3s;

}

.footer-box a:visited{
  color:#374151 !important;
}

.footer-box a:hover{
  color:#ff1737 !important;
}

.footer-box h3{

color:#ff1737;

font-size:1rem;

font-weight:900;

letter-spacing:.04em;

margin-bottom:14px;

}

.footer-box a:hover{

color:#ff1737;

transform:translateX(5px);

}

.footer-contact-box{
  min-width:0;
}

.footer-contact-item{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  align-items:start;
  column-gap:10px;
  margin:0;
}

.footer-contact-item i{
  width:24px;
  line-height:1.9;
  text-align:center;
}

.footer-contact-item span,
.footer-contact-item a{
  min-width:0;
  overflow-wrap:anywhere;
}

.footer-contact-item a:hover{
  transform:none;
}

.socials{

display:flex;

gap:12px;

margin-top:10px;

}

.socials a{

width:46px;
height:46px;

border-radius:14px;

display:flex;
align-items:center;
justify-content:center;

background:#ffffff;

border:1px solid #e5e7eb;

color:#111827 !important;

font-size:1.1rem;

transition:.35s;

box-shadow:
0 8px 24px rgba(15,23,42,.08);

}

.socials a:hover{

background:linear-gradient(135deg,#ff1737,#b1001d);

color:white !important;

transform:translateY(-5px) scale(1.06);

box-shadow:0 15px 35px rgba(255,23,55,.25);

border-color:transparent;

}

.footer-bottom{

margin-top:55px;

padding-top:25px;

border-top:1px solid #e5e7eb;

text-align:center;

color:#6b7280 !important;

font-size:clamp(.85rem, .8vw, .98rem);

}

img{
  max-width:100%;
  display:block;

  image-rendering:auto;

  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;

  transform:translateZ(0);
}

.footer-logo{
width:clamp(235px, 16vw, 280px);
height:auto;
margin-bottom:32px;
filter:drop-shadow(0 10px 22px rgba(15,23,42,.10));
transition:.4s;
}
.footer-logo:hover{
transform:scale(1.04);
}

.iso-box{

margin-top:40px;

display:flex;

justify-content:center;

align-items:center;

gap:25px;

padding:24px 28px;

max-width:900px;

margin-left:auto;
margin-right:auto;

background:#ffffff;

border:1px solid #e5e7eb;

border-radius:28px;

box-shadow:
0 20px 50px rgba(0,0,0,.08);

transition:.35s;

}

.iso-box:hover{

transform:translateY(-4px);

box-shadow:
0 25px 60px rgba(0,0,0,.12);

}

.iso-logo img{
  width:85px;
  filter: drop-shadow(0 10px 25px rgba(255,0,43,.18));
  transition:.3s;
}

.iso-box:hover .iso-logo img{
  transform: scale(1.05);
}

.iso-text{
  color:#374151;
  line-height:1.8;
  font-size:1.05rem;
  max-width:650px;
}

/* =========================
PROYECTOS DESTACADOS
========================= */

.projects-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(320px,1fr));

gap:35px;

}

.project-card{

isolation:isolate;

position:relative;

overflow:hidden;

border-radius:30px;

width:380px;

min-width:380px;

height:420px;

background:#ffffff;

border:1px solid #e5e7eb;

box-shadow:
0 12px 28px rgba(15,23,42,.10);

transition:
transform .35s ease,
box-shadow .35s ease,
border-color .35s ease;

}

.project-card:hover{

transform:
translateY(-8px)
scale(1.015);

box-shadow:
0 18px 45px rgba(15,23,42,.16),
0 0 24px rgba(255,23,55,.10);

border-color:rgba(255,23,55,.20);

}

.project-card img{

width:100%;
height:100%;
object-fit:cover;

transition:
transform .5s ease,
filter .5s ease;

filter:
brightness(.82)
contrast(1.08);

}

.project-card:hover img{

transform:scale(1.045);

filter:
brightness(.58)
contrast(1.08);

}

.project-overlay{

position:absolute;

inset:0;

display:flex;

flex-direction:column;

justify-content:flex-end;

padding:35px;

background:
linear-gradient(
to top,
rgba(0,0,0,.88),
rgba(0,0,0,.45),
rgba(0,0,0,.12)
);

z-index:1;

}

.project-overlay span{

color:#ff1737;

font-size:.85rem;

font-weight:800;

letter-spacing:.18em;

text-transform:uppercase;

margin-bottom:12px;

}

.project-overlay h3{

font-size:2rem;

margin-bottom:12px;

font-weight:900;

color:#ffffff;

text-shadow:
0 4px 18px rgba(0,0,0,.85);

}

.project-overlay p{

color:#ffffff;

line-height:1.7;

font-size:.98rem;

font-weight:500;

text-shadow:
0 3px 14px rgba(0,0,0,.80);

}

/* =========================
WHATSAPP
========================= */

.whatsapp{
position:fixed;
right:25px;
bottom:25px;
width:72px;
height:72px;
border-radius:50%;
background:
linear-gradient(145deg,#111827 0%,#1f2937 58%,#0f172a 100%);
display:flex;
justify-content:center;
align-items:center;
font-size:2.4rem;
color:#fff;
text-decoration:none;
border:none;
box-shadow:none;
z-index:999;
transition:.35s;
animation:float 2.5s infinite ease-in-out;
}

.whatsapp i{
color:#f8fafc;
filter:none;
}

.whatsapp:hover{
transform:scale(1.08);
background:
linear-gradient(145deg,#0f172a 0%,#1e293b 52%,#172033 100%);
box-shadow:none;
}

.whatsapp:focus-visible{
outline:3px solid rgba(134,239,172,.55);
outline-offset:4px;
}

@keyframes float{
0%{transform:translateY(0);}
50%{transform:translateY(-6px);}
100%{transform:translateY(0);}
}

/* =========================
ANIMACIONES SCROLL
========================= */

.reveal{
opacity:0;
transform:translateY(45px);
transition:
opacity .8s ease,
transform .8s ease;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:1100px){

.experience,
.mv-grid,
.contact-grid{
grid-template-columns:1fr;
}

.hero h1{
font-size:4rem;
}

.nav-links{
display:flex;
}

.hero-card{
display:none;
}

}

@media (max-width: 768px) {

  .hero,
  #servicios,
  #experiencia {
    background-attachment: scroll !important;
    background-position:center center;
  }

}

.libro-btn:hover{
transform:scale(1.08) translateY(-4px);

background:linear-gradient(135deg,#ff1737,#b1001d);

box-shadow:0 18px 45px rgba(255,0,43,.35);
}


/* =========================
AJUSTES HERO VIDEO FINAL
========================= */

.hero{
  position:relative;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
  background:#101827;
}

.hero::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(to right, rgba(255,255,255,.68) 8%, rgba(255,255,255,.42) 44%, rgba(255,255,255,.22) 100%),
    linear-gradient(to top, rgba(255,23,55,.08), transparent 46%);
  pointer-events:none;
}

.hero-video{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
  background:#f8fafc;
}

.hero-video-media{
  position:absolute;
  top:50%;
  left:50%;
  width:max(100vw, 177.78vh);
  height:max(56.25vw, 100vh);
  transform:translate(-50%, -50%);
  object-fit:cover;
  border:0;
  pointer-events:none;
}

.hero-container{
  width:100%;
  max-width:1600px;
  margin:auto;
  position:relative;
  z-index:2;
  padding:clamp(150px, 14vh, 210px) 7% clamp(80px, 10vh, 120px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:clamp(45px, 5vw, 80px);
}

.hero-content{
  flex:1;
  max-width:820px;
  width:100%;
  min-width:0;
}

.hero h1{
  font-size:clamp(3rem,5vw,5rem);
  line-height:1;
  font-weight:900;
  letter-spacing:-2.5px;
  margin:20px 0 28px;
  word-break:normal;
  text-wrap:balance;
  text-shadow:0 4px 22px rgba(255,255,255,.86), 0 2px 10px rgba(15,23,42,.16);
}

.hero h1 .red{
  display:block;
  color:#ff1737;
  text-shadow:0 0 28px rgba(255,23,55,.35);
}

.hero p{
  text-wrap:pretty;
  font-size:1.15rem;
  line-height:1.9;
  color:#1f2937;
  text-shadow:0 2px 12px rgba(255,255,255,.82);
  width:100%;
  max-width:720px;
  margin-bottom:35px;
  font-weight:500;
}

.hero-buttons{
  display:flex;
  gap:20px;
  margin-top:40px;
  flex-wrap:wrap;
}

.navbar{
  background:rgba(255,255,255,.56);
  backdrop-filter:blur(10px) saturate(1.08);
  -webkit-backdrop-filter:blur(10px) saturate(1.08);
  border-bottom:1px solid rgba(229,231,235,.42);
  box-shadow:0 10px 34px rgba(15,23,42,.045);
}

.navbar.scrolled{
  background:rgba(255,255,255,.66);
  backdrop-filter:blur(12px) saturate(1.08);
  -webkit-backdrop-filter:blur(12px) saturate(1.08);
  border-bottom:1px solid rgba(229,231,235,.50);
  box-shadow:0 12px 36px rgba(15,23,42,.06);
}

.stats-card{
  flex-shrink:0;
  width:clamp(340px, 22vw, 390px);
  max-width:100%;
  min-width:0;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  padding:0 !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  box-shadow:none !important;
}

.stats-card h3{
  font-size:2rem;
  margin-bottom:30px;
  text-align:center;
  color:#111827;
  text-shadow:0 4px 18px rgba(255,255,255,.82), 0 2px 8px rgba(15,23,42,.16);
}

.stats-card h3 span{
  color:#ff1737;
}

.stats-gerencia{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

.stat-gerencia-item{
  display:grid;
  grid-template-columns:minmax(58px, 70px) 42px 1fr;
  align-items:center;
  gap:12px;
}

.stat-circle{
  width:clamp(58px, 3.8vw, 70px);
  height:clamp(58px, 3.8vw, 70px);
  border-radius:50%;
  background:linear-gradient(135deg,#ff1737,#b1001d);
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:clamp(.85rem, .8vw, .98rem);
  font-weight:900;
  box-shadow:0 12px 28px rgba(255,23,55,.28);
}

.stat-icon{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#111827;
  filter:drop-shadow(0 2px 8px rgba(255,255,255,.78));
}

.stat-icon svg{
  width:42px;
  height:42px;
  stroke:currentColor;
  stroke-width:3.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
}

.stat-gerencia-item p{
  margin:0;
  color:#111827;
  font-size:.82rem;
  font-weight:900;
  line-height:1.15;
  text-shadow:0 3px 12px rgba(255,255,255,.86), 0 1px 6px rgba(15,23,42,.16);
}

@media (max-width:1200px){
  .hero-container{
    flex-direction:column;
    align-items:flex-start;
    gap:55px;
  }

  .hero-content{
    max-width:900px;
  }

  .hero-buttons{
    justify-content:flex-start;
  }

  .stats-card{
    width:100%;
    max-width:500px;
  }
}

@media (max-width:768px){
  .hero-video{
    display:block;
  }

  .hero-video-media{
    width:max(100vw, 177.78svh);
    height:max(56.25vw, 100svh);
  }

  .hero-container{
    padding:145px 20px 80px;
    gap:40px;
  }

  .hero h1{
    font-size:3rem;
    line-height:1.05;
    letter-spacing:-1.5px;
  }

  .hero p{
    font-size:1rem;
  }

  .hero-buttons{
    flex-direction:column;
  }

  .stats-card{
    width:100%;
  }

  .stats-card h3{
    font-size:1.55rem;
    line-height:1.2;
  }
}

@media (min-width:993px) and (max-height:820px){
  .hero-container{
    padding-top:130px;
    padding-bottom:65px;
  }

  .hero h1{
    font-size:clamp(2.8rem, 4.3vw, 4.2rem);
  }

  .hero p{
    font-size:1.02rem;
    line-height:1.7;
    margin-bottom:24px;
  }

  .hero-buttons{
    margin-top:28px;
  }

  .stats-gerencia{
    gap:14px;
  }
}
/* =========================
AJUSTES BOTONES HERO FINAL
========================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:18px 34px;
  border-radius:16px;
  border:1px solid transparent;
  font-size:1rem;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  text-decoration:none !important;
  transition:transform .35s ease, background .35s ease, box-shadow .35s ease, border-color .35s ease;
  white-space:nowrap;
}

.btn-primary{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#ff1737,#b1001d);
  color:#ffffff !important;
  box-shadow:0 16px 42px rgba(255,0,43,.28);
}

.btn-primary::before{
  content:'';
  position:absolute;
  top:0;
  left:-120%;
  width:100%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.22),transparent);
  transition:.7s;
}

.btn-primary:hover::before{
  left:120%;
}

.btn-primary:hover{
  transform:translateY(-3px);
}

.btn-secondary{
  background:rgba(255,255,255,.86);
  border-color:rgba(209,213,219,.9);
  color:#111827 !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 12px 32px rgba(15,23,42,.12);
}

.btn-secondary:hover{
  background:#ffffff;
  transform:translateY(-3px);
}

.btn-video{
  background:rgba(17,24,39,.72);
  border-color:rgba(255,255,255,.18);
  color:#ffffff !important;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 14px 36px rgba(15,23,42,.18);
}

.btn-video:hover{
  background:rgba(17,24,39,.88);
  transform:translateY(-3px);
}

.btn:focus-visible{
  outline:2px solid rgba(255,23,55,.85);
  outline-offset:4px;
}

@media (max-width:768px){
  .btn{
    width:100%;
    white-space:normal;
  }
}



/* =========================
AJUSTES HERO REFINADOS
========================= */

.navbar{
  transition:transform .36s ease, background .4s ease, padding .4s ease, box-shadow .4s ease;
  will-change:transform;
}

.navbar.hide-navbar{
  transform:translateY(-115%);
  pointer-events:none;
}

.hero::before{
  background:
    linear-gradient(to right, rgba(255,255,255,.66) 6%, rgba(255,255,255,.40) 42%, rgba(255,255,255,.18) 100%),
    linear-gradient(to top, rgba(255,23,55,.07), transparent 48%);
}

.hero-content{
  max-width:760px;
}

.hero h1{
  font-size:clamp(3.1rem, 4.55vw, 4.75rem);
  line-height:.98;
  margin-bottom:30px;
  text-shadow:0 5px 24px rgba(255,255,255,.88), 0 2px 12px rgba(15,23,42,.18);
}

.hero p{
  max-width:760px;
  font-size:clamp(1.05rem, 1.05vw, 1.22rem);
  line-height:1.82;
  font-weight:600;
}

.stats-card{
  width:clamp(390px, 25vw, 460px);
}

.stats-card h3{
  font-size:clamp(2.05rem, 2.2vw, 2.55rem);
  line-height:1.05;
  margin-bottom:34px;
  text-align:left;
  text-shadow:0 5px 20px rgba(255,255,255,.86), 0 2px 10px rgba(15,23,42,.16);
}

.stats-card h3 span{
  display:inline;
}

.stats-gerencia{
  gap:20px;
}

.stat-gerencia-item{
  grid-template-columns:minmax(72px, 84px) 52px minmax(0, 1fr);
  gap:14px;
}

.stat-circle{
  width:clamp(70px, 4.5vw, 84px);
  height:clamp(70px, 4.5vw, 84px);
  font-size:clamp(.98rem, .95vw, 1.12rem);
  box-shadow:0 14px 34px rgba(255,23,55,.34);
}

.stat-icon,
.stat-icon svg{
  width:50px;
  height:50px;
}

.stat-gerencia-item p{
  font-size:clamp(.92rem, .86vw, 1.02rem);
  line-height:1.12;
  max-width:190px;
}

@media (max-width:1200px){
  .stats-card{
    width:100%;
    max-width:560px;
  }

  .stats-card h3{
    text-align:left;
  }
}

@media (max-width:768px){
  .hero-content{
    max-width:100%;
  }

  .hero h1{
    font-size:2.75rem;
    line-height:1;
  }

  .stats-card{
    max-width:100%;
  }

  .stat-gerencia-item{
    grid-template-columns:68px 46px 1fr;
  }

  .stat-circle{
    width:66px;
    height:66px;
  }

  .stat-icon,
  .stat-icon svg{
    width:44px;
    height:44px;
  }
}
/* =========================
ENCUADRE IMAGENES SERVICIOS
========================= */

.service-card:nth-child(1) > img,
.service-card:nth-child(2) > img{
  height:260px;
  object-fit:cover;
  padding:0;
  background:none;
}

.service-card:nth-child(1) > img{
  object-position:center 42%;
}

.service-card:nth-child(2) > img{
  object-position:center 48%;
}

.service-card:nth-child(1):hover > img,
.service-card:nth-child(2):hover > img{
  transform:scale(1.035);
}
/* =========================
NOSOTROS INSTITUCIONAL
========================= */

.nosotros-section{
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}

.nosotros-section .section-title{
  margin-bottom:34px;
}

.nosotros-box{
  max-width:980px;
  margin:0 auto;
  text-align:center;
  line-height:1.9;
  color:#374151;
  font-size:1.12rem;
  font-weight:500;
}

.nosotros-proposito{
  width:fit-content;
  max-width:100%;
  margin:28px auto 0;
  padding:12px 22px;
  text-align:center;
  color:#374151;
  font-size:1.04rem;
  font-weight:700;
  background:#ffffff;
  border:1px solid rgba(229,231,235,.95);
  border-radius:999px;
  box-shadow:0 14px 34px rgba(15,23,42,.07);
}

.nosotros-proposito strong{
  color:#ff1737;
}

.nosotros-mv-grid{
  margin-top:46px;
  align-items:stretch;
}

.nosotros-section .mv-card{
  border-radius:24px;
  padding:42px;
  background:rgba(255,255,255,.96);
}

.nosotros-section .mv-card h3{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}

.nosotros-section .mv-card h3 i{
  margin-right:0;
}

@media (max-width:768px){
  .nosotros-box{
    font-size:1rem;
    text-align:left;
  }

  .nosotros-proposito{
    width:100%;
    border-radius:18px;
    line-height:1.5;
  }

  .nosotros-section .mv-card{
    padding:30px;
  }
}
/* =========================
ORDEN INSTITUCIONAL Y POLITICAS
========================= */

.nav-links{
  gap:clamp(18px, 2vw, 30px);
  align-items:center;
}

.nav-links a{
  font-size:clamp(.86rem, .86vw, 1rem);
  white-space:nowrap;
}

.mision-vision-section{
  background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
}

.mision-vision-section .mv-card{
  border-radius:24px;
  padding:42px;
  background:rgba(255,255,255,.96);
}

.politicas-section{
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}

.policy-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
  max-width:1320px;
  margin:0 auto;
}

.policy-card{
  display:block;
  min-height:100%;
  padding:32px;
  color:#374151;
  text-decoration:none;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:24px;
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.policy-card:hover{
  transform:translateY(-6px);
  border-color:rgba(255,23,55,.22);
  box-shadow:0 25px 60px rgba(15,23,42,.13);
}

.policy-card i{
  color:#ff1737;
  font-size:2rem;
  margin-bottom:18px;
}

.policy-card h3{
  color:#111827;
  font-size:1.35rem;
  margin-bottom:14px;
}

.policy-card p{
  line-height:1.75;
  font-weight:500;
}

@media (max-width:1180px){
  .nav-links{
    gap:18px;
  }

  .nav-btn{
    padding:15px 24px;
  }
}

@media (max-width:900px){
  .policy-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:760px;
  }
}

@media (max-width:640px){
  .policy-grid{
    grid-template-columns:1fr;
  }
}
/* =========================
CONSENTIMIENTOS FORMULARIO
========================= */

.consent-group{
  display:grid;
  gap:14px;
  margin-top:2px;
}

.consent-option{
  display:grid;
  grid-template-columns:20px 1fr;
  gap:12px;
  align-items:start;
  color:#374151;
  font-size:.94rem;
  line-height:1.55;
  font-weight:500;
}

.consent-option input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:3px 0 0;
  padding:0;
  border-radius:5px;
  accent-color:#ff1737;
  cursor:pointer;
}

.consent-option a{
  color:#c70021;
  font-weight:800;
  text-decoration:none;
}

.consent-option a:hover{
  text-decoration:underline;
}
/* =========================
FRANJA CONTADORES INSTITUCIONALES
========================= */

.hero .hero-container{
  justify-content:flex-start;
}

.stats-strip{
  position:relative;
  z-index:3;
  padding:36px 7% 46px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border-top:1px solid rgba(229,231,235,.78);
  border-bottom:1px solid rgba(229,231,235,.95);
}

.stats-strip-container{
  width:100%;
  max-width:1500px;
  margin:0 auto;
}

.stats-strip .stats-card{
  width:100% !important;
  max-width:none !important;
  background:transparent !important;
  padding:0 !important;
  border:0 !important;
  box-shadow:none !important;
}

.stats-strip .stats-card h3{
  margin:0 0 28px;
  text-align:center;
  color:#111827;
  font-size:clamp(1.9rem, 2.6vw, 2.75rem);
  line-height:1.05;
  text-shadow:none;
}

.stats-strip .stats-card h3 span{
  color:#ff1737;
}

.stats-strip .stats-gerencia{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}

.stats-strip .stat-gerencia-item{
  display:grid;
  grid-template-columns:76px 46px minmax(0,1fr);
  align-items:center;
  gap:12px;
  min-height:122px;
  padding:18px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(229,231,235,.96);
  border-radius:22px;
  box-shadow:0 18px 45px rgba(15,23,42,.09);
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.stats-strip .stat-gerencia-item:hover{
  transform:translateY(-5px);
  border-color:rgba(203,213,225,.95);
  box-shadow:0 24px 58px rgba(15,23,42,.13);
}

.stats-strip .stat-circle{
  width:76px;
  height:76px;
  font-size:1.03rem;
  box-shadow:0 14px 30px rgba(15,23,42,.14);
}

.stats-strip .stat-icon,
.stats-strip .stat-icon svg{
  width:46px;
  height:46px;
}

.stats-strip .stat-icon{
  color:#111827;
  filter:none;
}

.stats-strip .stat-gerencia-item p{
  max-width:none;
  font-size:.92rem;
  line-height:1.16;
  color:#111827;
  text-shadow:none;
}

@media (max-width:1550px){
  .stats-strip .stats-gerencia{
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:18px;
  }

  .stats-strip .stat-gerencia-item{
    grid-column:span 2;
  }

  .stats-strip .stat-gerencia-item:nth-child(4){
    grid-column:2 / span 2;
  }

  .stats-strip .stat-gerencia-item:nth-child(5){
    grid-column:4 / span 2;
  }
}

@media (max-width:1050px){
  .stats-strip .stats-gerencia{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .stats-strip .stat-gerencia-item,
  .stats-strip .stat-gerencia-item:nth-child(4),
  .stats-strip .stat-gerencia-item:nth-child(5){
    grid-column:auto;
  }

  .stats-strip .stat-gerencia-item:last-child{
    grid-column:1 / -1;
    max-width:560px;
    width:100%;
    margin:0 auto;
  }
}

@media (max-width:640px){
  .stats-strip{
    padding:30px 20px 38px;
  }

  .stats-strip .stats-gerencia{
    grid-template-columns:1fr;
  }

  .stats-strip .stat-gerencia-item,
  .stats-strip .stat-gerencia-item:last-child{
    grid-column:auto;
    max-width:none;
    grid-template-columns:70px 42px minmax(0,1fr);
  }

  .stats-strip .stat-circle{
    width:70px;
    height:70px;
    font-size:.95rem;
  }
}
/* =========================
ANIMACION PRO CONTADORES
========================= */

.stats-strip .stat-gerencia-item.is-counting{
  transform:translateY(-4px);
  border-color:rgba(203,213,225,.95);
  box-shadow:0 22px 54px rgba(15,23,42,.13);
}

.stats-strip .stat-gerencia-item.is-counting .stat-circle{
  animation:counterGlow 1.15s ease-in-out infinite alternate;
}

.stats-strip .stat-gerencia-item.is-complete .stat-circle{
  animation:counterSettle .55s ease both;
}

@keyframes counterGlow{
  from{
    box-shadow:0 14px 30px rgba(15,23,42,.14), 0 0 0 0 rgba(15,23,42,.10);
  }
  to{
    box-shadow:0 16px 34px rgba(15,23,42,.17), 0 0 0 7px rgba(15,23,42,.04);
  }
}

@keyframes counterSettle{
  0%{
    transform:scale(1);
  }
  45%{
    transform:scale(1.08);
  }
  100%{
    transform:scale(1);
  }
}

@media (prefers-reduced-motion:reduce){
  .stats-strip .stat-gerencia-item,
  .stats-strip .stat-circle{
    animation:none !important;
    transition:none !important;
  }
}
/* =========================
HERO CORPORATIVO
========================= */

.hero-content{
  max-width:820px;
}

.hero h1{
  max-width:820px;
  font-size:clamp(3rem, 4.2vw, 4.55rem);
  line-height:1.04;
  letter-spacing:0;
  text-transform:none;
}

.hero h1 .red{
  margin-top:4px;
  font-size:.82em;
  line-height:1.08;
}

.hero p{
  max-width:720px;
  font-size:clamp(1.02rem, 1.02vw, 1.16rem);
  line-height:1.75;
}

@media (max-width:768px){
  .hero h1{
    font-size:2.55rem;
    line-height:1.08;
  }

  .hero h1 .red{
    font-size:.88em;
  }
}
/* =========================
NOSOTROS UNIFICADO
========================= */

.nosotros-section{
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 52%,#ffffff 100%);
}

.nosotros-block{
  margin-top:54px;
}

.nosotros-intro-block{
  margin-top:0;
}

.subsection-title{
  text-align:center;
  margin-bottom:30px;
}

.subsection-title span{
  display:block;
  margin-bottom:10px;
  color:#ff1737;
  font-size:.9rem;
  font-weight:900;
  letter-spacing:.34em;
}

.subsection-title h3{
  margin:0;
  color:#111827;
  font-size:clamp(2rem, 3vw, 3rem);
  line-height:1.1;
}

.nosotros-section .nosotros-mv-grid,
.nosotros-section .policy-grid{
  margin-top:0;
}

@media (max-width:768px){
  .nosotros-block{
    margin-top:42px;
  }

  .subsection-title{
    text-align:left;
  }

  .subsection-title h3{
    font-size:2rem;
  }
}
/* =========================
SERVICIOS FONDO OSCURO
========================= */

#servicios{
  background:
    linear-gradient(115deg, rgba(5,10,18,.90) 0%, rgba(15,23,42,.82) 48%, rgba(18,24,32,.88) 100%),
    url('../imagenes/Sanitarias.webp');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
}

#servicios::before{
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,.10), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(255,23,55,.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}

#servicios .section-title h2{
  color:#ffffff;
  text-shadow:0 12px 34px rgba(0,0,0,.42);
}

#servicios .section-title span{
  color:#ff1737;
  text-shadow:0 8px 22px rgba(255,23,55,.18);
}

#servicios .service-card{
  background:rgba(255,255,255,.98);
  border-color:rgba(255,255,255,.74);
  box-shadow:0 26px 72px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.08);
}

#servicios .service-card:hover{
  border-color:rgba(255,23,55,.34);
  box-shadow:0 32px 86px rgba(0,0,0,.40), 0 18px 42px rgba(255,23,55,.14);
}

#servicios .service-card img{
  filter:brightness(.96) contrast(1.06) saturate(1.04);
}

#servicios .service-card:hover img{
  filter:brightness(1.02) contrast(1.08) saturate(1.06);
}

@media (max-width:768px){
  #servicios{
    background-attachment:scroll;
  }
}


/* =========================
FORMULARIO COTIZACION - LIMITES Y SEGURIDAD
========================= */
.optional-note{
  display:inline-block;
  margin-left:6px;
  color:#64748b;
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
}

.required-note{
  display:inline-block;
  margin-left:6px;
  color:#c70021;
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
}

.char-counter{
  display:block;
  margin:-8px 0 14px;
  color:#64748b;
  font-size:.82rem;
  font-weight:800;
  text-align:right;
}

.char-counter.is-warning{
  color:#b45309;
}

.char-counter.is-full{
  color:#c70021;
}

.form-alert{
  display:none;
  margin:0 0 16px;
  padding:14px 16px;
  border-radius:14px;
  background:#fff1f3;
  border:1px solid rgba(255,23,55,.28);
  color:#9f1239;
  font-weight:800;
  line-height:1.5;
}

.form-alert.is-visible{
  display:block;
}

.thanks-page{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
  background:#04060a;
  color:white;
  font-family:'Inter',sans-serif;
  text-align:center;
  padding:30px;
}

.thanks-card h1{
  font-size:3rem;
  color:#ff1737;
}

.thanks-card p{
  max-width:600px;
  margin:0 auto 32px;
  line-height:1.8;
  color:#cfcfcf;
}

.thanks-card a{
  display:inline-block;
  padding:16px 30px;
  background:#ff1737;
  border-radius:14px;
  color:white;
  text-decoration:none;
  font-weight:700;
}

/* =========================
NAVBAR MOBILE FINAL
========================= */

@media (max-width:1120px){
  .navbar{
    min-height:76px;
    padding:12px 20px;
    gap:14px;
  }

  .navbar .logo img{
    width:clamp(170px,52vw,220px);
  }

  .menu-toggle{
    appearance:none;
    display:flex !important;
    align-items:center;
    justify-content:center;
    flex:0 0 44px;
    width:44px;
    height:44px;
    margin-left:auto;
    border:1px solid rgba(15,23,42,.12);
    border-radius:14px;
    background:#ffffff;
    color:#111827;
    box-shadow:0 12px 30px rgba(15,23,42,.10);
  }

  .menu-toggle i{
    pointer-events:none;
  }

  .nav-btn{
    display:none;
  }

  .nav-links{
    position:fixed;
    top:84px;
    left:16px;
    right:16px;
    display:grid !important;
    gap:4px;
    max-height:calc(100dvh - 100px);
    padding:14px;
    overflow:auto;
    background:rgba(255,255,255,.97);
    border:1px solid rgba(15,23,42,.10);
    border-radius:20px;
    box-shadow:0 28px 70px rgba(15,23,42,.18);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-12px);
    transition:opacity .24s ease, transform .24s ease, visibility .24s ease;
  }

  .nav-links.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
  }

  .nav-links a{
    display:flex;
    align-items:center;
    min-height:48px;
    padding:12px 14px;
    border-radius:14px;
    color:#111827;
    font-size:1rem;
    font-weight:800;
    white-space:normal;
  }

  .nav-links a::after{
    display:none;
  }

  .nav-links a:hover{
    background:#fff1f3;
  }
}

/* =========================
AJUSTES RESPONSIVE DE CIERRE
========================= */

.hero-container > *,
.contact-grid > *,
.footer-container > *{
  min-width:0;
}

@media (max-width:1300px){
  .footer-container{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:34px;
  }

  .footer-box:first-child{
    grid-column:1 / -1;
  }
}

@media (max-width:1100px){
  .contact-box{
    padding:clamp(28px,5vw,55px);
  }

  .contact-heading{
    font-size:clamp(2.35rem,5vw,3.2rem);
  }
}

@media (max-width:900px){
  .projects-slider.is-filtered{
    gap:20px;
  }

  .projects-slider.is-filtered .project-card{
    flex-basis:min(380px,calc(100vw - 40px));
    width:min(380px,calc(100vw - 40px));
  }

  .project-card{
    width:min(380px,calc(100vw - 40px));
    min-width:min(380px,calc(100vw - 40px));
  }
}

@media (max-width:680px){
  .contact-grid{
    gap:28px;
  }

  .contact-box{
    padding:24px 18px;
    border-radius:24px;
  }

  .contact-heading{
    font-size:clamp(2.15rem,10vw,3rem);
    line-height:1.05;
  }

  .contact-copy{
    font-size:1rem;
    line-height:1.7;
  }

  .footer{
    padding:60px 20px 24px;
  }

  .footer-container{
    grid-template-columns:1fr;
    gap:34px;
  }

  .footer-box:first-child{
    grid-column:auto;
  }

  .footer-logo{
    width:min(250px,84vw);
  }

  .footer-bottom{
    margin-top:38px;
  }

  .whatsapp{
    right:18px;
    bottom:18px;
    width:60px;
    height:60px;
    font-size:2rem;
  }
}
