/* ATB Modern 0.2 — Hestia 3.0.1. Estilos solamente. */
body.atb-modern {
  --atb-navy:#142963; --atb-red:#a91d35; --atb-ink:#26364b;
  --atb-paper:#fff; --atb-soft:#f4f7fb; --atb-line:#d4dce8;
  --atb-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-family:var(--atb-font); font-size:16px; line-height:1.65;
  background:var(--atb-soft);
}
.atb-modern .hestia-title,.atb-modern .title,.atb-modern .card-title,.atb-modern .info-title,
.atb-modern .navbar,.atb-modern .sub-title,.atb-modern .wpforms-container {font-family:var(--atb-font);}
.atb-modern .navbar.navbar-default:not(.navbar-transparent),
.atb-modern .navbar.navbar-default:not(.navbar-transparent) .dropdown-menu {background:#fff;color:#142963;}
.atb-modern .navbar.navbar-default:not(.navbar-transparent) {box-shadow:0 1px 0 #d4dce8,0 5px 24px rgba(20,41,99,.07);}
.atb-modern .navbar.navbar-default:not(.navbar-transparent) .navbar-nav>li>a,
.atb-modern .navbar.navbar-default:not(.navbar-transparent) .dropdown-menu>li>a {color:#142963;font-weight:650;text-transform:none;letter-spacing:.01em;}
.atb-modern .navbar.navbar-default:not(.navbar-transparent) .navbar-nav>li>a:hover,
.atb-modern .navbar.navbar-default:not(.navbar-transparent) .dropdown-menu>li>a:hover {text-decoration:underline;text-underline-offset:.25em;}
.atb-modern .navbar .navbar-header .navbar-brand img {object-fit:contain;}
/* Mantener la fotografía, el contenido y la navegación nativa del carrusel. */
.atb-modern.home #carousel-hestia-generic .header-filter:before {background:linear-gradient(110deg,rgba(10,23,53,.84),rgba(10,23,53,.66));}
.atb-modern.home #carousel-hestia-generic h1.hestia-title {color:#fff;font-size:clamp(2rem,4.3vw,4.25rem);line-height:1.12;font-weight:750;letter-spacing:-.035em;overflow-wrap:break-word;text-shadow:0 2px 12px rgba(0,0,0,.22);}
.atb-modern.home #carousel-hestia-generic .sub-title {color:#fff;font-size:clamp(1rem,1.65vw,1.25rem);line-height:1.6;}
.atb-modern #carousel-hestia-generic .buttons .btn-primary {background:#a91d35;color:#fff;border:1px solid #a91d35;border-radius:9px;font-weight:700;min-height:44px;white-space:normal;line-height:1.4;box-shadow:none;text-transform:none;}
.atb-modern #carousel-hestia-generic .buttons .btn-primary:hover {background:#841629;border-color:#841629;color:#fff;}
/* Las secciones originales conservan su orden y visibilidad. */
.atb-modern .main-raised {border-radius:12px;box-shadow:0 8px 36px rgba(20,41,99,.09);}
.atb-modern .hestia-features,.atb-modern .hestia-team,.atb-modern .hestia-blogs {background-color:#fff;}
.atb-modern .hestia-testimonials {background-color:#f4f7fb;}
.atb-modern .hestia-features .hestia-title,.atb-modern .hestia-team .hestia-title,.atb-modern .hestia-blogs .hestia-title,.atb-modern .hestia-testimonials .hestia-title {color:#142963;font-weight:750;letter-spacing:-.025em;}
.atb-modern .hestia-features .info-title,.atb-modern .hestia-features .description,.atb-modern .hestia-blogs .description {color:#26364b;}
.atb-modern .hestia-blogs .card,.atb-modern .hestia-team .card {border-radius:12px;box-shadow:0 4px 20px rgba(20,41,99,.08);}
/* Instagram: preservar el widget y sus controles. */
.atb-modern #sb_instagram {border-radius:12px;}
.atb-modern #sb_instagram .sbi_photo {border-radius:8px;}
/* Formularios existentes: ningún campo ni endpoint cambia. */
.atb-modern .wpforms-container .wpforms-field-label {font-weight:650;}
.atb-modern .wpforms-container input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=submit]),
.atb-modern .wpforms-container select,.atb-modern .wpforms-container textarea {border:1px solid #65758b;border-radius:8px;background:#fff;color:#26364b;font:inherit;font-size:16px;}
.atb-modern .wpforms-container button.wpforms-submit {background:#142963;color:#fff;min-height:44px;border-radius:8px;font-weight:650;white-space:normal;}
.atb-modern .wpforms-container button.wpforms-submit:hover {background:#203a7d;color:#fff;}
.atb-modern .foogallery .fg-thumb img {border-radius:7px;}
.atb-modern footer.footer.footer-black {background:#142963;color:#fff;}
.atb-modern footer.footer.footer-black a,.atb-modern footer.footer.footer-black .copyright {color:#fff;}
.atb-modern footer.footer.footer-black a:hover {text-decoration:underline;}
.atb-modern a:focus-visible,.atb-modern button:focus-visible,.atb-modern input:focus-visible,.atb-modern select:focus-visible,.atb-modern textarea:focus-visible,.atb-modern [tabindex]:focus-visible {outline:3px solid #1545a2!important;outline-offset:3px;box-shadow:0 0 0 3px #fff!important;}
@supports not selector(:focus-visible) {
 .atb-modern a:focus,.atb-modern button:focus,.atb-modern input:focus,.atb-modern select:focus,.atb-modern textarea:focus {outline:3px solid #1545a2;outline-offset:3px;}
}
@media(max-width:767px){
 .atb-modern.home #carousel-hestia-generic h1.hestia-title {font-size:clamp(1.8rem,8vw,2.7rem);}
 .atb-modern .wpforms-container button.wpforms-submit {max-width:100%;}
 .atb-modern .hestia-title {overflow-wrap:break-word;}
}
@media(prefers-reduced-motion:reduce){
 .atb-modern .navbar a,.atb-modern .btn,.atb-modern .hestia-blogs .card {transition:none!important;}
}

/* ATB Modern 1.0 — approved reference: clear white, navy, restrained gold.
   Native Hestia header, hero, sections, menu, search and footer remain in place. */
body.atb-modern {--atb-navy:#102653;--atb-gold:#dca21e;--atb-dark:#0b2146;--atb-soft:#f7f8fa;--atb-line:#dfe4eb;--atb-ink:#25344a;background:#fff;}
.atb-modern .navbar.navbar-default,.atb-modern .navbar.navbar-default.navbar-transparent {background:#fff!important;color:var(--atb-navy)!important;box-shadow:0 1px 0 var(--atb-line),0 3px 16px rgba(16,38,83,.06);}
.atb-modern .navbar>.container {width:100%;max-width:1510px;padding:10px clamp(15px,4vw,65px);}
.atb-modern .navbar .title-logo-wrapper {max-width:none;}
.atb-modern .navbar .navbar-header .navbar-brand {display:flex;align-items:center;gap:16px;padding:0;color:var(--atb-navy);white-space:normal;}
.atb-modern .navbar .navbar-header .navbar-brand img {width:auto;height:auto;max-width:92px;max-height:72px;object-fit:contain;}
.atb-modern .navbar .navbar-header .navbar-brand .hestia-hide-if-transparent ~ .hestia-transparent-logo {display:none;}
.atb-modern .navbar .navbar-header .navbar-brand .hestia-hide-if-transparent {display:block;}
.atbm-brand-name {max-width:250px;border-inline-start:1px solid #b4bece;padding-inline-start:17px;font-size:clamp(15px,1.5vw,22px);line-height:1.12;font-weight:800;letter-spacing:-.035em;color:var(--atb-navy);}
.atb-modern .navbar.navbar-default .navbar-nav>li>a {color:var(--atb-navy)!important;position:relative;font-size:13px;font-weight:700;letter-spacing:.01em;min-height:44px;padding:12px 12px;text-transform:uppercase;}
.atb-modern .navbar.navbar-default .navbar-nav>.current-menu-item>a::after,.atb-modern .navbar.navbar-default .navbar-nav>.current-menu-ancestor>a::after {content:"";position:absolute;left:12px;right:12px;bottom:5px;height:4px;background:var(--atb-gold);border-radius:4px;}
.atb-modern .navbar.navbar-default .navbar-nav>li>a:hover,.atb-modern .navbar.navbar-default .navbar-nav>li>a:focus {color:var(--atb-navy)!important;text-decoration:underline;text-underline-offset:4px;}
.atb-modern .navbar .dropdown-menu {background:#fff!important;border:1px solid var(--atb-line);border-radius:9px;box-shadow:0 12px 30px rgba(16,38,83,.12);}
.atb-modern .navbar .dropdown-menu>li>a {color:var(--atb-navy)!important;white-space:normal;font-weight:600;}
.atb-modern .navbar .dropdown-menu>li>a:hover,.atb-modern .navbar .dropdown-menu>li>a:focus {background:#eaf0f8!important;color:var(--atb-navy)!important;}
.atb-modern .navbar .navbar-toggle .icon-bar {background:var(--atb-navy)!important;}
.atb-modern .navbar .hestia-nav-search a,.atb-modern .navbar .hestia-nav-search input {color:var(--atb-navy)!important;}
/* Hero: native WordPress image, no screenshot or synthetic photograph. Keep an opaque-enough left gradient for text. */
.atbm-home #carousel-hestia-generic {background:var(--atb-dark);}
.atbm-home #carousel-hestia-generic .page-header {height:auto!important;min-height:0!important;position:relative;isolation:isolate;padding:0;}
.atbm-home #carousel-hestia-generic .header-filter {background-position:center center;background-size:cover;}
.atbm-home #carousel-hestia-generic .header-filter::before {z-index:0;background:linear-gradient(90deg,rgba(7,24,43,.94) 0%,rgba(7,24,43,.88) 38%,rgba(7,24,43,.70) 54%,rgba(7,24,43,.14) 78%,rgba(7,24,43,.03) 100%)!important;}
.atbm-home #carousel-hestia-generic .header-filter::after {background:none!important;}
.atbm-home #carousel-hestia-generic .big-title-image {background-position:center center!important;background-size:cover!important;}
.atbm-home #carousel-hestia-generic .item .container {width:100%;max-width:1510px;min-height:440px;box-sizing:border-box;padding:130px clamp(24px,5vw,80px) 48px!important;}
.atbm-home #carousel-hestia-generic .hestia-big-title-content {justify-content:flex-start;padding:0;text-align:left;}
.atbm-home #carousel-hestia-generic .big-title-slider-content {width:100%;max-width:650px;flex:0 1 650px;text-align:left!important;margin:0!important;padding:0!important;}
.atbm-home #carousel-hestia-generic .big-title-slider-content:before {content:"";display:block;width:56px;height:7px;background:var(--atb-gold);border-radius:7px;margin-bottom:19px;}
.atbm-home #carousel-hestia-generic h1.hestia-title {font-family:var(--atb-font)!important;font-size:clamp(36px,4.25vw,64px)!important;font-weight:780!important;letter-spacing:-.045em;line-height:1.03!important;margin:0 0 18px!important;max-width:640px;overflow-wrap:anywhere;text-shadow:0 2px 12px rgba(0,0,0,.18);}
.atbm-home #carousel-hestia-generic span.sub-title {display:block;color:#fff!important;font-size:clamp(15px,1.5vw,20px)!important;line-height:1.5;letter-spacing:.13em;text-transform:uppercase;}
.atbm-home #carousel-hestia-generic .buttons {display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin:27px 0 0!important;}
.atbm-home #carousel-hestia-generic .buttons .btn-primary {display:inline-flex;align-items:center;justify-content:center;background:#102b5e!important;color:#fff!important;border:2px solid #fff!important;border-radius:12px;min-height:48px;font-size:16px!important;padding:12px 22px;line-height:1.35;font-weight:700;box-shadow:none;white-space:normal;}
.atbm-home #carousel-hestia-generic .buttons .btn-primary::after {content:"→";margin-inline-start:12px;font-size:20px;}
.atbm-home #carousel-hestia-generic .buttons .btn-primary:hover {background:#1e427f!important;}
.atbm-hero-more {color:#fff!important;font-weight:650;text-decoration:underline!important;text-underline-offset:5px;padding:10px 4px;min-height:44px;display:inline-flex;align-items:center;}
.atbm-home .main-raised {margin:0!important;border-radius:0;box-shadow:none;}
.atbm-home .main-raised section:first-of-type {border-radius:0;}
/* Cards directly after the hero. */
.atbm-front-extras {background:#fff;color:var(--atb-navy);position:relative;scroll-margin-top:120px;}
.atbm-wrap {max-width:1510px;margin:0 auto;padding-inline:clamp(20px,5vw,80px);}
.atbm-quick {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,28px);padding-top:24px;padding-bottom:25px;}
.atbm-quick-card {display:flex;align-items:center;gap:16px;min-height:86px;padding:17px 19px;border:1px solid var(--atb-line);border-inline-start:6px solid var(--atb-gold);border-radius:12px;background:#fff;color:var(--atb-navy)!important;box-shadow:0 6px 19px rgba(16,38,83,.07);text-decoration:none!important;transition:background .15s,box-shadow .15s;}
.atbm-quick-card:hover {background:#f3f6fb;box-shadow:0 8px 20px rgba(16,38,83,.12);}
.atbm-quick-card:hover .atbm-card-label {text-decoration:underline;text-underline-offset:4px;}
.atbm-card-icon {display:flex;align-items:center;padding-inline-end:15px;border-inline-end:1px solid #cbd3de;flex-shrink:0;}
.atbm-card-icon svg {width:38px;height:38px;}
.atbm-card-label {font-size:clamp(16px,1.6vw,23px);font-weight:780;line-height:1.25;letter-spacing:-.02em;overflow-wrap:anywhere;}
.atbm-arrow {display:flex;flex-shrink:0;margin-inline-start:auto;}
.atbm-news {padding-top:2px;padding-bottom:30px;}
.atbm-section-head {display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 19px;}
.atbm-section-head h2 {display:flex;align-items:center;gap:14px;color:var(--atb-navy);font-family:var(--atb-font);font-size:clamp(25px,2.4vw,34px);font-weight:800;letter-spacing:-.035em;line-height:1.2;margin:0;}
.atbm-section-head h2::before {content:"";width:50px;height:7px;background:var(--atb-gold);border-radius:7px;}
.atbm-section-head>a {color:var(--atb-navy);font-weight:700;display:flex;align-items:center;gap:7px;min-height:44px;text-decoration:underline;text-underline-offset:4px;}
.atbm-news-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.atbm-news-card {border:1px solid var(--atb-line);border-radius:12px;background:#fff;overflow:visible;min-width:0;}
.atbm-news-card>a {display:flex;min-height:134px;height:100%;color:var(--atb-navy)!important;text-decoration:none!important;border-radius:12px;}
.atbm-news-card>a:hover h3 {text-decoration:underline;text-underline-offset:4px;}
.atbm-news-photo {width:45%;flex-shrink:0;overflow:hidden;border-radius:11px 0 0 11px;background:#e8edf5;display:flex;align-items:stretch;}
.atbm-news-photo img {display:block;width:100%;height:100%;min-height:134px;object-fit:cover;object-position:center;}
.atbm-news-text {display:flex;flex-direction:column;justify-content:center;gap:10px;padding:15px;min-width:0;flex:1;}
.atbm-news-text h3 {font-family:var(--atb-font);font-size:17px;line-height:1.35;letter-spacing:-.02em;font-weight:750;color:var(--atb-navy);margin:0;overflow-wrap:anywhere;}
.atbm-news-text time {font-size:13px;line-height:1.4;color:#41526a;display:flex;align-items:center;gap:7px;}
.atbm-news-text time svg {flex-shrink:0;width:18px;height:18px;}
.atbm-no-image .atbm-news-text {border-inline-start:4px solid var(--atb-gold);border-radius:11px;}
/* Keep Instagram, contact form, gallery, and other original sections. */
.atbm-home .hestia-about.section-image {padding:34px 0;background-image:none!important;background-color:#f7f8fa!important;color:var(--atb-ink)!important;}
.atbm-home .hestia-about.section-image::before,.atbm-home .hestia-about.section-image::after {background:transparent!important;}
.atbm-home .hestia-about.section-image h1,.atbm-home .hestia-about.section-image h2,.atbm-home .hestia-about.section-image h3,.atbm-home .hestia-about.section-image h4,.atbm-home .hestia-about.section-image h5,.atbm-home .hestia-about.section-image h6 {color:var(--atb-navy);}
.atbm-home .hestia-about.section-image .container {position:relative;}
.atbm-home .hestia-about #sb_instagram {background:#fff;border:1px solid var(--atb-line);padding:14px!important;border-radius:12px;}
.atbm-home .hestia-about #sb_instagram .sbi_header_text,.atbm-home .hestia-about #sb_instagram .sbi_header_text h3,.atbm-home .hestia-about #sb_instagram .sbi_header_text p,.atbm-home .hestia-about #sb_instagram .sbi_header_text a {color:#102653!important;}
.atbm-home .hestia-about #sb_instagram .sbi_photo {background-size:cover;}
.atb-modern .hestia-blogs {padding-top:40px;padding-bottom:40px;}
.atb-modern .hestia-blogs .hestia-title,.atb-modern .hestia-contact .hestia-title {font-size:clamp(26px,3vw,38px);}
.atb-modern .hestia-contact {background-color:var(--atb-dark);}
.atb-modern .wpforms-container .wpforms-field input,.atb-modern .wpforms-container .wpforms-field textarea {max-width:100%;}
.atb-modern .foogallery img {max-width:100%;height:auto;}
/* Compact native footer enhancement. The original copyright and footer widgets still follow. */
.atb-modern footer.footer {background:#0e2853!important;color:#fff!important;border-bottom:5px solid var(--atb-gold);}
.atb-modern footer.footer a,.atb-modern footer.footer .copyright,.atb-modern footer.footer h5,.atb-modern footer.footer h4,.atb-modern footer.footer p {color:#fff!important;}
.atb-modern footer.footer a:hover {text-decoration:underline;text-underline-offset:4px;}
.atbm-footer-strip {border-bottom:1px solid #ffffff36;}
.atbm-footer-wrap {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;max-width:1510px;margin:auto;padding:25px clamp(20px,5vw,80px);}
.atbm-footer-wrap>a {display:flex;align-items:center;gap:10px;min-height:44px;color:#fff!important;font-size:14px;line-height:1.35;max-width:100%;overflow-wrap:anywhere;text-align:left;}
.atbm-footer-wrap>a svg {flex-shrink:0;width:22px;height:22px;}
.atbm-footer-brand {font-weight:750;max-width:300px!important;}
.atbm-footer-brand img {width:62px;height:62px;object-fit:contain;background:#fff;border-radius:8px;padding:4px;flex-shrink:0;}
.atb-modern a:focus-visible,.atb-modern button:focus-visible,.atb-modern input:focus-visible,.atb-modern select:focus-visible,.atb-modern textarea:focus-visible {outline:3px solid #174da5!important;outline-offset:3px;box-shadow:0 0 0 3px #fff!important;}
.atbm-home #carousel-hestia-generic a:focus-visible,.atb-modern footer a:focus-visible {outline-color:#f8cf55!important;box-shadow:0 0 0 3px #102653!important;}
.atb-modern :target {scroll-margin-top:120px;}
@media(max-width:1200px){.atbm-brand-name{max-width:175px;font-size:16px;padding-inline-start:10px;}.atb-modern .navbar .navbar-header .navbar-brand{gap:10px;}.atb-modern .navbar.navbar-default .navbar-nav>li>a{padding-inline:9px;font-size:12px;}.atb-modern .navbar>.container{padding-inline:20px;}.atbm-news-card>a{flex-direction:column;}.atbm-news-photo{width:100%;height:156px;border-radius:11px 11px 0 0;}.atbm-news-photo img{min-height:0;}}
@media(min-width:768px) and (max-width:990px){.atbm-brand-name{display:none;}.atb-modern .navbar .navbar-header .navbar-brand img{max-height:58px;}.atbm-home #carousel-hestia-generic .header-filter::before{background:linear-gradient(90deg,rgba(7,24,43,.95),rgba(7,24,43,.82) 55%,rgba(7,24,43,.24))!important;}.atbm-card-icon{padding-inline-end:9px;}.atbm-card-icon svg{width:30px;height:30px;}.atbm-quick-card{gap:9px;padding:13px;}}
@media(max-width:767px){.atb-modern .navbar>.container{padding:8px 15px;}.atb-modern .navbar .navbar-header .navbar-brand img{max-height:55px;max-width:65px;}.atbm-brand-name{display:block;max-width:170px;font-size:14px;line-height:1.16;}.atb-modern .navbar .navbar-header{width:100%;}.atb-modern .navbar .navbar-toggle-wrapper{min-width:44px;}.atb-modern .navbar .navbar-collapse{background:#fff!important;}.atb-modern .navbar.navbar-default .navbar-nav>li>a{font-size:15px;}.atbm-home #carousel-hestia-generic .item .container{min-height:0;padding:112px 24px 42px!important;}.atbm-home #carousel-hestia-generic .header-filter::before{background:linear-gradient(90deg,rgba(7,24,43,.92),rgba(7,24,43,.75))!important;}.atbm-home #carousel-hestia-generic h1.hestia-title{font-size:clamp(33px,8vw,47px)!important;}.atbm-home #carousel-hestia-generic .sub-title{letter-spacing:.07em;}.atbm-home #carousel-hestia-generic .buttons{gap:8px 16px;}.atbm-quick,.atbm-news-grid{grid-template-columns:1fr;gap:12px;}.atbm-quick{padding-top:18px;padding-bottom:22px;}.atbm-quick-card{min-height:72px;padding:12px 16px;}.atbm-card-label{font-size:19px;}.atbm-card-icon svg{width:31px;height:31px;}.atbm-section-head h2::before{width:32px;}.atbm-news-card>a{flex-direction:row;min-height:116px;}.atbm-news-photo{width:38%;height:auto;min-height:116px;border-radius:11px 0 0 11px;}.atbm-news-photo img{min-height:116px;}.atbm-news-text h3{font-size:16px;}.atbm-footer-wrap{justify-content:flex-start;gap:10px;}.atbm-footer-wrap>a{width:100%;}.atbm-home .hestia-about.section-image{padding:22px 0;}}
@media(max-width:360px){.atbm-brand-name{font-size:12px;max-width:130px;}.atbm-news-card>a{flex-direction:column;}.atbm-news-photo{width:100%;height:155px;border-radius:11px 11px 0 0;}}
@media(prefers-reduced-motion:reduce){.atb-modern .atbm-quick-card,.atb-modern .atbm-news-card>a,.atb-modern .navbar a,.atb-modern .btn{transition:none!important;}.atb-modern{scroll-behavior:auto!important;}}

.atb-modern .hestia-contact .hestia-contact-title-area,.atb-modern .hestia-contact .hestia-contact-title-area h2,.atb-modern .hestia-contact .hestia-contact-title-area h4,.atb-modern .hestia-contact .hestia-contact-title-area h5,.atb-modern .hestia-contact .hestia-contact-title-area p,.atb-modern .hestia-contact .hestia-contact-title-area a {color:#fff!important;}
.atb-modern .atbm-skip {position:fixed;top:10px;left:12px;z-index:1000000;padding:12px 16px;background:#fff;color:#102653!important;border:2px solid #102653;border-radius:6px;transform:translateY(-200%);}
.atb-modern .atbm-skip:focus {transform:none;}
body.admin-bar .atbm-skip:focus {top:48px;}
/* Keep the text-side contrast on intermediate viewport widths. */
@media(min-width:768px) and (max-width:1200px){.atbm-home #carousel-hestia-generic .header-filter::before{background:linear-gradient(90deg,rgba(7,24,43,.95),rgba(7,24,43,.84) 48%,rgba(7,24,43,.72) 70%,rgba(7,24,43,.15) 100%)!important;}}


/* ==========================================================
   ATB Modern 1.0.1 — Contacto Hestia 3.0.1 / WPForms
   Ajuste visual aislado. No modifica el formulario ni sus datos.
   ========================================================== */
.atb-modern .hestia-contact.contactus {
  background-color: #0b2146;
  background-position: center;
  background-size: cover;
  padding: clamp(48px, 6vw, 88px) 0;
  color: #fff;
}
/* Reutilizar la capa original de Hestia; no duplicarla. */
.atb-modern .hestia-contact.contactus.section-image::after {
  background: linear-gradient(110deg, rgba(11,33,70,.94), rgba(11,33,70,.84) 52%, rgba(11,33,70,.66)) !important;
  pointer-events: none;
}
.atb-modern .hestia-contact.contactus > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1510px;
  padding-inline: clamp(20px, 5vw, 80px);
}
.atb-modern .hestia-contact .hestia-contact-title-area {
  padding-top: 12px;
  padding-bottom: 12px;
  overflow-wrap: anywhere;
}
.atb-modern .hestia-contact .hestia-contact-title-area .hestia-title {
  font-family: var(--atb-font);
  font-size: clamp(30px, 3.1vw, 45px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.035em;
  margin: 0 0 22px;
}
.atb-modern .hestia-contact .hestia-contact-title-area .hestia-title::before {
  content: "";
  display: block;
  width: 48px;
  height: 6px;
  background: var(--atb-gold, #dca21e);
  border-radius: 6px;
  margin-bottom: 18px;
}
.atb-modern .hestia-contact .hestia-contact-title-area h5.description {
  font-family: var(--atb-font);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 400;
  line-height: 1.65;
  color: #f3f6fc !important;
  margin: 0 0 26px;
}
.atb-modern .hestia-contact .hestia-contact-title-area .info,
.atb-modern .hestia-contact .hestia-contact-title-area .hestia-info {
  margin: 0 0 24px;
  padding: 0;
}
.atb-modern .hestia-contact .hestia-contact-title-area .info .icon,
.atb-modern .hestia-contact .hestia-contact-title-area .hestia-info .icon {
  width: 48px;
  height: 48px;
  margin: 0 13px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  color: #f8cf55 !important;
}
.atb-modern .hestia-contact .hestia-contact-title-area .info .icon i,
.atb-modern .hestia-contact .hestia-contact-title-area .hestia-info .icon i {
  font-size: 24px;
  color: #f8cf55 !important;
}
.atb-modern .hestia-contact .hestia-contact-title-area .info-title {
  font-family: var(--atb-font);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 7px;
}
.atb-modern .hestia-contact .hestia-contact-title-area p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.atb-modern .hestia-contact .hestia-contact-title-area a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.atb-modern .hestia-contact .hestia-contact-title-area a:hover {
  color: #f8cf55 !important;
}
.atb-modern .hestia-contact .hestia-contact-title-area a:focus-visible {
  outline: 3px solid #f8cf55 !important;
  box-shadow: 0 0 0 3px #102653 !important;
}
/* Una sola tarjeta: no aplicar sombras a formularios internos. */
.atb-modern .hestia-contact .card.card-contact {
  background: #fff !important;
  color: #25344a !important;
  border: 1px solid #dfe4eb;
  border-radius: 16px;
  margin: 0;
  padding: 0;
  box-shadow: 0 12px 36px rgba(5,18,45,.2) !important;
}
.atb-modern .hestia-contact .card.card-contact .header.header-raised,
.atb-modern .hestia-contact .card.card-contact .header.header-primary {
  background: #fff !important;
  background-image: none !important;
  color: #102653 !important;
  box-shadow: none !important;
  border: 0;
  border-bottom: 1px solid #dfe4eb;
  border-radius: 16px 16px 0 0;
  margin: 0 !important;
  padding: 24px clamp(18px, 3vw, 32px) 19px !important;
  text-align: left !important;
}
.atb-modern .hestia-contact .card.card-contact .header .card-title {
  font-family: var(--atb-font);
  color: #102653 !important;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin: 0;
}
.atb-modern .hestia-contact .card.card-contact .header .card-title::after {
  content: "";
  display: block;
  background: var(--atb-gold, #dca21e);
  width: 38px;
  height: 4px;
  border-radius: 4px;
  margin-top: 13px;
}
.atb-modern .hestia-contact .card.card-contact > .content {
  background: #fff;
  border-radius: 0 0 16px 16px;
  padding: 22px clamp(18px, 3vw, 32px) 28px !important;
  color: #25344a;
}
.atb-modern .hestia-contact .card-contact .wpforms-container {margin: 0;}
.atb-modern .hestia-contact .card-contact label,
.atb-modern .hestia-contact .card-contact .wpforms-field-label,
.atb-modern .hestia-contact .card-contact .wpforms-field-sublabel,
.atb-modern .hestia-contact .card-contact .wpforms-field-description {
  color: #25344a;
  line-height: 1.5;
}
/* No modificar campos ocultos, captchas, casillas ni botones ajenos al envío. */
.atb-modern .hestia-contact .card-contact input[type="text"],
.atb-modern .hestia-contact .card-contact input[type="email"],
.atb-modern .hestia-contact .card-contact input[type="tel"],
.atb-modern .hestia-contact .card-contact input[type="url"],
.atb-modern .hestia-contact .card-contact input[type="number"],
.atb-modern .hestia-contact .card-contact textarea,
.atb-modern .hestia-contact .card-contact select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 13px !important;
  font-family: var(--atb-font);
  font-size: 16px !important;
  line-height: 1.5;
  color: #25344a !important;
  background: #f7f9fc !important;
  border: 1px solid #78869b !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}
.atb-modern .hestia-contact .card-contact textarea {
  min-height: 140px;
  resize: vertical;
}
.atb-modern .hestia-contact .card-contact input::placeholder,
.atb-modern .hestia-contact .card-contact textarea::placeholder {
  color: #526179 !important;
  opacity: 1;
}
.atb-modern .hestia-contact .card-contact input:focus,
.atb-modern .hestia-contact .card-contact textarea:focus,
.atb-modern .hestia-contact .card-contact select:focus {
  border-color: #174da5 !important;
  outline: 2px solid #174da5 !important;
  outline-offset: 2px;
}
/* Mantener visibles los mensajes y estados de validación del plugin. */
.atb-modern .hestia-contact .card-contact input.wpforms-error,
.atb-modern .hestia-contact .card-contact textarea.wpforms-error,
.atb-modern .hestia-contact .card-contact select.wpforms-error,
.atb-modern .hestia-contact .card-contact [aria-invalid="true"] {
  border-color: #a91d35 !important;
}
.atb-modern .hestia-contact .card-contact label.wpforms-error,
.atb-modern .hestia-contact .card-contact em.wpforms-error,
.atb-modern .hestia-contact .card-contact .wpforms-error-container {color: #a91d35 !important;}
.atb-modern .hestia-contact .card-contact button[type="submit"],
.atb-modern .hestia-contact .card-contact input[type="submit"],
.atb-modern .hestia-contact .card-contact button.wpforms-submit {
  background: #102653 !important;
  color: #fff !important;
  border: 1px solid #102653 !important;
  border-radius: 9px !important;
  min-height: 48px;
  max-width: 100%;
  padding: 13px 24px !important;
  font-family: var(--atb-font);
  font-size: 15px !important;
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: normal;
  box-shadow: none !important;
}
.atb-modern .hestia-contact .card-contact button[type="submit"]:hover:not(:disabled),
.atb-modern .hestia-contact .card-contact input[type="submit"]:hover:not(:disabled),
.atb-modern .hestia-contact .card-contact button.wpforms-submit:hover:not(:disabled) {
  background: #203a7d !important;
  border-color: #203a7d !important;
}
.atb-modern .hestia-contact .card-contact button[type="submit"]:disabled,
.atb-modern .hestia-contact .card-contact input[type="submit"]:disabled {opacity: .7; cursor: not-allowed;}
@media (min-width: 992px) {
  .atb-modern .hestia-contact > .container > .row {
    display: flex;
    align-items: center;
    gap: clamp(24px, 5vw, 80px);
  }
  .atb-modern .hestia-contact > .container > .row > .hestia-contact-title-area,
  .atb-modern .hestia-contact > .container > .row > .hestia-contact-form-col {
    float: none;
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    margin: 0;
    padding-inline: 15px;
  }
}
@media (max-width: 991px) {
  .atb-modern .hestia-contact .hestia-contact-form-col {
    margin-top: 22px;
    padding-inline: 15px;
  }
  .atb-modern .hestia-contact .hestia-contact-title-area {padding-top: 0;}
}
@media (max-width: 600px) {
  .atb-modern .hestia-contact .card-contact .wpforms-one-half {float: none; width: 100%; margin-left: 0;}
  .atb-modern .hestia-contact .card-contact button[type="submit"],
  .atb-modern .hestia-contact .card-contact input[type="submit"] {width: 100%;}
}
@media (prefers-reduced-motion: reduce) {
  .atb-modern .hestia-contact .card-contact input,
  .atb-modern .hestia-contact .card-contact textarea,
  .atb-modern .hestia-contact .card-contact button {transition: none !important;}
}

/* ==========================================================
   ATB Modern 1.0.2 — Páginas interiores, Hestia 3.0.1
   Conserva las secciones y los widgets de Elementor/FooGallery.
   No se aplica a la portada ni a aplicaciones externas.
   ========================================================== */

/* Cabeceras nativas: conservar la fotografía configurada, si existe.
   Sólo el degradado genérico de Hestia se sustituye por un fondo claro. */
.atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small {
  background-color: #102653;
  border-bottom: 4px solid #dca21e;
  min-height: 0;
}
.atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small > .container {
  padding-top: clamp(126px, 12vw, 170px);
  padding-bottom: clamp(35px, 5vw, 66px);
}
.atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small .hestia-title {
  font-family: var(--atb-font);
  font-size: clamp(28px, 4vw, 49px);
  font-weight: 780;
  line-height: 1.18;
  letter-spacing: -.035em;
  color: #fff;
  text-shadow: none;
  overflow-wrap: anywhere;
}
.atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small .hestia-title::before {
  content: ""; display: block; width: 48px; height: 5px; background: #dca21e;
  border-radius: 5px; margin: 0 auto 15px;
}
.atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small .header-filter:not(.header-filter-gradient)::before {
  background: rgba(7,24,43,.77) !important;
}
.atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small .header-filter:not(.header-filter-gradient)::after {background: none !important;}
@supports selector(:has(*)) {
  .atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small:has(> .header-filter-gradient) {background:#f4f7fb;border-bottom-color:#e1e7ef;}
  .atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small > .header-filter-gradient {background:#f4f7fb!important;}
  .atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small > .header-filter-gradient::before,
  .atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small > .header-filter-gradient::after {background:transparent!important;}
  .atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small:has(> .header-filter-gradient) :is(.container,.hestia-title,.title,.description,.author,.author a) {color:#102653!important;}
}
/* Sin superposición de la tarjeta elevada sobre el título interior. */
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) .main.main-raised {
  margin: 0 !important; border-radius: 0; box-shadow: none; background: #fff;
}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) .blog-post > .container {
  width: 100%; max-width: 1330px; padding-inline: clamp(18px,4vw,56px);
}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) .blog-post {padding-top: clamp(22px,4vw,54px);}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) .blog-post .section-text {padding-block: 16px 36px;}
/* No sustituir las columnas, fondos ni textos creados en Elementor.
   Los cambios se limitan a tipografía y componentes identificables. */
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) :is(.page-content-wrap,.pagebuilder-section) :is(h2,h3,h4,.elementor-heading-title,.elementor-icon-box-title,.elementor-image-box-title) {
  font-family: var(--atb-font); font-weight: 750; letter-spacing: -.025em; line-height: 1.3; overflow-wrap: break-word;
}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) :is(.page-content-wrap,.pagebuilder-section) :is(.elementor-widget-text-editor,.elementor-icon-box-description,.elementor-image-box-description) {
  font-family: var(--atb-font); line-height: 1.7; overflow-wrap: break-word;
}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) .elementor-widget-text-editor :is(p,li) {line-height: 1.7;}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) .elementor-widget-text-editor li + li {margin-top: .45em;}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) .elementor-widget-image img {max-width:100%;height:auto;}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) :is(.elementor-widget-image,.elementor-widget-image-box) img {border-radius: 12px;}
/* Botones y enlaces CTA existentes; no cambiar sus destinos. */
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) :is(.page-content-wrap,.pagebuilder-section) :is(a.elementor-button,button.elementor-button,a.wp-block-button__link) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background:#102653!important; color:#fff!important; border:1px solid #102653!important;
  border-radius: 9px!important; min-height: 46px; max-width:100%; box-sizing:border-box;
  font-family: var(--atb-font); font-weight: 700; font-size: 16px; line-height: 1.35;
  text-transform:none; white-space:normal; overflow-wrap:anywhere;
  padding: 12px 20px; box-shadow:none!important; text-decoration:none;
}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) :is(.page-content-wrap,.pagebuilder-section) :is(a.elementor-button,button.elementor-button,a.wp-block-button__link):hover {background:#1e427f!important;color:#fff!important;}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) .elementor-widget-text-editor a:not(.elementor-button) {text-decoration:underline;text-underline-offset:3px;}
/* Tarjetas de icono e imagen. No se modifica el tamaño de los iconos
   ni se convierte un widget no interactivo en enlace. */
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4457) :is(.elementor-widget-icon-box,.elementor-widget-image-box) > .elementor-widget-container {
  border:1px solid #dfe4eb;border-inline-start:4px solid #dca21e;border-radius:12px;
  background:#fff;color:#25344a;padding:clamp(15px,2vw,25px);box-shadow:0 4px 15px rgba(16,38,83,.06);
}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4457) :is(.elementor-widget-icon-box,.elementor-widget-image-box) :is(.elementor-icon-box-title,.elementor-image-box-title,.elementor-icon-box-title a,.elementor-image-box-title a) {color:#102653!important;}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4457) :is(.elementor-widget-icon-box,.elementor-widget-image-box) :is(.elementor-icon-box-description,.elementor-image-box-description) {color:#25344a!important;}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4457) .elementor-widget-icon-box .elementor-icon {color:#102653;}
/* Galería de álbumes y fotos. Mantener el layout, la navegación y el
   sistema de carga del plugin: sin display:grid, sin aspect-ratio forzado. */
.atb-modern:not(.home).page-id-4444 .foogallery-album-gallery-list .foogallery-pile {
  border-radius: 12px;
}
.atb-modern:not(.home).page-id-4444 .foogallery-album-gallery-list .foogallery-pile h3 {
  background:#fff!important;color:#102653!important;
  font-family:var(--atb-font);font-size:clamp(15px,1.5vw,19px);font-weight:750;line-height:1.4;
  letter-spacing:0;white-space:normal;overflow-wrap:break-word;border-radius:0 0 9px 9px;
}
.atb-modern:not(.home).page-id-4444 .foogallery-album-gallery-list .foogallery-pile h3 span {color:#46566e!important;font-weight:500;font-size:13px;}
.atb-modern:not(.home).page-id-4444 .foogallery :is(.fg-item-inner,.fg-thumb) {border-radius:9px;}
.atb-modern:not(.home).page-id-4444 .foogallery :is(.fg-caption-title,.fg-caption-desc) {font-family:var(--atb-font);line-height:1.4;}
.atb-modern:not(.home).page-id-4444 :is(.foogallery-album-gallery-list,.foogallery) a:focus-visible {outline:3px solid #174da5!important;outline-offset:3px;}
/* Contactos: mapa y embeds conservan dimensiones, URL y controles. */
.atb-modern:not(.home).page-id-12 .elementor-widget-google_maps iframe {border-radius:12px;max-width:100%;}
/* Formularios internos: no tocar casillas, campos ocultos, antispam,
   validaciones, etiquetas de error, botones de terceros ni embeds. */
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4457) .wpforms-container :is(input[type=text],input[type=email],input[type=tel],input[type=url],textarea,select) {
  border:1px solid #77869a!important;border-radius:9px!important;padding:11px 13px!important;
  min-height:46px;color:#25344a!important;background:#fff!important;font-size:16px!important;
}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4457) .wpforms-container :is(input,textarea)::placeholder {color:#53637a;opacity:1;}
.atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4457) .wpforms-container :is(input,textarea,select).wpforms-error {border-color:#a91d35!important;}
/* Noticias, archivo, resultados de búsqueda: estilos de las tarjetas nativas. */
.atb-modern:not(.home):is(.blog,.archive,.search) .hestia-blog-content .card {
  background:#fff;border:1px solid #dfe4eb;border-radius:12px;box-shadow:0 4px 15px rgba(16,38,83,.06);
}
.atb-modern:not(.home):is(.blog,.archive,.search) .hestia-blog-content .card .card-title a {color:#102653;font-family:var(--atb-font);font-weight:750;line-height:1.3;}
.atb-modern:not(.home):is(.blog,.archive,.search) .hestia-blog-content .card .description {color:#46566e;line-height:1.65;}
.atb-modern:not(.home):is(.blog,.archive,.search) .hestia-blog-content .card .card-image {border-radius:10px;}
.atb-modern:not(.home).single-post .blog-post .section-text p {line-height:1.75;}
@media(max-width:767px){
  .atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) #primary.page-header.header-small > .container {padding-top:116px;padding-bottom:34px;}
  .atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) .blog-post .section-text {padding-block:12px 25px;}
  .atb-modern:not(.home):is(.page-id-2,.page-id-10,.page-id-12,.page-id-4352,.page-id-4444,.page-id-4457) :is(.page-content-wrap,.pagebuilder-section) a.elementor-button {max-width:100%;}
}
@media(prefers-reduced-motion:reduce){
  .atb-modern:not(.home):is(.page,.single-post,.blog,.archive,.search) :is(a.elementor-button,button.elementor-button,.foogallery .fg-thumb,.hestia-blog-content .card) {transition:none!important;}
}
