/* ==========================================================
   EG CONSTRUCTION — Ajustes sobre la plantilla Shapen (Home 1)
   Los colores globales vienen de config.php → :root
   --eg-primary / --eg-secondary
   ========================================================== */

:root {
    --eg-primary: #F5BF23;
    --eg-secondary: #1a1a1a;
}

html, body { overflow-x: hidden; }

.eg-skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 99999;
    background: var(--eg-primary); color: #fff; padding: 10px 16px; font-weight: 600;
}
.eg-skip-link:focus { left: 10px; top: 10px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--eg-primary); outline-offset: 2px;
}

/* ---------- Topbar ---------- */
@media (max-width: 1199px) { .top-bar .eg-topbar-email { display: none !important; } }

/* Topbar con los colores de la marca: degradado azul, íconos en círculos y botón animado */
.site-header .top-bar.eg-topbar {
    position: relative; overflow: hidden; color: #fff; padding: 0;
    background: linear-gradient(100deg, var(--eg-primary) 0%, var(--eg-primary) 45%, #1456b4 100%);
    background: linear-gradient(100deg, var(--eg-primary) 0%, var(--eg-primary) 45%, color-mix(in srgb, var(--eg-primary) 65%, #3d8bff) 100%);
}
/* franja animada inferior con los tonos de la marca */
.eg-topbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--eg-secondary), var(--eg-primary-light), #fff, var(--eg-primary-light), var(--eg-secondary));
    background-size: 200% 100%; animation: eg-topbar-flow 6s linear infinite;
}
@keyframes eg-topbar-flow { from { background-position: 0 0; } to { background-position: 200% 0; } }
/* destello diagonal detrás del botón */
.eg-topbar::before {
    content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 280px;
    background: linear-gradient(110deg, transparent 0, transparent 22%, rgba(255,255,255,.14) 22%, rgba(255,255,255,.14) 100%);
    pointer-events: none;
}
.eg-topbar .row { position: relative; z-index: 1; align-items: center; }
.eg-topbar .e-p-bx { margin: 0; display: flex; flex-wrap: wrap; align-items: center; }
.eg-topbar .e-p-bx li {
    display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px 9px 0; margin-right: 18px;
    font-size: 13px; font-weight: 500; letter-spacing: .2px; color: #fff;
    border-right: 1px solid rgba(255,255,255,.18);
}
.eg-topbar .e-p-bx li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.eg-topbar .e-p-bx li a { color: #fff; display: inline-flex; align-items: center; gap: 9px; transition: color .25s; }
.eg-topbar .e-p-bx li a:hover { color: var(--eg-primary-light); }
.eg-topbar .fa {
    width: 28px; height: 28px; line-height: 28px; padding: 0; border: 0; border-radius: 50%; flex: 0 0 auto;
    color: var(--eg-primary); background: #fff; font-size: 13px; text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .3s, background .3s, color .3s;
}
.eg-topbar .e-p-bx li:hover .fa { transform: translateY(-2px) rotate(-8deg) scale(1.08); background: var(--eg-primary-light); }
/* el teléfono "late" para llamar la atención */
.eg-topbar-phone .fa { position: relative; animation: eg-ring 2.6s ease-in-out infinite; }
.eg-topbar-phone .fa::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid var(--eg-primary-light); opacity: 0; animation: eg-pulse 2.6s ease-out infinite;
}
@keyframes eg-pulse { 0% { transform: scale(.7); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes eg-ring { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(-14deg); } 70% { transform: rotate(12deg); } 75% { transform: rotate(-10deg); } 80% { transform: rotate(8deg); } 85% { transform: rotate(0); } }
.eg-topbar-phone a { font-weight: 700; font-size: 14px; }
/* botón Free Estimate */
.eg-topbar .appint-btn { padding: 6px 0; }
.eg-topbar .site-button.eg-topbar-cta {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--eg-primary); border: 0; border-radius: 30px;
    padding: 8px 22px; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .25s, box-shadow .25s, background .25s;
}
.eg-topbar .site-button.eg-topbar-cta::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(9,46,109,.18), transparent);
    transform: skewX(-20deg); animation: eg-shine 4s ease-in-out infinite;
}
@keyframes eg-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.eg-topbar .site-button.eg-topbar-cta .fa { width: auto; height: auto; background: none; box-shadow: none; color: inherit; font-size: 16px; line-height: 1; transition: transform .25s; }
.eg-topbar .site-button.eg-topbar-cta:hover { transform: translateY(-2px); background: var(--eg-primary-light); color: var(--eg-primary); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.eg-topbar .site-button.eg-topbar-cta:hover .fa { transform: translateX(4px); }
/* una sola fila: textos a la izquierda, botón a la derecha */
@media (min-width: 481px) {
    .header-style-1 .top-bar.eg-topbar .row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; width: 100%; margin: 0; float: none; }
    .header-style-1 .top-bar.eg-topbar .row .mt-topbar-left { display: block; flex: 1 1 auto; min-width: 0; float: none; padding: 0 15px; }
    .header-style-1 .top-bar.eg-topbar .row .mt-topbar-right { display: block; flex: 0 0 auto; float: none; padding: 0 15px; text-align: right; }
    .eg-topbar .e-p-bx { flex-wrap: nowrap; float: none !important; }
    .eg-topbar .e-p-bx li { white-space: nowrap; }
}
@media (max-width: 991px) { .eg-topbar .eg-topbar-license { display: none !important; } }
@media (min-width: 481px) and (max-width: 767px) { .eg-topbar .eg-topbar-location { display: none !important; } }
@media (max-width: 991px) {
    .eg-topbar::before { width: 160px; }
    .eg-topbar .e-p-bx li { padding: 7px 14px 7px 0; margin-right: 14px; }
}
/* móvil: teléfono y botón en una sola línea compacta */
@media (max-width: 480px) {
    .header-style-1 .top-bar.eg-topbar .row { display: flex; align-items: center; justify-content: space-between; margin: 0; }
    .header-style-1 .top-bar.eg-topbar .row .mt-topbar-left { display: block; padding: 0 0 0 12px; }
    .header-style-1 .top-bar.eg-topbar .row .mt-topbar-right { display: block; margin: 0; padding: 0 12px 0 0; width: auto; }
    .eg-topbar .e-p-bx li:not(.eg-topbar-phone) { display: none; }
    .eg-topbar .e-p-bx li.eg-topbar-phone { border: 0; margin: 0; padding: 8px 0; }
    .eg-topbar .site-button.eg-topbar-cta { padding: 7px 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .eg-topbar::after, .eg-topbar-phone .fa, .eg-topbar-phone .fa::after, .eg-topbar .site-button.eg-topbar-cta::before { animation: none; }
}

/* ---------- Logo provisional ---------- */
.logo-header { width: 230px; }
.eg-text-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
.eg-logo-mark {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 46px; height: 46px; background: var(--eg-primary); color: var(--eg-secondary);
    font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: 1px;
    border: 2px dashed rgba(0,0,0,.35);
}
.eg-logo-text { display: flex; flex-direction: column; }
.eg-logo-text strong {
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 19px; color: var(--eg-secondary);
    text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.eg-logo-text small { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #8a8a8a; margin-top: 4px; }
.eg-text-logo-footer .eg-logo-text strong { color: #fff; }
.eg-text-logo-footer .eg-logo-text small { color: #aaa; }
.logo-footer { width: auto; }
@media (max-width: 991px) { .logo-header { width: 200px; } .eg-logo-text strong { font-size: 16px; } .eg-logo-mark { width: 40px; height: 40px; font-size: 16px; } }
@media (max-width: 480px) { .logo-header { width: 175px; } .eg-logo-text strong { font-size: 14px; } }

/* ---------- Slider ---------- */
#welcome_wrapper .site-button { color: #000; }

/* ---------- Banner interior (H1) ---------- */
.mt-bnr-inr-entry .banner-title-outer h1 {
    margin-top: 0; color: #fff; font-size: 22px; line-height: 32px;
    text-transform: uppercase; font-weight: 400; letter-spacing: 1px;
}
.mt-bnr-inr-entry { width: 760px; }
.mt-bnr-inr-entry .banner-title-outer { max-width: 760px; }
@media (max-width: 767px) { .mt-bnr-inr-entry .banner-title-outer h1 { font-size: 17px; line-height: 26px; } }

/* ---------- Generales ---------- */
.eg-section-sub { font-size: 24px; line-height: 34px; font-weight: 400; margin: 10px 0 0; max-width: 900px; }
/* el subtítulo y el texto introductorio siguen la alineación del título */
.eg-head-center { text-align: center; }
.eg-head-center .eg-section-sub { margin-left: auto; margin-right: auto; }
.section-head.text-white .eg-section-sub { color: #fff; }
.eg-section-lead { max-width: 900px; margin-bottom: 30px; }
.Service-half-top .eg-section-lead { color: #ddd; margin-top: 10px; }
.eg-statement { font-size: 15px; line-height: 26px; }
.eg-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 10px; }
.eg-ratio-box img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* Welcome */
.eg-welcome-box { margin-bottom: 30px; }
.eg-welcome-box h3 { font-weight: 600; }
@media (min-width: 992px) { .about-home .owl-stage-outer { margin-top: 0; } }

/* Fact cards / Why choose */
.eg-fact-card img { width: 100%; aspect-ratio: 525/808; object-fit: cover; }
.eg-why-box .eg-why-title { font-size: 26px; line-height: 32px; margin-bottom: 10px; }
.eg-why-box .eg-why-sub { font-size: 16px; line-height: 24px; font-weight: 600; margin: 0 0 12px; }
.eg-why-box p { font-size: 14px; line-height: 23px; }

/* Service & value cards: altura uniforme */
.services-half-bottom .row > [class*="col-"],
.eg-values-row > [class*="col-"] { display: flex; }
.services-half-bottom .mt-icon-box-wraper,
.eg-value-card-wrap { width: 100%; }
.eg-service-card, .eg-value-card { height: calc(100% - 30px); }
.services-half-bottom .mt-icon-box-wraper { display: flex; width: 100%; }
.services-half-bottom .eg-service-card { height: auto; width: 100%; }

.latest-blog-wrap .eg-values-intro { max-width: 900px; margin: 0 auto 40px; }
.latest-blog-wrap .eg-values-intro p { color: #ccc; }
.eg-value-card .icon-count-number { color: rgba(0,0,0,.06); }

/* Credentials */
.eg-credentials li { font-weight: 500; }

/* Project tiles */
.eg-project-tile .mt-thum-bx img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.eg-project-tile .mfp-link, .eg-project-tile .eg-featured-open { position: absolute; inset: 0; z-index: 3; }

/* Reviews */
.eg-stars { color: var(--eg-primary); letter-spacing: 2px; white-space: nowrap; }
.eg-initials {
    display: flex !important; align-items: center; justify-content: center;
    width: 80px; height: 80px; background: var(--eg-primary); color: #fff;
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 26px;
}
.eg-review-summary { font-size: 16px; margin-bottom: 0; }
.eg-empty-reviews { max-width: 720px; margin: 0 auto 30px; }

/* Contact card */
.eg-contact-list { list-style: none; padding: 0; margin: 0 0 15px; }
.eg-contact-list li { color: #ddd; padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid rgba(255,255,255,.08); }
.eg-contact-list li i { position: absolute; left: 0; top: 13px; color: var(--eg-primary); width: 20px; text-align: center; }
.eg-contact-list a { color: #fff; }
.eg-contact-list a:hover { color: var(--eg-primary); }
.mission-mid { min-height: 420px; }

/* Call us */
.call-us-number a { color: inherit; }

/* Footer */
.eg-cta-right { text-align: right; padding-top: 6px; }
.eg-cta-phone { color: #000; font-weight: 700; text-decoration: underline; }
@media (max-width: 767px) { .eg-cta-right { text-align: left; padding-top: 15px; } }
.eg-footer-credentials { color: #bbb; font-size: 13px; line-height: 22px; }
.eg-footer-credentials i { color: var(--eg-primary); width: 16px; }
.site-footer .widget_address a { color: inherit; }
.site-footer .widget_address a:hover { color: var(--eg-primary); }

/* ---------- Services page ---------- */
.eg-service-row { padding: 40px 0; border-bottom: 1px solid #eee; scroll-margin-top: 110px; }
.eg-service-row:last-child { border-bottom: 0; }
.eg-service-media { position: relative; margin-bottom: 30px; }
.eg-service-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.eg-service-media:before {
    content: ""; position: absolute; width: 70%; height: 70%; background: var(--eg-primary);
    left: -15px; bottom: -15px; z-index: -1;
}
.eg-service-row.is-reverse .eg-service-media:before { left: auto; right: -15px; }
.eg-service-number { font-family: 'Poppins', sans-serif; font-size: 60px; font-weight: 800; line-height: 1; color: rgba(0,0,0,.08); display: block; }
.eg-service-row h2 { font-size: 30px; line-height: 38px; margin: 0 0 18px; }
.eg-service-row .eg-service-excerpt { font-weight: 600; color: #222; }
.eg-service-index { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 20px; padding: 0; list-style: none; }
.eg-service-index a {
    display: inline-block; padding: 8px 16px; border: 1px solid #ddd; background: #fff; color: #222;
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.eg-service-index a:hover { background: var(--eg-primary); border-color: var(--eg-primary); color: #000; }
@media (min-width: 992px) { .eg-service-row.is-reverse .row { flex-direction: row-reverse; } }

/* ---------- Projects page (galería por proyecto) ---------- */
.eg-project-grid { transition: opacity .25s; }
.eg-projects-results.is-loading .eg-project-grid { opacity: .35; pointer-events: none; }
.eg-project-card {
    display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: 6px; overflow: hidden;
    box-shadow: 0 6px 24px rgba(9, 46, 109, .08); transition: transform .3s, box-shadow .3s;
}
.eg-project-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(9, 46, 109, .16); }
.eg-photo-btn { display: block; position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.eg-photo-btn img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.eg-photo-btn:hover img, .eg-photo-btn:focus-visible img { transform: scale(1.05); }
.eg-project-media { position: relative; aspect-ratio: 4 / 3; background: #e9edf3; overflow: hidden; }
.eg-project-media .eg-cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.eg-project-media.eg-ba { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 100%; gap: 3px; background: #fff; }
.eg-project-media.eg-ba .eg-ba-half { position: relative; height: 100%; min-height: 0; }
.eg-project-media.eg-ba .eg-ba-half img { position: absolute; inset: 0; }
.eg-project-status {
    position: absolute; left: 12px; bottom: 12px; z-index: 2; pointer-events: none;
    background: var(--eg-primary); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .6px;
    text-transform: uppercase; padding: 5px 10px; border-radius: 3px;
}
.eg-project-media.eg-ba .eg-project-status { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.eg-project-status.is-progress { background: var(--eg-secondary); }
/* etiquetas BEFORE / AFTER / IN PROGRESS */
.eg-tag {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    line-height: 1; padding: 5px 8px; border-radius: 3px; color: #fff; background: var(--eg-secondary);
}
.eg-tag-after { background: var(--eg-primary); }
.eg-tag-before { background: #fff; color: var(--eg-secondary); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.eg-tag-progress { background: rgba(48, 48, 48, .85); }
.eg-photo-btn .eg-tag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.eg-strip-thumb .eg-tag { display: none; }
.eg-project-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.eg-project-cat { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--eg-primary); }
.eg-project-title { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.eg-project-title:focus { outline: none; }
.eg-project-summary { font-size: 14px; line-height: 1.6; color: #555; margin-bottom: 16px; }
.eg-project-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: auto 0 18px; }
.eg-strip-thumb, .eg-strip-more { aspect-ratio: 1; border-radius: 3px; }
.eg-strip-more {
    background: #eef2f8; color: var(--eg-primary); font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
}
.eg-strip-more:hover { background: var(--eg-primary); color: #fff; }
.eg-photo-btn.eg-project-open {
    align-self: flex-start; cursor: pointer; overflow: visible;
    background-color: var(--eg-primary); color: #fff; padding: 12px 26px; border-radius: 0; margin: 0;
}
.eg-photo-btn.eg-project-open:hover, .eg-photo-btn.eg-project-open:focus-visible { background-color: var(--eg-secondary); color: #fff; }
.eg-project-strip + .eg-project-open { margin-top: 0; }
.eg-project-body > .eg-project-open:first-child, .eg-project-summary + .eg-project-open { margin-top: auto; }
/* paginación */
.eg-projects-pager { margin-top: 10px; text-align: center; }
.eg-projects-pager ul { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.eg-projects-pager a, .eg-projects-pager span {
    display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px;
    justify-content: center; border-radius: 4px; font-weight: 600; font-size: 14px;
    background: #fff; color: var(--eg-secondary); border: 1px solid #dde3ec; transition: background .2s, color .2s;
}
.eg-projects-pager a:hover, .eg-projects-pager a:focus-visible { background: var(--eg-primary); color: #fff; border-color: var(--eg-primary); }
.eg-projects-pager .is-current { background: var(--eg-primary); color: #fff; border-color: var(--eg-primary); }
.eg-projects-pager .is-disabled { opacity: .45; }
.eg-projects-count { margin: 12px 0 0; font-size: 13px; color: #555; }
@media (max-width: 575px) {
    .eg-projects-pager a[rel], .eg-projects-pager .is-disabled { padding: 0 10px; }
    .eg-project-body { padding: 18px; }
}
/* lightbox */
.eg-mfp .mfp-title { line-height: 1.5; padding-right: 70px; }
.eg-mfp .mfp-title strong { display: block; font-size: 15px; margin-top: 6px; }
.eg-mfp .mfp-title small { display: block; font-size: 13px; color: #ccc; }
.eg-mfp .mfp-title .eg-tag { margin-top: 2px; }
.eg-mfp .mfp-close { font-size: 34px; opacity: .9; }
.eg-mfp .mfp-arrow { opacity: .85; }
.filter-navigation.inline-navigation li { margin-bottom: 8px; }

/* ---------- Forms ---------- */
.eg-form .form-group label { font-weight: 600; font-size: 13px; color: #222; margin-bottom: 6px; display: block; }
.eg-form .form-control { border-radius: 0; height: 48px; }
.eg-form textarea.form-control { height: auto; min-height: 140px; }
.eg-form .required { color: #c0392b; }
.eg-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.eg-captcha { margin: 5px 0 15px; }
.eg-captcha-math input { max-width: 180px; }
.eg-form-status { display: none; padding: 14px 18px; margin: 0 0 20px; border-left: 4px solid; font-weight: 500; }
.eg-form-status.is-visible { display: block; }
.eg-form-status.is-success { background: #eaf7ee; border-color: #2e8b57; color: #1e5c3a; }
.eg-form-status.is-error { background: #fdeceb; border-color: #c0392b; color: #8e2a20; }
.eg-form .is-invalid { border-color: #c0392b !important; }
.eg-field-error { display: block; color: #c0392b; font-size: 12px; margin-top: 4px; }
.eg-form button[disabled] { opacity: .6; cursor: wait; }
.eg-privacy-note { font-size: 12px; color: #555; margin: 0 0 15px; }

/* Rating input */
.eg-rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.eg-rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eg-rating-input label { font-size: 30px; color: #ccc; cursor: pointer; margin: 0; line-height: 1; }
.eg-rating-input label:hover,
.eg-rating-input label:hover ~ label,
.eg-rating-input input:checked ~ label { color: var(--eg-primary); }
.eg-rating-input input:focus-visible + label { outline: 2px solid var(--eg-primary); }

/* ---------- Reviews page ---------- */
.eg-review-card { background: #fff; border: 1px solid #eee; padding: 25px; margin-bottom: 30px; height: calc(100% - 30px); }
.eg-review-card .eg-review-head { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.eg-review-card .eg-initials { width: 56px; height: 56px; font-size: 18px; border-radius: 50%; flex: 0 0 auto; }
.eg-review-card h3 { font-size: 17px; margin: 0 0 4px; }
.eg-review-meta { font-size: 12px; color: #555; }
.eg-review-overview { background: var(--eg-secondary); color: #fff; padding: 30px; text-align: center; margin-bottom: 30px; }
.eg-review-overview .eg-big { font-size: 54px; font-weight: 800; color: var(--eg-primary); line-height: 1; font-family: 'Poppins', sans-serif; }
.eg-review-overview p { color: #ccc; margin: 10px 0 0; }

/* ---------- Contact page ---------- */
.contact-one-inner-right a { color: #fff; }
.contact-one-inner-right a:hover { color: var(--eg-primary); }
.gmap-outline iframe { width: 100%; border: 0; display: block; }

/* ---------- 404 ---------- */
.eg-404 .eg-404-code { font-size: 120px; font-weight: 800; line-height: 1; color: var(--eg-primary); font-family: 'Poppins', sans-serif; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .eg-section-sub { font-size: 19px; line-height: 28px; }
    .eg-service-row h2 { font-size: 24px; line-height: 32px; }
    .hilite-title strong { font-size: 60px !important; }
    .mission-mid { min-height: 300px; }
}

/* Títulos de tarjetas: la plantilla fuerza una palabra por línea */
.icon-count-2 .mt-tilte { word-spacing: normal; min-height: 52px; }
.eg-value-card .mt-tilte { min-height: 0; }

/* Oscurecer imágenes del slider para que el texto sea legible */
#welcome .tp-bgimg, #welcome .rev-slidebg { filter: brightness(.42); }
#welcome .tp-shape.tp-shapewrapper { background-color: rgba(0,0,0,.25) !important; }

/* Estrellas de calificación: anular radios personalizados de la plantilla */
.eg-rating-input input[type=radio] + label { display: inline-block; padding-left: 0 !important; }
.eg-rating-input input[type=radio] + label:before,
.eg-rating-input input[type=radio] + label:after { display: none !important; content: none !important; }

/* About */
.eg-portrait img { width: 100%; aspect-ratio: 510/632; object-fit: cover; display: block; }
.our-story .eg-story-label { color: var(--eg-primary); font-size: 16px; line-height: 24px; letter-spacing: 1px; margin-top: 0; }
.our-story .our-story-detail h4 { font-size: 20px; }
.eg-mv-card h2 { font-size: 30px; }
.eg-mv-card p { font-size: 15px; line-height: 26px; }
.eg-h2-md { font-size: 30px; line-height: 40px; }
.eg-h2-sm { font-size: 26px; line-height: 34px; }
@media (max-width: 767px) { .eg-h2-md { font-size: 24px; line-height: 32px; } }

/* Contact */
.contact-one-inner-right .eg-info-title { font-size: 16px; line-height: 22px; color: #fff; margin-bottom: 6px; }
.contact-one-inner-right p { margin-bottom: 0; }
.eg-form .eg-rating-input label { font-size: 30px; color: #ccc; cursor: pointer; margin: 0; line-height: 1; display: inline-block; }
.eg-form .eg-rating-input label:hover,
.eg-form .eg-rating-input label:hover ~ label,
.eg-form .eg-rating-input input:checked ~ label { color: var(--eg-primary); }

/* ==========================================================
   Paleta del logo (primario oscuro): legibilidad
   ========================================================== */
:root { --eg-primary-light: #8ea3c4; }

/* Logo SVG */
.logo-header { width: 240px; }
.eg-logo-img { display: inline-block; line-height: 0; }
.eg-logo-img img { width: 224px; height: auto; max-width: 100%; }
.eg-logo-img-footer { background: #fff; padding: 10px 14px; border-radius: 2px; }
.eg-logo-img-footer img { width: 200px; }
.logo-footer { height: auto; }
@media (max-width: 991px) { .logo-header { width: 190px; } .eg-logo-img img { width: 180px; } }
@media (max-width: 480px) { .logo-header { width: 165px; } .eg-logo-img img { width: 160px; } }

/* Acentos sobre fondos oscuros: usar el azul aclarado */
.site-bg-dark .site-text-primary,
.bg-dark .site-text-primary,
.Service-half-top .site-text-primary,
.footer-dark .site-text-primary,
.section-head.text-white .site-text-primary,
.text-white .site-text-primary,
.our-story .eg-story-label,
.eg-contact-list li i,
.eg-footer-credentials i,
.eg-review-overview .eg-big,
.eg-initials { color: var(--eg-primary-light); }
.site-bg-dark .sep-line-one:before, .site-bg-dark .sep-line-one:after,
.text-white .sep-line-one:before, .text-white .sep-line-one:after,
.bg-dark .sep-line-one:before, .bg-dark .sep-line-one:after,
.section-head.text-white .sep-line-one:before, .section-head.text-white .sep-line-one:after { background-color: var(--eg-primary-light); }
.eg-contact-list a:hover, .site-footer .widget_address a:hover, .contact-one-inner-right a:hover { color: var(--eg-primary-light); }

/* Texto sobre fondos del color primario */
.site-bg-primary, .site-bg-primary h1, .site-bg-primary h2, .site-bg-primary h3,
.site-bg-primary h4, .site-bg-primary span, .site-bg-primary a:not(.site-button-secondry) { color: #fff; }
.call-to-action-wrap .call-to-action-left, .call-to-action-wrap .call-to-action-left h4,
.call-to-action-wrap .call-to-action-left span { color: #fff !important; }
.eg-cta-phone { color: #fff; }
.call-us-section, .call-us-section h2, .call-us-section h4, .call-us-number a { color: #fff; }
#welcome_wrapper .site-button { color: #fff; }
.eg-service-index a:hover { color: #fff; }
.eg-stars { color: #e0a800; }
.eg-rating-input input:checked ~ label, .eg-form .eg-rating-input input:checked ~ label,
.eg-form .eg-rating-input label:hover, .eg-form .eg-rating-input label:hover ~ label { color: #e0a800; }
.eg-skip-link { color: #fff; }
.logo-footer { margin-bottom: 15px; }
.mt-breadcrumb li a, .mt-breadcrumb li:after { color: var(--eg-primary-light) !important; }
.mt-bnr-inr .mt-breadcrumb li { color: #fff; }

/* reCAPTCHA v3: aviso de uso (el distintivo flotante de Google se mantiene visible) */
.eg-recaptcha-note { font-size: 12px; line-height: 1.5; color: #777; margin: 0 0 15px; }
.eg-recaptcha-note a { color: inherit; text-decoration: underline; }
/* lightbox: fondo más oscuro y espacio para la leyenda bajo la foto */
.mfp-bg.eg-mfp { background: #050d1d; opacity: .92; }
@media (min-width: 801px) {
    .eg-mfp img.mfp-img { padding-bottom: 100px; }
    .eg-mfp .mfp-bottom-bar { margin-top: -96px; }
}

/* About: icono de Misión visible sobre la tarjeta oscura (ambas tarjetas con el mismo círculo) */
.eg-mv-card .icon-md { width: 72px; height: 72px; }
.eg-mv-card .icon-md img { display: block; box-sizing: border-box; width: 72px; height: 72px; max-width: none; object-fit: contain; padding: 12px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.eg-mv-card.bg-gray .icon-md img { background: #fff; }

/* ---------- Legibilidad: textos pensados para el amarillo original de la plantilla ---------- */
/* Services: franja "Call For a Free Estimate" (fondo azul de marca) */
.call-for-quote-outer .call-quote,
.call-for-quote-outer .call-quote span { color: #fff; font-size: 15px; }
.call-for-quote-outer .call-quote h4 { margin: 6px 0 0; font-size: 26px; font-weight: 700; }
.call-for-quote-outer .call-quote h4 a { color: #fff; }
.call-for-quote-outer .call-quote h4 a:hover,
.call-for-quote-outer .call-quote h4 a:focus { color: var(--eg-primary-light); }
/* Fondos azules con texto/ícono negro en la plantilla */
.footer-dark .social-icons li a:hover,
.footer-light .social-icons li a:hover,
.mt-tabs.bg-tabs .nav-tabs > li .nav-link.active,
.date-style-outline .post-date { color: #fff; }
/* Menú móvil: enlaces un poco más oscuros (contraste AA) */
@media (max-width: 991px) { .header-nav .nav > li > a { color: #444; } }
.eg-initials, .eg-review-card .eg-initials { color: #fff; }
