﻿/* ============================================
   TOONUTS - Layout Styles (Header & Footer)
   ============================================ */

/* Variables de Toonuts */
:root {
    --copper: #B8956A;
    --dark-copper: #A67C52;
    --beige: #F5EFE7;
    --mint: #7FDBCA;
    --dark-mint: #5BC0B0;
    --dark: #2C2416;
    --gray: #6B6B6B;
    --white: #FFFFFF;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideDown 0.3s ease;
}

    .main-header.scrolled {
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    z-index: 10;
}

    .logo:hover {
        transform: scale(1.02);
    }

.logo-icon {
    width: 40px;
    height: 40px;
}

    .logo-icon svg {
        width: 100%;
        height: 100%;
    }

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--copper);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 35px;
    margin: 0 auto;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--copper);
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: var(--copper);
    }

        .nav-link:hover::after {
            width: 100%;
        }

    .nav-link.active {
        color: var(--copper);
    }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

    .btn-login:hover {
        background: var(--beige);
        color: var(--copper);
    }

    .btn-login svg {
        width: 18px;
        height: 18px;
    }

.btn-demo {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--copper) 0%, var(--dark-copper) 100%);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(184, 149, 106, 0.3);
    transition: all 0.3s ease;
}

    .btn-demo:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(184, 149, 106, 0.4);
    }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

/* Main Content Offset */
main {
    margin-top: 0;
    min-height: calc(100vh - 80px);
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

/* Footer Brand */
.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

    .footer-logo .logo-icon {
        width: 35px;
        height: 35px;
    }

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .social-link:hover {
        background: var(--copper);
        transform: translateY(-3px);
    }

/* Footer Columns */
.footer-column h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

    .footer-column ul li {
        margin-bottom: 12px;
    }

        .footer-column ul li a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 0.95rem;
        }

            .footer-column ul li a:hover {
                color: var(--mint);
            }

/* Footer Bottom */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-location {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }

    .footer-column:nth-child(4),
    .footer-column:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 968px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

        .main-nav.active {
            display: flex;
        }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid var(--beige);
    }

        .nav-link::after {
            display: none;
        }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions {
        gap: 10px;
    }

    .btn-login span {
        display: none;
    }

    .btn-demo {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .header-container {
        height: 70px;
    }

    .logo-name {
        font-size: 1.2rem;
    }

    .logo-tagline {
        font-size: 0.65rem;
    }

    .btn-login {
        padding: 8px 12px;
    }

    .btn-demo {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .main-footer {
        padding: 50px 0 20px;
    }
}
/* Estilos adicionales para las imágenes PNG */

/* Header Logo */
.logo-complete {
    height: 115px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-complete {
    transform: scale(1.05);
}

/* Footer Logo */
.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

/* Brain Image in Hero */
.brain-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

/* Chat Avatar Image */
.chat-avatar img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Responsive adjustments for images */
@media (max-width: 968px) {
    .logo-complete {
        height: 40px;
    }

    .footer-logo-img {
        height: 50px;
    }
}

@media (max-width: 640px) {
    .logo-complete {
        height: 35px;
    }

    .footer-logo-img {
        height: 45px;
    }

    .brain-icon {
        width: 180px;
        height: 180px;
    }
}