:root{--blue:#073e80;--blue2:#008df5;--dark:#0b1218;--green:#08bb42}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:94px}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#101419;background:#fff}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.container{width:min(1180px,94%);margin:auto}.header{height:91px;background:linear-gradient(115deg,#064381,#002f69);color:#fff;position:sticky;top:0;z-index:20;box-shadow:0 2px 12px #0002}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:13px;min-width:315px}.brand img{width:75px;height:82px;object-fit:contain}.brand-type{border-left:2px solid white;padding-left:13px;display:flex;flex-direction:column;white-space:nowrap}.brand-type strong{font-size:38px;font-stretch:condensed;font-weight:900;letter-spacing:-2px;line-height:1}.brand-type small{font-size:14px;letter-spacing:.7px;margin-top:5px}.navigation{display:flex;align-items:center;gap:32px;font-weight:700;font-size:14px}.navigation a{padding:12px 0;position:relative}.navigation a:hover:after,.navigation .active:after{content:"";height:4px;background:var(--blue2);position:absolute;bottom:0;left:0;right:0;border-radius:8px}.header-social{border-left:1px solid #fff9;padding-left:28px}.social-icons{display:flex;align-items:center;gap:14px}.social-icons>a,.social-icons>span{display:grid;place-items:center;font-size:27px;font-weight:900;width:31px;height:31px;line-height:1}.header-social .fb{background:white;color:var(--blue);border-radius:50%;font-family:Arial}.header-social .insta{border:2px solid white;border-radius:9px;font-size:25px}.social-icons span{cursor:default}.menu-toggle{display:none}.hero{height:340px;position:relative;overflow:hidden;background:#16252d}.hero-photo{position:absolute;inset:0;background:url('assets/hero.webp') center 45%/cover no-repeat}.hero-angle{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,15,22,.97) 0%,rgba(9,20,31,.89) 30%,rgba(7,18,28,.45) 51%,transparent 70%);clip-path:polygon(0 0,35% 0,49% 100%,0 100%)}.hero-inner{position:relative;z-index:1;height:100%;display:flex;align-items:center}.hero-copy{color:#fff;width:460px}.hero h1{font-size:clamp(32px,4vw,52px);line-height:1.05;margin:0 0 15px;font-weight:900;letter-spacing:-1px}.hero h1 span{color:#0a9aff}.hero p{font-size:16px;line-height:1.32;max-width:340px;padding-left:15px;border-left:5px solid #009aff;margin:0 0 18px}.hero-cta{background:#050505;border:1.5px solid white;color:white;border-radius:30px;padding:12px 19px;display:inline-flex;align-items:center;gap:14px;font-weight:800;font-size:15px;box-shadow:0 3px 7px #0006}.wa-symbol{color:#00e452;font-size:23px}.benefits{background:linear-gradient(90deg,#0050a3,#073c80);color:white}.benefit-row{display:grid;grid-template-columns:repeat(3,1fr);height:62px;align-items:center}.benefit-row>div{display:flex;justify-content:center;align-items:center;gap:15px;font-weight:700;font-size:15px;border-right:1px solid #fff8}.benefit-row>div:last-child{border:0}.benefit-row span{font-size:32px;font-weight:400}.section{padding:24px 0 30px}.section-title{text-align:center;margin-bottom:25px}.section-title>span{color:#0059ad;font-weight:800;font-size:14px;display:inline-flex;align-items:center;gap:12px}.section-title>span:before,.section-title>span:after{content:"";display:block;width:45px;height:1px;background:#3a8ad3}.section-title h2{font-size:clamp(26px,3vw,36px);line-height:1.2;margin:8px 0 0;font-weight:900;letter-spacing:-1px}.services{background:#f7f9fb}.service-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.service-card{height:190px;position:relative;border-radius:8px;overflow:hidden;border-bottom:6px solid #0095ff;background:#10243a}.service-card img{width:100%;height:100%;object-fit:cover}.service-card:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#071321)}.service-card h3{position:absolute;bottom:7px;left:10px;right:6px;color:white;font-size:14px;line-height:1.2;z-index:1;margin:0;font-weight:800}.about{display:grid;grid-template-columns:45% 55%;background:#0b1219;color:#fff;min-height:225px}.about-image{background:url('assets/worker.webp') center/cover no-repeat;clip-path:polygon(0 0,100% 0,83% 100%,0 100%);border-right:12px solid #008dff}.about-content{padding:25px max(30px,calc((100vw - 1180px)/2)) 24px 35px}.about h2{font-size:29px;margin:0 0 10px}.about p{font-size:15px;line-height:1.3;max-width:580px;margin:0 0 15px}.about-features{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.about-features div{text-align:center;font-weight:700;font-size:14px;border-right:1px solid #fff8}.about-features div:last-child{border:0}.about-features span{display:block;font-size:31px;margin-bottom:4px}.projects{padding-top:24px;padding-bottom:18px}.projects .section-title{margin-bottom:17px}.project-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.project-grid img{width:100%;height:125px;object-fit:cover;border-radius:9px}.image-note{font-size:11px;color:#65707d;text-align:center;margin:10px 0 0}.contact{display:grid;grid-template-columns:34% 43% 23%;min-height:235px;background:#f0f3f7}.contact-info{background:linear-gradient(110deg,#00336e,#0753a2);color:white;padding:20px 25px 20px max(25px,calc((100vw - 1180px)/2));clip-path:polygon(0 0,100% 0,87% 100%,0 100%)}.contact-info h2{font-size:28px;margin:0 0 3px}.contact-info p{margin:0 0 13px;font-size:14px}.contact-cta{display:inline-block;background:#05bd40;color:white;border-radius:25px;padding:11px 15px;font-weight:800;font-size:13px;margin-bottom:11px}.contact-line{display:block;font-size:15px;font-weight:800;margin-bottom:8px}.contact-address{font-size:13px;font-style:normal;line-height:1.28;font-weight:600}.map-panel{position:relative;min-height:235px;padding:12px 12px 12px 0}.map-panel iframe{width:100%;height:100%;min-height:211px;border:0;border-radius:9px;filter:grayscale(.2)}.map-caption{position:absolute;left:26%;top:30px;background:#fff;border-radius:7px;box-shadow:0 3px 14px #0003;width:220px;padding:12px;font-size:12px;display:flex;flex-direction:column;gap:5px;pointer-events:none}.map-caption small{font-size:11px}.map-caption a{color:#0055c9;font-weight:800;pointer-events:auto}.contact-social{border-left:1px solid #789;padding:35px 10px;text-align:center;margin:18px 0}.contact-social h3{font-size:20px;line-height:1.1;margin:0 0 24px}.social-big{justify-content:center}.social-big>a,.social-big>span{width:45px;height:45px;border-radius:50%;color:#fff;font-size:32px}.social-big .fb{background:#1177ef}.social-big .insta{background:linear-gradient(45deg,#ffae00,#e40089,#6634c9)}.social-big .tiktok{background:#050505}footer{background:#0b131b;color:#fff}.footer-inner{display:flex;justify-content:space-between;align-items:center;min-height:76px;gap:25px}.footer-brand{display:flex;align-items:center;gap:10px}.footer-brand img{height:62px;width:62px;object-fit:contain}.footer-brand span{display:flex;flex-direction:column;border-left:1px solid white;padding-left:10px}.footer-brand strong{font-size:27px;line-height:1;font-weight:900}.footer-brand small{font-size:10px;margin-top:3px}.footer-inner nav{display:flex;gap:26px;font-size:13px;font-weight:700}.footer-inner nav a:hover{color:#1e9aff}.floating-wa{position:fixed;right:23px;bottom:23px;width:63px;height:63px;border-radius:50%;display:grid;place-items:center;background:#00c83e;border:3px solid white;box-shadow:0 2px 8px #0006;z-index:25}.floating-wa svg{width:42px;height:42px}@media(max-width:1050px){.brand{min-width:250px}.brand img{width:65px}.brand-type strong{font-size:32px}.brand-type small{font-size:11px}.navigation{gap:16px}.header-social{padding-left:15px}.service-card h3{font-size:12px}.contact{grid-template-columns:36% 40% 24%}}@media(max-width:760px){.header{height:75px}.brand{min-width:0}.brand img{height:68px;width:59px}.brand-type strong{font-size:28px}.brand-type small{font-size:10px}.menu-toggle{display:block;margin-left:auto;background:none;border:1px solid #fff9;border-radius:7px;color:white;font-size:27px;padding:3px 11px;cursor:pointer}.navigation{display:none;position:absolute;top:75px;left:0;right:0;background:#063e80;padding:15px 25px;flex-direction:column;align-items:stretch;gap:0}.navigation.open{display:flex}.navigation a{padding:13px 0}.header-social{display:none}.hero{height:410px}.hero-photo{background-position:58% center}.hero-angle{clip-path:none;background:linear-gradient(90deg,#08111ce8,#08111c9a 75%,#08111c33)}.hero-copy{width:100%}.hero h1{font-size:38px}.benefit-row{height:auto;padding:13px 0;gap:10px;grid-template-columns:1fr}.benefit-row>div{border-right:0;font-size:14px}.benefit-row span{font-size:23px}.service-grid{grid-template-columns:repeat(2,1fr);gap:12px}.service-card{height:220px}.service-card h3{font-size:15px}.about{grid-template-columns:1fr}.about-image{height:230px;clip-path:none;border-right:0;border-bottom:7px solid #008dff}.about-content{padding:25px 5%}.project-grid{grid-template-columns:repeat(2,1fr)}.project-grid img{height:150px}.contact{grid-template-columns:1fr}.contact-info{clip-path:none;padding:28px 5%}.map-panel{padding:12px 5%;height:270px}.map-caption{left:15%;top:26px}.contact-social{margin:0 5% 15px;padding:22px;border-left:0;border-top:1px solid #bbc}.footer-inner{padding:16px 0;flex-direction:column}.footer-inner nav{gap:12px;flex-wrap:wrap;justify-content:center}.floating-wa{width:57px;height:57px}.floating-wa svg{width:37px;height:37px}}@media(max-width:390px){.brand-type strong{font-size:23px}.brand-type small{font-size:8px}.brand img{width:50px}.service-card{height:185px}.hero h1{font-size:34px}.hero-cta{font-size:13px}}


/* Tarjetas de servicios: pie translucido y zoom interactivo */
.service-grid{gap:12px;padding:12px 5px 18px}
.service-card{isolation:isolate;overflow:visible;border-bottom:0;background:transparent;border-radius:10px;transition:transform .32s cubic-bezier(.2,.8,.2,1),box-shadow .32s ease;transform-origin:center;cursor:default;z-index:0}
.service-card img{border-radius:10px;width:100%;height:100%;object-fit:cover;transition:filter .3s ease;}
.service-card::after{content:none}
.service-card::before{content:"";position:absolute;inset:0;border-radius:10px;border-bottom:6px solid #0095ff;pointer-events:none;z-index:2}
.service-card h3{position:absolute;left:0;right:0;bottom:5px;min-height:77px;margin:0;padding:16px 11px 11px;display:flex;align-items:center;gap:9px;color:white;font-size:14px;font-weight:800;line-height:1.18;z-index:1;background:linear-gradient(to bottom,rgba(3,15,28,0) 0%,rgba(3,18,35,.55) 28%,rgba(2,15,30,.91) 100%);border-radius:0 0 6px 6px;text-shadow:0 1px 3px #0009}
.service-card .service-icon{width:30px;height:30px;min-width:30px;flex-shrink:0;stroke:#fff;filter:drop-shadow(0 1px 2px #0007)}
.service-card .service-name{display:block;min-width:0}
@media(hover:hover) and (pointer:fine){.service-card:hover{transform:scale(1.075) translateY(-5px);box-shadow:0 16px 32px #061a3550;z-index:5}.service-card:hover img{filter:saturate(1.12) brightness(1.05)}}
@media(max-width:1050px){.service-card h3{font-size:12px;gap:6px;padding-left:8px;padding-right:6px}.service-card .service-icon{width:24px;height:24px;min-width:24px}}
@media(max-width:760px){.service-card h3{font-size:15px;gap:9px;padding:14px 10px 10px}.service-card .service-icon{width:28px;height:28px;min-width:28px}}
@media(max-width:390px){.service-card h3{font-size:12px;gap:6px;padding:12px 7px 9px}.service-card .service-icon{width:23px;height:23px;min-width:23px}}
@media(prefers-reduced-motion:reduce){.service-card,.service-card img{transition:none!important}}

/* Corrección: iconos compactos, nunca ocupan la fotografía */
.service-card .service-icon,.service-card h3 svg{width:25px!important;height:25px!important;min-width:25px!important;max-width:25px!important;max-height:25px!important;flex:0 0 25px!important;display:block!important;position:static!important;overflow:visible!important}
.service-card h3{min-height:64px!important;padding:14px 11px 11px!important;display:flex!important;align-items:center!important;gap:9px!important;background:linear-gradient(to bottom,rgba(4,14,28,0) 0%,rgba(4,16,32,.67) 42%,rgba(2,12,25,.94) 100%)!important}
.service-card .service-name{font-size:inherit;line-height:1.2}
@media(max-width:1050px){.service-card .service-icon,.service-card h3 svg{width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;max-height:21px!important;flex-basis:21px!important}}

/* Galería de trabajos: carrusel y visor de pantalla completa */
.projects{overflow:hidden}.gallery{position:relative}.gallery-viewport{overflow:hidden;padding:10px 5px 16px;margin:-10px -5px -16px}.gallery-track{display:flex;gap:14px;transition:transform .55s cubic-bezier(.22,.61,.36,1);will-change:transform}.gallery-slide{position:relative;flex:0 0 calc((100% - 42px)/4);height:205px;border:0;border-radius:12px;overflow:hidden;padding:0;background:#14283c;cursor:zoom-in;box-shadow:0 3px 13px #001a3620;transition:box-shadow .25s,transform .25s}.gallery-slide img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.gallery-slide:hover,.gallery-slide:focus-visible{box-shadow:0 10px 24px #001a3640;transform:translateY(-4px)}.gallery-slide:hover img,.gallery-slide:focus-visible img{transform:scale(1.07)}.gallery-slide:focus-visible{outline:3px solid #008dff;outline-offset:2px}.gallery-zoom{position:absolute;right:12px;bottom:12px;color:white;background:#051e35bd;border:1px solid #fff7;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font-size:25px;opacity:0;transition:opacity .2s}.gallery-slide:hover .gallery-zoom,.gallery-slide:focus-visible .gallery-zoom{opacity:1}.gallery-controls{display:flex;justify-content:center;align-items:center;gap:22px;margin-top:17px}.gallery-arrow{width:40px;height:40px;border:1px solid #b5cce4;border-radius:50%;background:white;color:#064381;font-size:30px;cursor:pointer;line-height:1}.gallery-arrow:hover{background:#064381;color:white}.gallery-counter{color:#37506c;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.lightbox{position:fixed;inset:0;background:rgba(2,8,16,.95);z-index:1000;display:none;align-items:center;justify-content:center;padding:60px 80px 45px}.lightbox.is-open{display:flex}.lightbox-figure{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:100%;max-height:100%;gap:13px}.lightbox-figure img{max-width:100%;max-height:calc(100dvh - 130px);width:auto;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 12px 50px #0008}.lightbox-figure figcaption{color:#dce6f1;font-size:14px}.lightbox-close,.lightbox-nav{position:absolute;border:0;color:white;background:#ffffff20;cursor:pointer;border-radius:50%;display:grid;place-items:center}.lightbox-close{top:16px;right:20px;width:48px;height:48px;font-size:37px;line-height:1}.lightbox-nav{top:50%;transform:translateY(-50%);width:48px;height:48px;font-size:40px}.lightbox-prev{left:18px}.lightbox-next{right:18px}.lightbox-close:hover,.lightbox-nav:hover{background:#1375cb}.lightbox button:focus-visible{outline:3px solid #5ab5ff;outline-offset:3px}body.lightbox-open{overflow:hidden}@media(max-width:900px){.gallery-slide{flex-basis:calc((100% - 14px)/2);height:230px}}@media(max-width:560px){.gallery-slide{flex-basis:100%;height:255px}.gallery-zoom{opacity:1}.lightbox{padding:70px 10px 60px}.lightbox-nav{top:auto;bottom:15px;transform:none;width:44px;height:44px}.lightbox-prev{left:calc(50% - 95px)}.lightbox-next{right:calc(50% - 95px)}.lightbox-figure img{max-height:calc(100dvh - 190px)}.lightbox-figure figcaption{font-size:12px}}@media(prefers-reduced-motion:reduce){.gallery-track,.gallery-slide,.gallery-slide img{transition:none!important}}

/* Galería compacta: franja horizontal, nunca imágenes a tamaño natural */
#proyectos .gallery{width:100%;max-width:100%;min-width:0}
#proyectos .gallery-viewport{width:100%;max-width:100%;overflow:hidden;position:relative;padding:3px 0 8px;margin:0}
#proyectos .gallery-track{display:flex;flex-wrap:nowrap;align-items:stretch;gap:14px;width:100%;min-width:0}
#proyectos .gallery-slide{display:block;position:relative;flex:0 0 calc((100% - 42px)/4);width:calc((100% - 42px)/4);min-width:0;height:170px;max-height:170px;aspect-ratio:auto;overflow:hidden;border:0;border-radius:12px;padding:0;cursor:zoom-in}
#proyectos .gallery-slide img{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center}
#proyectos .gallery-slide .gallery-zoom{z-index:2}
@media(max-width:900px){#proyectos .gallery-slide{flex-basis:calc((100% - 14px)/2);width:calc((100% - 14px)/2);height:175px;max-height:175px}}
@media(max-width:560px){#proyectos .gallery-slide{flex-basis:100%;width:100%;height:190px;max-height:190px}}

/* Iconografía de ¿Por qué elegirnos?: SVG escalables, alineados y sin símbolos de baraja */
.about-features > div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0}
.about-features .about-feature-icon{display:block;width:48px;height:48px;flex:none;color:#fff;stroke:#fff}
.about-features > div > span{display:block;font-size:14px;line-height:1.25;margin:0}
@media(max-width:390px){.about-features .about-feature-icon{width:39px;height:39px}.about-features > div > span{font-size:12px}}

/* Tres iconos SVG uniformes, sin fondo ni raster */
.about-features{grid-template-columns:repeat(3,minmax(0,1fr))}
.about-features .about-feature-icon{width:54px;height:54px;object-fit:contain;overflow:visible;flex-shrink:0}
.about-features>div{min-width:0}
@media(max-width:390px){.about-features .about-feature-icon{width:43px;height:43px}}

/* SVG original aportado por el cliente, convertido a blanco sin alterar sus trazos */
.about-features img.handshake-icon{display:block;width:54px;height:54px;object-fit:contain;filter:brightness(0) invert(1);background:transparent;border:0;padding:0}
@media(max-width:390px){.about-features img.handshake-icon{width:43px;height:43px}}

/* Iconos de beneficios: trazos blancos uniformes y proporciones consistentes */
.benefit-row>div{gap:17px;min-width:0}
.benefit-row .benefit-icon{display:block;width:43px;height:43px;flex:0 0 43px;color:#fff;overflow:visible}
.benefit-row>div>span{font-size:15px;line-height:1.25;font-weight:700}
@media(max-width:760px){.benefit-row .benefit-icon{width:32px;height:32px;flex-basis:32px}.benefit-row>div>span{font-size:14px}}

/* Características reales de Castillo: cuatro distintivos dorados */
.about-features{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:23px;align-items:stretch}
.about-features .about-feature{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:11px;padding:4px 12px 0;border-right:1px solid rgba(239,191,77,.58);min-width:0;text-align:center}
.about-features .about-feature:last-child{border-right:0}
.about-features .about-feature-icon{display:block;width:62px;height:62px;flex:0 0 62px;color:#e8b94c;stroke:#e8b94c;overflow:visible}
.about-features .about-feature>span{font-size:13px;line-height:1.35;font-weight:800;text-transform:uppercase;color:#fff;margin:0;display:block}
@media(max-width:1100px){.about-features .about-feature{padding-inline:6px}.about-features .about-feature-icon{width:50px;height:50px;flex-basis:50px}.about-features .about-feature>span{font-size:11px}}
@media(max-width:520px){.about-features{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:22px}.about-features .about-feature:nth-child(2){border-right:0}.about-features .about-feature:nth-child(-n+2){padding-bottom:18px;border-bottom:1px solid rgba(239,191,77,.4)}.about-features .about-feature-icon{width:54px;height:54px;flex-basis:54px}.about-features .about-feature>span{font-size:12px}}

/* Titular solicitado y casco original */
.hero-copy .hero-new-title em{font-style:italic;color:#fff;font-weight:650}
.hero-copy .hero-new-title span{color:#159cff}
.about-features img.about-helmet{display:block;object-fit:contain;filter:invert(79%) sepia(55%) saturate(500%) hue-rotate(349deg) brightness(100%) contrast(95%);stroke:none}

/* Corrección: titular con tipografía original, texto continuo y cuatro características */
.hero-copy .hero-new-title{font-family:Arial,Helvetica,sans-serif;font-weight:800;font-style:normal;letter-spacing:-.035em;line-height:1.12;font-size:clamp(27px,3.1vw,48px);max-width:none;white-space:nowrap;color:#fff;margin:0 0 20px}
@media(max-width:900px){.hero-copy .hero-new-title{white-space:normal;font-size:clamp(29px,5.5vw,45px)}}
.about-features{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%;}
.about-features .about-feature{min-width:0}
@media(max-width:520px){.about-features{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* HERO editorial: estilo de referencia, adaptado a azul corporativo */
.hero-copy{width:min(610px,56vw);max-width:100%}
.hero-copy .hero-new-title{display:flex;flex-direction:column;align-items:flex-start;gap:0;white-space:normal!important;font-family:Impact,"Arial Narrow","Roboto Condensed",Arial,sans-serif!important;font-size:clamp(43px,5.2vw,86px)!important;font-weight:900!important;font-style:italic!important;letter-spacing:-.035em!important;line-height:.94!important;text-transform:uppercase;margin:0 0 15px!important;transform:skew(-5deg);transform-origin:left center;text-shadow:0 2px 10px rgba(0,0,0,.18)}
.hero-copy .hero-new-title .hero-headline-line{display:block;color:#fff;white-space:nowrap}
.hero-copy .hero-new-title .hero-headline-accent{color:#159cff}
.hero-tagline{display:inline-block;border:2px solid #159cff;border-left:5px solid #159cff;padding:8px 13px;color:#fff;font-size:clamp(11px,1.1vw,15px);font-weight:800;letter-spacing:.08em;transform:skew(-5deg);margin:2px 0 18px;background:rgba(4,18,34,.72)}
@media(max-width:1050px){.hero-copy{width:min(560px,66vw)}.hero-copy .hero-new-title{font-size:clamp(40px,5.5vw,65px)!important}}
@media(max-width:700px){.hero-copy{width:100%}.hero-copy .hero-new-title{font-size:clamp(35px,9.2vw,62px)!important}.hero-tagline{font-size:10px;letter-spacing:.025em;padding:7px 8px}.hero-copy .hero-new-title .hero-headline-line{white-space:normal}}
@media(max-width:370px){.hero-copy .hero-new-title{font-size:33px!important}}

/* Ajuste final hero: título visible, lema discreto y CTA sin recortes */
.hero{height:auto!important;min-height:460px!important;overflow:hidden}
.hero-inner{min-height:460px!important;height:auto!important;padding-top:34px;padding-bottom:35px;align-items:center}
.hero-copy{width:min(560px,55%)!important;max-width:100%;min-width:0}
.hero-copy .hero-new-title{font-size:clamp(34px,4.1vw,64px)!important;line-height:1.01!important;letter-spacing:-.025em!important;transform:none!important;margin:0 0 14px!important;max-width:100%;}
.hero-copy .hero-new-title .hero-headline-line{white-space:nowrap!important;max-width:100%}
.hero-tagline{font-size:clamp(10px,.83vw,12px)!important;font-weight:700!important;letter-spacing:.045em!important;line-height:1.35;padding:6px 10px!important;margin:0 0 17px!important;transform:none!important;border-width:1px!important;border-left-width:3px!important;max-width:100%}
.hero-copy p{margin-bottom:17px;font-size:clamp(14px,1.15vw,16px);max-width:490px}
@media(max-width:900px){.hero{min-height:430px!important}.hero-inner{min-height:430px!important;padding-top:30px;padding-bottom:30px}.hero-copy{width:min(520px,68%)!important}.hero-copy .hero-new-title{font-size:clamp(34px,5.4vw,51px)!important}}
@media(max-width:700px){.hero{min-height:0!important}.hero-inner{min-height:0!important;padding:38px 0 36px}.hero-copy{width:100%!important}.hero-copy .hero-new-title{font-size:clamp(31px,8.1vw,51px)!important;letter-spacing:-.035em!important}.hero-copy .hero-new-title .hero-headline-line{white-space:normal!important}.hero-tagline{font-size:10px!important;letter-spacing:0!important}.hero-copy p{font-size:15px}}
@media(max-width:390px){.hero-copy .hero-new-title{font-size:clamp(29px,8vw,35px)!important}}

/* Servicios oficiales: cinco tarjetas equilibradas */
@media(min-width:761px){.service-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.service-card{height:225px}}
@media(min-width:761px) and (max-width:1100px){.service-card{height:200px}.service-card h3{font-size:12px}}
@media(max-width:760px){.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.service-card:last-child{grid-column:1/-1;max-width:calc(50% - 6px);width:100%;justify-self:center}}
@media(max-width:460px){.service-card:last-child{max-width:100%}.service-card{height:205px}}

/* Tarjetas panorámicas: cinco servicios ocupan todo el ancho en escritorio */
@media (min-width: 761px) {
  .services .service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }
  .services .service-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1.48 / 1;
    min-width: 0;
  }
  .services .service-card img { width: 100%; height: 100%; object-fit: cover; }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .services .service-card { aspect-ratio: 1.32 / 1; }
  .services .service-card h3 { font-size: 11px; }
}

/* Ajuste final: servicios con mayor presencia visual y proporciones equilibradas */
@media (min-width: 1101px) {
  .services .service-grid {grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;padding-top:18px;padding-bottom:24px;}
  .services .service-card {height:clamp(270px,17vw,340px);aspect-ratio:auto;}
  .services .service-card h3 {font-size:clamp(14px,1.02vw,18px);min-height:84px!important;padding:22px 13px 16px!important;}
}
@media (min-width: 761px) and (max-width: 1100px) {
  .services .service-grid {gap:12px;}
  .services .service-card {height:clamp(220px,25vw,280px);aspect-ratio:auto;}
  .services .service-card h3 {font-size:13px;min-height:75px!important;}
}
@media (max-width:760px) {
  .services .service-card {height:235px;aspect-ratio:auto;}
  .services .service-card:last-child {max-width:100%;}
}
@media (max-width:460px) {.services .service-card {height:220px;}}

/* Ajuste final: cinco tarjetas anchas y bajas, ocupando el ancho disponible */
@media (min-width: 1101px) {
  .services > .container { width: min(1900px, 96vw); max-width: none; }
  .services .service-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; padding:14px 0 22px; }
  .services .service-card { height:clamp(175px, 12vw, 235px); min-width:0; aspect-ratio:auto; }
  .services .service-card h3 { font-size:clamp(12px,.91vw,17px); min-height:65px!important; padding:14px 10px 10px!important; }
}
@media (min-width:761px) and (max-width:1100px) {
  .services > .container { width:97%; max-width:none; }
  .services .service-grid { gap:9px; padding-left:0; padding-right:0; }
  .services .service-card { height:clamp(155px,17vw,190px); aspect-ratio:auto; }
  .services .service-card h3 { font-size:12px; min-height:61px!important; padding:10px 7px 8px!important; }
}

/* Interacciones ligeras: no cambian la estructura ni las dimensiones */
.scroll-progress{position:fixed;top:0;left:0;width:0;height:3px;background:linear-gradient(90deg,#5cc4ff,#1378d4);z-index:99999;pointer-events:none;transition:width .12s linear;box-shadow:0 0 10px rgba(21,156,255,.5)}
@media(prefers-reduced-motion:no-preference){
  .js-motion .reveal-on-scroll{opacity:0;transform:translate3d(0,22px,0);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:var(--reveal-delay,0ms)}
  .js-motion .reveal-on-scroll.is-visible{opacity:1;transform:translateZ(0)}
  .js-motion .hero-copy>*{animation:hero-appear .7s both cubic-bezier(.2,.7,.2,1)}
  .js-motion .hero-copy>*:nth-child(2){animation-delay:.12s}
  .js-motion .hero-copy>*:nth-child(3){animation-delay:.22s}
  .js-motion .hero-copy>*:nth-child(4){animation-delay:.3s}
  @keyframes hero-appear{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
  .hero-cta,.contact-cta{position:relative;overflow:hidden;isolation:isolate;transition:transform .24s ease,box-shadow .24s ease,background-color .24s ease}
  .hero-cta::after,.contact-cta::after{content:"";position:absolute;inset:0;transform:translateX(-145%) skewX(-20deg);width:42%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.20),transparent);pointer-events:none;transition:transform .6s ease}
  .hero-cta:hover::after,.contact-cta:hover::after{transform:translateX(330%) skewX(-20deg)}
  .hero-cta:hover,.contact-cta:hover{transform:translateY(-3px);box-shadow:0 12px 25px rgba(0,0,0,.24)}
  .benefit-row>div,.about-feature{transition:transform .25s ease}
  .benefit-row>div:hover,.about-feature:hover{transform:translateY(-5px)}
  .service-card{transition:transform .3s ease,box-shadow .3s ease!important;will-change:auto}
  .service-card:hover{transform:translateY(-5px) scale(1.025)!important;box-shadow:0 16px 28px rgba(0,0,0,.25);z-index:2}
  .service-card img{transition:transform .5s ease}
  .service-card:hover img{transform:scale(1.055)}
  .gallery-slide img{transition:transform .45s ease,filter .3s ease}
  .gallery-slide:hover img{transform:scale(1.055);filter:brightness(1.08)}
  .floating-wa{transition:transform .25s ease,box-shadow .25s ease}
  .floating-wa:hover{transform:translateY(-4px) scale(1.06);box-shadow:0 10px 28px rgba(0,0,0,.25)}
}
@media(prefers-reduced-motion:reduce){.scroll-progress{transition:none}.reveal-on-scroll{opacity:1!important;transform:none!important}.hero-copy>*{animation:none!important}}

/* Animaciones visibles y progresivas; se mantiene el contenido accesible si falla JS */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo {animation: castillo-hero-zoom 13s ease-in-out infinite alternate;transform-origin:center center;}
  @keyframes castillo-hero-zoom {from {transform:scale(1)} to {transform:scale(1.065)}}
  .hero-new-title .hero-headline-line {display:block;animation:castillo-hero-enter .85s both;}
  .hero-new-title .hero-headline-line:nth-child(2) {animation-delay:.17s}
  .hero-new-title .hero-headline-line:nth-child(3) {animation-delay:.34s}
  @keyframes castillo-hero-enter {from {opacity:0;transform:translateY(28px)} to {opacity:1;transform:translateY(0)}}
  .hero-cta {animation:castillo-cta-breathe 3.2s ease-in-out 1.5s infinite;}
  @keyframes castillo-cta-breathe {0%,100%{box-shadow:0 0 0 0 rgba(50,151,255,0)}50%{box-shadow:0 0 0 8px rgba(50,151,255,.18)}}
  .motion-ready .motion-reveal:not(.motion-shown) {opacity:0;transform:translateY(35px);}
  .motion-ready .motion-reveal {transition:opacity .75s ease,transform .75s cubic-bezier(.2,.8,.2,1);transition-delay:var(--motion-delay,0ms)}
  .motion-ready .motion-reveal.motion-shown {opacity:1;transform:translateY(0)}
  .service-card:hover {transform:translateY(-7px) scale(1.018)!important;}
}
@media (prefers-reduced-motion: reduce) {.motion-reveal {opacity:1!important;transform:none!important;transition:none!important}.hero-photo,.hero-cta,.hero-headline-line{animation:none!important}}

/* Encabezado y portada sin animaciones; se conservan efectos del resto del sitio. */
.header, .header *, .header *::before, .header *::after,
.hero, .hero *, .hero *::before, .hero *::after {
  animation: none !important;
  transition: none !important;
}
.hero-photo, .hero-new-title .hero-headline-line, .hero-copy > * {
  animation: none !important;
}
.hero-cta::after { display:none !important; }
.hero-cta:hover {transform:none !important;box-shadow:none !important;}

.service-card{cursor:pointer!important}
.service-card:focus-visible{outline:3px solid #00a4ff;outline-offset:4px}
.castillo-overlay[hidden]{display:none!important}
.castillo-overlay{position:fixed;inset:0;z-index:1000;background:rgba(3,12,25,.78);display:flex;align-items:center;justify-content:center;padding:18px;overflow-y:auto}
.castillo-dialog{position:relative;background:#fff;color:#142032;width:min(520px,100%);border-radius:16px;padding:clamp(22px,4vw,38px);box-shadow:0 25px 70px #0007;max-height:calc(100dvh - 36px);overflow:auto}
.castillo-dialog h2{font-size:clamp(23px,4vw,31px);line-height:1.15;margin:7px 0 14px}
.castillo-dialog p{line-height:1.6}
.castillo-kicker{color:#0755a2;font-size:12px;font-weight:900;letter-spacing:1.4px;margin:0!important}
.castillo-detail{background:#f0f5fb;padding:12px 14px;border-left:4px solid #0875d6;border-radius:4px}
.castillo-close{position:absolute;top:9px;right:12px;border:0;background:transparent;font-size:31px;cursor:pointer;color:#26374a;line-height:1;padding:6px 10px}
.castillo-wa{display:block;text-align:center;background:#078c3a;color:white!important;font-weight:800;padding:14px 17px;border-radius:9px;margin-top:20px}
.castillo-wa:hover,.castillo-wa:focus-visible{background:#066c2e}
.castillo-secondary{display:block;margin:15px auto 0;border:0;background:transparent;color:#34465b;text-decoration:underline;cursor:pointer;font-size:14px;padding:10px}
body.castillo-modal-open{overflow:hidden}
