/* Club Pecados Capitales - Design System */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Raleway', sans-serif;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Color Palette */
:root {
    --bg-primary: #0a0a14;
    --bg-card: rgba(18, 18, 30, 0.85);
    --bg-card-solid: #12121e;
    --gold: #d4af37;
    --gold-light: #f5e6a3;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --crimson: #8b0000;
    --crimson-light: #c41e3a;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: rgba(212, 175, 55, 0.2);
}

/* Typography Utilities */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: 'Sacramento', cursive;
    font-size: 2.5rem;
    color: var(--gold);
    text-decoration: none;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    padding: 5px 0;
}

#nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav-menu li {
    display: flex;
    align-items: center;
}

/* Punto dorado intencional antes de cada ítem del menú (consistente en todas las páginas) */
#nav-menu li::before {
    content: "\2022";
    color: var(--gold);
    margin-right: 0.5rem;
    font-size: 1rem;
    line-height: 1;
}

#nav-menu a {
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

#nav-menu a:hover {
    color: var(--gold);
}

/* Botón de cierre del menú móvil (oculto en escritorio) */
.nav-close {
    display: none;
}

#nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Nav */
@media (max-width: 768px) {
    #nav-toggle {
        display: block;
    }
    
    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-card-solid);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-open {
        right: 0 !important;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: var(--gold);
        cursor: pointer;
        padding: 0.5rem;
        line-height: 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 20, 0.4) 0%, var(--bg-primary) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Sacramento', cursive;
    font-size: 6rem;
    margin: 0 0 1rem 0;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.hero-content .tagline {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 4.5rem; }
}

/* Welcome Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
}

.popup-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    background-color: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
    animation: popupIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.popup-close:hover { color: var(--gold); }

.popup-title {
    font-family: 'Sacramento', cursive;
    font-size: 3rem;
    color: var(--gold);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.popup-text {
    color: var(--text-main);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 480px) {
    .popup-buttons { flex-direction: column; }
}

/* Sections & Containers */
.section {
    padding: 6rem 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: 'Sacramento', cursive;
    font-size: 3.5rem;
    color: var(--gold);
    text-align: center;
    margin: 0 0 3rem 0;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold-gradient);
    margin: 10px auto 0;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
}

/* Plan Cards */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    text-align: center;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0 2rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.plan-features li svg {
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    color: var(--gold);
}

.plan-card.featured {
    border-color: var(--gold);
    transform: scale(1.05);
    background-color: rgba(20, 20, 35, 0.9);
    position: relative;
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: black;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .plan-card.featured { transform: scale(1); }
    .plan-card.featured:hover { transform: translateY(-5px); }
}

/* Forms & Validation */
.validation-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    background-color: rgba(0, 0, 0, 0.5);
}

.form-submit {
    width: 100%;
    background: var(--gold-gradient);
    color: black;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: filter 0.3s;
    margin-top: 1rem;
}

.form-submit:hover {
    filter: brightness(1.15);
}

#message {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

#message:not(:empty) {
    display: block;
}

#message.error {
    background-color: rgba(139, 0, 0, 0.2);
    border: 1px solid var(--crimson-light);
    color: #ffb3b3;
}

#message.success {
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold-light);
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 20, 0.9);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-gold {
    background: var(--gold-gradient);
    color: black;
}

.btn-gold:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: black;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--bg-card-solid);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-content h2 {
    font-family: 'Sacramento', cursive;
    font-size: 2.5rem;
    color: var(--gold);
    margin: 0 0 1.5rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

/* Admin Panel */
.admin-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.admin-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-card h3 {
    margin-top: 0;
    color: var(--gold);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.admin-btn-danger {
    background: transparent;
    border: 1px solid var(--crimson-light);
    color: var(--crimson-light);
}

.admin-btn-danger:hover {
    background: var(--crimson-light);
    color: white;
}

#login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#login-error {
    color: #ffb3b3;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

#save-status {
    height: 24px;
    font-weight: 600;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

/* T&C Specifics */
.tyc-content h3 {
    color: var(--gold);
    margin-top: 2rem;
}

.tyc-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
