/* Paleta inspirada en G & Z Remodeling: azul y celeste como base, naranja como énfasis. */
:root {
    --background: #f4f9fd;
    --surface: #ffffff;
    --text: #17324d;
    --muted: #526b82;
    --primary: #115dbf;
    --primary-dark: #035aa6;
    --secondary: #0f9dfd;
    --secondary-soft: #e4f4ff;
    --accent: #f28c28;
    --border: #cbdfee;
    --button-background: #115dbf;
    --button-hover: #035aa6;
    --button-text: #ffffff;
    --header-background: #062f57;
    --header-text: #ffffff;
    --hero-overlay: #062b4c;
    --hero-text: #ffffff;
    --services-background: #eef7fd;
    --services-text: #17324d;
    --services-icon: #0f9dfd;
    --storm-background: #035aa6;
    --storm-text: #ffffff;
    --profile-section-background: #e4f4ff;
    --profile-overlay: #062b4c;
    --profile-overlay-opacity: 48%;
    --profile-background-size: cover;
    --profile-background-attachment: scroll;
    --profile-background: #ffffff;
    --profile-text: #17324d;
    --credentials-background: #e4f4ff;
    --credentials-text: #17324d;
    --about-background: #ffffff;
    --about-text: #17324d;
    --process-background: #073b66;
    --process-text: #ffffff;
    --projects-background: #f8fbfe;
    --projects-text: #17324d;
    --gallery-background: #e8f4fb;
    --gallery-text: #17324d;
    --social-videos-background: #ffffff;
    --social-videos-text: #17324d;
    --reviews-background: #f8fbfe;
    --reviews-text: #17324d;
    --cta-overlay: #073b66;
    --cta-text: #ffffff;
    --quote-background: #eef7fd;
    --quote-text: #17324d;
    --footer-background: #061f38;
    --footer-text: #d9eaf7;
    --footer-glow-color: #0f9dfd;
}

/* CTA de tormentas: colores sólidos y contraste AA. */
.storm-cta {
    padding: 34px 0;
    background: var(--storm-background);
    color: var(--storm-text);
    border-block: 4px solid var(--accent);
}

.storm-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.storm-cta h2 {
    margin: 0 0 8px;
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
}

.storm-cta h2 strong { color: var(--accent); }
.storm-cta p { margin: 0; font-size: 1.08rem; }
.storm-cta .button-accent { border-color: var(--accent); background: var(--accent); color: #17212b; }
.storm-cta .button-accent:hover,
.storm-cta .button-accent:focus-visible { border-color: #ffffff; background: #ffffff; color: #17324d; }

.company-profile {
    position: relative;
    overflow: hidden;
    background-color: var(--profile-section-background);
    color: var(--profile-text);
}
.company-profile.has-profile-background {
    background-image: var(--profile-section-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: var(--profile-background-size);
    background-attachment: var(--profile-background-attachment);
}
.company-profile.has-profile-background::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: color-mix(in srgb, var(--profile-overlay) var(--profile-overlay-opacity), transparent);
    pointer-events: none;
}
.company-profile > .container { position: relative; z-index: 1; }
.company-profile-card {
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(32px, 6vw, 72px);
    border: 1px solid var(--border);
    border-left: 8px solid var(--accent);
    border-radius: var(--radius);
    background: var(--profile-background);
    box-shadow: 0 24px 60px rgba(3, 75, 126, .12);
}
.company-profile-card-content { position: relative; z-index: 1; }
.company-profile-card h2 { max-width: 780px; }
.company-profile-card p { color: var(--muted); font-size: 1.04rem; }
.company-profile-card .button { margin-top: 14px; }

.credentials { background: var(--credentials-background); color: var(--credentials-text); }
.credentials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.credential-card {
    display: grid;
    place-items: center;
    min-width: 0;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(3, 75, 126, .10);
}
.credential-card img { width: min(100%, 260px); aspect-ratio: 1; object-fit: contain; }
.credential-card figcaption { margin-top: 16px; color: var(--credentials-text); font-weight: 800; text-align: center; }

.field small { color: var(--muted); line-height: 1.45; }
.field select[multiple] { min-height: 150px; }
.field select[multiple] option { padding: 8px 10px; }
.field .select2-container { width: 100% !important; }
.field .select2-container--default .select2-selection--multiple {
    min-height: 52px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #ffffff;
}
.field .select2-container--default.select2-container--focus .select2-selection--multiple,
.field .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondary) 17%, transparent);
}
.field .select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 3px 5px 3px 0;
    padding: 5px 9px 5px 28px;
    border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
    border-radius: 999px;
    background: var(--secondary-soft);
    color: var(--text);
    font-weight: 700;
}
.field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    width: 24px;
    height: 100%;
    border-color: color-mix(in srgb, var(--primary) 20%, var(--border));
    color: var(--primary-dark);
}
.field .select2-container--default .select2-search--inline .select2-search__field {
    height: 32px;
    margin: 4px 0;
    padding: 4px;
}
.select2-container--open .select2-dropdown { z-index: 500; border-color: var(--secondary); }
.select2-results__option { padding: 10px 12px; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--primary); color: var(--button-text); }
.gps-field { margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.gps-field legend { padding-inline: 7px; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.gps-field p { margin: 0 0 14px; color: var(--muted); }
.gps-button { justify-self: start; }
.gps-status { min-height: 24px; font-weight: 700; }
.gps-status.success { color: #216733; }
.gps-status.error { color: #8d2f24; }
.gps-status.loading { color: var(--primary-dark); }
.gps-map-wrap { display: grid; gap: 8px; }
.gps-map-wrap[hidden] { display: none; }
.gps-map {
    width: 100%;
    height: 360px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--secondary-soft);
    box-shadow: 0 14px 32px rgba(3, 75, 126, .10);
}
.gps-map-wrap small { color: var(--muted); font-weight: 600; }
.gps-map .leaflet-control-attribution { font-size: 10px; }
.gps-coordinates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gps-coordinates label { display: grid; gap: 6px; }
.gps-coordinates input { background: var(--secondary-soft); }
.radio-options { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-options label { padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; }

@media (max-width: 760px) {
    .storm-cta-inner { align-items: flex-start; flex-direction: column; }
    .credentials-grid { grid-template-columns: 1fr; }
    .gps-coordinates { grid-template-columns: 1fr; }
    .gps-map { height: 300px; }
}

.site-header {
    box-shadow: 0 10px 34px rgba(3, 45, 82, .12);
}

.brand-mark {
    background: var(--secondary);
    box-shadow: 0 10px 25px color-mix(in srgb, var(--secondary) 28%, transparent);
}

.button {
    border-color: var(--button-background);
    background: var(--button-background);
    color: var(--button-text);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--button-background) 26%, transparent);
}

.button:hover,
.button:focus-visible {
    border-color: var(--button-hover);
    background: var(--button-hover);
    color: var(--button-text);
}

.button-ghost {
    border-color: rgba(255,255,255,.72);
    background: rgba(6,47,87,.24);
}

.button-ghost:hover,
.button-ghost:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
    color: #17212b;
}

.eyebrow {
    color: var(--primary);
}

.eyebrow::before {
    background: var(--accent);
}

.hero-copy .eyebrow,
.section-heading.light .eyebrow,
.cta .eyebrow {
    color: #ffffff;
}

.hero-copy .eyebrow::before,
.section-heading.light .eyebrow::before,
.cta .eyebrow::before {
    background: var(--accent);
}

.hero-stats {
    border-top: 3px solid var(--secondary);
    background: color-mix(in srgb, var(--header-background) 94%, transparent);
}

.stats-grid strong,
.stats-grid span {
    color: var(--accent);
}

.service-card {
    border-top: 3px solid color-mix(in srgb, var(--secondary) 72%, white);
    box-shadow: 0 14px 36px rgba(3, 75, 126, .07);
}

.service-card:hover {
    border-color: color-mix(in srgb, var(--secondary) 70%, var(--border));
    box-shadow: 0 22px 48px rgba(3, 90, 166, .16);
}

.service-icon {
    background: var(--secondary-soft);
    color: var(--services-icon);
}

.experience-badge {
    background: var(--primary);
    border-bottom: 4px solid var(--accent);
}

.process-grid article > span,
.stars {
    color: var(--accent);
}

.review-card,
.service-detail,
.quote-form {
    box-shadow: 0 16px 42px rgba(3, 75, 126, .08);
}

.review-card {
    border-top: 3px solid var(--secondary);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondary) 17%, transparent);
}

.social-links a {
    width: auto;
    height: auto;
    padding: 3px;
    background: transparent;
    border-radius: 0;
    transition: transform .2s;
}

.social-links a:hover {
    background: transparent;
    transform: translateY(-3px);
}

.nav-social-links {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nav-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    background: transparent;
    line-height: 1;
    transition: transform .2s;
}

.nav-social-links a:hover,
.nav-social-links a:focus-visible {
    background: transparent;
    transform: translateY(-3px);
}

.nav-social-links img,
.social-links img { display: block; object-fit: contain; }

@media (max-width: 980px) {
    .nav-social-links { align-self: flex-start; }
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    background: var(--secondary);
    color: #ffffff;
}

/* Servicios administrables: imagen, descripción y precio opcionales. */
.service-card {
    display: flex;
    min-height: 100%;
    padding: 0;
    flex-direction: column;
}

.service-media {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--secondary-soft);
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.service-card:hover .service-media img {
    transform: scale(1.045);
}

.service-card-body {
    display: flex;
    min-height: 240px;
    padding: 28px;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.service-card-no-image .service-card-body {
    min-height: 300px;
    padding-top: 32px;
}

.service-card-body .service-icon {
    margin-bottom: 24px;
}

.service-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 22px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.service-price {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin: 0 0 18px;
}

.service-price strong {
    color: var(--primary-dark);
    font: 800 1.45rem/1 "Barlow Condensed", sans-serif;
}

.service-price del {
    color: var(--muted);
    font-size: .85rem;
}

.service-link {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: auto;
    color: var(--primary-dark);
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.service-link i {
    color: var(--accent);
    transition: transform .2s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* Galería uniforme, como Easy Vending: todas las miniaturas son 1:1. */
.gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card,
.gallery-card:nth-child(5n+1),
.gallery-card:nth-child(5n+5) {
    grid-column: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: var(--radius);
}

@media (max-width: 820px) {
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .gallery-grid { gap: 10px; }
    .service-card-body { min-height: 220px; }
}

/* Reproductores oficiales de videos publicados en redes sociales. */
.social-videos {
    background: var(--social-videos-background);
    color: var(--social-videos-text);
}

.social-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    align-items: start;
    gap: 24px;
}

.social-video-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(3, 75, 126, .1);
}

.social-video-provider {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 18px;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.social-video-provider i { color: var(--accent); font-size: 1.15rem; }
.social-video-frame { width: 100%; background: #07111b; }
.social-video-card-wide .social-video-frame { aspect-ratio: 16 / 9; }
.social-video-card-vertical .social-video-frame { aspect-ratio: 9 / 16; }
.social-video-card-social .social-video-frame { aspect-ratio: 4 / 5; }
.social-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 760px) {
    .social-video-card-wide { grid-column: span 2; }
}
