:root{--teal:#117f76;--teal-dark:#0a6f68;--orange:#ff6b0b;--navy:#061b39;--text:#253652;--muted:#62718a;--soft:#f3f5f7;--white:#fff;--shadow:0 14px 30px rgba(16,40,60,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Nunito,Arial,sans-serif;color:var(--text);background:#fff;line-height:1.65}a{text-decoration:none;color:inherit}img{max-width:100%;display:block}.container{width:min(1220px,calc(100% - 40px));margin:auto}.narrow{max-width:930px}.center{text-align:center}.section{padding:72px 0}h1,h2,h3{color:var(--navy);line-height:1.15;margin-top:0}h2{font-size:clamp(2rem,3vw,2.7rem);margin-bottom:14px}.teal,.section-kicker{color:var(--teal)}.section-kicker{font-weight:900;letter-spacing:.08em;display:block;margin-bottom:16px}.site-header{position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.08)}.nav-wrap{height:100px;display:flex;align-items:center;justify-content:space-between}.brand img{width:150px}.main-nav{display:flex;align-items:center;gap:25px;font-weight:700;font-size:.9rem}.main-nav>a:not(.btn){padding:12px 10px;border-radius:24px}.main-nav>a.active,.main-nav>a:hover{color:var(--teal)}.main-nav>a.active{background:var(--teal);color:#fff;padding-inline:20px}.menu-toggle{display:none;border:0;background:none;font-size:1.8rem}.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:28px;padding:14px 30px;font-weight:900;transition:.25s;box-shadow:0 5px 12px rgba(0,0,0,.12)}.btn:hover{transform:translateY(-2px)}.btn-orange{background:var(--orange);color:#fff}.btn-small{padding:11px 23px}.btn-outline{border:2px solid #fff;color:#fff;box-shadow:none}.hero{position:relative;min-height:585px;background:url('../img/hero.jpg') center/cover no-repeat;display:flex;align-items:center}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,20,43,.92) 0%,rgba(4,20,43,.72) 52%,rgba(4,20,43,.38) 100%)}.hero-content{position:relative;color:#fff}.eyebrow-pill{display:inline-block;border:1px solid #1fa596;color:#9ef0e4;background:rgba(10,127,118,.35);padding:5px 16px;border-radius:22px;font-weight:900;letter-spacing:.06em}.hero h1{font-size:clamp(3rem,5vw,5.2rem);color:#fff;margin:24px 0 16px;max-width:980px}.hero h1 span{color:#20c8ba}.hero p{font-size:1.18rem;max-width:780px}.hero-actions{display:flex;gap:16px;margin-top:28px}.intro p,.timeline-section>.container>.center p,.brands p,.benefits p{font-size:1.12rem}.timeline-section{padding-top:30px}.timeline{position:relative;max-width:900px;margin:70px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:48px 80px}.timeline:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:4px;background:linear-gradient(#90eee2,var(--teal),#70ddd2);transform:translateX(-50%)}.timeline-card{position:relative;background:#fff;padding:32px;border-radius:16px;box-shadow:var(--shadow);border:1px solid #e7eaed}.timeline-card:nth-child(2){grid-column:2;margin-top:220px}.timeline-card:nth-child(3){grid-column:1;margin-top:0}.timeline-card:after{content:"";position:absolute;top:50%;width:18px;height:18px;background:var(--orange);border:4px solid #fff;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.2)}.timeline-card.left:after{right:-53px}.timeline-card.right:after{left:-53px}.year{display:inline-block;background:#e6f2f1;color:var(--teal);font-weight:900;font-size:1.25rem;padding:3px 16px;border-radius:20px}.logo-box{height:120px;margin:22px 0;display:flex;align-items:center;justify-content:center;background:#fafafa;border:1px solid #e7eaed;border-radius:12px;overflow:hidden}.logo-box img{max-height:100%;object-fit:contain}.timeline-card h3{font-size:1.5rem;margin-bottom:4px}.timeline-card small{color:var(--orange);font-weight:800}.brands,.benefits{background:var(--soft)}.brand-grid,.benefit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:45px}.brand-card{background:#fff;border:1px solid #dce1e6;box-shadow:0 3px 4px rgba(0,0,0,.05);border-radius:12px;padding:26px;text-align:center;font-weight:900;font-size:1.15rem;color:#64718a}.benefit-card{background:#fff;border:1px solid #dce1e6;border-radius:18px;padding:26px;min-height:245px}.icon-box{width:48px;height:48px;background:var(--teal);color:white;display:grid;place-items:center;font-size:1.5rem;margin-bottom:22px}.benefit-card h3{font-size:1.3rem}.stats{background:var(--teal);color:#fff;padding:54px 0}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);text-align:center}.stats strong{display:block;font-size:3.3rem;line-height:1}.stats span{display:block;margin-top:10px}.testimonials{background:#fff}.testimonial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:50px}.testimonial-card{position:relative;background:#fafbfc;border:1px solid #edf0f2;border-radius:16px;padding:32px;box-shadow:0 4px 12px rgba(0,0,0,.04)}.testimonial-card blockquote{margin:0 0 24px;font-style:italic}.testimonial-card h3{font-size:1rem;color:var(--teal);margin-bottom:0}.testimonial-card p{margin:0;color:var(--muted)}.quote-mark{position:absolute;right:28px;top:20px;font-size:4rem;color:#e3e7eb}.cta-section{background:#f7f9fa}.cta{background:var(--teal);color:#fff;border-radius:22px;padding:55px 90px;text-align:center;box-shadow:var(--shadow)}.cta h2{color:#fff;font-size:2.35rem}.cta p{font-size:1.22rem;max-width:800px;margin:0 auto 28px}.footer{padding:64px 0 25px;background:#f8fafb;border-top:1px solid #e5e8eb}.footer-grid{display:grid;grid-template-columns:1.3fr .7fr .8fr 1fr;gap:55px}.footer-logo{width:120px;margin-bottom:22px}.footer h3{color:var(--teal);font-size:1.1rem}.footer a{display:block;margin:12px 0}.footer p{margin:10px 0}.socials{display:flex;gap:18px;font-weight:900;color:#657185}.copyright{border-top:1px solid #dfe4e8;margin-top:45px;padding-top:25px}.whatsapp{position:fixed;right:24px;bottom:22px;display:flex;align-items:center;gap:12px;z-index:60}.help-text{background:#fff;padding:10px 18px;border-radius:25px;box-shadow:0 4px 15px rgba(0,0,0,.16);font-weight:800;font-size:.85rem}.wa-circle{width:58px;height:58px;border-radius:50%;background:#24d366;color:white;display:grid;place-items:center;font-size:2rem}.reveal{opacity:0;transform:translateY(22px);transition:.7s ease}.reveal.visible{opacity:1;transform:none}
@media(max-width:980px){.menu-toggle{display:block}.main-nav{position:absolute;top:100px;left:0;right:0;background:#fff;display:none;flex-direction:column;align-items:stretch;padding:20px 30px;box-shadow:0 10px 20px rgba(0,0,0,.1)}.main-nav.open{display:flex}.main-nav a{text-align:center}.hero{min-height:630px}.brand-grid,.benefit-grid{grid-template-columns:repeat(2,1fr)}.testimonial-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:repeat(2,1fr)}.timeline{grid-template-columns:1fr;padding-left:44px}.timeline:before{left:20px}.timeline-card,.timeline-card:nth-child(2),.timeline-card:nth-child(3){grid-column:1;margin-top:0}.timeline-card.left:after,.timeline-card.right:after{left:-35px;right:auto}.cta{padding:45px 35px}}
@media(max-width:640px){.container{width:min(100% - 28px,1220px)}.nav-wrap{height:82px}.brand img{width:125px}.main-nav{top:82px}.hero{min-height:670px}.hero h1{font-size:2.55rem}.hero p{font-size:1rem}.hero-actions{flex-direction:column;align-items:stretch}.section{padding:52px 0}.brand-grid,.benefit-grid,.stats-grid,.footer-grid{grid-template-columns:1fr}.stats-grid{gap:35px}.timeline{padding-left:32px}.timeline:before{left:9px}.timeline-card.left:after,.timeline-card.right:after{left:-35px}.cta{padding:36px 20px}.cta h2{font-size:1.9rem}.help-text{display:none}}

/* Ajustes de presentación solicitados */
.hero-content{max-width:1220px;padding-top:24px;padding-bottom:24px}
.hero h1{font-size:clamp(3rem,4.35vw,4.7rem);line-height:1.04;letter-spacing:-.025em;max-width:920px;text-wrap:balance}
.hero h1 span{display:inline}
.hero p{line-height:1.55;margin:0;max-width:760px}
.hero-animate .eyebrow-pill{animation:heroFadeUp .65s ease both}
.hero-animate h1{animation:heroFadeUp .75s .12s ease both}
.hero-animate p{animation:heroFadeUp .75s .24s ease both}
.hero-animate .hero-actions{animation:heroFadeUp .75s .36s ease both}
@keyframes heroFadeUp{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}
.timeline-card{transition:transform .3s ease,box-shadow .3s ease}
.timeline-card:hover{transform:translateY(-6px);box-shadow:0 20px 38px rgba(16,40,60,.16)}
.brand-card,.benefit-card,.testimonial-card{transition:transform .3s ease,box-shadow .3s ease}
.brand-card:hover,.benefit-card:hover,.testimonial-card:hover{transform:translateY(-5px);box-shadow:0 14px 28px rgba(16,40,60,.11)}

@media(max-width:1100px){
  .hero h1{font-size:clamp(2.9rem,5.5vw,4rem);max-width:760px}
  .hero p{max-width:700px}
}

/* La línea del tiempo conserva el formato alternado en tablet y móvil horizontal */
@media(max-width:980px) and (min-width:521px){
  .timeline{max-width:560px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px 50px;padding-left:0}
  .timeline:before{left:50%}
  .timeline-card{padding:18px 16px;border-radius:10px}
  .timeline-card:nth-child(2){grid-column:2;margin-top:215px}
  .timeline-card:nth-child(3){grid-column:1;margin-top:0}
  .timeline-card.left:after{left:auto;right:-36px}
  .timeline-card.right:after{left:-36px;right:auto}
  .logo-box{height:76px;margin:14px 0}
  .timeline-card h3{font-size:1rem}
  .timeline-card p{font-size:.72rem;line-height:1.55}
  .timeline-card small{font-size:.65rem}
  .year{font-size:.75rem;padding:2px 10px}
}

@media(max-width:980px){
  .hero{min-height:560px}
  .hero h1{font-size:clamp(2.7rem,7vw,4rem);line-height:1.06;max-width:760px}
}

@media(max-width:640px){
  .hero{min-height:620px}
  .hero h1{font-size:clamp(2.35rem,11vw,3.15rem);line-height:1.08;letter-spacing:-.02em}
  .hero-content{padding-top:32px;padding-bottom:32px}
}

@media(max-width:520px){
  .timeline{grid-template-columns:1fr;padding-left:34px;gap:30px}
  .timeline:before{left:10px}
  .timeline-card,.timeline-card:nth-child(2),.timeline-card:nth-child(3){grid-column:1;margin-top:0}
  .timeline-card.left:after,.timeline-card.right:after{left:-35px;right:auto}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* Corrección final con las imágenes proporcionadas */
.hero{
  min-height:545px;
  background-image:url('../img/hero.png');
  background-position:center center;
  background-size:cover;
}
.hero-overlay{
  background:linear-gradient(90deg,rgba(4,20,43,.94) 0%,rgba(4,20,43,.78) 48%,rgba(4,20,43,.42) 100%);
}
.hero-content{padding-top:36px;padding-bottom:36px}
.hero h1{
  max-width:860px;
  font-size:clamp(2.9rem,4.2vw,4.45rem);
  line-height:1.06;
  letter-spacing:-.035em;
  margin:24px 0 18px;
  text-wrap:pretty;
}
.hero h1 span{color:#22c9bb}
.hero p{max-width:760px;font-size:1.08rem;line-height:1.55}

.brand img,.footer-logo{object-fit:contain}
.logo-box{padding:18px}
.logo-box img{width:100%;height:100%;object-fit:contain}
.timeline-card:first-child .logo-box img{max-height:82px}
.timeline-card:nth-child(2) .logo-box img{max-height:88px}
.timeline-card:nth-child(3) .logo-box img{max-height:92px}

@media(max-width:1100px){
  .hero{min-height:520px}
  .hero h1{max-width:720px;font-size:clamp(2.65rem,5.1vw,3.7rem)}
  .hero p{max-width:690px}
}
@media(max-width:760px){
  .hero{min-height:600px;background-position:62% center}
  .hero h1{font-size:clamp(2.25rem,9vw,3.2rem);line-height:1.08;max-width:100%}
  .hero h1 br{display:none}
  .hero p{font-size:1rem}
}
@media(max-width:480px){
  .hero{min-height:640px;background-position:66% center}
  .hero h1{font-size:2.35rem;letter-spacing:-.025em}
  .eyebrow-pill{font-size:.78rem}
}


/* Ajustes de Nuestra Evolución */
@media(min-width:981px){
  .timeline{max-width:980px;grid-template-columns:1fr 1fr;column-gap:120px}
  .timeline-card{width:fit-content;max-width:390px;padding:28px 30px}
  .timeline-card.left{justify-self:end}
  .timeline-card.right{justify-self:start}
  .timeline-card:first-child{margin-top:24px}
  .timeline-card.left:after{right:-72px}
  .timeline-card.right:after{left:-72px}
}
@media(max-width:980px) and (min-width:521px){
  .timeline-card{width:100%;max-width:245px}
  .timeline-card.left{justify-self:end}
  .timeline-card.right{justify-self:start}
  .timeline-card:first-child{margin-top:18px}
}
@media(max-width:520px){
  .timeline-card{width:fit-content;max-width:100%}
  .timeline-card:first-child{margin-top:12px}
}

/* Corrección definitiva: cada tarjeta conserva la altura real de su contenido.
   Evita que CSS Grid estire ROMA hasta la altura de la tarjeta desplazada de ROMART. */
.timeline-card{
  align-self:start;
}

/* Página Nosotros */
.about-page h1,.about-page h2{color:var(--teal)}
.about-title{padding:52px 0 58px;border-bottom:1px solid #e2e6e9}
.about-title h1{font-size:clamp(2.6rem,4vw,3.65rem);margin-bottom:18px}
.about-title p{font-size:1.25rem;line-height:1.45;margin:0}
.about-story{padding:66px 0}
.about-story-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:72px;align-items:center}
.about-story h2{font-size:2.45rem;margin-bottom:26px}
.about-story p{font-size:1.08rem;line-height:1.62;margin:0 0 18px}
.about-feature-image{margin:0;box-shadow:0 15px 28px rgba(16,40,60,.13);overflow:hidden}
.about-feature-image img{width:100%;height:390px;object-fit:cover}
.installations{background:#f2f4f6;padding:48px 0 38px}
.installations h2,.infrastructure h2,.principles h2,.organization h2{font-size:2.25rem;margin-bottom:8px}
.installations .center p,.infrastructure .center p,.principles .center p,.organization .center p{margin:0;font-size:1.05rem;line-height:1.4}
.installation-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:36px}
.installation-grid figure{margin:0;border-radius:10px;overflow:hidden;box-shadow:0 7px 18px rgba(16,40,60,.13);background:#fff}
.installation-grid img{width:100%;height:310px;object-fit:cover}
.infrastructure{padding:62px 0 54px}
.infra-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:42px}
.infra-card{border:1px solid #e3e6e9;border-radius:11px;overflow:hidden;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.05)}
.infra-card img{width:100%;height:155px;object-fit:cover}
.infra-card div{padding:14px 14px 18px}
.infra-card h3{font-size:1.05rem;margin:0 0 8px;color:#050505}
.infra-card p{margin:0;line-height:1.45;font-size:.92rem}
.principles{background:#f5f7f8;padding:56px 0 62px}
.principle-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;margin-top:42px}
.principle-card{background:#fff;border:1px solid #dfe4e8;border-radius:12px;padding:26px 24px;min-height:205px;box-shadow:0 3px 7px rgba(0,0,0,.04)}
.principle-card span{display:grid;place-items:center;width:42px;height:42px;background:#eaf8f6;color:var(--teal);font-size:1.35rem;margin-bottom:18px}
.principle-card h3{color:var(--teal);font-size:1.08rem;margin-bottom:10px}
.principle-card p{font-size:.93rem;line-height:1.48;margin:0}
.organization{padding:62px 0 70px}
.organization-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;max-width:980px;margin:44px auto 0}
.org-card{background:#f8f9fa;border:1px solid #e6e9ec;border-radius:13px;padding:30px 20px;text-align:center;box-shadow:0 3px 8px rgba(0,0,0,.035)}
.org-card strong{display:block;color:var(--teal);font-size:2.85rem;line-height:1;margin-bottom:14px}
.org-card h3{font-size:1.05rem;color:#050505;margin-bottom:6px}
.org-card p{font-size:.9rem;margin:0}
.about-cta{background:var(--teal);color:#fff;padding:60px 0 68px}
.about-cta h2{color:#fff;font-size:2.25rem;margin-bottom:18px}
.about-cta p{font-size:1.02rem;line-height:1.5;margin:0 0 28px}
.about-cta .btn{min-width:270px}
@media(max-width:980px){
 .about-story-grid{grid-template-columns:1fr;gap:34px}.about-feature-image img{height:420px}
 .infra-grid,.organization-grid{grid-template-columns:1fr 1fr}.principle-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
 .about-title p br,.installations p br,.organization p br,.about-cta p br{display:none}
 .about-story{padding:48px 0}.about-story h2{font-size:2rem}.about-story p{font-size:1rem}
 .about-feature-image img{height:300px}.installation-grid{grid-template-columns:1fr}.installation-grid img{height:250px}
 .infra-grid,.organization-grid,.principle-grid{grid-template-columns:1fr}.infra-card img{height:210px}
 .about-title{padding:42px 0}.about-title p{font-size:1.05rem}.about-cta h2{font-size:1.9rem}
}
