/* =========================================
   VARIABLES & BASE SETUP
   ========================================= */
:root {
    /* Brand Colors */
    --primary-blue: #0b2545; /* Dark sophisticated blue */
    --light-blue: #13315c;
    --accent-red: #d90429;
    --hover-red: #ef233c;
    
    /* Neutrals */
    --white: #ffffff;
    --bg-light: #f4f6f9;
    --text-dark: #1e222a;
    --text-muted: #5e6472;
    --border-color: #e2e8f0;
    
    /* Utility */
    --whatsapp-green: #25d366;
    --whatsapp-hover: #20bd5a;
    
    /* Layout */
    --max-width: 1200px;
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-blue); color: var(--white); }
.mobile-br { display: none; }

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
    color: var(--primary-blue);
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
    background-color: var(--accent-red);
    color: var(--white);
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

.btn-primary:hover {
    background-color: var(--hover-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 4, 41, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-large {
    font-size: 1.15rem;
    padding: 18px 36px;
    border-radius: var(--radius-md);
}

.btn-inverse {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-inverse:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.btn-glow {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(217, 4, 41, 0.5); }
    to { box-shadow: 0 0 20px rgba(217, 4, 41, 0.8), 0 0 10px rgba(217, 4, 41, 0.5); }
}

.pulse-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* =========================================
   HEADER
   ========================================= */
.main-header {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    height: 110px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding: 80px 0 30px 0; /* Reduced top padding to move badge up */
    /* Combined background for maximum cross-browser compatibility and contrast */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(11, 37, 69, 0.65)), url('images/fachada-aco-fitas-final--.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 75vh;
}

.hero-overlay {
    display: none; /* Removed as background is now combined above for better mobile support */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    justify-content: center;
    width: 100%;
}

.product-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Increased from 30px */
    width: 100%;
    margin-top: 15px;
}

.showcase-item {
    font-size: 2.8rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.25; /* Increased from 1 */
    letter-spacing: 2px;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 2px 10px rgba(0,0,0,0.9);
}

.showcase-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-specs {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 1px;
    margin-top: -5px;
    color: #f0f0f0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}


.hero .badge {
    display: inline-block;
    background: rgba(11, 37, 69, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}


/* =========================================
   ACTION BAR
   ========================================= */

.hero .subheadline {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
    max-width: 900px;
}

.hero-bullets {
    list-style: none;
    margin-bottom: 50px;
    margin-top: 20px; /* spacing above bullets */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
    text-align: left;
    max-width: 800px;
    width: 100%;
}

.hero-bullets li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-bullets li i {
    color: var(--whatsapp-green);
    font-size: 1.2rem;
}

/* =========================================
   HERO BOTTOM BAR (V2)
   ========================================= */
.hero-bottom-bar {
    padding: 50px 0;
    border-top: 5px solid var(--accent-red);
}

.hero-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================
   BENEFITS SECTION
   ========================================= */
.benefits {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--primary-blue);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(11, 37, 69, 0.05);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.benefit-card:hover .icon-wrapper {
    background-color: var(--primary-blue);
    color: var(--white);
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   PRODUCTS SECTION
   ========================================= */
.products {
    padding: 90px 0;
    background-color: var(--primary-blue);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 10px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--primary-blue) 100%);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 200px;
    width: 100%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.placeholder-img {
    color: #adb5bd;
    font-size: 3rem;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.products-footer {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: var(--radius-md);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
}

.products-footer p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* =========================================
   APPLICATIONS SECTION
   ========================================= */
.applications {
    padding: 80px 0;
}

.applications-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.app-item {
    background: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.app-item:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

.app-item i {
    font-size: 1.2rem;
    color: var(--accent-red);
}

.app-item:hover i {
    color: var(--white);
}

/* =========================================
   HOW IT WORKS SECTION
   ========================================= */
.how-it-works {
    padding: 80px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    position: relative;
}

/* Connective line for desktop */
@media (min-width: 900px) {
    .steps-container::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 50px;
        right: 50px;
        height: 2px;
        background-color: var(--border-color);
        z-index: 0;
    }
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 8px var(--white), var(--shadow-sm);
    transition: var(--transition);
}

.step:hover .step-number {
    background-color: var(--accent-red);
    transform: scale(1.1);
}

.step h4 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   FINAL CTA SECTION
   ========================================= */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    border-top: 1px solid var(--border-color);
}

.final-cta h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo img {
    height: 85px;
    width: auto;
    object-fit: contain;
}

.footer-info {
    text-align: right;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .footer-info {
        text-align: center;
    }
}

/* =========================================
   FLOATING WHATSAPP
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 999;
    transition: var(--transition);
    overflow: hidden;
}

.floating-whatsapp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* =========================================
   LOADING OVERLAY (Simulated Click)
   ========================================= */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 37, 69, 0.9); /* Dark blue with opacity */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    display: flex;
    opacity: 1;
}

.loading-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-hover);
    animation: slideUp 0.4s ease forwards;
}

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

.whatsapp-icon-loader {
    font-size: 4rem;
    color: var(--whatsapp-green);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loading-content h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.loading-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* =========================================
   MEDIA QUERIES & RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-bullets { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .mobile-br { display: block; }
    .hero-bullets { grid-template-columns: 1fr; }
    .desktop-only { display: none; }
    .section-title { font-size: 2rem; }
    .hero { padding: 40px 0 20px 0; text-align: center; }
    .hero .badge { margin: 0 auto 20px; }
    .hero-bullets { text-align: left; max-width: 400px; margin-left: auto; margin-right: auto; }
    .hero-bullets li { font-size: 1rem; justify-content: flex-start; }
    .final-cta h2 { font-size: 2.2rem; }
    .header-content { flex-direction: column; gap: 15px; }
    .products-footer p { font-size: 1.1rem; }
    .logo { height: 65px; width: auto; }
    .footer-logo img { height: 50px; width: auto; }
    .benefits { padding: 60px 0; }
    .products { padding: 60px 0; }
    .how-it-works { padding: 60px 0; }
    .final-cta { padding: 70px 0; }

    /* New Consolidated Hero Refinements */
    .showcase-item {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    .showcase-specs {
        font-size: 0.95rem;
        margin-top: -2px;
    }
    .product-showcase {
        gap: 35px; /* Increased from 25px */
    }
    .hero .badge {
        font-size: 3.2vw; /* Dynamically scales to always stay in one line */
        padding: 6px 16px;
        white-space: nowrap !important;
        margin-bottom: 20px;
        width: max-content;
        max-width: 95vw;
        letter-spacing: 0.2px;
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Final Priority Overrides for Ultra-Small Screens */
@media (max-width: 480px) {
    .hero .badge {
        font-size: 3.2vw !important;
        padding: 6px 14px !important;
        white-space: nowrap !important;
        display: inline-block !important;
        width: auto !important;
        max-width: none !important; /* Remove any width restriction */
        word-break: keep-all !important;
        overflow-wrap: normal !important;
    }
    .showcase-item {
        font-size: 1.6rem !important;
    }
}
