﻿/* ============================================
   TOONUTS - Home Page Styles
   ============================================ */

/* Variables de Toonuts */
:root {
    --copper: #B8956A;
    --dark-copper: #A67C52;
    --beige: #F5EFE7;
    --mint: #7FDBCA;
    --dark-mint: #5BC0B0;
    --dark: #2C2416;
    --gray: #6B6B6B;
    --white: #FFFFFF;
}

/* Reset y base para home */
.home-page {
    margin: 0;
    padding: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--beige) 0%, #FFFFFF 100%);
    margin-top: 0 !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(127, 219, 202, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(184, 149, 106, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 120px 20px 80px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark);
}

    .hero-title .highlight {
        color: var(--copper);
        position: relative;
    }

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--copper) 0%, var(--dark-copper) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(184, 149, 106, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(184, 149, 106, 0.4);
        color: var(--white);
        text-decoration: none;
    }

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--copper);
}

    .btn-secondary:hover {
        background: var(--copper);
        color: var(--white);
        text-decoration: none;
    }

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.brain-icon {
    width: 300px;
    height: 300px;
    animation: float 3s ease-in-out infinite;
}

    .brain-icon svg {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 10px 30px rgba(184, 149, 106, 0.2));
    }

.nut {
    animation: pulse 2s ease-in-out infinite;
}

.nut-right {
    animation-delay: 0.5s;
}

.pulse-ring {
    animation: ripple 2s ease-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes ripple {
    0% {
        r: 60;
        opacity: 0.6;
    }

    100% {
        r: 90;
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-left: 2px solid var(--copper);
    border-bottom: 2px solid var(--copper);
    transform: rotate(-45deg);
    margin: 10px auto 0;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */

.problem-section {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-top: -40px;
    margin-bottom: 60px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.problem-card {
    padding: 40px;
    background: var(--beige);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .problem-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

.problem-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.problem-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ============================================
   SOLUTION SECTION
   ============================================ */

.solution-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark) 0%, #3d3020 100%);
    color: var(--white);
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.solution-section .section-title,
.solution-section h2 {
    color: var(--white);
    text-align: left;
    margin-bottom: 20px;
}

.label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--mint);
    color: var(--dark);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .feature-list li {
        display: flex;
        gap: 20px;
        margin-bottom: 25px;
        align-items: flex-start;
    }

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--mint);
    color: var(--dark);
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: bold;
}

.feature-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-list p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================
   CHAT MOCKUP
   ============================================ */

.chat-mockup {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--beige);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-name {
    font-weight: 600;
    color: var(--dark);
}

.chat-status {
    font-size: 0.85rem;
    color: var(--mint);
}

.chat-messages {
    padding: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--white);
}

.message {
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
    animation: slideIn 0.3s ease;
}

    .message.bot {
        background: var(--beige);
        color: var(--dark);
        align-self: flex-start;
    }

    .message.user {
        background: var(--copper);
        color: var(--white);
        align-self: flex-end;
    }

    .message.typing {
        display: flex;
        gap: 5px;
        padding: 15px 20px;
    }

        .message.typing span {
            width: 8px;
            height: 8px;
            background: var(--gray);
            border-radius: 50%;
            animation: typing 1.4s infinite;
        }

            .message.typing span:nth-child(2) {
                animation-delay: 0.2s;
            }

            .message.typing span:nth-child(3) {
                animation-delay: 0.4s;
            }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
    padding: 100px 0;
    background: var(--beige);
}

.steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    align-items: center;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.step {
    text-align: center;
    grid-column: span 1;
}

    .step:nth-child(2n) {
        grid-column: span 2;
    }

.step-connector {
    height: 2px;
    background: linear-gradient(to right, var(--copper), var(--mint));
    position: relative;
}

    .step-connector::after {
        content: '→';
        position: absolute;
        right: -5px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--mint);
        font-size: 1.5rem;
    }

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--copper), var(--dark-copper));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(184, 149, 106, 0.3);
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.step p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

.benefits-section {
    padding: 100px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.benefit-card {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--beige) 0%, var(--white) 100%);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

    .benefit-card:hover {
        border-color: var(--mint);
        transform: translateY(-5px);
    }

.benefit-stat {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--copper);
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--mint) 0%, var(--dark-mint) 100%);
    color: var(--dark);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

    .cta-content h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: var(--dark);
    }

    .cta-content p {
        font-size: 1.2rem;
        margin-bottom: 40px;
        color: var(--dark);
        opacity: 0.9;
    }

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    width: 100%;
}

    .form-group input {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.9);
        transition: all 0.3s ease;
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--copper);
            background: var(--white);
        }

.cta-form .btn-primary {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .fade-in.animate {
        opacity: 0;
        transform: translateY(30px);
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ============================================
   CONTAINER OVERRIDE
   ============================================ */

.hero .container,
.problem-section .container,
.solution-section .container,
.how-it-works .container,
.benefits-section .container,
.cta-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .hero-content,
    .solution-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step {
        grid-column: span 1 !important;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }

        .step-connector::after {
            content: '↓';
            bottom: -10px;
            top: auto;
            right: auto;
            left: 50%;
            transform: translateX(-50%);
        }

    .hero-visual {
        order: -1;
    }

    .brain-icon {
        width: 200px;
        height: 200px;
    }

    .solution-section h2 {
        text-align: center;
    }

    .label {
        display: block;
        text-align: center;
    }

    .lead {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .problem-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        font-size: 0.8rem;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }
}
