/* 
   MOTOCLUB DISTRITO ENDURO - DESIGN SYSTEM 
   Theme: Dark Racing
*/

:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-surface: #1a1a1a;
    --color-surface-hover: #252525;

    --color-primary: #ff6600;
    /* KTM/Enduro Orange */
    --color-secondary: #fbbf24;
    /* Gold/Yellow */

    --color-text-main: #ffffff;
    --color-text-muted: #a3a3a3;

    /* Typography */
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Barlow', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Transitions */
    --transition-fast: 0.2s ease;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 600;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    /* Normalized look: Rounded by default */
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
    /* Inherits rounded border from .btn */
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Modifiers */
.btn-sm {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

.btn-lg {
    font-size: 1.5rem;
    padding: 1rem 3rem;
}

.btn-racing {
    border-radius: 0;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
}

/* Section Styling */
section {
    padding: var(--spacing-lg) 0;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- COMPONENTS: Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 3.0rem;
    font-weight: 700;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-body);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    /* text-transform: uppercase; Removed to allow Title Case */
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--color-primary);
}

/* --- COMPONENTS: Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* Use a high quality enduro image. Fallback to grey if image fails */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1599408169542-620fc453382c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    /* Negative margin to pull hidden behind nav if needed, but here we just ensure 
       it takes full screen minus nav isn't necessary because nav is fixed overlay */
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient to ensure text readability */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.hero-title {
    font-size: 4rem;
    /* Mobile first */
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* --- COMPONENTS: Calendar Card --- */
.section-calendar {
    min-height: 50vh;
    /* Placeholder height */
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-header h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.calendar-grid {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

.calendar-embed-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-iframe-wrapper {
    background: #0a0a0a;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 102, 0, 0.2);
    overflow: hidden;
}

.calendar-iframe-wrapper iframe {
    display: block;
    border-radius: var(--radius-sm);
    /* Apply dark theme filters - conservative approach to minimize color distortion */
    filter: invert(1) hue-rotate(190deg) brightness(0.92) contrast(0.9);
}

/* Reset filter for images/icons within calendar to prevent double inversion */
.calendar-iframe-wrapper iframe img {
    filter: invert(1) hue-rotate(190deg);
}

@media (max-width: 768px) {
    .calendar-iframe-wrapper iframe {
        height: 500px;
    }
}

.calendar-grid {
    margin-top: 3rem;
}

.event-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-left: 4px solid var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: var(--transition-fast);
}

.event-card:hover {
    background: var(--color-surface-hover);
    transform: translateX(10px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-heading);
    line-height: 1;
    min-width: 60px;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: 700;
}

.event-date .month {
    color: var(--color-secondary);
    font-size: 1.2rem;
    font-weight: 600;
}

.event-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.event-info p {
    color: var(--color-text-muted);
}

.btn-icon {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.event-card:hover .btn-icon {
    color: var(--color-secondary);
    transform: translateX(5px);
}

/* --- COMPONENTS: Footer --- */
.footer {
    background: var(--color-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--color-text-main);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- COMPONENTS: About Section --- */
.section-about {
    background: var(--color-bg);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.about-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-list .icon {
    font-size: 2rem;
    background: var(--color-surface);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-list h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--color-secondary);
}

.image-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1558981403-c5f9899a28bc?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    min-height: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-primary);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%, 0 15%);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 600;
}

/* --- COMPONENTS: CTA Section --- */
.section-cta {
    background: var(--color-surface);
    border-top: 1px solid var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    padding: 4rem 0;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.cta-content h2 {
    font-size: 3rem;
}

@media (min-width: 768px) {
    .cta-container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .cta-content h2 {
        font-size: 4rem;
    }
}

/* --- PAGES: Auth / Login --- */
.auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1558981806-ec527fa84c3d?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: var(--spacing-sm);
}

.auth-card {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--color-text-muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.form-group input,
.form-control,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--color-text-muted);
}

.auth-footer a:hover {
    color: var(--color-primary);
}

.error-message {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- PAGES: Dashboard --- */
.dashboard-layout {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    min-height: 100vh;
}

.dashboard-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.card-feature {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-feature h3 {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.code-box {
    background: rgba(251, 191, 36, 0.1);
    border: 1px dashed var(--color-secondary);
    color: var(--color-secondary);
    padding: 1rem;
    text-align: center;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.action-row {
    display: flex;
    justify-content: flex-end;
}

/* --- ADMIN PANEL --- */
.admin-section {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-title {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.admin-input,
.admin-section select,
.admin-section textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-fast);
    min-height: 45px;
    /* Ensure uniform height for inputs and selects */
}

.admin-input:focus,
.admin-section select:focus,
.admin-section textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

/* Admin specific button overrides for better density */
.admin-section .btn {
    font-size: 1rem;
    padding: 0.6rem 1.25rem;
    clip-path: none;
    /* Remove racing angle for better UI fit */
    border-radius: var(--radius-sm);
    height: 45px;
    /* Match input height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Specific fix for inputs with buttons next to them (like upload) */
.form-group>div {
    display: flex;
    gap: 0.5rem;
}

.form-group>div .btn {
    white-space: nowrap;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

.admin-form-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

/* --- COMPONENTS: Members Section --- */
.section-members {
    background: var(--color-bg);
    padding: var(--spacing-lg) 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.member-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    border-color: rgba(255, 102, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.1);
}

.member-card.featured {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, var(--color-surface) 100%);
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 102, 0, 0.1);
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.member-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-secondary);
}

.benefits-list {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.benefits-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.price-box {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.price-period {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-left: 0.5rem;
}

.price-description {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Membership Form Section */
.membership-form-section {
    margin-top: var(--spacing-lg);
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.membership-form-section h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.form-intro {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.form-cta-box {
    max-width: 600px;
    margin: 0 auto;
}

.form-cta-box p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.form-cta-box strong {
    color: var(--color-secondary);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: #0a0a0a;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.8rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .member-card.featured {
        transform: scale(1);
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .membership-form-section {
        padding: 2rem 1.5rem;
    }
}

/* --- CALENDAR: Loading and Empty States --- */
.loading-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.loading-state::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid var(--color-text-muted);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-events {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- SIGNUP FORM STYLES --- */
.signup-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed .step-number {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--color-surface);
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.progress-step.active .step-label {
    color: var(--color-secondary);
}

.progress-line {
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1rem;
}

@media (max-width: 768px) {
    .step-label {
        font-size: 0.75rem;
    }

    .progress-line {
        width: 40px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.signup-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-secondary);
    text-align: center;
}

.form-subsection-title {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--color-primary);
}

.required {
    color: var(--color-primary);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.radio-label:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-hover);
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked+span {
    color: var(--color-primary);
    font-weight: 600;
}

.info-box {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-box h4 {
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.info-box p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-actions button {
    flex: 1;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
}

.admin-input.invalid,
input.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.success-box {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-box h2 {
    color: #22c55e;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.success-box p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: #000;
}

.btn-secondary:hover {
    background-color: #fcd34d;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.8rem;
}

.alert-box {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.alert-box p {
    margin-bottom: 0.5rem;
}

.alert-box a {
    color: var(--color-primary);
    text-decoration: underline;
}

.payment-history {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-item {
    display: grid;
    grid-template-columns: 100px 120px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    border-left: 4px solid transparent;
}

.payment-item.paid {
    border-left-color: #22c55e;
}

.payment-item.unpaid {
    border-left-color: #ef4444;
}

.payment-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.payment-status {
    font-size: 0.9rem;
}

.payment-details {
    display: flex;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =====================================
   ADMIN TABS SYSTEM
   ===================================== */

.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    background: var(--color-surface);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    /* Reduced from 1rem 2rem */
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    /* Reduced from 1.3rem */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn:hover {
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--color-primary);
    background: rgba(255, 102, 0, 0.1);
    border-bottom-color: var(--color-primary);
}

/* FontAwesome icons in tabs should match text size */
.admin-tabs .tab-btn i {
    font-size: 0.95rem !important;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tabs */
@media (max-width: 768px) {
    .admin-tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 3px solid transparent;
        text-align: left;
    }

    .tab-btn.active {
        border-left-color: var(--color-primary);
        border-bottom-color: transparent;
    }
}

/* Modal para editar socio */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-content h2 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.modal-content .form-group {
    margin-bottom: 1.5rem;
}

.modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 500;
}

/* Grid para formularios */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}


@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}


/* --- SOCIOS PAGE REDESIGN --- */

/* Ventajas / Actividades Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: transparent;
    /* Removed card background */
    border: none;
    /* Removed border */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center align items */
    text-align: center;
    /* Center text */
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    /* No border color change on hover since no border */
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.benefit-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.benefit-desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Partners Grid */
.partners-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.partner-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
}

.partner-name {
    font-weight: bold;
    color: white;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.partner-offer {
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Pricing Highlight Override */
.pricing-hero-card {
    background: linear-gradient(145deg, var(--color-surface), #1a1a1a);
    border: 1px solid var(--color-primary);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pricing-amount {
    font-size: 5rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1;
    display: block;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(255, 77, 0, 0.3);
}

.includes-badge {
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.step-item {
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--color-border);
}

.step-number {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    display: block;
}

/* Admin Partners List */
.partners-admin-list {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.admin-partner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-partner-info strong {
    color: var(--color-primary);
    display: block;
}

.admin-partner-actions button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* --- COMPONENTS: Skeleton Loaders (WebCRM Performance) --- */
.skeleton {
    background-color: var(--color-surface);
    background-image: linear-gradient(90deg,
            var(--color-surface) 0px,
            rgba(255, 255, 255, 0.05) 40px,
            var(--color-surface) 80px);
    background-size: 200% 100%;
    animation: skeleton-shine 1.5s infinite linear;
    border-radius: var(--radius-sm);
    color: transparent !important;
    pointer-events: none;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5rem;
    width: 100%;
    display: inline-block;
}

.skeleton-text.short {
    width: 50%;
}

.skeleton-text.title {
    height: 2em;
    margin-bottom: 1rem;
}

.skeleton-card {
    height: 200px;
    width: 100%;
    display: block;
}

@keyframes skeleton-shine {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* --- FOOTER FIXES --- */
.main-footer {
    background: var(--color-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 0;
    /* Padding bottom moved to footer-bottom or removed if handled by grid gap */
    margin-top: 5rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns by default based on html structure */
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    /* Vertically align if one side is taller */
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-col.social-col {
        justify-content: center;
    }
}

.footer-col h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.footer-col p {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 300px;
}

@media (max-width: 768px) {
    .footer-col p {
        margin: 0 auto;
    }
}

.social-col {
    display: flex;
    justify-content: flex-end;
    /* Push social icons to right */
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .social-col {
        justify-content: center;
    }
}

.social-col a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-col a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Benefits Grid Styles */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 Columns on Mobile */
        gap: 0.5rem;
    }

    .benefit-card {
        padding: 1rem !important;
    }

    .benefit-title {
        font-size: 1.1rem !important;
    }

    .benefit-desc {
        font-size: 0.85rem !important;
    }

    .benefit-icon i {
        font-size: 1.5rem !important;
    }
}