/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* Header y navegación */
.header {
    background: linear-gradient(135deg, #9575CD 0%, #64B5F6 100%);
    box-shadow: 0 4px 25px rgba(149, 117, 205, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1, .logo a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Botón de cambio de idioma */
.language-toggle {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    color: white !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #9575CD 0%, #64B5F6 50%, #81C784 100%);
    color: white;
    padding: 6rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #d0d0d0;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #FFD54F, #FFB74D);
    color: #333;
    box-shadow: 0 6px 20px rgba(255, 213, 79, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 213, 79, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #9575CD;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #9575CD;
    border: 2px solid #9575CD;
}

.btn-outline:hover {
    background: #9575CD;
    color: white;
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.emotion-bubbles {
    position: relative;
    width: 350px;
    height: 350px;
}

.bubble {
    position: absolute;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bubble-1 { 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    animation-delay: 0s; 
    background: rgba(255, 213, 79, 0.3);
}
.bubble-2 { 
    top: 20%; 
    right: 0; 
    animation-delay: 1s; 
    background: rgba(100, 181, 246, 0.3);
}
.bubble-3 { 
    bottom: 20%; 
    left: 0; 
    animation-delay: 2s; 
    background: rgba(239, 83, 80, 0.3);
}
.bubble-4 { 
    bottom: 0; 
    left: 30%; 
    animation-delay: 3s; 
    background: rgba(149, 117, 205, 0.3);
}
.bubble-5 { 
    top: 50%; 
    left: 20%; 
    animation-delay: 4s; 
    background: rgba(129, 199, 132, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(180deg); }
}

/* App Section */
.app-section {
    padding: 7rem 0;
    background: white;
}

.app-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(149, 117, 205, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD54F, #64B5F6, #EF5350, #9575CD, #FFB74D, #81C784);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(149, 117, 205, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Legal Section */
.legal-section {
    padding: 7rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.legal-section h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #333;
}

.legal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.legal-card {
    background: white;
    padding: 3.5rem 2.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(149, 117, 205, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9575CD, #64B5F6);
}

.legal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(149, 117, 205, 0.2);
}

.legal-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.legal-card p {
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Legal Content Pages */
.legal-content {
    padding: 3rem 0 7rem 0;
    background: white;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    border-bottom: 3px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.last-updated {
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
}

.legal-body {
    max-width: 900px;
    margin: 0 auto;
}

.legal-body .legal-section {
    margin-bottom: 4rem;
    padding: 0;
    background: none;
}

.legal-body h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: left;
}

.legal-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #444;
    margin: 2rem 0 1.2rem 0;
}

.legal-body p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.legal-body ul {
    margin: 1.5rem 0 1.5rem 2.5rem;
}

.legal-body li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.legal-body a {
    color: #9575CD;
    text-decoration: none;
}

.legal-body a:hover {
    text-decoration: underline;
}

.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 1.5rem;
    border: 1px solid #e3f2fd;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0 2rem 0;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1.5rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.7;
    font-size: 1.1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #81C784;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 35px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .app-section, .legal-section {
        padding: 5rem 0;
    }
    
    .hero {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 30px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .app-section, .legal-section {
        padding: 4rem 0;
    }
    
    .feature-card, .legal-card {
        padding: 2.5rem 2rem;
    }
}

/* Animaciones adicionales */
.feature-card, .legal-card {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Selección de texto */
::selection {
    background: #9575CD;
    color: white;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #9575CD;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7E57C2;
}
