﻿/*
Theme Name: Sport Talent Scouting
Theme URI: https://sporttalentscouting.com
Author: Sport Talent Scouting Team
Author URI: https://sporttalentscouting.com
Description: Tema personalizado para plataforma de scouting deportivo con sistema de membresías y registro de jugadores
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sport-talent-scouting
Tags: sports, membership, scouting, talent
*/

/* ===================================
   RESET Y VARIABLES
   =================================== */
:root {
    --st-red: #D7263D;
    --st-red-dark: #A31D2B;
    --st-black: #0E0E0E;
    --st-gray: #1B1B1B;
    --st-surface-2: #141414;
    --st-border: #2A2A2A;
    --st-text: #F5F5F5;
    --st-muted: #C9CCD3;
    --st-shadow: 0 10px 26px rgba(0,0,0,.55);
    
    /* Mapeo a variables del tema */
    --primary-color: var(--st-red);
    --secondary-color: var(--st-red-dark);
    --accent-color: var(--st-red);
    --dark-color: var(--st-black);
    --light-color: var(--st-surface-2);
    --text-color: var(--st-muted);
    --border-color: var(--st-border);
    --success-color: var(--st-red);
    --error-color: var(--st-red-dark);
}

* { 




    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--st-black);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--st-text);
    background-color: var(--st-black);
    background-image: url('/wp-content/uploads/fondo-pagina.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ===================================
   HEADER Y NAVEGACIÓN
   =================================== */
.site-header {
    background: var(--st-gray);
    box-shadow: var(--st-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--st-border);
    width: 100%;
    overflow-x: hidden;
}

.header-container {
    min-width: 0;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
    min-height: 70px;
    max-height: none;
    width: 100%;
    flex-wrap: wrap;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    z-index: 1001;
    min-width: 180px;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-height: 80px;
    overflow: hidden;
}

.logo-image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 90px;
    overflow: hidden;
}

.site-logo h1 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-logo h1 a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
}

.site-logo .logo-line1 {
    color: var(--primary-color);
    display: inline;
}

.site-logo .logo-line2 {
    color: var(--secondary-color);
    display: inline;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--st-muted);
    margin: 0;
    font-weight: 400;
    text-align: center;
}

/* Logo Image */
.site-logo img {
    max-width: 200px;
    max-height: 90px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.site-logo a img {
    max-width: 200px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.custom-logo-link img {
    max-width: 200px !important;
    max-height: 90px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    min-width: 0;
}

.main-navigation ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.main-navigation li {
    display: inline-flex;
    align-items: center;
}

.main-navigation a {
    text-decoration: none;
    color: var(--st-text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.main-navigation a .menu-line1,
.main-navigation a .menu-line2 {
    display: block;
}

.main-navigation a:hover {
    color: var(--st-red);
    background: var(--st-surface-2);
}

/* Header Actions */
.header-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    z-index: 1001;
}

.user-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-greeting {
    color: var(--st-text);
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-login,
.btn-register,
.btn-logout,
.btn-profile {
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-login,
.btn-register {
    min-width: 170px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.btn-register {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    text-transform: lowercase;
}

.btn-register .btn-line1,
.btn-register .btn-line2 {
    display: block;
    white-space: nowrap;
}

.btn-login,
.btn-profile {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-login:hover,
.btn-profile:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-register {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-register:hover {
    background: var(--primary-color);
    color: white;
}

.btn-logout {
    background: transparent;
    color: var(--st-muted);
    border: 2px solid var(--st-border);
}

.btn-logout:hover {
    background: var(--st-border);
    color: var(--st-text);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(215, 38, 61, 0.7);
    background-blend-mode: overlay;
    color: white;
    padding: 2rem 2rem;
    text-align: center;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ===================================
   SECCIONES PRINCIPALES
   =================================== */
#page,
#content,
.site,
.site-content {
    background-color: var(--st-black);
    width: 100%;
    margin: 0;
    padding: 0;
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: var(--st-black);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--st-text);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* ===================================
   CARDS Y GRID
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--st-gray);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--st-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--st-border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--st-text);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.8;
}

.service-badge {
    display: inline-block;
    background: #fbbc04;
    color: var(--st-black);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* ===================================
   PLANES Y PRECIOS
   =================================== */
.pricing-section {
    background: var(--st-black);
    padding: 4rem 2rem;
    width: 100%;
    margin: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--st-gray);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--st-shadow);
    transition: transform 0.3s;
    border: 2px solid var(--st-border);
}

.pricing-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Más Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.8rem;
    color: var(--st-text);
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 1.5rem 0;
}

.pricing-price span {
    font-size: 1.2rem;
    color: var(--text-color);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.pricing-button {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.pricing-button:hover {
    background: #1557b0;
}

/* ===================================
   FORMULARIOS
   =================================== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--st-gray);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--st-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--st-text);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--st-surface-2);
    color: var(--st-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.form-submit:hover {
    background: #1557b0;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s;
}

.google-login-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: var(--st-black);
    color: white;
    padding: 3rem 2rem 1rem;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid var(--st-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--st-gray);
    border: 1px solid var(--st-border);
    border-radius: 50%;
    color: var(--st-text);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--st-red);
    border-color: var(--st-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(215, 38, 61, 0.3);
}

.social-links a i {
    transition: transform 0.3s ease;
}

.social-links a:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    background: var(--st-red);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   DIRECTORIO DE JUGADORES
   =================================== */
.players-directory {
    padding: 2rem 0;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.player-card {
    background: var(--st-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--st-shadow);
    transition: transform 0.3s;
}

.player-card:hover {
    transform: translateY(-5px);
}

.player-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--light-color);
}

.player-info {
    padding: 1.5rem;
}

.player-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--st-text);
    margin-bottom: 0.5rem;
}

.player-details {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.player-position {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ===================================
   VIDEO GALLERY
   =================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--st-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--st-shadow);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--light-color);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(26, 115, 232, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--st-text);
    margin-bottom: 0.5rem;
}

.video-meta {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE
   =================================== */

/* Tablets y móviles grandes (hasta 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 2rem 1.5rem;
    }
}

/* Móviles y tablets (hasta 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    /* Hero sections */
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Títulos */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Grids a una columna */
    .services-grid,
    .pricing-grid,
    .players-grid,
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cards */
    .service-card,
    .pricing-card,
    .player-card {
        padding: 1.5rem;
    }
    
    /* Pricing */
    .pricing-grid {
        padding: 1rem;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    /* Container */
    .container {
        padding: 1.5rem 1rem;
    }
    
    /* Formularios */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Previene zoom en iOS */
    }
    
    /* Botones */
    button,
    .btn,
    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .site-footer {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .pricing-price {
        font-size: 1.8rem;
    }
    
    .pricing-price span {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 1rem 0.8rem;
    }
    
    .service-card,
    .pricing-card,
    .player-card {
        padding: 1rem;
    }
    
    button,
    .btn,
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   UTILIDADES
   =================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.hidden { display: none; }

/* ===================================
   INTEGRACIÓN CON PLUGINS
   =================================== */

/* Estilos para el plugin funciones-custom-refactored */
.has-custom-functions .st-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.has-custom-functions .st-card {
    background: var(--st-gray);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--st-shadow);
    border: 1px solid var(--st-border);
}

.has-custom-functions .st-form-group {
    margin-bottom: 1.5rem;
}

.has-custom-functions .st-form-label {
    display: block;
    color: var(--st-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.has-custom-functions .st-form-input,
.has-custom-functions .st-form-select,
.has-custom-functions .st-form-textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--st-surface-2);
    color: var(--st-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.has-custom-functions .st-form-input:focus,
.has-custom-functions .st-form-select:focus,
.has-custom-functions .st-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.has-custom-functions .st-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.has-custom-functions .st-btn-primary {
    background: var(--primary-color);
    color: white;
}

.has-custom-functions .st-btn-primary:hover {
    background: var(--secondary-color);
}

.has-custom-functions .st-btn-secondary {
    background: var(--st-gray);
    color: var(--st-text);
    border: 1px solid var(--st-border);
}

.has-custom-functions .st-btn-secondary:hover {
    background: var(--st-surface-2);
}

.has-custom-functions .st-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.has-custom-functions .st-table th,
.has-custom-functions .st-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--st-border);
}

.has-custom-functions .st-table th {
    background: var(--st-surface-2);
    color: var(--st-text);
    font-weight: 600;
}

.has-custom-functions .st-table tr:hover {
    background: var(--st-surface-2);
}

.has-custom-functions .st-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.has-custom-functions .st-badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.has-custom-functions .st-badge-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.has-custom-functions .st-badge-danger {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.has-custom-functions .st-badge-info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

/* Estilos para el plugin youtube-videos-manager */
.has-youtube-manager .yvm-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.has-youtube-manager .yvm-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.has-youtube-manager .yvm-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.has-youtube-manager .yvm-video-card {
    background: var(--st-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--st-shadow);
    transition: transform 0.3s;
}

.has-youtube-manager .yvm-video-card:hover {
    transform: translateY(-5px);
}

/* Panel de Admin */
.admin-panel-container {
    background: var(--st-gray);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--st-border);
}

.admin-panel-title {
    color: var(--st-text);
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--st-surface-2);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.admin-stat-label {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive adicionales para plugins */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .user-menu-wrapper {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-login,
    .btn-register,
    .btn-logout,
    .btn-profile {
        width: 100%;
        text-align: center;
    }
    
    .user-greeting {
        margin-bottom: 0.5rem;
    }
    
    .has-custom-functions .st-table {
        font-size: 0.85rem;
    }
    
    .has-custom-functions .st-table th,
    .has-custom-functions .st-table td {
        padding: 0.5rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Clases de estado */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #F44336;
    color: var(--st-text);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: var(--st-text);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.info-message {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid #2196F3;
    color: var(--st-text);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .header-actions,
    .btn-login,
    .btn-register,
    .btn-logout,
    .btn-profile {
        display: none;
    }
}

/* ===================================
   ACORDEÓN (SECCIONES DESPLEGABLES)
   =================================== */
.accordion-section {
    margin: 3rem auto;
}

.accordion-item {
    background: var(--st-gray);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(215, 38, 61, 0.1);
}

.accordion-header {
    width: 100%;
    background: var(--st-surface-2);
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: var(--st-gray);
}

.accordion-header.active {
    background: var(--st-gray);
    border-bottom: 2px solid var(--primary-color);
}

.accordion-icon {
    font-size: 2rem;
    min-width: 40px;
}

.accordion-header h3 {
    flex: 1;
    margin: 0;
    color: var(--st-text);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
}

.accordion-toggle {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.accordion-header.active .accordion-toggle {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.accordion-content.active {
    max-height: 5000px;
    padding: 2rem;
}

.accordion-content p {
    color: var(--st-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.accordion-content ul {
    list-style: none;
    padding-left: 0;
}

.accordion-content ul li {
    color: var(--st-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.accordion-content strong {
    color: var(--st-text);
}

/* Grid para servicios dentro del acordeón */
.accordion-content .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.accordion-content .service-card {
    background: var(--st-surface-2);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--st-border);
}

.accordion-content .service-card .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.accordion-content .service-card h4 {
    color: var(--st-text);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.accordion-content .service-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* Grid para regiones */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.region-card {
    background: var(--st-surface-2);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.region-card h4 {
    color: var(--st-text);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.region-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* CTA Section */
.cta-section .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-section .cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(215, 38, 61, 0.3);
}

/* Responsive para acordeón */
@media (max-width: 768px) {
    .accordion-header {
        padding: 1rem 1.5rem;
    }
    
    .accordion-header h3 {
        font-size: 1.2rem;
    }
    
    .accordion-icon {
        font-size: 1.5rem;
        min-width: 30px;
    }
    
    .accordion-content.active {
        padding: 1.5rem;
    }
    
    .accordion-content .services-grid,
    .regions-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   RESPONSIVE ADICIONAL PARA PLUGINS Y COMPONENTES
   =================================== */
@media (max-width: 1024px) {
    /* Directorio ajustes tablet */
    .st-dir-header {
        padding: 16px;
    }
    
    .st-dir-title h1 {
        font-size: 24px;
    }
    
    .st-join-btn {
        padding: 10px 16px;
    }
    
    .st-join-icon {
        font-size: 24px;
    }
    
    .st-dir-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Directorio de jugadores */
    .st-dir-content {
        grid-template-columns: 1fr !important;
    }
    
    .st-sidebar {
        position: static !important;
        margin-bottom: 1.5rem;
    }
    
    .st-dir-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .st-dir-title {
        width: 100%;
    }
    
    .st-join-btn {
        width: 100%;
        justify-content: center;
    }
    
    .st-grid-cards {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Modal de registro */
    .st-modal-overlay {
        padding: 10px;
    }
    
    .st-modal-container {
        margin: 20px auto;
        max-width: 100%;
    }
    
    .st-modal-container .registro-container {
        padding: 1.5rem 1rem;
    }
    
    .registro-header h1 {
        font-size: 22px;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Planes */
    .st-plans .grid {
        grid-template-columns: 1fr !important;
    }
    
    .st-bigcard {
        padding: 1.5rem 1rem;
    }
    
    .st-plans .h2 {
        font-size: 24px;
    }
    
    /* Auth container */
    .st-auth-container {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .st-auth-box {
        padding: 1.5rem 1rem;
    }
    
    .st-auth-header h1 {
        font-size: 22px;
    }
    
    .st-auth-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .st-auth-links .btn-secondary {
        width: 100%;
    }
    
    /* Dashboard y paneles admin */
    .st-admin-wrap {
        padding: 15px;
    }
    
    .st-admin-nav {
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 8px;
    }
    
    .st-admin-nav a {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
        font-size: 0.85rem;
        padding: 10px 8px;
    }
    
    /* Tablas responsivas */
    .st-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    table {
        min-width: 600px;
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 8px 10px;
    }
    
    /* KPI Cards */
    .st-kpis {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .st-kpi-card {
        padding: 15px;
    }
    
    .st-kpi-value {
        font-size: 28px;
    }
    
    /* Charts */
    .st-chart-wrap {
        height: 250px !important;
        padding: 15px;
    }
    
    /* Pricing Grid */
    .pricing-section {
        padding: 2rem 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .pricing-card {
        max-width: 100%;
    }
    
    /* Comparación de tabla */
    .pricing-section table {
        font-size: 0.85rem;
    }
    
    .pricing-section th,
    .pricing-section td {
        padding: 0.7rem 0.5rem;
    }
}

@media (max-width: 480px) {
    /* KPI Cards en móvil pequeño */
    .st-kpis {
        grid-template-columns: 1fr !important;
    }
    
    .st-kpi-card {
        padding: 12px;
    }
    
    .st-kpi-value {
        font-size: 24px;
    }
    
    .st-kpi-label {
        font-size: 12px;
    }
    
    /* Navegación de tabs */
    .st-admin-nav a {
        flex: 1 1 100%;
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    /* Filtros del directorio */
    .st-search-wrap {
        grid-template-columns: 1fr !important;
    }
    
    .st-search,
    .st-order {
        width: 100%;
    }
    
    /* Botones grandes */
    .btn-open-registro {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .st-join-btn {
        flex-direction: column;
        padding: 15px;
    }
    
    .st-join-icon {
        font-size: 28px !important;
        margin-bottom: 8px;
    }
    
    .st-join-text strong {
        font-size: 14px !important;
    }
    
    .st-join-text small {
        font-size: 11px !important;
    }
    
    /* Modales */
    .st-modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
    
    .st-modal-container .registro-container {
        padding: 1.2rem 0.8rem;
    }
    
    /* Paginación */
    .st-pager {
        gap: 4px;
    }
    
    .st-pager a {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Cards */
    .st-card {
        padding: 12px;
    }
    
    .st-card .st-nombre {
        font-size: 1rem;
    }
    
    .st-meta {
        font-size: 0.85rem;
    }
    
    /* Formularios pequeños */
    .st-filtros-sidebar label {
        font-size: 0.85rem;
    }
    
    .st-filtros-sidebar select,
    .st-filtros-sidebar input {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    /* Panel headers */
    .st-panel > summary {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .st-grid {
        padding: 10px 12px;
    }
    
    /* Auth forms */
    .st-auth-form input {
        padding: 12px 14px;
    }
    
    .btn-submit {
        padding: 14px;
        font-size: 0.95rem;
    }
}

/* ===================================
   FIN DE ESTILOS
   =================================== */

/* Touch targets mínimos y optimizaciones generales */
@media (max-width: 768px) {
    
    /* ========== TOUCH TARGETS ========== */
    button,
    a.btn-primary,
    a.btn-secondary,
    a.cta-button,
    input[type="submit"],
    .btn-login,
    .btn-register {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }
    
    /* ========== INPUTS - Anti-zoom iOS ========== */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
        padding: 14px 16px;
        border-radius: 8px;
    }
    
    /* ========== HERO SECTION ========== */
    .hero-section {
        min-height: 60vh;
        padding: 60px 20px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-section h2 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        padding: 16px 24px;
        font-size: 1.1rem;
        display: block;
        margin: 0 auto;
    }
    
    /* ========== SPACING ========== */
    section,
    .container {
        padding: 40px 20px;
    }
    
    .accordion-section {
        margin: 2rem auto;
    }
    
    /* ========== TYPOGRAPHY ========== */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    h1 { font-size: 2rem; line-height: 1.2; }
    h2 { font-size: 1.75rem; line-height: 1.3; }
    h3 { font-size: 1.5rem; line-height: 1.3; }
    h4 { font-size: 1.25rem; line-height: 1.4; }
    h5 { font-size: 1.1rem; line-height: 1.4; }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    /* ========== GRIDS Y CARDS ========== */
    .services-grid,
    .stats-grid,
    .team-grid,
    .features-grid,
    .player-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .service-card,
    .player-card,
    .video-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* ========== ACORDEONES ========== */
    .accordion-item {
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .accordion-header {
        padding: 18px 16px;
        font-size: 1rem;
        gap: 0.8rem;
    }
    
    .accordion-header h3 {
        font-size: 1.2rem;
    }
    
    .accordion-icon {
        font-size: 1.5rem;
        min-width: 32px;
    }
    
    .accordion-toggle {
        font-size: 1.5rem;
        min-width: 24px;
    }
    
    .accordion-content {
        padding: 0 16px;
    }
    
    .accordion-content.active {
        padding: 20px 16px;
    }
    
    /* ========== TABLAS RESPONSIVE ========== */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    
    table thead {
        display: table-header-group;
    }
    
    table tbody {
        display: table-row-group;
    }
    
    table th,
    table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    /* Indicador de scroll en tablas */
    .table-wrapper {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-wrapper::after {
        content: '← Desliza →';
        position: sticky;
        right: 0;
        top: 0;
        background: var(--st-red);
        color: white;
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 4px;
        opacity: 0.8;
        pointer-events: none;
    }
    
    /* ========== MODALES Y POPUPS ========== */
    .modal-content,
    .popup-content,
    .lightbox {
        width: 100% !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    .modal-header,
    .popup-header {
        padding: 20px 16px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--st-gray);
    }
    
    .modal-body,
    .popup-body {
        padding: 20px 16px;
        overflow-y: auto;
    }
    
    .modal-close,
    .popup-close {
        min-width: 44px;
        min-height: 44px;
        font-size: 2rem;
    }
    
    /* ========== FOOTER ========== */
    .site-footer {
        padding: 40px 20px;
    }
    
    .footer-grid,
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }
    
    .footer-column {
        margin-bottom: 20px;
    }
    
    /* ========== FORMULARIOS ========== */
    .form-group {
        margin-bottom: 20px;
    }
    
    label {
        display: block;
        margin-bottom: 8px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-col {
        width: 100%;
    }
    
    /* ========== BOTONES ========== */
    .btn,
    .button {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* ========== NAVEGACIÓN SECUNDARIA ========== */
    .secondary-nav,
    .breadcrumbs {
        font-size: 0.9rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    /* ========== IMAGENES ========== */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .wp-caption {
        max-width: 100%;
    }
    
    /* ========== VIDEO EMBEDS ========== */
    .video-container,
    .embed-container {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
    }
    
    .video-container iframe,
    .embed-container iframe,
    .video-container video,
    .embed-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* ========== FILTROS Y SIDEBAR ========== */
    .filters-sidebar,
    .sidebar {
        position: static;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .filter-group {
        margin-bottom: 20px;
    }
    
    /* ========== PAGINATION ========== */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        font-size: 1rem;
    }
    
    /* ========== ALERTS Y NOTICES ========== */
    .alert,
    .notice,
    .message {
        padding: 16px;
        font-size: 1rem;
        border-radius: 8px;
    }
}

/* ========== MÓVILES PEQUEÑOS ========== */
@media (max-width: 480px) {
    
    .hero-section {
        min-height: 50vh;
        padding: 40px 15px;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    section,
    .container {
        padding: 30px 15px;
    }
    
    .accordion-header {
        padding: 15px 12px;
    }
    
    .accordion-header h3 {
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    table th,
    table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

/* ========== LANDSCAPE MÓVIL ========== */
@media (max-width: 768px) and (orientation: landscape) {
    
    .hero-section {
        min-height: 100vh;
        padding: 80px 20px;
    }
    
    .modal-content,
    .popup-content {
        height: 100vh;
        overflow-y: auto;
    }
    
    .accordion-content.active {
        max-height: 300px;
        overflow-y: auto;
    }
}

/* ========== TABLETS ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
    
    .container {
        padding: 60px 30px;
    }
    
    .hero-section {
        padding: 80px 30px;
    }
}

/* ========== MEJORAS DE PERFORMANCE ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== MODO OSCURO ========== */
@media (prefers-color-scheme: dark) {
    /* Ya tenemos dark mode por defecto */
}

/* ===================================
   CLASES AUXILIARES MÓVILES
   =================================== */

/* Animación de entrada */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Estados de carga */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--st-border);
    border-top-color: var(--st-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--st-surface-2) 25%,
        var(--st-gray) 50%,
        var(--st-surface-2) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Estados móviles */
body.is-mobile .hover-only {
    display: none !important;
}

body.is-touch button,
body.is-touch a,
body.is-touch input {
    cursor: pointer;
}

body.keyboard-open .site-header {
    position: relative;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Orientación */
body.landscape .portrait-only {
    display: none !important;
}

body.portrait .landscape-only {
    display: none !important;
}

/* Utilidades responsive */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}

/* Spacing helpers móvil */
@media (max-width: 768px) {
    .mb-mobile-0 { margin-bottom: 0 !important; }
    .mb-mobile-1 { margin-bottom: 1rem !important; }
    .mb-mobile-2 { margin-bottom: 2rem !important; }
    .mb-mobile-3 { margin-bottom: 3rem !important; }
    
    .mt-mobile-0 { margin-top: 0 !important; }
    .mt-mobile-1 { margin-top: 1rem !important; }
    .mt-mobile-2 { margin-top: 2rem !important; }
    .mt-mobile-3 { margin-top: 3rem !important; }
    
    .p-mobile-0 { padding: 0 !important; }
    .p-mobile-1 { padding: 1rem !important; }
    .p-mobile-2 { padding: 2rem !important; }
    
    .text-mobile-sm { font-size: 0.875rem !important; }
    .text-mobile-base { font-size: 1rem !important; }
    .text-mobile-lg { font-size: 1.125rem !important; }
}

/* Mejoras de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para teclado */
:focus-visible {
    outline: 2px solid var(--st-red);
    outline-offset: 2px;
}

/* Mejoras generales touch */
@media (hover: none) and (pointer: coarse) {
    /* Mejorar áreas táctiles */
    button,
    .btn,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    input,
    select,
    textarea {
        font-size: 16px !important; /* Previene zoom en iOS */
    }
    
    /* Mejor feedback táctil */
    button:active,
    .btn:active,
    a:active {
        opacity: 0.7;
    }
}

/* ===================================
   PLAYLIST SIDEBAR - FASE 3
   =================================== */

/* Botón flotante de toggle */
.playlist-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--st-red) 0%, #a01020 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(215, 38, 61, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.playlist-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(215, 38, 61, 0.6);
}

.playlist-toggle-btn:active {
    transform: translateY(-1px);
}

.playlist-toggle-btn svg {
    width: 24px;
    height: 24px;
}

/* Overlay oscuro */
.playlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.playlist-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar principal */
.playlist-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: var(--st-surface);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.playlist-sidebar.active {
    right: 0;
}

/* Header del sidebar */
.playlist-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--st-border);
    background: var(--st-surface-2);
}

.playlist-sidebar-header h3 {
    margin: 0;
    color: var(--st-text);
    font-size: 1.25rem;
    font-weight: 600;
}

.playlist-sidebar-close {
    background: transparent;
    border: none;
    color: var(--st-text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.playlist-sidebar-close:hover {
    background: var(--st-border);
    color: var(--st-text);
}

.playlist-sidebar-close svg {
    width: 24px;
    height: 24px;
}

/* Contenido scrolleable */
.playlist-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.playlist-sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.playlist-sidebar-content::-webkit-scrollbar-track {
    background: var(--st-surface-2);
}

.playlist-sidebar-content::-webkit-scrollbar-thumb {
    background: var(--st-border);
    border-radius: 4px;
}

.playlist-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Item de playlist */
.playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--st-surface-2);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-item:hover {
    background: var(--st-gray);
    border-color: var(--st-red);
    transform: translateX(-4px);
}

.playlist-item:active {
    transform: translateX(-2px) scale(0.98);
}

/* Thumbnail del playlist item */
.playlist-item-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--st-border);
}

.playlist-item:hover .playlist-item-thumbnail {
    border-color: var(--st-red);
}

.playlist-item-thumbnail svg {
    width: 40px;
    height: 40px;
}

/* Info del playlist */
.playlist-item-info {
    flex: 1;
    min-width: 0;
}

.playlist-item-info h4 {
    margin: 0 0 0.25rem;
    color: var(--st-text);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item-info p {
    margin: 0 0 0.25rem;
    color: var(--st-text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-count {
    display: inline-block;
    padding: 2px 8px;
    background: var(--st-border);
    color: var(--st-text-secondary);
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Estado de carga */
.playlist-loading {
    padding: 1rem 0;
}

/* Estado vacío */
.playlist-empty {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--st-text-secondary);
}

.playlist-empty svg {
    margin: 0 auto 1rem;
    opacity: 0.3;
}

.playlist-empty p {
    margin: 0;
    font-size: 1rem;
}

/* Modal de videos de la playlist (opcional) */
.playlist-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--st-surface);
    border-radius: 16px;
    border: 1px solid var(--st-border);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.playlist-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.playlist-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--st-border);
}

.playlist-modal-header h3 {
    margin: 0;
    color: var(--st-text);
    font-size: 1.5rem;
}

.playlist-modal-close {
    background: transparent;
    border: none;
    color: var(--st-text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.playlist-modal-close:hover {
    background: var(--st-border);
    color: var(--st-text);
}

.playlist-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.playlist-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.playlist-video-card {
    background: var(--st-surface-2);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-video-card:hover {
    border-color: var(--st-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(215, 38, 61, 0.2);
}

.playlist-video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--st-gray);
}

.playlist-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-video-thumbnail::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(215, 38, 61, 0.9);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-video-card:hover .playlist-video-thumbnail::after {
    opacity: 1;
}

.playlist-video-info {
    padding: 1rem;
}

.playlist-video-info h4 {
    margin: 0 0 0.5rem;
    color: var(--st-text);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-video-info p {
    margin: 0;
    color: var(--st-text-secondary);
    font-size: 0.8rem;
}

/* ===================================
   RESPONSIVE - PLAYLIST SIDEBAR
   =================================== */

@media (max-width: 768px) {
    .playlist-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .playlist-toggle-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .playlist-toggle-btn span {
        display: none;
    }
    
    .playlist-toggle-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .playlist-modal {
        width: 95%;
        max-height: 85vh;
        border-radius: 12px;
    }
    
    .playlist-video-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .playlist-modal-header {
        padding: 1rem;
    }
    
    .playlist-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .playlist-modal-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .playlist-sidebar-header {
        padding: 1rem;
    }
    
    .playlist-sidebar-header h3 {
        font-size: 1.1rem;
    }
    
    .playlist-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .playlist-item-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .playlist-item-thumbnail svg {
        width: 30px;
        height: 30px;
    }
    
    .playlist-item-info h4 {
        font-size: 0.9rem;
    }
    
    .playlist-item-info p {
        font-size: 0.8rem;
    }
}

/* Animaciones de entrada */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.playlist-sidebar.active {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados de bloqueo de scroll */
body.playlist-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    body.playlist-open {
        position: fixed;
        width: 100%;
    }
}

/* ===================================
   SOCIAL FEEDS - FASE 4
   =================================== */

/* Contenedor principal */
.social-feeds-section {
    background: var(--st-surface);
    padding: 5rem 0;
    margin: 3rem 0;
    border-top: 1px solid var(--st-border);
    border-bottom: 1px solid var(--st-border);
}

/* Header de la sección */
.social-feeds-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.social-feeds-section .section-title {
    font-size: 2.5rem;
    color: var(--st-text);
    margin-bottom: 1rem;
    font-weight: 700;
}

.social-feeds-section .section-subtitle {
    font-size: 1.125rem;
    color: var(--st-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de feeds */
.social-feeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Contenedor individual de feed */
.social-feed-container {
    background: var(--st-surface-2);
    border: 1px solid var(--st-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-feed-container:hover {
    border-color: var(--st-red);
    box-shadow: 0 8px 24px rgba(215, 38, 61, 0.15);
    transform: translateY(-4px);
}

/* Header del feed */
.social-feed-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--st-gray);
    border-bottom: 1px solid var(--st-border);
}

.social-feed-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--st-surface-2);
}

.social-feed-info {
    flex: 1;
    min-width: 0;
}

.social-feed-info h3 {
    margin: 0 0 0.25rem;
    color: var(--st-text);
    font-size: 1.125rem;
    font-weight: 600;
}

.social-feed-info .social-handle {
    color: var(--st-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.social-feed-info .social-handle:hover {
    color: var(--st-red);
}

/* Botón de seguir */
.social-follow-btn {
    padding: 0.5rem 1.25rem;
    background: var(--st-red);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-follow-btn:hover {
    background: #a01020;
    transform: scale(1.05);
}

/* Contenido del feed */
.social-feed-content {
    padding: 1.5rem;
    min-height: 400px;
}

/* Instagram Posts Grid */
.instagram-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.instagram-post {
    position: relative;
    padding-bottom: 100%;
    background: var(--st-gray);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.instagram-post:hover {
    transform: scale(1.05);
    z-index: 1;
}

.instagram-post img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-post:hover .instagram-post-overlay {
    opacity: 1;
}

.instagram-post-stat {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Facebook Posts Grid */
.facebook-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.facebook-post {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.facebook-post:hover {
    border-color: #1877F2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.1);
}

.facebook-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.facebook-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--st-gray);
}

.facebook-post-info h4 {
    margin: 0;
    color: var(--st-text);
    font-size: 0.95rem;
    font-weight: 600;
}

.facebook-post-time {
    color: var(--st-text-secondary);
    font-size: 0.8rem;
}

.facebook-post-text {
    color: var(--st-text);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.facebook-post-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.facebook-post-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--st-border);
    color: var(--st-text-secondary);
    font-size: 0.9rem;
}

.facebook-post-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Estados de carga (skeleton) */
.social-feed-loading {
    display: grid;
    gap: 0.75rem;
}

.instagram-skeleton {
    width: 100%;
    padding-bottom: 100%;
    border-radius: 8px;
}

.social-feed-loading {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.facebook-skeleton {
    width: 100%;
    height: 150px;
    border-radius: 12px;
}

.facebook-feed .social-feed-loading {
    grid-template-columns: 1fr;
}

/* Estado vacío */
.social-feed-empty {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--st-text-secondary);
}

.social-feed-empty svg {
    margin: 0 auto 1rem;
    opacity: 0.3;
    width: 60px;
    height: 60px;
}

.social-feed-empty p {
    margin: 0;
    font-size: 1rem;
}

/* Barra de links sociales */
.social-links-bar {
    text-align: center;
    padding: 2rem;
    background: var(--st-gray);
    border-radius: 12px;
}

.social-links-bar p {
    margin: 0 0 1rem;
    color: var(--st-text-secondary);
    font-size: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-surface-2);
    border: 1px solid var(--st-border);
    border-radius: 50%;
    color: var(--st-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Colores específicos por red social */
.social-icon.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.social-icon.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: white;
}

.social-icon.linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: white;
}

.social-icon.tiktok:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

/* Instagram-specific styles */
.instagram-feed .social-feed-header {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-feed .social-follow-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-feed .social-follow-btn:hover {
    opacity: 0.9;
}

/* Facebook-specific styles */
.facebook-feed .social-follow-btn {
    background: #1877F2;
}

.facebook-feed .social-follow-btn:hover {
    background: #166fe5;
}

/* ===================================
   RESPONSIVE - SOCIAL FEEDS
   =================================== */

@media (max-width: 1024px) {
    .social-feeds-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .social-feeds-section {
        padding: 3rem 0;
    }
    
    .social-feeds-section .section-title {
        font-size: 2rem;
    }
    
    .social-feeds-section .section-subtitle {
        font-size: 1rem;
    }
    
    .social-feeds-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-feed-header {
        padding: 1rem;
    }
    
    .social-feed-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-feed-content {
        padding: 1rem;
        min-height: 300px;
    }
    
    .instagram-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links-bar {
        padding: 1.5rem 1rem;
    }
    
    .social-icons {
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .social-feeds-section {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .social-feeds-section .section-title {
        font-size: 1.75rem;
    }
    
    .social-feed-header {
        flex-wrap: wrap;
    }
    
    .social-follow-btn {
        width: 100%;
        text-align: center;
        padding: 0.625rem 1rem;
    }
    
    .instagram-posts-grid {
        gap: 0.25rem;
    }
    
    .facebook-post {
        padding: 0.75rem;
    }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-feed-container {
    animation: fadeInUp 0.6s ease forwards;
}

.social-feed-container:nth-child(1) {
    animation-delay: 0.1s;
}

.social-feed-container:nth-child(2) {
    animation-delay: 0.2s;
}

/* Optimizaciones de performance */
.instagram-post img,
.facebook-post-image {
    will-change: transform;
}

.social-feed-container:hover {
    will-change: transform;
}
