@import 'variables.css';

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm)
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em
}

h2 {
    font-size: 2.5rem
}

h3 {
    font-size: 1.75rem
}

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

ul {
    list-style: none
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm)
}

.section {
    padding: var(--spacing-xl) 0
}

.grid {
    display: grid;
    gap: var(--spacing-md)
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))
}

.hero {
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../img/hero-home.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--text-white);
    position: relative
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth)
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(252, 185, 0, 0.4)
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(252, 185, 0, 0.6)
}

.btn-outline {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    margin-left: var(--spacing-sm)
}

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

.card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05)
}

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

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm)
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary)
}

.nav-links {
    display: flex;
    gap: var(--spacing-md)
}

.nav-link {
    font-weight: 500;
    position: relative;
    color: var(--color-primary)
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition-fast)
}

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

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: var(--spacing-sm) 0
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: var(--spacing-sm) 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0.8
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: var(--spacing-sm)
}

.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: var(--transition-smooth)
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:768px) {
    h1 {
        font-size: 2.5rem
    }

    .nav-container {
        position: relative
    }

    .mobile-toggle {
        display: block !important;
        order: 1;
        margin-right: 1rem
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        gap: var(--spacing-sm);
        text-align: center
    }

    .nav-links.active {
        display: flex
    }

    .nav-link {
        color: var(--color-secondary)
    }

    .btn-primary {
        order: 2;
        padding: 0.5rem 1rem;
        font-size: 0.9rem
    }

    .logo {
        font-size: 1.2rem
    }

    .hero {
        height: 80vh
    }
}