/* 
   CEOS - Sistema de Diseño Premium Élite (V3 - Visual Excellence)
   Colores: Negro (#000000), Dorado Corporativo (#d4af37)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@700;800&display=swap');

:root {
    /* ── Colores ─────────────────────────────────── */
    --primary-dark: #000000;
    --background-dark: #0a0a0a;
    --background-white: #ffffff;
    --secondary-light: #f8fafc;
    --accent-gold: #d4af37;
    --accent-gold-hover: #b8860b;
    --accent-green: #78b72b;
    --accent-green-hover: #6a9d26;
    --text-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.05);

    /* ── Tipografía — escala modular 1.25 ─────────── */
    --text-xs:   0.75rem;   /* 12px */
    --text-sm:   0.875rem;  /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg:   1.125rem;  /* 18px */
    --text-xl:   1.25rem;   /* 20px */
    --text-2xl:  1.5rem;    /* 24px */
    --text-3xl:  1.875rem;  /* 30px */
    --text-4xl:  2.25rem;   /* 36px */
    --text-5xl:  3rem;      /* 48px */
    --text-6xl:  3.75rem;   /* 60px */

    /* ── Espaciado — escala de 4px ────────────────── */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3:  12px;
    --sp-4:  16px;
    --sp-5:  20px;
    --sp-6:  24px;
    --sp-8:  32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;
    --sp-24: 96px;
    --sp-32: 128px;

    /* ── Sección: padding estándar ────────────────── */
    --section-y:  80px;
    --section-x:  8%;
    --section-y-md: 56px;
    --section-x-md: 5%;
    --section-y-sm: 40px;
    --section-x-sm: 4%;

    /* ── Bordes y sombras ─────────────────────────── */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --card-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-dark);
    background-color: var(--background-dark);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Layout Utilities */
.section {
    padding: 100px 10%;
}

.bg-dark {
    background-color: var(--primary-dark);
    color: var(--text-white);
}

.bg-white {
    background-color: var(--background-white);
    color: var(--text-dark);
}

.bg-light {
    background-color: var(--secondary-light);
    color: var(--text-dark);
}

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

.text-gold {
    color: var(--accent-gold);
}

/* Components */
.btn-gold {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 2px;
    transition: var(--transition);
    border: 2px solid var(--accent-gold);
    letter-spacing: 1px;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--accent-gold);
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-block;
    padding: 14px 30px;
    background-color: transparent;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 2px;
    transition: var(--transition);
    border: 2px solid var(--text-white);
    letter-spacing: 1px;
    margin-left: 20px; /* Margen por defecto para escritorio */
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-green {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--accent-green);
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 2px;
    transition: var(--transition);
    border: 2px solid var(--accent-green);
    letter-spacing: 1px;
}

.btn-green:hover {
    background-color: transparent;
    color: var(--accent-green);
    transform: translateY(-3px);
}

/* Navbar */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 30px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 4%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--accent-gold);
}

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 24px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    white-space: nowrap;
    transition: var(--transition);
}

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

.nav-links a.nav-active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 2px;
}

/* Mobile Toggle Hamburger */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--accent-gold);
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .menu-btn { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        transition: 0.5s cubic-bezier(0.8, 0, 0.2, 1);
    }
    .nav-links.active { right: 0; }
    .nav-links a {
        margin: 20px 0;
        font-size: 1.5rem;
        letter-spacing: 5px;
        white-space: normal;
        text-align: center;
        padding: 0 20px;
    }
    .nav-links .btn-gold, .nav-links .btn-green {
        margin-left: 0;
        margin-top: 30px;
        width: 80%;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    height: 70vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    text-align: left;
    color: var(--text-white);
    border-bottom: 2px solid var(--accent-gold);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 550px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-btns {
    margin-top: 35px;
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 0.95rem; }
}

/* Quick Access Features Grid */
.features-container {
    background: transparent;
    position: relative;
    z-index: 20;
    margin-top: 20px;
    /* Superposición central exacta sobre la línea amarilla del hero */
    padding: 0 10%;
    margin-bottom: -50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-box {
    background: linear-gradient(145deg, #181818, #0a0a0a);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-top: 4px solid var(--accent-gold);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding: 30px 15px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.feature-box>* {
    position: relative;
    z-index: 1;
}

.feature-box:hover {
    border-color: var(--accent-gold);
    transform: translateY(-12px) scale(1.03);
    background: linear-gradient(145deg, #1f1f1f, #0d0d0d);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 1), 0 10px 30px rgba(212, 175, 55, 0.4);
    border-bottom: 2px solid var(--accent-gold);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    transition: all 0.4s ease;
}

.feature-box:hover .feature-icon {
    background: var(--accent-gold);
    color: #000;
    transform: scale(1.1);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.feature-box h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-container {
        margin-bottom: -100px;
    }
}

@media (max-width: 768px) {
    .features-container {
        margin-top: -10px;
        padding: 0 5%;
        margin-bottom: -80px;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .features-container {
        margin-bottom: -40px;
    }

    .feature-box {
        padding: 20px 15px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .feature-box h3 {
        font-size: 1rem;
    }
}

/* Card Design with Images */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #000;
    color: white;
    border: 1px solid #1a1a1a;
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.card-img {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.card-body {
    padding: 30px;
    flex-grow: 1;
}

.card-tag {
    color: var(--accent-green);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.card-body h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.price-container {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-current {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.price-old {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #444;
}

/* Testimonials */
.testimonial-card {
    background: #050505;
    padding: 40px;
    border-top: 3px solid var(--accent-gold);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .section {
        padding: 60px 5%;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 5% 60px 5%;
        text-align: center; /* Centrar contenido en móvil */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .hero p {
        margin: 0 auto 35px auto;
        font-size: 1rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns a {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }

    .features-container {
        margin-top: -40px;
        padding: 0 5%;
        margin-bottom: 0;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Una columna por defecto en móvil pequeño */
        gap: 15px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* CEOS Global Floating Support - WhatsApp Premium V2 */
.whatsapp-float {
    position: fixed !important;
    width: 65px !important;
    height: 65px !important;
    bottom: 30px !important;
    right: 30px !important;
    background-color: #25d366 !important;
    color: #FFF !important;
    border-radius: 50% !important;
    text-align: center;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(8deg);
    background-color: #128C7E !important;
    box-shadow: 0 20px 45px rgba(18, 140, 126, 0.4) !important;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Tooltip "Chatea con nosotros" */
.whatsapp-float::after {
    content: 'Chatea con nosotros';
    position: absolute;
    right: 80px;
    background: #1a1a1a;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
    right: 90px;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 25px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px !important;
        height: 55px !important;
        bottom: 20px !important;
        right: 20px !important;
    }

    .whatsapp-float::after {
        display: none;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Elite Course Carousel - Premium Integration */
.carousel-section {
    position: relative;
    padding: 100px 0;
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.carousel-container {
    padding: 0 10%;
    position: relative;
}

.carousel-track-container {
    overflow: hidden;
    margin: 40px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 30px;
}

.carousel-track .card {
    flex: 0 0 calc(25% - 23px);
    width: calc(25% - 23px);
    display: flex;
    flex-direction: column;
    background: #080808;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s ease;
    height: auto;
}

.carousel-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 15px rgba(212, 175, 55, 0.1);
}

.carousel-card .card-img {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--accent-gold);
    width: 100%;
}

.carousel-card .card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.card-content-top h3 {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Three Colors Palette Branding */
.price-current {
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: 800;
}

.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-action {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-more {
    background-color: var(--accent-green);
    color: white;
    flex: 1;
}

.btn-more:hover {
    background-color: #5a9228;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(112, 180, 51, 0.3);
}

.btn-add-cart {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    width: 45px;
    height: 45px;
    padding: 0;
}

.btn-add-cart:hover {
    background-color: #bfa030;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-3px);
}

.carousel-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    border-color: #333;
    color: #333;
}

@media (max-width: 1024px) {
    .carousel-track .card {
        flex: 0 0 calc(50% - 15px);
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .carousel-track .card {
        flex: 0 0 calc(100% - 0px);
        width: 100%;
    }

    .carousel-container {
        padding: 0 8%;
    }

    .carousel-section {
        padding: 60px 0;
    }
}

/* Social Feed Section - Facebook Style */
.social-section {
    padding: 100px 5%;
    /* Adjusted padding for better fit */
    background-color: var(--secondary-light);
    /* Mismo color claro que la sección Formación de Élite */
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 30px;
    align-items: start;
    position: relative;
    z-index: 10;
}

/* Sidebar Columns */
.social-sidebar {
    position: sticky;
    top: 120px;
    /* Increased top padding for sticky to avoid navbar */
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: fit-content;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

/* Center Feed */
.social-feed {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.post-card:hover {
    border-color: #ddd;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.post-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 48px;
    height: 48px;
    background-color: #f0f0f0;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    background-size: cover;
    flex-shrink: 0;
}

.post-meta h4 {
    color: #111;
    font-size: 0.95rem;
    margin-bottom: 2px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.post-meta span {
    color: #888;
    font-size: 0.75rem;
}

.post-content {
    padding: 0 20px 15px 20px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f9f9f9;
}

.post-actions {
    padding: 12px 20px;
    display: flex;
    gap: 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.action-btn {
    background: none;
    border: none;
    color: #777;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--accent-gold);
}

.action-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Social Icon Widgets */
.social-icons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fdfdfd;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid #eaeaea;
}

.social-link:hover {
    border-color: var(--accent-gold);
    color: var(--primary-dark);
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Responsive Social */
@media (max-width: 1300px) {
    .social-section {
        grid-template-columns: 240px 1fr;
        padding: 80px 5%;
    }

    .social-sidebar.right {
        display: none;
    }
}

@media (max-width: 1000px) {
    .social-section {
        grid-template-columns: 1fr;
        padding: 50px 5%;
        gap: 40px;
    }

    .social-sidebar.left {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .social-sidebar.right {
        display: block;
        position: relative;
        top: 0;
    }
}

@media (max-width: 600px) {
    .social-sidebar.left {
        grid-template-columns: 1fr;
    }

    .social-sidebar.left,
    .social-sidebar.right {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DESIGN SYSTEM — Tipografía, Espaciado y Mobile Estándar CEOS
   Aplica a TODAS las páginas públicas desde este archivo global.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tipografía responsive estándar ─────────────────────────────
   Desktop:  h1=3rem  h2=2.25rem  h3=1.5rem  h4=1.25rem
   Tablet:   h1=2.25rem  h2=1.75rem  h3=1.25rem  h4=1.1rem
   Mobile:   h1=1.875rem  h2=1.5rem   h3=1.1rem   h4=1rem
   ──────────────────────────────────────────────────────────── */

/* Headings de páginas (hero headers en cada página) */
.page-hero-title,
.hero-title-std {
    font-size: var(--text-5xl);     /* 3rem desktop */
    line-height: 1.15;
    margin-bottom: var(--sp-4);
}

/* Títulos de sección */
.section-title-std {
    font-size: var(--text-4xl);     /* 2.25rem desktop */
    line-height: 1.2;
    margin-bottom: var(--sp-3);
}

/* Subtítulos */
.section-subtitle-std {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.65);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Cuerpo de texto estándar */
.body-text-std {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-muted);
}

/* ── Sección estándar ────────────────────────────────────────── */
.section {
    padding: var(--section-y) var(--section-x);
}

/* ── Cards estándar ──────────────────────────────────────────── */
.card-std {
    background: #0a0a0a;
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: var(--radius-md);
    padding: var(--sp-6);
    transition: var(--transition);
}
.card-std:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--card-shadow);
    transform: translateY(-6px);
}

/* ── Grids responsive ────────────────────────────────────────── */
.grid-auto-std {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-6);
}

/* ── Imágenes responsive ─────────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* ── Touch targets mínimos ───────────────────────────────────── */
button, a[class*="btn"] { min-height: 44px; }

/* ══════════════════════════════════════════════
   BREAKPOINT: TABLET (≤ 992px)
   ══════════════════════════════════════════════ */
@media (max-width: 992px) {
    .section {
        padding: var(--section-y-md) var(--section-x-md);
    }

    .page-hero-title, .hero-title-std  { font-size: var(--text-4xl); }
    .section-title-std                 { font-size: var(--text-3xl); }
    .section-subtitle-std              { font-size: var(--text-base); }

    /* Ocultar sidebar sticky en tablet */
    .catalog-sidebar {
        position: relative !important;
        top: 0 !important;
    }

    /* Grids de 2 columnas en tablet */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ══════════════════════════════════════════════
   BREAKPOINT: MÓVIL (≤ 768px)
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .section {
        padding: var(--section-y-sm) var(--section-x-sm);
    }

    /* Tipografía móvil */
    .page-hero-title, .hero-title-std  { font-size: var(--text-3xl); }
    .section-title-std                 { font-size: var(--text-2xl); }
    .hero h1                           { font-size: var(--text-3xl) !important; }

    /* Resetear h1 inline en páginas (contacto, nosotros) */
    h1[style*="font-size: 4rem"],
    h1[style*="font-size:4rem"] {
        font-size: var(--text-3xl) !important;
    }
    h1[style*="font-size: 3.5rem"],
    h1[style*="font-size:3.5rem"],
    h1[style*="font-size: 3rem"],
    h1[style*="font-size:3rem"] {
        font-size: var(--text-3xl) !important;
    }

    /* Paragrafos inline */
    p[style*="font-size: 1.2rem"],
    p[style*="font-size:1.2rem"],
    p[style*="font-size: 1.1rem"] {
        font-size: var(--text-base) !important;
    }

    /* Sección hero de página */
    .page-header        { padding: 50px 5% !important; }
    .vt-hero            { padding: 70px 5% 50px !important; }
    .videoteca-header   { padding: 70px 5% 50px !important; }

    /* Grids a 1 columna en móvil */
    .features-grid      { grid-template-columns: 1fr !important; }
    .courses-grid       { grid-template-columns: 1fr !important; }
    .catalog-layout     { grid-template-columns: 1fr !important; }
    .course-grid,
    .yt-layout          { grid-template-columns: 1fr !important; }
    .grid-auto-std      { grid-template-columns: 1fr !important; }

    /* Botones full-width en móvil */
    .hero-btns          { display: flex; flex-direction: column; gap: var(--sp-3); }
    .hero-btns .btn-gold,
    .hero-btns .btn-outline,
    .hero-btns .btn-green {
        width: 100% !important;
        text-align: center !important;
        margin-left: 0 !important;
    }

    /* Cards sin overflow oculto en móvil */
    .catalog-card       { transform: none !important; }
    .catalog-card:hover { transform: none !important; }

    /* Sticky player en videoteca */
    .player-box         { position: relative !important; top: auto !important; }

    /* Playlist scroll sin límite de altura en móvil */
    .playlist-scroll    { max-height: none !important; }

    /* Formularios full-width */
    .filter-form        { padding: var(--sp-6) !important; }
    .glass-morphism     { border-radius: var(--radius-md) !important; }
}

/* ══════════════════════════════════════════════
   BREAKPOINT: MÓVIL PEQUEÑO (≤ 480px)
   ══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .section { padding: 32px 4%; }

    .page-hero-title, .hero-title-std { font-size: var(--text-2xl); }
    .section-title-std                { font-size: var(--text-xl); }
    .hero h1                          { font-size: var(--text-2xl) !important; }

    /* Botones de acción más grandes para touch */
    .btn-gold, .btn-green, .btn-outline {
        padding: 14px 20px !important;
        font-size: var(--text-sm) !important;
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        margin-left: 0 !important;
    }

    /* Precio en videoteca */
    .buy-price          { font-size: var(--text-3xl) !important; }

    /* Thumbnails de playlist */
    .pthumb-wrap img    { width: 90px !important; height: 52px !important; }

    /* Cards de catálogo */
    .catalog-card .card-img { aspect-ratio: 1 / 1 !important; height: auto !important; }

    /* Texto de tarjetas */
    .catalog-card h3    { font-size: var(--text-sm) !important; }
    .price-current      { font-size: var(--text-lg) !important; }

    /* Formulario de contacto */
    .filter-form        { padding: var(--sp-5) !important; }
}

/* ── Mejoras generales de usabilidad móvil ───────────────────── */

/* Evitar zoom en inputs en iOS */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px !important;  /* evita zoom automático en iOS */
    }
}

/* Scroll horizontal cero */
html, body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Focus visible para accesibilidad */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}
