/* ============================================
   YESK - Estilos Minimalistas Premium (Bosque / Forest Style)
   ============================================ */

/* Global Reset & Variable Tokens */
:root {
    --bg-primary: #121d0f; /* Verde bosque profundo ultra-elegante */
    --bg-secondary: #172414; 
    --card-bg: #1b2c17; /* Verde oliva oscuro para tarjetas */
    --border-color: rgba(226, 176, 84, 0.15); /* Borde dorado translúcido */
    --border-hover: rgba(226, 176, 84, 0.35);
    
    --text-primary: #f0f4ef; /* Blanco hueso suave */
    --text-secondary: #a9baa2; /* Verde salvia apagado */
    --text-muted: #72846d; /* Verde musgo oscuro */
    
    --accent: #e2b054; /* Amarillo mostaza / Oro mate de Yesk */
    --accent-secondary: rgba(226, 176, 84, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(18, 29, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Redimensionar el favicon si se usa inline en logo */
.navbar-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
}

.navbar-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--accent);
    background-color: var(--accent-secondary);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    min-height: calc(100vh - 140px);
}

.section {
    display: none;
    opacity: 0;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section.active {
    display: block;
}

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

/* ============================================
   HOME SECTION (HERO)
   ============================================ */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* App Store Badges */
.app-store-badge {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem; /* Separación con el GIF */
}

/* Hero GIF Styling */
.hero-gif-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-gif {
    max-width: 100%;
    width: 420px;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: #121d0f; /* Contraste con el color de fondo */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.badge-link:hover {
    background-color: #f3ce85; /* Versión más clara del oro */
    border-color: #f3ce85;
}

.badge-link.badge-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.badge-link.badge-secondary:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}

/* ============================================
   FEATURES SECTION (BENTO GRID)
   ============================================ */
.features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem 8rem 2rem;
}

.features-header {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 4rem auto;
}

.features-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.features-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .bento-card.card-1 { grid-column: span 3; }
    .bento-card.card-2 { grid-column: span 3; }
    .bento-card.card-3 { grid-column: span 2; }
    .bento-card.card-4 { grid-column: span 4; }
}

.bento-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bento-card:hover {
    border-color: var(--border-hover);
    background-color: rgba(255, 255, 255, 0.01);
}

.card-icon {
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.card-icon svg {
    stroke-width: 1.75;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   PRIVACY SECTION
   ============================================ */
.privacy-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.privacy-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.privacy-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.privacy-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.privacy-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.privacy-cta {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.cta-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cta-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

.cta-text a:hover {
    opacity: 0.8;
}

/* ============================================
   SUPPORT SECTION
   ============================================ */
.support-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.support-card {
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
}

.support-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: left;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Form Styles */
.contact-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.04);
}

.form-textarea {
    resize: none;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--accent);
    border: none;
    border-radius: 8px;
    color: #121d0f;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background-color: #f3ce85;
}

.btn-submit:active {
    transform: translateY(0.5px);
}

/* Support Info */
.support-info {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.info-email {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-email:hover {
    color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ============================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 6rem 1.5rem 4rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .badge-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .features {
        padding: 4rem 1.5rem 6rem 1.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .privacy-container {
        padding: 4rem 1.5rem;
    }

    .support-container {
        padding: 4rem 1.5rem;
    }

    .support-card {
        padding: 2rem 1.5rem;
    }
}
