/* 
    CORTAFUEGO PREMIUM DESIGN SYSTEM 
    Aesthetic: High-end, Modern, Persuasive, Expensive.
*/

:root {
    --primary: #FF3A00;
    --primary-glow: rgba(255, 58, 0, 0.4);
    --bg-dark: #080808;
    --bg-card: rgba(26, 26, 26, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-white: #FFFFFF;
    --text-muted: #A0A0A0;
    --accent: #FF6B00;
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

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

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

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

/* Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4 {
    font-family: 'Bebas Neue', cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
}

span.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 120px 0;
    position: relative;
    overflow-x: hidden; /* Prevent content from leaking out */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    z-index: 1000;
    transition: var(--transition-fast);
    height: 70px; /* Slimmer bar */
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(20px);
    height: 60px; /* Even slimmer on scroll */
    border-bottom: 1px solid var(--border-glass);
}

.navbar.scrolled .logo-img {
    height: 35px;
}

.nav-container {
    width: 100%;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 45px; /* Medium size, slightly larger than text */
    width: auto;
    display: block;
    transition: var(--transition-fast);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.nav-cta {
    padding: 0.6rem 1.5rem !important;
    font-size: 1rem !important;
}

/* --- MENU TOGGLE --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: var(--transition-fast);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    letter-spacing: 1px;
    transition: var(--transition-slow);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--primary-glow);
    background-color: var(--accent);
}

.btn-secondary {
    background: var(--bg-glass);
    color: #fff;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* --- HERO --- */
.hero {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for modern mobile browsers */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../images/hero-bg.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(8, 8, 8, 0.4), var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

/* --- ABOUT SECTION --- */
.about {
    padding: 10rem 0;
    background: linear-gradient(to bottom, #080808, #0a0a0a);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content .badge {
    background: rgba(255, 58, 0, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(255, 58, 0, 0.2);
}

.about-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.mv-card {
    background: var(--bg-glass);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

.mv-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(255, 58, 0, 0.03);
}

.mv-card h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-stats .stat-card {
    background: var(--bg-glass);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

.about-stats .stat-card:hover {
    border-color: var(--primary);
}

.about-stats .stat-card h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Bebas Neue', cursive;
}

.about-stats .stat-card p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* --- STATS --- */
.stats {
    background: var(--bg-dark);
    padding: 0;
    margin-top: -50px;
    z-index: 10;
}

.stats-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.stat-number {
    font-size: 4rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--primary-glow);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* --- BENTO SERVICES --- */
.services {
    background-color: var(--bg-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(450px, auto);
    gap: 2rem;
}

.bento-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 3rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    border-color: var(--primary);
    background: rgba(255, 58, 0, 0.05);
    transform: translateY(-10px);
}

.bento-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.bento-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.bento-list {
    list-style: none;
    margin-bottom: 2rem;
}

.bento-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bento-list li i {
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 0;
}

.bento-price {
    margin-top: 2rem;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
}

.bento-price span {
    font-size: 2.5rem;
}

/* Grid layout positions */
.item-1 { grid-column: span 8; }
.item-2 { grid-column: span 4; }
.item-3 { grid-column: span 4; }
.item-4 { grid-column: span 4; }
.item-5 { grid-column: span 4; }
.item-featured {
    grid-column: span 12;
    min-height: 400px;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(45deg, rgba(255, 58, 0, 0.2), transparent);
    border: 2px solid var(--primary);
}

.item-featured .badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: 'Bebas Neue', cursive;
}

/* --- WHY US (Premium cards) --- */
.why-us {
    background: radial-gradient(circle at 50% 50%, rgba(255, 58, 0, 0.05) 0%, var(--bg-dark) 70%);
}

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

.why-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 3rem;
    border-radius: 20px;
    transition: var(--transition-slow);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: block;
}

.why-card h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* --- FAQ Accordion --- */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* --- GUARANTEES SECTION --- */
.guarantees {
    padding: 8rem 0;
    background: #080808;
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.guarantee-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.guarantee-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(255, 58, 0, 0.03);
}

.guarantee-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.guarantee-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.guarantee-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.faq-header {
    width: 100%;
    padding: 2rem;
    background: transparent;
    border: none;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
}

.faq-body {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-slow);
    color: var(--text-muted);
}

.faq-item.active .faq-body {
    padding-bottom: 2rem;
    max-height: 300px;
}

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

/* --- CONTACT FORM --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.form-premium {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 4rem;
    border-radius: 30px;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* --- FOOTER --- */
footer {
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 2rem;
    object-fit: contain;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--primary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 10px 30px var(--primary-glow);
    z-index: 1000;
    transition: var(--transition-slow);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-slow);
}

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

/* --- MOBILE PREMIUM --- */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-slow);
        z-index: 1000;
        border-left: 1px solid var(--border-glass);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hamburger Animation */
    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .item-1, .item-2, .item-3, .item-4, .item-5,    .item-featured {
        grid-column: span 1;
        min-height: auto;
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .item-featured .bento-content {
        margin-bottom: 2rem;
    }

    .item-featured .bento-list {
        display: block;
        margin: 1.5rem 0;
    }

    .item-featured div[style*="display: grid"] {
        display: block !important;
    }

    .item-featured .bento-price {
        text-align: center !important;
        padding-left: 0 !important;
    }

    .item-featured i.fa-crown {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .about-stats .stat-card {
        padding: 2rem 1rem;
    }

    .about-stats .stat-card h3 {
        font-size: 2rem;
    }

    .about-content h2 { font-size: 3rem; }

    .stats-container {
        grid-template-columns: 1fr 1fr;
        padding: 2rem;
    }

    .hero h1 { font-size: 3.5rem; }
    .section-title h2 { font-size: 2.5rem; }
    .contact-grid { display: flex; flex-direction: column; gap: 3rem; }
    .guarantees-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

@media (max-width: 480px) {
    .nav-container { padding: 0 1rem; }
    .hero h1 { font-size: 2.8rem; }
    .stats-container { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .contact-grid { display: flex; flex-direction: column; gap: 2rem; }
    .form-premium { padding: 1.5rem; width: 100%; }
    
    .footer-logo { height: 50px; }
    .about-content h2 { font-size: 2.5rem; }
    .bento-item h3 { font-size: 1.8rem; }
    .item-featured i.fa-crown { font-size: 3.5rem; }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        font-size: 2rem;
    }
}

/* Safe Area for iPhone */
@supports (padding: env(safe-area-inset-bottom)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    footer {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom));
    }
}
