/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Design System Variables (Premium Light & Cool Slate Gray Theme) */
:root {
    /* Color Palette */
    --bg-dark: #f8fafc;             /* Modern cool light slate background */
    --bg-alt: #f1f5f9;              /* Alternating sections clean light gray */
    --bg-card: #ffffff;             /* Pure white card background */
    --bg-card-hover: #ffffff;       /* Card hover background */
    
    --primary: #0284c7;             /* Elegant sky blue for water/plumbing */
    --primary-glow: rgba(2, 132, 199, 0.15);
    --secondary: #e11d48;           /* Energetic rose red for gas */
    --secondary-glow: rgba(225, 29, 72, 0.15);
    
    --text-main: #0d1527;           /* Dark slate blue for headings */
    --text-body: #3c4858;           /* Warm slate for body text readability */
    --text-muted: #627182;          /* Slate gray for secondary info */
    --border-color: rgba(13, 21, 39, 0.08); /* Soft borders */
    --border-hover: rgba(13, 21, 39, 0.15);
    
    /* Layout & Animations */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 10px rgba(13, 21, 39, 0.03);
    --shadow-main: 0 20px 40px -15px rgba(13, 21, 39, 0.06);
    --glass-blur: blur(12px);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg-dark);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid var(--bg-alt);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient-water {
    color: var(--primary);
}

.text-gradient-gas {
    color: var(--secondary);
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 90px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 55px 0;
    }
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.badge-primary {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-secondary {
    background: rgba(251, 113, 133, 0.12);
    color: #fb7185;
    border: 1px solid rgba(251, 113, 133, 0.25);
}

/* Header & Glass Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

/* Header on Scroll (Dark navy glass style) */
.header-scrolled {
    background: rgba(11, 17, 30, 0.92); /* Clean dark background */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Nav container - Divided into 3 columns */
.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 85px;
    transition: var(--transition-smooth);
}

.header-scrolled .nav-container {
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.45rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #ffffff; /* Always white logo text */
    transition: var(--transition-fast);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 32px;
    height: 32px;
}

.logo-water {
    color: #38bdf8; /* Lighter sky blue */
    position: absolute;
    transform: translate(-3px, -2px);
}

.logo-fire {
    color: #fb7185; /* Lighter red */
    position: absolute;
    transform: translate(5px, 3px);
}

/* Centered Navigation Menu */
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85); /* Always white/light link text */
    padding: 8px 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

/* Underline link indicator (Solid Color, NO gradients) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #38bdf8; /* Solid light blue underline */
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Services Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 0.65rem;
    transition: var(--transition-fast);
    transform: rotate(0deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0f172a; /* Dark background to match dark header */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px;
    width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-main);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.85); /* White text */
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05); /* Soft dark hover */
    color: #ffffff;
}

.dropdown-item-svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.dropdown-item-desc {
    font-size: 0.75rem;
    display: block;
    color: var(--text-muted);
}

/* Far Right CTA Button Action Group */
.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-cta {
    background: var(--primary);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
    background: #0270a9;
}

/* Burger Mobile Menu button */
.burger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    padding: 5px;
    z-index: 1100;
}

.burger-line {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: #ffffff; /* White burger on transparent hero */
    transition: var(--transition-smooth);
}

.header-scrolled .burger-line {
    background: #ffffff; /* Always white */
}

.mobile-cta-li {
    display: none;
}

/* Responsive mobile header layout style */
@media (max-width: 992px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    
    .nav-actions {
        display: none; /* Hide top-level CTA on mobile header, it will go inside menu drawer */
    }
    
    .burger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 38px;
        height: 38px;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        z-index: 2000 !important;
    }
    .burger-line {
        display: block !important;
        width: 25px;
        height: 3px !important;
        background: #ffffff !important;
        border-radius: 2px;
        margin: 0 !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #0f172a; /* Premium dark background */
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 90px 24px 40px;
        gap: 20px;
        transition: var(--transition-smooth);
        box-shadow: -5px 0 25px rgba(0,0,0,0.2);
        overflow-y: auto; /* Enable scroll if needed */
        z-index: 1050;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: rgba(255, 255, 255, 0.85) !important; /* Always readable light links */
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .nav-link::after {
        display: none; /* Disable underline effect on mobile list */
    }
    
    .nav-link:hover, .nav-link.active {
        color: #ffffff !important;
    }

    /* Mobile Dropdown (pushes options vertically inside navbar menu) */
    .dropdown-menu {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.03);
        margin-top: 5px;
        padding: 8px 16px;
        display: none; /* Controls toggle */
    }

    /* Make sure CSS hover does not conflict on mobile */
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; 
    }
    
    .dropdown:hover .dropdown-icon {
        transform: none;
    }

    /* Target state class controlled strictly by JS click on mobile */
    .dropdown.dropdown-open .dropdown-menu {
        display: block !important;
    }

    .dropdown.dropdown-open .dropdown-icon {
        transform: rotate(180deg) !important;
    }

    .mobile-cta-li {
        margin-top: 20px;
        list-style: none;
    }

    .mobile-cta-li .nav-cta {
        display: block;
        text-align: center;
        width: 100%;
        padding: 14px;
    }
    
    .burger.active .burger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .burger.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active .burger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .burger.active .burger-line {
        background: #ffffff !important; /* Always white */
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: #0270a9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
}

.btn-secondary {
    background: var(--secondary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--secondary-glow);
}

.btn-secondary:hover {
    background: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.25);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Light Theme Outline Button */
.btn-outline-dark {
    background: transparent;
    color: var(--text-body);
    border: 1px solid var(--border-color);
}

.btn-outline-dark:hover {
    background: var(--bg-alt);
    border-color: var(--border-hover);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Hero Section (Centered with Blue Radial overlay for light text readability) */
.hero {
    height: 100vh;
    min-height: 100vh;
    padding-top: 130px;
    padding-bottom: 70px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: #020617; /* Solid dark base to prevent light body color from bleeding through */
}

.hero::before, .service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Rich, deep oceanic gradient that makes the white text pop with high contrast */
    background: radial-gradient(circle at center, rgba(12, 35, 64, 0.65) 0%, rgba(3, 7, 18, 0.95) 100%);
    z-index: 1;
}

/* Gas page service hero uses red radial gradient for gas/fire theme */
.service-hero-gas::before {
    background: radial-gradient(circle at center, rgba(76, 15, 30, 0.65) 0%, rgba(3, 7, 18, 0.95) 100%) !important;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.3; /* Reduced opacity to make the background image much less visible */
}

.hero .container, .service-hero .container {
    position: relative;
    z-index: 2;
}

.hero .container {
    max-width: 950px; /* Slightly wider to match reference visual */
}

.hero-tagline {
    display: inline-block;
    color: #fb923c; /* Bright bold orange tag */
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.hero-title {
    font-size: 4.25rem; /* Larger, extremely high impact */
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
    font-weight: 800;
}

.hero-title span.highlight {
    color: #38bdf8; /* Highlight keyword in bright cyan/blue */
}

.hero-subtitle {
    font-size: 1.25rem; /* Larger and cleaner */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.hero-ctas .btn {
    padding: 16px 38px; /* Larger, more striking CTAs */
    font-size: 1.05rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

/* Unified Mobile Hero & Content optimization for Above the Fold */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 30px;
        height: 100vh;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-tagline {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    .hero-title {
        font-size: 2.3rem;
        margin-bottom: 16px;
        line-height: 1.25;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
        line-height: 1.5;
        max-width: 100%;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-stats {
        margin-top: 24px;
        padding-top: 16px;
        gap: 10px;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .stat-label {
        font-size: 0.725rem;
        margin-top: 4px;
    }
}


/* Service Card / Grid (Clean Light Card Design) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: background var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-main);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    transition: background var(--transition-smooth), color var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth);
}

.card:hover .card-icon {
    transform: scale(1.08) rotate(2deg); /* Wow micro-animation on hover */
}

.icon-blue {
    background: #e0f2fe;
    color: var(--primary);
    border: 1px solid #bae6fd;
}

.card:hover .icon-blue {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.icon-orange {
    background: #ffe4e6;
    color: var(--secondary);
    border: 1px solid #fecdd3;
}

.card:hover .icon-orange {
    background: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.card-title {
    font-size: 1.45rem;
    margin-bottom: 14px;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.card:hover .card-title {
    color: var(--primary);
}

.card-text {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    transition: color var(--transition-fast), gap var(--transition-fast);
}

.card-link-icon {
    transition: transform var(--transition-fast);
}

.card-link:hover .card-link-icon {
    transform: translateX(4px);
}

/* Flex alignments to keep all cards unified */
.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-footer {
    margin-top: auto;
}

/* Feature split sections */
.split-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.split-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.split-image-container:hover .split-image {
    transform: scale(1.03);
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-title {
    font-size: 2.35rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .split-title {
        font-size: 1.9rem;
    }
}

.split-text {
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 28px;
}

/* Highlights checklist */
.checklist {
    list-style: none;
    margin-bottom: 28px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--text-body);
}

.checklist-icon {
    color: #10b981; /* Success Green */
    font-size: 1.1rem;
    margin-top: 1px;
}

/* Testimonials / Reseñas */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle-small {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-main);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 18px;
    font-size: 1.1rem;
    display: flex;
    gap: 3px;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 24px;
    font-style: normal;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    border: 1px solid #bae6fd;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0;
}

.author-info-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}
/* Testimonials Slider Pagination Controls */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-arrow {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.slider-arrow:hover:not(:disabled) {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.08);
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(13, 21, 39, 0.12);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 10px;
}

.testimonial-card.fade-in-active {
    animation: testimonialFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes testimonialFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form & Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-box {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
}

.info-box-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.info-box-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.info-box-text {
    color: var(--text-body);
    font-size: 0.9rem;
}

.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-main);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-dark);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Service Detail Pages (gas.html & plomeria.html) */
.service-hero {
    padding-top: 170px;
    padding-bottom: 75px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45vh;
    background-color: #020617; /* Solid dark base */
}

.service-hero-gas {
    /* Background gradients are handled by the shared radial gradient overlay in ::before */
}

.service-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff; /* Explicitly white for dark backgrounds */
}

@media (max-width: 768px) {
    .service-title {
        font-size: 2.35rem;
    }
}

.service-desc-large {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85); /* Light color for dark backgrounds */
    max-width: 700px;
    margin: 0 auto 36px;
}

.services-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.service-detail-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-main);
}

.service-detail-icon {
    font-size: 1.6rem;
    margin-bottom: 16px;
    display: inline-block;
}

.service-detail-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.service-detail-text {
    color: var(--text-body);
    font-size: 0.9rem;
}

/* FAQ / Acordeón con Animación Suave */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-main);
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-toggle-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color var(--transition-fast);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Acordeón con animación suave de alto */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer {
    min-height: 0;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-answer-content {
    padding-top: 10px;
    padding-bottom: 14px;
}

/* About Us History Timeline */
.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding-left: 32px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 4px solid var(--primary);
}

.timeline-dot-gas {
    border-color: var(--secondary);
}

.timeline-year {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.timeline-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.timeline-text {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* CTA Block Banner */
.cta-banner {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 40px 20px;
    }
}

.cta-banner-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.cta-banner-text {
    color: var(--text-body);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Footer (Clean Dark Navy Design, NO EMOJIS, solid layout) */
.footer {
    background: #0b111e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 75px;
    padding-bottom: 35px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer .logo {
    color: #ffffff;
}

.footer .logo-water {
    color: #38bdf8;
}

.footer .logo-fire {
    color: #fb7185;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.925rem;
    margin-top: 16px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: #38bdf8;
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.925rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Bullet indicator disabled */
.footer-link::before {
    display: none !important;
}

.footer-link:hover {
    color: #38bdf8;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-body);
    font-size: 0.9rem;
}

.contact-item-svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--primary);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-link {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal-link:hover {
    color: var(--text-main);
}

/* Maps section styled cleanly */
.map-section {
    padding-bottom: 90px;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    background: #20ba5a;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* Feature Row Card (Balanced Horizontal 2-Column Card Layout) */
.feature-row-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-row-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 36px;
    align-items: center;
}

.feature-row-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-main);
}

.feature-row-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-row-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.feature-row-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.feature-row-desc {
    font-size: 0.975rem;
    line-height: 1.65;
    color: var(--text-body);
}

.feature-highlight-box {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    justify-content: center;
}

.feature-highlight-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cta-box-premium {
    background: linear-gradient(135deg, #0b111e 0%, #152238 100%);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 992px) {
    .feature-row-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 24px;
    }
}

/* Full-Width 100vw CTA Banner Section */
.cta-section-fullwidth {
    width: 100%;
    background: linear-gradient(135deg, #0b111e 0%, #152238 100%);
    padding: 80px 24px;
    text-align: center;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 60px; /* Space between CTA and Map */
}

.cta-section-fullwidth .container {
    max-width: 800px;
    margin: 0 auto;
}

/* 2-Column Grid Helper */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Card Subtitle (Gris, chico, arriba del H3) */
.card-subtitle {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

/* Trust Bar inside Hero (Dotted style like reference photo) */
.hero-trust-list {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
    flex-wrap: wrap;
}

.hero-trust-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.hero-trust-list-item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #f97316; /* Orange dot like the reference photo */
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.8);
}

@media (max-width: 768px) {
    .hero-trust-list {
        gap: 16px;
        flex-direction: column;
        align-items: center;
        border-top: none;
        padding-top: 0;
        margin-top: 30px;
    }
    .hero-trust-list-item {
        font-size: 0.875rem;
    }
}

/* Zonas de Trabajo (Chips) */
.zones-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.zone-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.zone-chip:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: var(--bg-alt);
}

/* 3-Column Grid Helper */
.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3col {
        grid-template-columns: 1fr;
    }
}

/* Cómo Trabajamos (Steps & Glassmorphism) */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 48px;
    position: relative;
}

.step-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.step-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-main);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 12px;
    line-height: 1;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.925rem;
    line-height: 1.5;
    color: var(--text-body);
}

@media (max-width: 992px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Metodología con imagen de fondo y overlay */
.methodology-section {
    position: relative;
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: #ffffff;
    overflow: hidden;
}

.methodology-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 21, 39, 0.94) 0%, rgba(2, 132, 199, 0.8) 100%);
    z-index: 1;
}

.methodology-section .container {
    position: relative;
    z-index: 2;
}

.methodology-section .section-title-wrapper h2 {
    color: #ffffff;
}

.methodology-section .section-subtitle-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 16px auto 0;
    line-height: 1.6;
}

/* Glassmorphism en tarjetas de paso */
.methodology-section .step-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    transition: var(--transition-smooth);
}

.methodology-section .step-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 40px 0 rgba(2, 132, 199, 0.25);
}

.methodology-section .step-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.methodology-section .step-title {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.methodology-section .step-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* Flechas conectoras */
@media (min-width: 993px) {
    .methodology-section .step-item:not(:last-child)::after {
        content: '→';
        position: absolute;
        top: 50%;
        right: -22px;
        transform: translateY(-50%);
        font-size: 1.8rem;
        color: #38bdf8;
        z-index: 10;
        text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
        opacity: 0.8;
        pointer-events: none;
    }
}

@media (max-width: 992px) {
    .methodology-section .step-item:not(:last-child)::after {
        content: '↓';
        position: absolute;
        bottom: -22px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.6rem;
        color: #38bdf8;
        z-index: 10;
        text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
        opacity: 0.8;
        pointer-events: none;
    }
}

/* Sección Tarifas / Presupuesto con Degradado */
.rates-section {
    background: linear-gradient(135deg, #f4f1ea 0%, #e6eff5 100%) !important;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.rates-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* Contact Details below the Map */
.map-contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 40px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.map-contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.map-contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-main);
    border-color: var(--border-hover);
}

.map-contact-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
    display: block;
}

.map-contact-label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.map-contact-value {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    overflow-wrap: break-word;
    word-break: break-word; /* Prevent email text overflow */
}

.map-contact-value a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.map-contact-value a:hover {
    color: var(--primary);
}

/* Animations & Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers for sequential child elements */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Entry animations for Hero (Carga inicial) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate-1 {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate-2 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-animate-3 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-animate-4 {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* Custom styles for About Us (Sobre Nosotros) Page */
.container-medium {
    max-width: 800px;
    margin: 0 auto;
}

.about-story-text p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-body);
    margin-bottom: 24px;
}

.about-story-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin: 40px auto 0;
    max-width: 100%;
}

.about-story-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.about-story-image:hover img {
    transform: scale(1.02);
}

.quote-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    margin: 30px auto 0;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.quote-text-large {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 20px;
    font-family: var(--font-heading);
    position: relative;
}

.quote-text-large::before {
    content: "“";
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    left: -20px;
    top: -25px;
    font-family: serif;
}

.quote-text-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0;
}

/* Zone Map Styles */
.map-pulse {
    transform-origin: center;
    animation: mapPulseAnim 3s ease-out infinite;
}

@keyframes mapPulseAnim {
    0% {
        r: 10px;
        opacity: 1;
    }
    100% {
        r: 60px;
        opacity: 0;
    }
}

.coverage-map-svg text {
    font-family: var(--font-heading);
    user-select: none;
}

@media (max-width: 768px) {
    .quote-box {
        padding: 30px 24px;
    }
    .quote-text-large {
        font-size: 1.25rem;
    }
}

/* 2. New Minimal Methodology Columns (Cómo trabajamos) */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.methodology-col {
    position: relative;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    transition: transform var(--transition-smooth);
}

.methodology-col::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-smooth) ease;
}

.methodology-col:hover {
    transform: translateY(-4px);
}

.methodology-col:hover::before {
    width: 100%;
}

.methodology-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.9;
    font-family: var(--font-heading);
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.methodology-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 14px;
    font-weight: 700;
}

.methodology-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-body);
}

/* 3. Equal-height stretch layout for Where We Work */
.split-section-stretch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.split-section-stretch .split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.split-section-stretch .coverage-map-container {
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: stretch;
}

.split-section-stretch .coverage-map-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
}

@media (max-width: 992px) {
    .split-section-stretch {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .split-section-stretch .coverage-map-container {
        min-height: 280px;
        aspect-ratio: 16/10;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Responsive stacking for methodology grid */
    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    /* Text alignment and balance on mobile */
    .split-section, .split-section-stretch {
        text-align: center;
    }
    .split-section .section-title-wrapper, 
    .split-section-stretch .section-title-wrapper {
        text-align: center !important;
        margin: 0 auto 24px !important;
    }
    .split-section .about-story-text p,
    .split-section-stretch .split-text {
        text-align: left;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 4. High-Impact Premium CTA Banner */
.cta-banner-premium {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg), 0 10px 40px rgba(2, 132, 199, 0.15);
    position: relative;
    overflow: hidden;
}

.cta-banner-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(2, 132, 199, 0) 70%);
    pointer-events: none;
}

.cta-banner-premium::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0) 70%);
    pointer-events: none;
}

.cta-banner-premium .cta-banner-title {
    color: #ffffff;
    font-size: 2.35rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.cta-banner-premium .cta-banner-text {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.65;
    position: relative;
    z-index: 2;
}

.cta-banner-premium .btn-whatsapp-premium {
    background: #25d366;
    border: 1px solid #25d366;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    z-index: 2;
}

.cta-banner-premium .btn-whatsapp-premium:hover {
    background: #20ba59;
    border-color: #20ba59;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
}

.cta-banner-premium .btn-whatsapp-premium:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cta-banner-premium {
        padding: 45px 24px;
    }
    .cta-banner-premium .cta-banner-title {
        font-size: 1.85rem;
    }
    .cta-banner-premium .btn-whatsapp-premium {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
}
