/* ============================================
   NILES ADVOCACIA - LANDING PAGE PREMIUM
   ============================================ */

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

:root {
    --primary-brown: #8B4513;
    --dark-brown: #6B3410;
    --light-brown: #A0522D;
    --gold: #D4A574;
    --dark-text: #2C3E50;
    --light-text: #555;
    --light-bg: #F8F7F5;
    --white: #FFFFFF;
    --border: #E5E0DB;
    --accent-red: #E74C3C;
    --accent-green: #27AE60;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--light-text);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 70px;
    width: auto;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: var(--primary-brown);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-brown);
    border: 2px solid var(--primary-brown);
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, #F0EBE5 100%);
    padding: 100px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-brown);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--light-text);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--primary-brown);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   LEI SECTION
   ============================================ */

.lei-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 24px;
    color: var(--primary-brown);
    margin-bottom: 25px;
    font-weight: 700;
}

.card ul {
    list-style: none;
}

.card li {
    margin-bottom: 18px;
    padding-left: 0;
    line-height: 1.8;
}

.card strong {
    color: var(--dark-text);
    font-weight: 600;
}

/* ============================================
   ABUSIVE PRACTICES SECTION
   ============================================ */

.abusive-section {
    padding: 100px 0;
    background-color: var(--white);
}

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

.practice-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, #F5F0EA 100%);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--accent-red);
    transition: all 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.15);
}

.practice-card h4 {
    color: var(--primary-brown);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

.practice-card p {
    color: var(--light-text);
    margin-bottom: 12px;
    font-size: 15px;
}

.practice-card .legal {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 13px;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-brown);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-bg);
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--light-bg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px;
    color: var(--light-text);
    line-height: 1.8;
}

/* ============================================
   HELP SECTION
   ============================================ */

.help-section {
    padding: 100px 0;
    background-color: var(--white);
}

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

.help-card {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--light-brown) 100%);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(139, 69, 19, 0.3);
}

.help-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.help-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.help-card p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.95;
}

/* ============================================
   CALENDLY SECTION
   ============================================ */

.calendly-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.calendly-container {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.calendly-container iframe {
    display: block;
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
}

/* ============================================
   CHATBOT
   ============================================ */

.chatbot-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-brown);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 50;
    overflow: hidden;
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--light-brown) 100%);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--light-bg);
}

.chatbot-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.chatbot-message.user {
    justify-content: flex-end;
}

.chatbot-message-content {
    max-width: 70%;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.chatbot-message.bot .chatbot-message-content {
    background-color: var(--white);
    color: var(--light-text);
    border: 1px solid var(--border);
}

.chatbot-message.user .chatbot-message-content {
    background-color: var(--primary-brown);
    color: var(--white);
}

.chatbot-input-area {
    display: flex;
    gap: 10px;
    padding: 15px;
    background-color: var(--white);
    border-top: 1px solid var(--border);
}

.chatbot-input-area input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.chatbot-input-area input:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.chatbot-input-area button {
    background-color: var(--primary-brown);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chatbot-input-area button:hover {
    background-color: var(--dark-brown);
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 40;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.scroll-top {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-brown);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    z-index: 40;
}

.scroll-top:hover {
    background-color: var(--dark-brown);
    transform: translateY(-3px);
}

.scroll-top.show {
    display: flex;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .nav-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .chatbot-container {
        width: 90%;
        height: 400px;
        right: 5%;
        bottom: 90px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .scroll-top {
        bottom: 90px;
        right: 20px;
    }

    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }

    .calendly-container iframe {
        height: 600px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        height: 50px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 15px;
    }

    .card {
        padding: 25px;
    }

    .practice-card {
        padding: 20px;
    }

    .help-card {
        padding: 25px 20px;
    }

    .faq-question {
        padding: 15px;
        font-size: 14px;
    }

    .chatbot-container {
        width: 95%;
        height: 350px;
        right: 2.5%;
    }

    .calendly-container iframe {
        height: 500px !important;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.card,
.practice-card,
.help-card {
    animation: fadeIn 0.6s ease-out;
}
