/* ========================================
   DateamePe! - Estilos CSS
   Foro de la Comunidad Peruana
   ======================================== */

/* CSS Variables - Tema Peruano */
:root {
    --primary: #D91E18;
    --primary-dark: #B71C1C;
    --primary-light: #FF5252;
    --background: #FFFFFF;
    --foreground: #1A1A1A;
    --muted: #F5F5F5;
    --muted-foreground: #6B6B6B;
    --border: #E5E5E5;
    --card: #FFFFFF;
    --card-foreground: #1A1A1A;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--foreground);
    color: var(--background);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--muted);
    border-color: var(--muted-foreground);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ========================================
   Announcement Bar
   ======================================== */
.announcement-bar {
    background-color: var(--foreground);
    color: var(--background);
    text-align: center;
    padding: 12px 20px;
    font-size: 0.9rem;
}

.announcement-bar a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 8px;
}

.announcement-bar a:hover {
    color: var(--background);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--foreground);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--muted-foreground);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--foreground);
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--foreground);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    z-index: 99;
    padding: 100px 24px 40px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-nav-links a {
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 300px;
}

.mobile-nav-buttons a {
    text-align: center;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--muted-foreground);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Forum Preview */
.hero-visual {
    display: flex;
    justify-content: center;
}

.forum-preview {
    background-color: var(--foreground);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.05);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.preview-dots span:first-child {
    background-color: #FF5F57;
}

.preview-dots span:nth-child(2) {
    background-color: #FFBD2E;
}

.preview-dots span:last-child {
    background-color: #28CA41;
}

.preview-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.preview-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-post {
    display: flex;
    gap: 12px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
}

.preview-post:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.post-avatar.red {
    background-color: var(--primary);
}

.post-avatar.white {
    background-color: rgba(255, 255, 255, 0.9);
}

.post-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.post-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    background-color: var(--muted);
    padding: 60px 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.section-description {
    color: var(--muted-foreground);
    font-size: 1.1rem;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--foreground);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--foreground);
    color: var(--background);
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Categories Section
   ======================================== */
.categories {
    padding: 100px 24px;
    background-color: var(--muted);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-card {
    padding: 32px;
    background-color: var(--card);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.category-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.category-count {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    background-color: var(--foreground);
    color: var(--background);
    border-radius: var(--radius);
}

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
}

.author-location {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    padding: 100px 24px;
    background-color: var(--muted);
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--foreground);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: 100px 24px;
    background-color: var(--foreground);
    color: var(--background);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 32px;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 16px;
}

.cta-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

.cta-form input:focus {
    outline: 2px solid var(--primary);
}

.cta-form .btn-primary {
    background-color: var(--primary);
    color: white;
}

.cta-form .btn-primary:hover {
    background-color: var(--primary-dark);
}

.cta-note {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--muted);
    padding: 80px 24px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--muted-foreground);
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h5 {
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--foreground);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .features-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .forum-preview {
        max-width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
