/* --- VARIABLES --- */
:root {
    --primary: #c6272d;
    --primary-hover: #a51d22;
    --text-main: #1a1a1a;
    --text-light: #555555;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --green-bg: #dcfce7;
    --green-text: #15803d;
    --nav-height: 80px;
}

/* RESET BÁSICO */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.5;
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* CONTENEDOR GENERAL */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
}

/* --- TIPOGRAFÍA DESKTOP --- */
h1 { font-size: 3.8rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.2rem; color: var(--text-main); letter-spacing: -0.02em; }
h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.8rem; color: var(--text-main); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--text-main); }
p { color: var(--text-light); font-size: 1rem; line-height: 1.6; }
.text-success {color: #15803d;}
.text-highlight { color: var(--primary); }
.section-header { text-align: center; max-width: 1000px; margin: 0 auto 3.5rem auto; }

/* --- BOTONES --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; width: fit-content; }
.btn-primary { background-color: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(198, 39, 45, 0.25); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid #e0e0e0; color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-main); background: var(--text-main); color: #fff; }
.btn-white-nav { background-color: #fff; color: var(--primary); padding: 8px 24px; font-size: 0.9rem; }
.btn-white-nav:hover { background-color: #f0f0f0; }
.btn-block { width: 100%; }

/* --- NAVBAR --- */
.navbar { padding: 15px 0; position: fixed; top: 0; left: 0; width: 100%; background-color: var(--primary); z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.15); height: var(--nav-height); display: flex; align-items: center; }
.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 2rem; font-weight: 500; color: #fff; display: flex; align-items: center; gap: 8px; }
.logo i { color: #fff; } 
.nav-links { display: flex; gap: 30px; font-weight: 500; font-size: 0.95rem; }
.nav-links a { color: rgba(255,255,255,0.7); transition: all 0.3s ease; position: relative; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; font-weight: 700; }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 2px; }

/* --- HERO --- */
.hero { padding: 180px 0 80px 0; background-color: var(--bg-white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: center; }
.trust-text { display: inline-flex; align-items: center; gap: 8px; color: #888; font-size: 0.9rem; font-weight: 500; margin-bottom: 20px; }
.trust-text i { color: #aaa; }
.hero::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.20;
    background-image: url('../img/rooster-bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    pointer-events: none;
}
/* --- CARRUSEL HERO --- */
.img-carousel-container { width: 100%; aspect-ratio: 16/10; background: #f0f0f0; border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.15); border: 4px solid #fff; }
.img-track { display: flex; width: 400%; height: 100%; animation: autoSlideImg 16s infinite ease-in-out; }
.img-slide { width: 25%; height: 100%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background-color: #e5e5e5; color: #999; font-weight: 800; font-size: 1.5rem; border-right: 1px solid #ddd; position: relative; }
.img-slide::after { content: '\f03e'; font-family: 'Font Awesome 6 Free'; font-size: 3rem; margin-bottom: 10px; display: block; }
.img-slide div { text-align: center; }
@keyframes autoSlideImg {
    0%, 20% { transform: translateX(0); } 25%, 45% { transform: translateX(-25%); } 50%, 70% { transform: translateX(-50%); } 75%, 95% { transform: translateX(-75%); } 100% { transform: translateX(0); }
}

/* --- STATS STRIP (ALINEACIÓN CORREGIDA) --- */
.stats-strip {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed #e0e0e0;
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar horizontalmente */
    justify-content: flex-start; /* Alinear al top */
}

.stat-mini h4 { 
    color: var(--primary); 
    font-size: 2.8rem; 
    font-weight: 800; 
    line-height: 1; 
    margin: 0 0 10px 0; /* Margen fijo abajo */
    letter-spacing: -1px;
}

.stat-mini span { 
    font-size: 1rem; 
    color: var(--text-main); 
    font-weight: 700;
}

/* --- LAYOUTS --- */
.section-gray { background: var(--bg-gray); padding: 80px 0; }
.section-white { background: var(--bg-white); padding: 80px 0; }
.list-layout { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; row-gap: 40px; max-width: 1000px; margin: 0 auto; }
.list-item { display: flex; align-items: flex-start; gap: 15px; }
.icon-box-red { flex-shrink: 0; width: 44px; height: 44px; background: rgba(198, 39, 45, 0.1); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-top: 2px; }
.icon-box-green { flex-shrink: 0; width: 44px; height: 44px; background: var(--green-bg); color: var(--green-text); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-top: 2px; }
.problems-cta-text { text-align: center; max-width: 800px; margin: 50px auto 0 auto; }
.problems-cta-text p { font-size: 1rem; color: var(--text-light); font-weight: 400; line-height: 1.6; }
.feature-plus { grid-column: 1 / -1; text-align: center; margin-top: 40px; color: var(--text-light); font-weight: 500; }
.feature-plus span { color: var(--primary); font-weight: 700; }

/* --- TESTIMONIOS --- */
.testimonials-wrapper { position: relative; max-width: 100%; }
.testimonial-slider { display: flex; gap: 25px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 5px 30px 5px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.testimonial-slider::-webkit-scrollbar { display: none; }
.testimonial-card { min-width: 350px; max-width: 350px; flex-shrink: 0; background: #fff; padding: 30px; border-radius: 16px; border: 1px solid #eee; scroll-snap-align: start; box-shadow: 0 4px 10px rgba(0,0,0,0.03); display: flex; flex-direction: column; justify-content: space-between; }
.stars { color: #fbbf24; margin-bottom: 15px; font-size: 0.9rem; }
.user-info { display: flex; align-items: center; gap: 12px; margin-top: 20px; border-top: 1px solid #f0f0f0; padding-top: 15px; }
.avatar-placeholder { width: 40px; height: 40px; background: #eee; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #999; font-weight: bold; font-size: 0.8rem; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; background: #fff; border: 1px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: 0.3s; color: var(--text-main); }
.nav-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav-btn.prev { left: -20px; }
.nav-btn.next { right: -20px; }

/* --- TABS PLANES (NUEVO) --- */
.plan-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tab-btn { padding: 10px 25px; border: 2px solid #e0e0e0; background: #fff; border-radius: 30px; font-weight: 600; color: #666; cursor: pointer; transition: 0.3s; font-size: 1rem; }
.tab-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(198, 39, 45, 0.3); }
.tab-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* --- PRECIOS --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
/* Clase para mostrar solo una tarjeta centrada (Créditos) */
.pricing-grid.single-card { display: flex; justify-content: center; } 
.pricing-grid.single-card .pricing-card { max-width: 450px; width: 100%; }

.pricing-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 30px 20px; position: relative; transition: transform 0.3s ease; display: flex; flex-direction: column; height: 100%; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.pricing-card.popular { border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(198, 39, 45, 0.08); transform: scale(1.02); z-index: 2; }
.pricing-card.popular:hover { transform: scale(1.02) translateY(-5px); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; width: max-content; }
.plan-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.plan-price { font-size: 2rem; font-weight: 900; color: var(--text-main); margin-bottom: 5px; }
.plan-price span { font-size: 0.9rem; font-weight: 500; color: #777; }
.plan-desc { font-size: 0.9rem; color: #666; margin-bottom: 25px; min-height: 40px; }
.plan-features { margin-bottom: 25px; flex-grow: 1; }
.plan-features li { margin-bottom: 10px; font-size: 0.9rem; color: #444; display: flex; align-items: start; gap: 8px; }
.plan-features li i { color: var(--green-text); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }
.plan-features li.disabled { color: #aaa; text-decoration: line-through; }
.plan-features li.disabled i { color: #ccc; }

/* Estilos Créditos / Pay Per Event */
.credits-control { margin-bottom: 20px; padding: 15px; background: #f8fafc; border-radius: 12px; text-align: center; border: 1px solid #eee; }
.credits-control .lbl { display: block; font-size: 0.85rem; color: #666; margin-bottom: 8px; font-weight: 600; }
.counter-box { display: flex; align-items: center; justify-content: center; gap: 20px; }
.ctrl-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ddd; background: #fff; cursor: pointer; color: var(--text-main); transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.ctrl-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
#credit-count { font-size: 1.3rem; font-weight: 800; min-width: 25px; }

/* --- FAQ & FOOTER --- */
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; margin-bottom: 15px; }
.faq-question { width: 100%; text-align: left; padding: 20px 0; background: none; border: none; font-size: 1.1rem; font-weight: 700; color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.faq-question:hover { color: var(--primary); }
.faq-question.active i { transform: rotate(180deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--text-light); }
.faq-answer p { padding-bottom: 20px; }
footer { background: #111; color: #999; padding: 60px 0 30px 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-weight: 800; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #888; font-weight: 500; }
.footer-col a:hover { color: #fff; }
.fade-up { opacity: 0; transform: translateY(20px); transition: 0.6s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 1100px) {
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .pricing-card.popular { transform: none; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 1.5rem; }
    h2 { font-size: 1.8rem; }
    .hero-text p { font-size: 1rem; }
    .nav-links { display: none; } 
    .container { padding: 0 20px; } 
    .hero { padding-top: 130px; padding-bottom: 50px; height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-btns, .trust-text { justify-content: center; }
    .stats-strip { flex-wrap: wrap; gap: 30px; margin-top: 40px; }
    .stat-mini h4 { font-size: 2.5rem; }
    .list-layout, .footer-grid, .pricing-grid { grid-template-columns: 1fr; gap: 30px; }
    .pricing-grid { max-width: 450px; margin: 0 auto; }
    .footer-grid { text-align: center; }
    .testimonial-card { min-width: 85vw; max-width: 85vw; }
    .nav-btn { display: none; } 
    .img-carousel-container { aspect-ratio: 16/9; }
}