/* Variables */
:root {
    --primary-red: #b91c1c;
    /* Deep Red from the model */
    --hover-red: #991b1b;
    --dark-text: #1f2937;
    --gray-text: #6b7280;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --container-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--hover-red);
}

.btn-outline {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: var(--primary-red);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    font-weight: 700;
    color: var(--primary-red);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0;
    /* User provided hero image */
    background-image: url('https://realtop.com/wp-content/uploads/2026/01/HVAC-Company-Generates-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    max-width: 550px;
}

.hero-subtitle {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: #ff9999;
    /* Light red for dark bg */
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item i {
    color: #4ade80;
    /* Green check */
    margin-right: 10px;
}

/* Form Wrapper */
.hero-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.form-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    color: var(--dark-text);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.form-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.form-box p {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

/* Trust Bar */
.trust-bar {
    background: #f3f4f6;
    padding: 30px 0;
    border-bottom: 1px solid #e5e7eb;
}

.trust-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-item i {
    font-size: 32px;
    color: var(--primary-red);
    opacity: 0.2;
    /* Subtle icon style */
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 16px;
    color: var(--dark-text);
}

.trust-text span {
    font-size: 13px;
    color: var(--gray-text);
}

/* Promo Banner */
.promo-banner {
    background-color: var(--primary-red);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.promo-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.promo-banner h3 {
    font-size: 22px;
    font-weight: 500;
}

.btn-white {
    background: white;
    color: var(--primary-red);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 700;
}

.btn-white:hover {
    background: #f3f4f6;
}

/* Feature Rows */
.feature-row {
    padding: 80px 0;
}

.bg-light {
    background: var(--light-bg);
}

.feature-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.section-tag {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.feature-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 800;
}

.feature-text p {
    color: var(--gray-text);
    margin-bottom: 25px;
    font-size: 17px;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 12px;
    font-weight: 500;
}

.feature-list i {
    margin-right: 10px;
}

.price-highlight {
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-from {
    font-size: 16px;
    color: var(--gray-text);
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-red);
}

/* CTA Section */
.cta-section {
    background: var(--primary-red);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-white-outline {
    border: 2px solid white;
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 700;
}

.btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Area Section */
.area-section {
    padding: 80px 0;
}

.area-header {
    text-align: center;
    margin-bottom: 40px;
}

.area-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.map-wrapper {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.area-list {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.area-col h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.area-col ul li {
    margin-bottom: 8px;
    color: var(--gray-text);
}

/* Footer */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.footer-copy {
    text-align: right;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .hero-features {
        align-items: center;
    }

    .feature-container {
        flex-direction: column;
        text-align: center;
    }

    .reverse {
        flex-direction: column;
        /* Stack normally on mobile */
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .promo-banner .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-right {
        /* display: none; Removed to keep phone visible */
        gap: 10px;
    }

    .header-right .btn-outline,
    .header-right .btn-primary {
        display: none;
        /* Hide desktop CTA buttons on mobile, keep phone */
    }

    .header-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px;
    }

    .logo {
        flex-shrink: 0;
        /* Prevent logo compression */
    }

    .header-right {
        white-space: nowrap;
        /* Prevent phone link wrapping */
    }

    .hero-title {
        font-size: 32px;
        /* Slightly smaller for better fit */
    }

    .area-list {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* Stack Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Stack CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-white-outline,
    .btn-white {
        width: 100%;
        /* Full width buttons on mobile */
    }

    /* Tighter Form Padding */
    .form-box,
    #audit-form {
        padding: 20px !important;
    }

    .brand-logo {
        max-width: 100px;
        /* Smaller logos on mobile */
    }

    /* Fix logo size on mobile */
    .logo img {
        height: 17px !important;
        /* User requested 17px for V1/V3 mobile fix */
        width: auto;
    }

    /* Reduce phone size on mobile */
    .phone-link {
        font-size: 13px;
        /* Smaller text */
    }

    /* Fix Trust Badge Overflow */
    /* Fix Trust Badge Overflow - Single Line Mode */
    .hero-trust-badge {
        flex-wrap: nowrap !important;
        /* Force single line */
        white-space: nowrap !important;
        justify-content: center;
        padding: 5px 10px;
        /* Tighter padding */
        gap: 8px;
        /* Reduce gap */
    }

    .hero-trust-badge img {
        height: 18px !important;
        /* Smaller Google logo */
    }

    .hero-trust-badge p {
        font-size: 10px !important;
        /* Smaller text */
    }

    /* V2 Header Center Override */
    .v2-squeeze .header-container {
        justify-content: center !important;
    }
}

/* Brand Carousel (New) */
.brand-carousel {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.brand-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.brand-logo {
    height: 60px;
    width: 100%;
    max-width: 160px;
    object-fit: contain;
    /* User request: "dale un tono de gris" */
    filter: grayscale(100%) opacity(0.6);
    transition: 0.3s;
}

.brand-logo:hover {
    filter: grayscale(0%) opacity(1);
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.hero-trust-badge img {
    height: 24px;
    width: auto;
}

.hero-trust-badge p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

.hero-trust-badge .stars {
    color: #fbbf24;
    /* Star yellow */
    margin-right: 5px;
}

.hero-trust-badge a {
    color: var(--primary-red);
    text-decoration: none;
    margin-left: 5px;
}

.hero-trust-badge a:hover {
    text-decoration: underline;
}

/* --- V2 Squeeze Specifics --- */
.v2-squeeze .site-header .header-right {
    display: none;
}

.v2-squeeze .site-header {
    justify-content: center;
}

.v2-squeeze .header-container {
    justify-content: center;
}

.v2-squeeze .hero-form-wrapper .form-box {
    border-top: 5px solid var(--primary-red);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* --- V3 Click-Through / Stats Grid --- */
.v3-centered .hero {
    text-align: center;
    justify-content: center;
    padding: 120px 0;
}

.v3-centered .hero-container {
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

.v3-centered .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-card {
    text-align: center;
    color: white;
}

.stat-val {
    font-size: 36px;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.form-section {
    padding: 80px 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

#audit-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-red);
}

/* --- Thank You Pages / Calendly --- */
.calendly-wrapper {
    margin: 40px auto;
    max-width: 1000px;
    display: flex;
    justify-content: center;
}

.thank-you-body {
    text-align: center;
    padding: 60px 0;
}

.thank-you-title {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 800;
}

.thank-you-sub {
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 40px;
}