/* 
===============================================
    IMPERMEABILIZACIONES BILBAO - STYLES
=============================================== 
*/

:root {
    /* Colors */
    --primary: #003366;
    /* Deep Navy Blue */
    --primary-light: #004d99;
    --primary-dark: #001a33;
    --secondary: #00cc99;
    /* Vibrant Teal */
    --secondary-hover: #00b386;
    --secondary-light: rgba(0, 204, 153, 0.1);
    --accent: #ff9900;
    /* Attention orange, for urgent repairs */

    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #1a202c;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #e2e8f0;

    --border-color: #e5e7eb;

    /* Typography */
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container-px: 20px;
    --max-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 6px rgba(0, 51, 102, 0.08);
    --shadow-md: 0 6px 20px rgba(0, 51, 102, 0.12);
    --shadow-lg: 0 15px 40px rgba(0, 51, 102, 0.18);

    /* Transitions */
    --transition: all 0.3s ease;
    --text-dark: #1e293b;
    --urgency-bar-bg: linear-gradient(90deg, #003366, #004d99);
    --urgency-bar-color: #fff;
    --urgency-bar-link: #00cc99;
}

/* ================== GLOBAL ================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 51, 102, 0.08);
}

#urgency-bar {
    padding: 2px 20px !important;
    font-size: 0.78rem !important;
    line-height: 1.2;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.section {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }
}

/* ================== TYPOGRAPHY ================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

h4 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-main);
    line-height: 1.7;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
}

.text-center {
    text-align: center;
}

/* Subheading pill — always centered when inside .text-center */
.subheading {
    display: flex !important;
    width: fit-content;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-family: var(--font-body);
}

.text-center .subheading {
    justify-content: center;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Subheading inside dark backgrounds */
.page-header .subheading {
    color: var(--secondary);
    opacity: 0.9;
}

/* ================== BUTTONS & FORMS ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Secondary: white bg with blue text — for light backgrounds */
.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg-white) !important;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Outline: transparent bg — for DARK backgrounds (hero, page-header) */
.btn-outline {
    background-color: transparent;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff !important;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff !important;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.1);
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* ================== HEADER ================== */
.site-topbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background-color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.08); /* Stronger shadow for better visibility */
}

.header {
    background: var(--bg-white);
    width: 100%;
    height: 80px; /* Standardize height */
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 60px;
    height: 60px;
    fill: var(--primary);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

/* Main Navigation */
.nav-main {
    display: none; /* Mobile first */
}

@media (min-width: 1024px) {
    .nav-main {
        display: block;
        margin: 0 auto; /* Center navigation */
    }

    .nav-main > ul {
        display: flex;
        align-items: center;
        gap: 8px; /* Compact spacing */
    }

    .nav-main > ul > li {
        position: relative;
    }

    .nav-main > ul > li > a,
    .nav-main > ul > li > span {
        padding: 8px 16px;
        color: var(--text-main);
        font-weight: 700;
        font-family: var(--font-body);
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border-radius: 8px;
        transition: all 0.25s ease;
        cursor: pointer;
    }

    .nav-main > ul > li > a:hover,
    .nav-main > ul > li > span:hover {
        background: var(--bg-light);
        color: var(--primary);
    }

    /* Chevron fix: Using a clean CSS-based chevron instead of broken characters */
    .has-dropdown > a::after,
    .has-dropdown > span::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        margin-left: 2px;
        transition: transform 0.3s ease;
    }

    .has-dropdown:hover > a::after,
    .has-dropdown:hover > span::after {
        transform: rotate(-135deg) translateY(-2px);
    }

    /* Dropdown Design */
    .dropdown {
        position: absolute;
        top: calc(100% + 5px);
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
        border-radius: 12px;
        min-width: 240px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 12px;
        border: 1px solid rgba(0, 51, 102, 0.05);
        z-index: 100;
    }

    .has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown li {
        width: 100%;
        margin-bottom: 2px;
    }

    .dropdown li:last-child {
        margin-bottom: 0;
    }

    .dropdown li a {
        display: block;
        padding: 10px 16px;
        color: var(--text-main);
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.2s ease;
        font-size: 0.9rem;
    }

    .dropdown li a:hover {
        background: var(--bg-light);
        color: var(--primary);
        padding-left: 22px;
    }
}

/* Call to Action Button */
.btn-presupuesto {
    display: none; /* Hide on small mobile */
}

@media (min-width: 640px) {
    .btn-presupuesto {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: var(--secondary);
        color: var(--primary-dark);
        padding: 12px 24px;
        border-radius: 100px;
        font-weight: 800;
        font-size: 0.95rem;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 204, 153, 0.25);
        flex-shrink: 0;
    }

    .btn-presupuesto:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 204, 153, 0.35);
        background: var(--secondary-hover);
        color: var(--primary-dark);
    }

    .btn-presupuesto svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }
}

/* Mobile Nav Styles */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Fullscreen mobile menu */
.nav-main.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    padding: 100px 30px 40px;
    z-index: 999;
    overflow-y: auto;
}

.nav-main.active > ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.nav-main.active > ul > li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.nav-main.active > ul > li > a,
.nav-main.active > ul > li > span {
    display: flex;
    width: 100%;
    padding: 20px 0;
    font-size: 1.25rem;
    justify-content: space-between;
}

.nav-main.active .dropdown {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--bg-light);
    margin: 10px -30px 20px;
    padding: 10px 30px;
    min-width: 100%;
    border-radius: 0;
}

.nav-main.active .has-dropdown.active .dropdown {
    display: block;
}

/* ================== HERO ================== */
.hero {
    margin-top: 0;
    padding: 20px 20px;
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.95)), url('../img/hero-bilbao.png') center/cover no-repeat;
    color: var(--bg-white);
    text-align: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--bg-white);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero p.lead {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 16px;
    color: var(--text-light);
}

.hero .btn-primary {
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.hero .btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ================== SERVICES GRID ================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 10;
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    fill: var(--primary);
    background: linear-gradient(135deg, rgba(0, 77, 153, 0.1), rgba(0, 77, 153, 0.05));
    border-radius: 16px;
    padding: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 204, 153, 0.15), rgba(0, 77, 153, 0.1));
    fill: var(--secondary);
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
}

/* ================== TRUST SIGNALS ================== */
.trust-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.trust-item svg {
    width: 48px;
    height: 48px;
    fill: var(--primary);
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.trust-item p {
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

/* ================== TESTIMONIALS ================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stars {
    color: #ffb400;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================== FAQ ================== */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-question[aria-expanded="true"]::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-question[aria-expanded="true"]+.faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
    /* arbitrary high number */
}

/* ================== CONTACT & MAP ================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    padding: 40px;
    background: var(--primary-dark);
    color: var(--bg-white);
}

.contact-info h3 {
    color: var(--bg-white);
}

.contact-info-list {
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item svg {
    width: 24px;
    height: 24px;
    fill: var(--secondary);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-form-wrap {
    padding: 40px;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

#map-placeholder {
    width: 100%;
    height: 400px;
    background: #e5e3df url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" style="background:%23e5e3df"><text x="50%" y="50%" font-family="sans-serif" font-size="14" fill="%23666" text-anchor="middle">Cargando mapa interactivo...</text></svg>') center/cover no-repeat;
}

/* ================== FOOTER ================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 70px 0 0;
    border-top: 3px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--bg-white);
    display: block;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    letter-spacing: -0.3px;
}

.footer-logo::before {
    content: '💧 ';
}

.footer h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '›';
    color: var(--secondary);
    font-weight: bold;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

/* Footer description paragraph */
.footer p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 0.92rem;
}

/* Footer contact icon list (first column) */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-list svg {
    width: 16px;
    height: 16px;
    fill: var(--secondary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-list a,
.footer-contact-list span {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.footer-contact-list a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2.2fr 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* ================== FLOATING & STICKY CTAS ================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-cta-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    font-weight: 700;
    color: white;
    width: 50%;
}

.mobile-cta-bar .cta-call {
    background: var(--primary);
}

.mobile-cta-bar .cta-whatsapp {
    background: #25D366;
}

.mobile-cta-bar svg {
    width: 20px;
    height: 20px;
    fill: white;
}

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 80px;
        /* Above the mobile cta bar */
    }

    .mobile-cta-bar {
        display: flex;
    }

    /* Padding bottom on body so nothing hides behind sticky CTA */
    body {
        padding-bottom: 56px;
    }
}

/* ================== PAGE HEADER (INNER) ================== */
.page-header {
    margin-top: 0 !important;
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.95)), url('../img/hero.webp') center/cover no-repeat !important;
    color: var(--bg-white) !important;
    padding: 80px 20px !important;
    text-align: center !important;
}

.page-header h1 {
    color: var(--bg-white) !important;
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
    font-weight: 800 !important;
}

.page-header p {
    font-size: 1.25rem !important;
    color: var(--text-light) !important;
    max-width: 800px;
    margin: 0 auto 30px !important;
}

/* Fix section white gaps */
.section {
    padding: 60px 0;
}

.section:nth-of-type(even) {
    background-color: var(--bg-white);
}

.section:nth-of-type(odd) {
    background-color: var(--bg-light);
}

/* Ensure breadcrumb blends well */
nav[aria-label="Breadcrumb"] {
    background-color: var(--bg-light);
    padding-bottom: 20px;
}

/* ── Fix: breadcrumb transparente dentro del hero de servicios ── */
.service-hero-v2 .breadcrumb,
.service-hero-v2 nav[aria-label="Breadcrumb"] {
    background: transparent !important;
    padding-bottom: 18px;
}
.service-hero-v2 .breadcrumb a,
.service-hero-v2 .breadcrumb span,
.service-hero-v2 .breadcrumb li {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.85rem;
}
.service-hero-v2 .breadcrumb a:hover {
    color: var(--secondary) !important;
}

/* ── Fix: CTA primario visible sobre el fondo oscuro del hero ── */
.service-hero-v2 .btn-primary {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: var(--primary-dark) !important;
    box-shadow: 0 8px 28px rgba(0, 204, 153, 0.45);
}
.service-hero-v2 .btn-primary:hover {
    background: var(--secondary-hover) !important;
    border-color: var(--secondary-hover) !important;
    color: var(--primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(0, 204, 153, 0.55);
}

/* ── Fix: color texto CTA en trust-banner (evita override de !important) ── */
.trust-banner-premium .btn-primary {
    color: var(--primary-dark) !important;
}

/* ── Fix: texto del trust-banner visible sobre fondo oscuro ── */
/* Los estilos globales de h3 y p sobreescriben el color:#fff del contenedor */
.trust-banner-premium h3,
.trust-banner-premium h4 {
    color: #ffffff !important;
}
.trust-banner-premium p {
    color: rgba(255, 255, 255, 0.92) !important;
}
.trust-banner-premium .trust-content h3 {
    margin-bottom: 8px;
}

/* ── Fix: max-height FAQ ampliado para respuestas largas ── */
.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 1500px !important;
    padding: 0 20px 22px !important;
}

/* ================== PREMIUM ENHANCEMENTS V2 ================== */

/* Google Fonts for headings */
:root {
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

body {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.3px;
}

/* Hero margin fix when urgency bar present */
#urgency-bar+.header {
    top: 40px;
}

/* Service Cards - Premium Hover */
.service-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(0, 77, 153, 0.15) !important;
}

/* Subheading pill-style */
.subheading {
    display: inline-flex !important;
    align-items: center;
    background: rgba(0, 204, 153, 0.12);
    color: var(--secondary) !important;
    border: 1px solid rgba(0, 204, 153, 0.3);
    border-radius: 50px;
    padding: 6px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 14px;
}

/* Section H2 decorative underline */
.text-center h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.text-center h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* ================== ZONE CARDS ================== */
.zone-card {
    text-decoration: none;
    display: block;
}

.zone-card div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zone-card:hover div {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 51, 102, 0.2);
}

/* ================== BREADCRUMB ================== */
nav[aria-label="Breadcrumb"] {
    background-color: var(--bg-light);
    padding: 20px 0;
}

nav[aria-label="Breadcrumb"] ol {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

nav[aria-label="Breadcrumb"] a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav[aria-label="Breadcrumb"] a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

nav[aria-label="Breadcrumb"] li[style*="color:#a0aec0"] {
    color: var(--text-muted);
}

/* Testimonial Cards Premium */
.testimonial-card {
    background: #fff !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) !important;
    padding: 35px !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 25px;
    font-size: 5rem;
    color: rgba(0, 204, 153, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* FAQ Enhanced */
.faq-question {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}

.faq-item {
    transition: var(--transition);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
    background: #f0f7ff;
    border-radius: var(--radius-md);
}

/* Hero enhanced */
.hero {
    min-height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Section alternation */
.section:nth-of-type(even) {
    background-color: var(--bg-white);
}

.section:nth-of-type(odd) {
    background-color: var(--bg-light);
}

/* ================== GDPR COOKIE BANNER ================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a202c;
    color: #e2e8f0;
    padding: 18px 24px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    border-top: 3px solid var(--secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
}

#cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 260px;
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

#cookie-banner a {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn-accept {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cookie-btn-accept:hover {
    background: var(--primary);
}

.cookie-btn-reject {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #4b5563;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.cookie-btn-reject:hover {
    border-color: #9ca3af;
    color: #e2e8f0;
}

@media (max-width: 600px) {
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }
    .cookie-actions {
        width: 100%;
    }
    .cookie-btn-accept,
    .cookie-btn-reject {
        flex: 1;
        text-align: center;
    }
}

/* Urgency header offset fix */
body:has(#urgency-bar) .hero {
    margin-top: 0;
}

/* Smooth scroll anchor offset */
[id] {
    scroll-margin-top: 80px;
}

/* Trust items icon glow */
.trust-item svg {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.trust-item:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(0, 204, 153, 0.5));
}

/* Footer logo larger */
.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
}

/* Process section icon pulse animation */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 204, 153, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(0, 204, 153, 0);
    }
}

/* Responsive table */
@media (max-width: 600px) {
    table {
        font-size: 0.8rem;
    }

    table th,
    table td {
        padding: 10px 8px !important;
    }
}

/* ================== URGENCY BAR ANIMATION ================== */
#urgency-bar {
    transition: height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

/* ================== ICON SIZE FIXES ================== */
/* Service grid icons */
.service-icon {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px;
    max-height: 48px;
    flex-shrink: 0;
}

/* Trust section icons — constrained */
.trust-item>svg {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
}

/* Logo icon — precise */
.logo-icon {
    width: 58px !important;
    height: 58px !important;
}

/* Header phone icon */
.header-phone svg {
    width: 18px !important;
    height: 18px !important;
}

/* WhatsApp float button */
.whatsapp-float svg {
    width: 28px !important;
    height: 28px !important;
}

/* Mobile CTA bar icons */
.mobile-cta-bar svg {
    width: 20px !important;
    height: 20px !important;
}

/* Footer SVG icons */
footer svg {
    width: 20px;
    height: 20px;
}

/* Service card icon responsive */
@media (max-width: 767px) {
    .service-icon {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Urgency bar does not distort layout on inner pages (no urgency bar present) */
body:not(:has(#urgency-bar)) .page-header {
    margin-top: 70px !important;
}

/* Remove conflicting CSS margin rule — JS now controls hero margin dynamically */
/* body:has(#urgency-bar) .hero margin-top managed by JS main.js */

/* ================== SUBHEADING PILL (centered) ================== */
.text-center .subheading {
    display: flex !important;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 16px !important;
}

/* ================== TESTIMONIALS GRID ================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.08);
    border: 1px solid rgba(0, 51, 102, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 51, 102, 0.13);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}

/* ================== RESPONSIVE DESIGN FIXES ================== */
@media (max-width: 900px) {

    section .container>div[style*="grid-template-columns:1fr 1fr"],
    section>.container>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Page-header padding: bigger on desktop */
@media (min-width: 768px) {
    .page-header {
        padding: 100px 20px !important;
    }
}

@media (max-width: 767px) {
    .page-header {
        padding: 60px 20px 50px !important;
    }

    .page-header h1 {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 1023px) {
    .site-topbar {
        position: sticky;
        top: 0;
    }

    .header {
        position: relative !important;
        top: auto !important;
        padding: 14px 0 10px !important;
    }

    .header .container {
        min-height: 74px;
        gap: 14px;
        grid-template-columns: auto 1fr auto;
    }

    .logo {
        justify-self: start;
    }

    .nav-toggle {
        justify-self: end;
        width: 34px;
        height: 24px;
    }

    .nav-toggle span {
        height: 4px;
    }

    .btn-presupuesto {
        display: none !important;
    }

    .hero,
    .page-header {
        margin-top: 0 !important;
    }

    #urgency-bar {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 280px;
        height: auto;
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .hero .container,
    .page-header .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-ctas .btn,
    .hero-ctas a.btn,
    .hero-ctas a[class*="btn"] {
        width: 100%;
        white-space: normal;
    }
}

/* Footer: stack on mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Prevent horizontal scroll from urgency bar */
#urgency-bar {
    overflow: hidden;
    white-space: nowrap;
}

/* Grid cards: single col on very small mobile */
@media (max-width: 480px) {
    [style*="grid-template-columns:repeat(auto-fill,minmax(340px"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns:repeat(auto-fill,minmax(320px"] {
        grid-template-columns: 1fr !important;
    }
}

/* ================== URGENCY BAR ================== */
#urgency-bar {
    position: sticky;
    top: 0;
    z-index: 1100;
    white-space: nowrap;
    overflow: hidden;
}

/* ================== ZONA CARDS ================== */
.zona-card-link {
    display: block;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
}

.zona-card-link:hover {
    border-color: var(--secondary);
    border-top-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(0, 204, 153, 0.15);
    transform: translateY(-4px);
}

.zona-card-link .zona-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.zona-card-link h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.zona-card-link span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.zona-card-link .zona-arrow {
    display: inline-block;
    margin-top: 12px;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ================== GALLERY / TRABAJOS ================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--primary-dark);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,51,102,0.9) 0%, transparent 100%);
    padding: 20px 16px 16px;
    color: white;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    margin: 0;
}

/* ============================================================
   PREMIUM UI COMPONENTS V2 - IMPERMEABILIZACIONES BILBAO
============================================================ */

/* 1. SERVICE HERO V2 (Split or Centered Layout) */
.service-hero-v2 {
    background: linear-gradient(rgba(0, 30, 60, 0.88), rgba(0, 30, 60, 0.95)), url('../img/hero.png') center/cover no-repeat;
    padding: 100px 0 80px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Reset for site-topbar sticky */
}

.service-hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 15%, rgba(0, 204, 153, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 85% 85%, rgba(0, 77, 153, 0.2) 0%, transparent 50%);
}

.service-hero-v2 .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.service-hero-v2 h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.service-hero-v2 .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 35px;
}

.service-hero-v2 .hero-ctas {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 2. FEATURE CARDS GRID */
.features-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card-v2 {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.06);
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.12);
    border-color: var(--secondary);
}

.feature-card-v2 .icon-wrap {
    width: 70px;
    height: 70px;
    background: #f0f7ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card-v2:hover .icon-wrap {
    background: var(--secondary);
    color: #fff;
}

/* 3. MODERN PROCESS TIMELINE (Glassmorphism) */
.process-timeline-v2 {
    position: relative;
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.process-step-v2 {
    position: relative;
    padding: 40px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.process-step-v2:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.process-step-v2 .step-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    opacity: 0.4;
    position: absolute;
    top: 15px;
    right: 25px;
    line-height: 1;
}

.process-step-v2 h3 {
    color: #fff;
    margin-bottom: 15px;
    position: relative;
}

.process-step-v2 p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* 4. INFO BLOCK (Split Text + Image) */
.info-block-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    padding: 80px 0;
}

@media (min-width: 992px) {
    .info-block-modern {
        grid-template-columns: 1.1fr 0.9fr;
    }
    .info-block-modern.reverse {
        grid-template-columns: 0.9fr 1.1fr;
    }
    .info-block-modern.reverse .info-content {
        order: 2;
    }
}

.info-content .subheading {
    margin-bottom: 15px;
}

.info-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 25px;
}

.info-list {
    margin-top: 30px;
}

.info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-list svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    fill: var(--secondary);
    margin-top: 4px;
}

.info-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 51, 102, 0.2);
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.info-image:hover img {
    transform: scale(1.05);
}

/* 5. PREMIUM MAP CONTAINER */
.map-container-premium {
    width: 100%;
    height: 480px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    background: #f0f4f8;
}

.map-container-premium iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: saturate(1.1);
}

.map-overlay-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 320px;
    z-index: 5;
}

/* 6. TRUST INDEX BANNER */
.trust-banner-premium {
    background: linear-gradient(135deg, #002244, #001122);
    padding: 40px;
    border-radius: 24px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.trust-banner-premium .rating-big {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

/* 7. GRID SERVICE CARDS V2 — "Nuestras Especialidades" */
.grid-services-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    counter-reset: service-counter;
}

.grid-service-item {
    background: #fff;
    padding: 35px 28px 30px;
    border-radius: 20px;
    border: 1px solid #e8f0fa;
    border-top: 4px solid var(--secondary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    counter-increment: service-counter;
}

/* Número decorativo en la esquina */
.grid-service-item::before {
    content: counter(service-counter, decimal-leading-zero);
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 2.8rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: rgba(0, 204, 153, 0.13);
    line-height: 1;
    transition: color 0.35s ease;
    pointer-events: none;
}

/* Icono check a la izquierda del título */
.grid-service-item h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
    transition: border-color 0.35s ease, color 0.35s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grid-service-item h3::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.35s ease, transform 0.35s ease;
}

.grid-service-item p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.72;
    margin-bottom: 0;
}

/* Hover */
.grid-service-item:hover {
    border-color: var(--primary-light);
    border-top-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.12);
    transform: translateY(-7px);
    background: linear-gradient(160deg, #fff 60%, rgba(0, 204, 153, 0.04) 100%);
}

.grid-service-item:hover::before {
    color: rgba(0, 51, 102, 0.1);
}

.grid-service-item:hover h3 {
    color: var(--primary-dark);
    border-bottom-color: var(--secondary);
}

.grid-service-item:hover h3::before {
    background: var(--primary);
    transform: scale(1.3);
}

/* 8. CENTERED DROPDOWN */
@media (min-width: 1024px) {
    .nav-main > ul > li.has-dropdown > span::after,
    .nav-main > ul > li.has-dropdown > a::after {
        content: '\25be';
        font-size: 0.8rem;
        margin-left: 5px;
        opacity: 0.6;
    }
    .nav-main > ul > li.has-dropdown:hover > span::after,
    .nav-main > ul > li.has-dropdown:hover > a::after {
        opacity: 1;
        content: '\25b4';
    }
}

/* ================================================
   SECCIÓN: NUESTROS TRABAJOS — Galería de proyectos
   ================================================ */
.trabajos-section { background: var(--bg-light); }

.trabajos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

@media (max-width: 767px) {
    .trabajos-grid { grid-template-columns: 1fr; }
}

.trabajo-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.07);
    transition: all 0.35s ease;
}

.trabajo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0, 51, 102, 0.14);
}

.trabajo-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.trabajo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.trabajo-card:hover .trabajo-img img {
    transform: scale(1.07);
}

.trabajo-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--secondary);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 13px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-family: var(--font-body);
}

.trabajo-info {
    padding: 18px 22px 20px;
}

.trabajo-info h4 {
    font-size: 0.97rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.trabajo-info p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.55;
}

/* ================================================
   SECCIÓN: GOOGLE REVIEWS — Estilo Trustindex
   ================================================ */
.google-reviews-section { background: #fff; }

.google-reviews-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    padding: 28px 32px;
    background: var(--bg-light);
    border-radius: 20px;
    border: 1px solid #e8edf4;
}

.google-badge-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.google-logo-svg { flex-shrink: 0; }

.google-score-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.google-score-num {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary-dark);
    font-family: var(--font-heading);
    line-height: 1;
}

.google-score-stars {
    color: #fbbc04;
    font-size: 1.25rem;
    letter-spacing: 2px;
    line-height: 1;
}

.google-score-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.google-badge-divider {
    width: 1px;
    height: 60px;
    background: #dde4ef;
}

@media (max-width: 600px) { .google-badge-divider { display: none; } }

.google-badge-right {
    text-align: left;
}

.google-badge-right strong {
    display: block;
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.google-badge-right span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.google-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .google-reviews-grid { grid-template-columns: 1fr; }
}

.google-review-card {
    background: #fff;
    border: 1px solid #e4ecf5;
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: 0 3px 14px rgba(0, 51, 102, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.google-review-card:hover {
    box-shadow: 0 14px 36px rgba(0, 51, 102, 0.11);
    transform: translateY(-4px);
    border-color: #c8d8ee;
}

.google-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 11px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.88rem;
    flex-shrink: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 0.93rem;
    color: var(--primary-dark);
    display: block;
    line-height: 1.3;
}

.reviewer-location {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: block;
}

.review-stars {
    color: #fbbc04;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    line-height: 1;
}

.review-text {
    font-size: 0.89rem;
    color: var(--text-main);
    line-height: 1.68;
    margin: 0;
    flex: 1;
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f4f9;
    padding-top: 12px;
    margin-top: 2px;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-source {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}


/* Overrides for service cards with images */
.service-card h3 { margin-bottom: 12px; font-size: 1.35rem; font-weight: 800; color: var(--primary-dark); transition: var(--transition); }
.service-card:hover h3 { color: var(--primary); }
.service-card p { color: var(--text-main); line-height: 1.6; margin-bottom: 0; font-size: 0.95rem; }
.service-icon { display: none; } /* Hide old icons if any remain */
