/*
Theme Name: Hilario Gutenberg
Description: Web corporativa editable por bloques basada en los textos e imágenes de Aplicaciones Hilario. Incluye importación explícita de contenido y formulario de contacto.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Author: Hilario
License: GPL-2.0-or-later
Text Domain: hilario-gutenberg
*/
:root{--ah-red:#ef3b2d;--ah-ink:#292929;--ah-gray:#f3f4f3;--ah-muted:#62676b;--ah-border:#e5e7e5}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ah-ink);font-family:Arial,Helvetica,sans-serif;line-height:1.7}h1,h2,h3,h4{line-height:1.2;letter-spacing:-.035em}h1{font-size:clamp(2.25rem,5vw,4.4rem)}h2{font-size:clamp(1.6rem,3vw,2.5rem)}h3{font-size:1.2rem}a{color:inherit;text-underline-offset:.2em}a:hover{color:var(--ah-red)}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ef3b2d;outline-offset:4px}figure{margin:0}img{max-width:100%;height:auto}p{margin:0 0 1.25rem}.wp-block-heading{margin:1.5rem 0 1rem}.wp-block-buttons{margin:1.4rem 0}.wp-block-button__link,.wp-element-button{background:var(--ah-red);color:#fff;border:0;border-radius:4px;font-size:1rem;font-weight:700;padding:.85rem 1.3rem;text-decoration:none;cursor:pointer}.wp-block-button__link:hover,.wp-element-button:hover{background:#cf2b20;color:#fff}.ah-site-header{background:#fff;border-bottom:1px solid var(--ah-border)}.ah-header-top{max-width:1180px;margin:auto;padding:22px 28px;display:flex;justify-content:space-between;align-items:center;gap:24px}.ah-brand{max-width:310px}.ah-brand figure{margin:0}.ah-header-contact{display:flex;align-items:center;gap:24px;font-size:.95rem}.ah-header-contact p,.ah-header-contact .wp-block-buttons{margin:0}.ah-navigation{border-top:1px solid var(--ah-border);padding:16px 28px}.ah-navigation>.wp-block-navigation{max-width:1124px;margin:auto}.wp-block-navigation a{text-decoration:none;font-size:.98rem;font-weight:600}.wp-block-navigation__submenu-container{border-color:var(--ah-border)!important;min-width:230px!important}.ah-hero{position:relative;isolation:isolate;min-height:310px;padding:70px max(28px,calc((100vw - 1124px)/2));background:var(--ah-ink);color:#fff;overflow:hidden}.ah-hero-home{min-height:540px;display:flex;flex-direction:column;justify-content:center}.ah-hero>figure{position:absolute;inset:0;z-index:-2;width:100%;height:100%;margin:0}.ah-hero>figure img{height:100%;width:100%;object-fit:cover}.ah-hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(21,22,23,.88),rgba(21,22,23,.48))}.ah-hero h1{max-width:800px;margin:.5rem 0 1.2rem}.ah-eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.14em}.ah-hero-subtitle{font-size:1.08rem;color:#ebebeb}.ah-hero .wp-block-buttons{margin:.6rem 0}.ah-page-content{padding:54px 0}.ah-container_12{max-width:1180px;margin:auto;padding:0 28px}.ah-row{display:flex;flex-wrap:wrap;gap:30px;margin-bottom:36px}.ah-grid_12{width:100%}.ah-grid_8{width:calc(66.666% - 15px)}.ah-grid_7{width:calc(58.333% - 15px)}.ah-grid_6{width:calc(50% - 15px)}.ah-grid_5{width:calc(41.666% - 15px)}.ah-grid_4{width:calc(33.333% - 20px)}.ah-grid_3{width:calc(25% - 23px)}.ah-grid_2{flex:1;min-width:160px}.ah-grid_inside{display:flex;flex-wrap:wrap;gap:22px;margin:32px 0}.ah-grid_inside>div{border:1px solid var(--ah-border);border-radius:8px;padding:18px;background:white}.ah-grid_inside img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:5px}.ah-block-2{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;width:100%;margin:22px 0 34px}.ah-block-2 .ah-grid_4{width:auto}.ah-box-1{background:white;color:var(--ah-ink);border:1px solid var(--ah-border);border-radius:8px;overflow:hidden;height:100%;padding:0 0 20px}.ah-box-1 img{width:100%;aspect-ratio:4/3;object-fit:cover}.ah-box-1 h3,.ah-box-1 p,.ah-box-1 .wp-block-buttons{margin-left:22px;margin-right:22px}.ah-box-1 h3{font-size:1.3rem}.ah-inside-1{padding:0 22px}.ah-inside-1 p{margin-left:0;margin-right:0}.ah-bg-1{background:var(--ah-gray);padding:28px 0 8px}.ah-text-2{font-size:2rem}.ah-text-3{font-size:1.18rem;color:var(--ah-muted)}.ah-bg-2{background:#f4f4f3;padding:35px 0;margin-top:35px}.ah-bg-2 .ah-row{margin:0}.ah-img-circle{width:58px}.ah-block-3{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.ah-block-3 img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px}.ah-box-2{overflow:hidden;border-radius:6px}.ah-image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.ah-logo-grid{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:26px;margin:38px 0}.ah-logo-grid>div{width:130px}.ah-logo-grid img{max-height:70px;object-fit:contain}.ah-title-1,.ah-text-7{color:#d93227}.ah-cta{background:var(--ah-ink);color:white;padding:55px 28px;text-align:center}.ah-cta h2{margin-top:0}.ah-cta .wp-block-buttons{justify-content:center}.ah-site-footer{background:#202222;color:#ddd;padding:44px 28px 20px}.ah-footer-inner{max-width:1124px;margin:auto;display:grid;grid-template-columns:1.3fr 1.3fr 1fr;gap:46px}.ah-footer-inner h3{color:white}.ah-footer-inner a{text-decoration:none}.ah-copyright{max-width:1124px;margin:28px auto 0;padding-top:24px;border-top:1px solid #454545;font-size:.85rem;color:#a5a5a5}.ah-contact label{display:block;font-weight:600;margin:0 0 18px}.ah-contact input,.ah-contact textarea{display:block;width:100%;margin-top:6px;border:1px solid #ccc;border-radius:4px;padding:12px;font:inherit;background:#fff;color:#222}.ah-honey{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.ah-form-note{font-size:.85rem;color:#62676b}.ah-contact-editor{border:1px dashed #aaa;padding:25px}.wp-block-list{padding-left:1.4rem}.wp-block-list li{margin-bottom:.7rem}.ah-map_wrapper .wp-block-buttons{margin-bottom:30px}.ah-address p{margin-bottom:.65rem}
@media(max-width:800px){.ah-header-top{flex-direction:column;align-items:flex-start;padding:20px}.ah-header-contact{flex-wrap:wrap;gap:12px}.ah-navigation{padding:15px 20px}.ah-hero{padding:55px 22px}.ah-hero-home{min-height:460px}.ah-container_12{padding:0 22px}.ah-row{gap:22px}.ah-row>[class*=ah-grid_]{width:100%}.ah-block-2{grid-template-columns:1fr}.ah-grid_inside{display:grid;grid-template-columns:repeat(2,1fr)}.ah-grid_2{min-width:0}.ah-footer-inner{grid-template-columns:1fr;gap:15px}.ah-logo-grid{gap:20px}.ah-logo-grid>div{width:90px}.ah-page-content{padding-top:35px}.ah-hero-subtitle{font-size:1rem}}
@media(max-width:480px){.ah-block-3,.ah-image-grid{grid-template-columns:repeat(2,1fr)}.ah-grid_inside{grid-template-columns:1fr}.ah-header-contact .wp-block-buttons{display:none}}
/* Hilario: spacing, aligned cards and responsive galleries - 2026-10-08 */.wp-site-blocks>main,.wp-site-blocks>.ah-site-footer,main>.entry-content,.entry-content>.ah-hero,.entry-content>.ah-page-content,.entry-content>.ah-cta{margin-block-start:0}.ah-row>*,.ah-block-2>*,.ah-block-3>*,.ah-image-grid>*,.ah-grid_inside>*,.ah-logo-grid>*,.ah-footer-inner>*{margin-block-start:0;margin-block-end:0;min-width:0}.ah-row{align-items:stretch;row-gap:32px}.ah-grid_8{width:calc(66.666666% - 10px)}.ah-grid_7{width:calc(58.333333% - 12.5px)}.ah-grid_5{width:calc(41.666666% - 17.5px)}.ah-grid_3{width:calc(25% - 22.5px)}.ah-page-content{padding:64px 0}.ah-page-content>.ah-container_12+.ah-container_12,.ah-page-content>.ah-bg-1+.ah-container_12{margin-top:64px}.ah-bg-1{padding:44px 0}.ah-bg-1 .ah-row:last-child{margin-bottom:0}.ah-block-2{margin:0;gap:28px}.ah-box-1{display:flex;flex-direction:column;padding-bottom:24px;border-radius:10px}.ah-box-1>.ah-inside{margin:0}.ah-box-1 h3{margin:24px 24px 18px;line-height:1.35}.ah-box-1>p{padding:0;margin:0 24px 24px}.ah-box-1>.wp-block-buttons{margin: auto 24px 0;padding-top:8px}.ah-box-1 img,.ah-box-2 img,.ah-grid_inside img{display:block}.ah-row>[class*=ah-grid_]>.wp-block-heading:first-child{margin-top:0}.ah-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;width:100%;margin:0}.ah-projects>.ah-grid_4{width:auto;margin:0}.ah-projects h3{font-size:1.15rem;margin-bottom:0}.ah-projects h3 a{text-decoration:none}.ah-row>.wp-block-heading{width:100%;margin:0}.ah-block-3{gap:20px;margin-top:0}.ah-bg-2{padding:40px 0;margin-top:56px}.ah-bg-2 .ah-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.ah-bg-2 .ah-row>[class*=ah-grid_]{width:auto}.ah-box-3 .ah-clearfix{display:flex;align-items:flex-start;gap:18px}.ah-box-3 .ah-img-circle{flex:0 0 64px;width:64px;height:64px;background:#d93227;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0;padding:16px}.ah-img-circle figure{width:32px;margin:0}.ah-img-circle img{display:block;width:32px;height:32px;object-fit:contain}.ah-box-3 .ah-extra-wrap{flex:1;min-width:0;margin:0}.ah-box-3 h3{margin:0 0 12px;line-height:1.4;letter-spacing:-.02em}.ah-box-3 p{margin:0;line-height:1.7}.ah-bg-2 .ah-box-3 .ah-clearfix{align-items:center}.ah-bg-2 .ah-box-3 h3{margin:0}.ah-block-5{padding-bottom:40px;border-bottom:1px solid var(--ah-border);margin-bottom:48px}.ah-logo-grid>div{display:flex;align-items:center;justify-content:center;height:80px}.ah-logo-grid figure{margin:0}.ah-logo-grid img{display:block;width:130px;height:70px;object-fit:contain}.ah-footer-inner h3{margin-top:0;margin-bottom:18px}.ah-footer-inner p{margin-bottom:14px;overflow-wrap:anywhere}.ah-header-top>*,.ah-header-contact>*{margin-block-start:0}.ah-hero>.ah-eyebrow{margin:0 0 12px}.ah-hero>.ah-hero-subtitle{margin:0 0 20px}.ah-hero .wp-block-buttons{gap:14px;margin-top:8px}.ah-cta>p{max-width:760px;margin:0 auto 24px}.ah-cta>.wp-block-buttons{margin:0}@media(max-width:1000px) and (min-width:801px){.ah-box-3 .ah-clearfix{flex-direction:column}.ah-bg-2 .ah-box-3 .ah-clearfix{align-items:flex-start}.ah-box-3 h3{font-size:1.05rem}}@media(max-width:800px){.ah-page-content{padding:40px 0}.ah-page-content>.ah-bg-1+.ah-container_12,.ah-page-content>.ah-container_12+.ah-container_12{margin-top:40px}.ah-row>[class*=ah-grid_]{width:100%}.ah-row{gap:28px;margin-bottom:32px}.ah-block-2{grid-template-columns:1fr;gap:28px}.ah-projects{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.ah-bg-2 .ah-row{grid-template-columns:1fr;gap:28px}.ah-bg-2{margin-top:40px;padding:32px 0}.ah-box-3 .ah-clearfix{gap:16px}.ah-block-5{padding-bottom:32px;margin-bottom:36px}.ah-footer-inner{gap:30px}.ah-header-contact{font-size:.9rem}.ah-brand{max-width:260px}.ah-hero h1{font-size:clamp(2rem,7vw,3.5rem);overflow-wrap:break-word}.ah-hero{padding:44px 22px}.ah-block-3{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}@media(max-width:480px){.ah-projects{grid-template-columns:1fr;gap:24px}.ah-box-1 h3{margin:22px 22px 16px}.ah-box-1>p{margin:0 22px 22px}.ah-box-1>.wp-block-buttons{margin:auto 22px 0}.ah-hero .wp-block-buttons{flex-direction:column;align-items:stretch}.ah-hero .wp-block-button__link{width:100%;text-align:center}.ah-text-2{font-size:1.6rem}.ah-logo-grid img{width:90px;height:60px}.ah-site-footer{padding:36px 22px 20px}.ah-cta{padding:44px 22px}}
/* Explicit separation between card headings and body copy */
.ah-block-2 .ah-box-1>.ah-inside{padding-bottom:20px}.ah-block-2 .ah-box-1>.ah-inside>h3{margin-bottom:0}

/* Editorial page layouts - 2026-10-08 */
.ah-pro{max-width:1180px;margin:0 auto!important;padding:72px 28px}.ah-pro>*{margin-block-start:0}.ah-pro-section{margin:0 0 72px!important}.ah-pro-section:last-child{margin-bottom:0!important}.ah-pro-split{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:56px;align-items:center}.ah-pro-split>*{min-width:0;margin:0}.ah-pro h2{margin:0 0 24px;line-height:1.18;font-size:clamp(1.7rem,3vw,2.6rem);max-width:800px}.ah-pro h3{font-size:1.3rem;line-height:1.35;margin:0 0 16px;overflow-wrap:anywhere}.ah-pro p{margin:0 0 20px}.ah-pro .ah-pro-kicker{color:#c93227;font-size:.76rem;letter-spacing:.14em;font-weight:700;text-transform:uppercase;margin-bottom:14px}.ah-pro-lead{font-size:1.15rem;line-height:1.7;color:#51585b;max-width:760px}.ah-pro-photo{margin:0!important}.ah-pro-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px}.ah-pro-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:28px 0 0!important}.ah-pro-grid>*{min-width:0;margin:0!important}.ah-pro-card{padding:28px;border:1px solid #e4e6e5;border-radius:12px;background:#fff;display:flex;flex-direction:column}.ah-pro-card p:last-child{margin-bottom:0}.ah-pro-card .ah-pro-number{color:#c93227;font-weight:700;font-size:1.8rem;margin-bottom:24px}.ah-pro-panel{padding:44px;background:#f4f5f3;border-radius:16px}.ah-pro-panel .ah-pro-card{border:0}.ah-pro-service{padding:0;overflow:hidden}.ah-pro-service>figure{margin:0}.ah-pro-service>figure img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.ah-pro-service>h3{margin:24px 24px 16px}.ah-pro-service>p{margin:0 24px 24px;color:#586064}.ah-pro-service>.ah-pro-link{margin-top:auto;padding-top:4px}.ah-pro-link a{color:#c93227;font-weight:700;text-decoration:none;display:inline-block;line-height:1.5}.ah-pro-link a:hover{text-decoration:underline}.ah-pro-service h3 a{text-decoration:none}.ah-pro-quote{border-top:3px solid #d93227;background:#fafaf9}.ah-pro-quote p:first-child{font-size:1rem}.ah-pro-quote p:last-child{margin-top:auto;font-weight:700}.ah-pro-breadcrumb{font-size:.88rem;margin-bottom:32px!important;color:#686e72}.ah-pro-breadcrumb a{color:#c93227}.ah-pro .wp-block-buttons{margin:24px 0 0;gap:14px}.ah-pro-list{padding-left:1.2rem}.ah-pro-list li{margin-bottom:12px}.ah-pro h2,.ah-pro h3,.ah-hero h1{overflow-wrap:break-word}.ah-pro-plainhero{background:#252b2d;min-height:260px}.ah-pro-plainhero h1{max-width:1040px;font-size:clamp(2.2rem,4.5vw,3.8rem)}.ah-pro-plainhero:after{background:linear-gradient(120deg,#252b2d,#383e3d)}.ah-grid_inside h3{overflow-wrap:anywhere}.ah-pro-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){.ah-pro-split{gap:30px}.ah-pro-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ah-pro-panel{padding:30px}}@media(max-width:650px){.ah-pro{padding:44px 22px}.ah-pro-section{margin-bottom:44px!important}.ah-pro-split,.ah-pro-grid,.ah-pro-grid-2{grid-template-columns:minmax(0,1fr)}.ah-pro-split{gap:28px}.ah-pro-panel{padding:26px 20px}.ah-pro-card{padding:24px}.ah-pro-service{padding:0}.ah-pro h2{font-size:1.85rem}.ah-pro h3{font-size:1.22rem}.ah-pro-plainhero{min-height:230px}.ah-pro-plainhero h1{font-size:2.15rem}.ah-pro-lead{font-size:1.05rem}.ah-pro-grid{gap:20px}}

.ah-pro-service>p:last-child{margin-bottom:24px}.ah-pro-contact{align-items:start}.ah-pro-contact a{overflow-wrap:anywhere}.ah-pro-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:28px 0 0!important}.ah-pro-gallery>figure{margin:0!important;min-width:0}.ah-pro-gallery img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;transition:filter .2s}.ah-pro-gallery a:hover img{filter:brightness(.92)}.ah-pro-logo{margin:0!important}@media(max-width:900px){.ah-pro-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.ah-pro-gallery{grid-template-columns:minmax(0,1fr)}.ah-pro-gallery{gap:18px}}

.ah-pro-gallery.wp-block-group figure img{width:100%!important;height:auto}.ah-pro-contact .ah-pro-panel{min-width:0}

@media(max-width:650px){.ah-pro-plainhero h1{font-size:clamp(1.7rem,8vw,2.15rem);line-height:1.2}}

/* Instagram and responsive contact map */
.ah-navigation{display:flex;align-items:center;gap:24px;padding:12px max(28px,calc((100% - 1124px)/2))}.ah-navigation>.wp-block-navigation{flex:1;min-width:0;margin:0}.wp-block-social-links.ah-social-menu,.wp-block-social-links.ah-social-footer{margin:0!important;gap:0;flex-shrink:0;list-style:none;padding:0}.ah-social-menu .wp-social-link,.ah-social-footer .wp-social-link{margin:0!important}.wp-block-social-links.ah-social-menu .wp-social-link{color:#292929}.wp-block-social-links.ah-social-footer .wp-social-link{color:#fff}.wp-block-social-links.ah-social-menu .wp-social-link a,.wp-block-social-links.ah-social-footer .wp-social-link a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:1px solid #dedfdd;border-radius:10px;transition:background .2s,color .2s,border-color .2s}.wp-block-social-links.ah-social-footer .wp-social-link a{border-color:#606362}.wp-block-social-links.ah-social-menu .wp-social-link svg,.wp-block-social-links.ah-social-footer .wp-social-link svg{width:24px;height:24px}.wp-block-social-links.ah-social-menu .wp-social-link a:hover,.wp-block-social-links.ah-social-footer .wp-social-link a:hover{background:#d93227;border-color:#d93227;color:#fff}.ah-footer-company .ah-social-footer{margin-top:20px!important}.ah-map-embed{width:100%;overflow:hidden;border:1px solid #e4e6e5;border-radius:16px;background:#f4f5f3;margin:24px 0}.ah-map-embed iframe{display:block;width:100%;height:420px;border:0}.ah-contact-map .wp-block-buttons{margin-top:20px}@media(max-width:800px){.ah-navigation{padding:10px 22px;gap:18px}.ah-map-embed iframe{height:340px}}@media(max-width:480px){.ah-map-embed iframe{height:320px}}
