/*
Theme Name: HaitianPie
Description: Tema para red social de venta de packs de video haitianas
Version: 1.0
Author: HaitianPie Team
Text Domain: haitianpie
*/

/* Los estilos principales estarán en el mismo archivo */
:root {
    --primary-color: #e91e63;
    --secondary-color: #9c27b0;
    --dark-color: #121212;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-color);
    color: white;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.main-header {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

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

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

/* Galería Principal */
.main-content {
    margin-top: 80px;
    padding: 2rem 0;
}

.gallery-title {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-title p {
    color: #ccc;
    font-size: 1.1rem;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.pack-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pack-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.pack-video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #000;
}

.pack-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.9rem;
}

.pack-info {
    padding: 1.2rem;
}

.pack-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.pack-description {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pack-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

/* Modal de Suscripción */
.subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--dark-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-content p {
    margin-bottom: 2rem;
    color: #ccc;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Planes de Precios */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.plan-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.plan-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.plan-features li:before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #ccc;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .packs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .gallery-title h1 {
        font-size: 2rem;
    }
}

/* Mejoras para packs con icono de play */
.pack-media {
    position: relative;
    overflow: hidden;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.pack-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.pack-card:hover .play-icon {
    transform: scale(1.1);
}

/* Página de contenido */
.page-content {
    padding: 100px 0 2rem;
    min-height: 80vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-body {
    max-width: 800px;
    margin: 0 auto;
}

/* Botones mejorados */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
}

/* Badges para planes */
.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-card {
    position: relative;
    padding-top: 2rem;
}

.plan-price span {
    font-size: 1rem;
    color: #ccc;
}

/* Garantías */
.plan-guarantee {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.guarantee-icon {
    font-size: 1.2rem;
}

/* Mejoras del modal */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
}

.modal-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
}

/* Menú móvil mejorado */
.mobile-bottom-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(233, 30, 99, 0.3);
    padding: 0.8rem 0;
    z-index: 1000;
}

.mobile-menu-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ccc;
    transition: all 0.3s ease;
    flex: 1;
    padding: 0.5rem;
}

.mobile-menu-item.active,
.mobile-menu-item:hover {
    color: var(--primary-color);
}

.mobile-menu-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}

.mobile-menu-item:hover .mobile-menu-icon {
    transform: translateY(-2px);
}

.mobile-menu-label {
    font-size: 0.7rem;
    font-weight: 500;
}

.mobile-menu-item.active .mobile-menu-label {
    color: var(--primary-color);
}

/* Ajuste para contenido con menú móvil */
body.has-mobile-menu {
    padding-bottom: 70px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-bottom-menu {
        display: block;
    }
    
    .main-content {
        margin-bottom: 70px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .plan-guarantee {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: none;
    }
}

/* Botones de planes */
.haitianpie-plan-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.plan-button-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.plan-button-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.plan-button-item h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.plan-button-item .plan-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.plan-button-item .plan-price span {
    font-size: 1rem;
    color: #ccc;
}

.plan-button-item .btn {
    width: 100%;
    padding: 1rem;
}

/* Enlaces directos al checkout */
.direct-checkout-link {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.direct-checkout-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    color: white;
}

/* Modal mejorado */
.subscription-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.subscription-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 15px;
    padding: 2.5rem;
    max-width: 900px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(233, 30, 99, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.modal-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
}

/* Contenido restringido */
.restricted-content {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.restricted-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.restricted-content p {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Badge para packs populares */
.pack-card.hot::before {
    content: "HOT";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

/* Animación para el contador de vistas */
.pack-views {
    transition: all 0.3s ease;
}

.pack-views.updating {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Página de carrito vacía */
.woocommerce-cart .woocommerce-info {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.woocommerce-cart .return-to-shop {
    text-align: center;
    margin-top: 2rem;
}

.woocommerce-cart .return-to-shop .button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.woocommerce-cart .return-to-shop .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

/* ===== LOGO MULTICOLOR ===== */
.logo-text {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-part.haiti {
    background: linear-gradient(45deg, #00209f, #ce1126);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-part.pie {
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HEADER HORIZONTAL PARA MÓVILES ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 30px;
    height: 30px;
    justify-content: space-between;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    display: none;
    background: rgba(18, 18, 18, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    display: block;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav a:hover {
    background: rgba(233, 30, 99, 0.1);
    color: var(--primary-color);
}

/* Botones pequeños para móviles */
.btn-small {
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
}

.welcome-text {
    font-size: 0.8rem;
    color: #ccc;
}

/* ===== HEADER RESPONSIVE ===== */
@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo {
        flex: 1;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .user-actions {
        order: 2;
    }
    
    .main-nav {
        order: 3;
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 1rem;
        padding: 0.8rem 0;
    }
    
    .logo {
        flex: 0 0 auto;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .user-actions {
        order: 2;
        margin-left: auto;
    }
    
    .welcome-text {
        display: none;
    }
    
    .user-welcome {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Ajustes para el contenido principal con header móvil compacto */
    .main-content {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.6rem 0;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .btn-small {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* ===== ANIMACIONES PARA EL LOGO ===== */
.logo-text {
    position: relative;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
}

.logo-part.haiti {
    position: relative;
}

.logo-part.haiti::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #00209f, #ce1126);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.logo-part.pie::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo-text:hover .logo-part.haiti::after,
.logo-text:hover .logo-part.pie::after {
    transform: scaleX(1);
}

/* ===== MEJORAS PARA EL HEADER FIJO ===== */
.main-header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(18, 18, 18, 0.92);
    border-bottom: 1px solid rgba(233, 30, 99, 0.2);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(18, 18, 18, 0.98);
    border-bottom-color: rgba(233, 30, 99, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== EFECTO DE SCROLL SUAVE ===== */
html {
    scroll-behavior: smooth;
}

/* ===== INDICADOR DE PÁGINA ACTIVA ===== */
.main-nav ul li.current-menu-item a {
    color: var(--primary-color);
    position: relative;
}

.main-nav ul li.current-menu-item a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== MEJORAS GENERALES PARA MÓVILES ===== */
@media (max-width: 768px) {
    /* Ajustar grid de packs para móviles */
    .packs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    /* Mejorar títulos para móviles */
    .gallery-title h1 {
        font-size: 1.8rem;
    }
    
    .gallery-title p {
        font-size: 1rem;
    }
    
    /* Ajustar modal para móviles */
    .subscription-modal .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Ajustar footer para móviles */
    .main-footer {
        padding: 1.5rem 0;
    }
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ESTADOS DE FOCUS MEJORADOS ===== */
.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-nav a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* ===== LOADING MEJORADO PARA MÓVILES ===== */
@media (max-width: 768px) {
    .loading {
        padding: 1.5rem;
    }
    
    .spinner {
        width: 30px;
        height: 30px;
    }
}

/* ===== BOTONES MEJORADOS PARA TACTIL ===== */
@media (max-width: 768px) {
    .btn, .btn-primary, .btn-secondary {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .pack-card {
        min-height: 60px;
    }
}

/* Páginas de Login y Registro Personalizadas */
.custom-login-page,
.custom-register-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container,
.register-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.login-container::before,
.register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff8a00, #e52e71, #5e50ff, #00b4ff);
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo,
.register-logo {
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.login-header h1,
.register-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.login-header p,
.register-header p {
    color: #718096;
    font-size: 1rem;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.form-group .input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group .input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #4a5568;
}

.remember-me input {
    margin-right: 8px;
}

.lost-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.lost-password:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.login-submit,
.register-submit {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-submit:hover,
.register-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Separadores sociales */
.social-login-separator,
.social-register-separator {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: #a0aec0;
    font-size: 0.9rem;
}

.social-login-separator::before,
.social-register-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.social-login-separator span,
.social-register-separator span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Botones sociales */
.social-login-buttons,
.social-register-buttons {
    margin-bottom: 25px;
}

.social-login-buttons .nsl-container,
.social-register-buttons .nsl-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-login-buttons .nsl-button,
.social-register-buttons .nsl-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e2e8f0 !important;
    background: white !important;
    color: #4a5568 !important;
}

.social-login-buttons .nsl-button:hover,
.social-register-buttons .nsl-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    border-color: #667eea !important;
}

/* Mensajes de error y éxito */
.login-error,
.register-error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #f56565;
    font-size: 0.9rem;
}

.register-success {
    background: #c6f6d5;
    color: #2f855a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #48bb78;
    font-size: 0.9rem;
}

/* Footer de login/register */
.login-footer,
.register-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #718096;
}

.login-footer a,
.register-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover,
.register-footer a:hover {
    text-decoration: underline;
}

.privacy-text {
    font-size: 0.8rem;
    color: #718096;
    text-align: center;
    margin-bottom: 20px;
}

.privacy-text a {
    color: #667eea;
    text-decoration: none;
}

.privacy-text a:hover {
    text-decoration: underline;
}

.registration-closed {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container,
    .register-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-header h1,
    .register-header h1 {
        font-size: 1.7rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

.login-info {
    background: #bee3f8;
    color: #2c5282;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4299e1;
    font-size: 0.9rem;
}