/* =========================================
   VARIABLES Y SISTEMA DE DISEÑO
   ========================================= */
:root {
    --color-dark: #1A1A1A;
    --color-magenta: #D90050;
    --color-orange: #F05023;
    --color-yellow: #F59D13;
    --color-green: #009E2E;
    --color-blue: #0095C8;
    
    --color-bg: #FFFFFF;
    --color-surface: #F8F9FA;
    --color-border: #E5E7EB;
    --color-text: #374151;
    --color-text-light: #6B7280;

    --gradient-fiesta: linear-gradient(90deg, var(--color-magenta), var(--color-orange), var(--color-yellow), var(--color-green), var(--color-blue));

    --font-heading: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-pill: 9999px;
    --transition: all 0.3s ease;
}

/* =========================================
   RESETEO BÁSICO
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.2;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: var(--color-blue);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* =========================================
   BOTONES
   ========================================= */
.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--color-magenta);
    color: white;
    box-shadow: 0 4px 14px rgba(217, 0, 80, 0.3);
}

.btn-primary:hover {
    background-color: #be0046;
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-dark);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-dark);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-dark);
}

.btn-ghost:hover {
    color: var(--color-magenta);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* =========================================
   HEADER Y MENÚ MÓVIL
   ========================================= */
.header {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-dark);
    letter-spacing: -0.5px;
}

/* Hamburguesa */
.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1000;
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger, .hamburger::before, .hamburger::after {
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { bottom: 8px; }
.hamburger::after { top: 8px; }

.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    bottom: 0;
}
.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Contenedor del menú en móvil */
.nav-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.4s ease-in-out;
    z-index: 999;
    pointer-events: none;
}

.nav-wrapper.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-wrapper .nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.nav-wrapper .nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-wrapper .nav-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    padding: 64px 0;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(245, 157, 19, 0.1);
    color: var(--color-orange);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.microcopy {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* =========================================
   CÓMO FUNCIONA & BENEFICIOS
   ========================================= */
.how-it-works, .features {
    padding: 64px 0;
    text-align: center;
}

.how-it-works {
    background-color: var(--color-surface);
}

.how-it-works h2, .features h2 {
    margin-bottom: 48px;
    font-size: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.step-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--color-border);
}

.step-card:nth-child(1) { border-top-color: var(--color-orange); }
.step-card:nth-child(2) { border-top-color: var(--color-yellow); }
.step-card:nth-child(3) { border-top-color: var(--color-green); }

.step-number {
    width: 48px;
    height: 48px;
    background-color: var(--color-surface);
    color: var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    font-family: var(--font-heading);
}

.step-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.feature-list li {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

/* =========================================
   PRICING
   ========================================= */
.pricing {
    padding: 64px 0;
    text-align: center;
}

.pricing h2 {
    margin-bottom: 48px;
    font-size: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 32px;
}

.price-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px 24px;
    text-align: left;
    position: relative;
    background: white;
}

.price-card.premium {
    border: 2px solid var(--color-magenta);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    
    /* Cambio: Usar azul sólido en lugar del gradiente */
    background: var(--color-magenta); 
    
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Opcional: Una sombra suave del mismo color para darle profundidad */
    box-shadow: 0 4px 10px rgba(0, 149, 200, 0.4); 
    
    /* Aseguramos que quede por encima de otros elementos */
    z-index: 2; 
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.target-audience {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-bottom: 24px;
}

.price span {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: normal;
}

.price-card ul {
    list-style: none;
    margin-bottom: 32px;
}

.price-card ul li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    color: var(--color-text);
}

.price-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: bold;
}

.price-card .btn-primary, .price-card .btn-secondary {
    width: 100%;
    display: block;
}
/* =========================================
   NUEVOS ESTILOS PRICING EXPANDIBLE
   ========================================= */
.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 48px;
    font-size: 1.1rem;
}

.disabled {
    opacity: 0.5;
    text-decoration: line-through;
}

.block { display: block; }
.mt-2 { margin-top: 8px; }

/* Transiciones de visibilidad */
.hidden {
    display: none !important;
}

.premium-expanded {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Selector de Invitados */
.premium-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.guest-selector-container {
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--color-border);
}

.guest-selector-container label {
    font-weight: 600;
    color: var(--color-dark);
}

.guest-select {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    background-color: var(--color-surface);
}

.guest-select:focus {
    border-color: var(--color-magenta);
}

/* Grid de 4 planes */
.premium-plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Tooltips */
.tooltip-trigger {
    position: relative;
    cursor: help;
}

.tooltip {
    visibility: hidden;
    background-color: var(--color-dark);
    color: #fff;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    white-space: nowrap;
}

.tooltip-trigger:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Media Queries para el grid expandido */
@media (min-width: 768px) {
    .premium-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .premium-header {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

/* =========================================
   FAQ
   ========================================= */
.faq {
    padding: 64px 0;
    background-color: var(--color-surface);
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    color: var(--color-dark);
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-magenta);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--color-text-light);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 80px 0 40px;
    text-align: center;
    background-color: var(--color-dark);
    color: white;
}

.footer h2 {
    color: white;
    margin-bottom: 16px;
}

.footer p {
    color: #9CA3AF;
    margin-bottom: 32px;
}

.footer-legal {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid #374151;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.875rem;
}

/* =========================================
   MEDIA QUERIES (DESKTOP)
   ========================================= */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }

    .nav-wrapper {
        position: static;
        transform: translateY(0);
        opacity: 1;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
        background: transparent;
        width: auto;
        display: flex;
        align-items: center;
        gap: 32px;
        pointer-events: auto;
    }

    .nav-wrapper .nav-links {
        flex-direction: row;
    }
    
    .nav-wrapper .nav-links a {
        font-size: 1rem;
    }

    .nav-wrapper .nav-ctas {
        flex-direction: row;
    }

    .hero {
        padding: 96px 0;
    }

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

    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
    }

    .footer-legal {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
    }
}

/* =========================================
   MODAL STYLES
   ========================================= */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}

.modal-content.event-modal {
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 50px rgba(17, 24, 39, 0.2);
    padding-top: 36px;
}

/*.modal-content.event-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: var(--gradient-fiesta);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}*/

.modal-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(217, 0, 80, 0.1);
    color: var(--color-magenta);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.modal-subtitle {
    color: var(--color-text-light);
    margin-top: 8px;
}

.event-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.event-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-form label {
    font-weight: 600;
    color: var(--color-dark);
}

.event-form input {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.event-form input:focus {
    outline: none;
    border-color: var(--color-magenta);
    box-shadow: 0 0 0 3px rgba(217, 0, 80, 0.15);
    background-color: #fff;
}

.event-form .full {
    grid-column: 1 / -1;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 20px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

/* Animaciones del Modal */
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 640px) {
    .event-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-actions {
        flex-direction: row;
    }

    .modal-actions .btn-primary {
        flex: 1;
    }
}
