/* ==========================================================================
   BARBERIA.CSS - ESTILOS PRINCIPALES CURSO BARBERÍA
   ========================================================================== */

:root {
    /* Paleta Dark Mode Sophisticated */
    --color-fondo: #121212; /* Negro Mate */
    --color-fondo-seccion: #1E1E1E; /* Gris Oscuro para Tarjetas */
    --color-fondo-input: #2C2C2C;
    
    /* Textos */
    --color-texto: #E0E0E0; /* Blanco Humo */
    --color-texto-claro: #B0B0B0; /* Gris Plata */
    --color-texto-oscuro: #121212; /* Para botones claros */
    
    /* Branding & Acentos */
    --color-primario: #2E7D32; /* Verde CME */
    --color-secundario: #25D366; /* WhatsApp */
    --color-acento: #D9532A; /* Naranja/Rojo Ladrillo para CTA */
    --color-acento-hover: #BF4A25;
    --color-barber-gold: #D4AF37; /* Dorado Barbería Premium */
    
    /* Colores Barber Pole */
    --pole-red: #c00d0d;
    --pole-blue: #092e5a;
    --pole-white: #e0e0e0;
    
    /* UI */
    --borde-suave: #333333;
    --radio-borde: 8px;
    --sombra-caja: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Fuentes */
    --font-titulo: 'Montserrat', sans-serif;
    --font-texto: 'Lato', sans-serif;
    --font-contenido-especial: 'Poppins', sans-serif;
}

/* Reset y Base */
body, html {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-texto);
    color: var(--color-texto);
    background-color: var(--color-fondo);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-titulo);
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h1 { font-size: 2.5rem; text-transform: uppercase; }
h2 { color: var(--color-barber-gold); }
h3 { border-bottom: 1px solid var(--borde-suave); padding-bottom: 10px; }

p { margin-bottom: 1rem; color: var(--color-texto-claro); }
a { color: var(--color-barber-gold); text-decoration: none; transition: 0.3s; }
a:hover { color: #fff; }

/* Layout Containers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

#main-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 0;
    gap: 30px;
}
.content-main { flex: 1; min-width: 65%; }
.content-sidebar { flex-basis: 320px; flex-grow: 1; }

/* ========================================= */
/* BARBER POLE HORIZONTAL (ESTILO PREMIUM)   */
/* ========================================= */
.barber-pole-horizontal {
    height: 12px;
    width: 100%;
    max-width: 400px; /* Ancho máximo de la barra */
    margin: 15px auto 25px auto; /* Centrado con margen */
    border-radius: 6px;
    border: 2px solid var(--color-barber-gold); /* Borde dorado de lujo */
    background-image: repeating-linear-gradient(
        -45deg,
        var(--pole-blue) 0,
        var(--pole-blue) 15px,
        var(--pole-white) 15px,
        var(--pole-white) 30px,
        var(--pole-red) 30px,
        var(--pole-red) 45px,
        var(--pole-white) 45px,
        var(--pole-white) 60px
    );
    background-size: 84px 84px;
    animation: barber-slide 2s linear infinite;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); /* Resplandor dorado */
}

@keyframes barber-slide {
    0% { background-position: 0 0; }
    100% { background-position: 84px 0; }
}

/* Header & Nav */
#top {
    padding: 15px 0;
    background-color: #000;
    border-bottom: 1px solid #333;
}
#top .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }

.logo img { 
    max-width: 150px; 
    border-radius: 12px; 
    border: 2px solid var(--color-barber-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    display: block;
}

.logo-text { font-family: var(--font-titulo); color: #fff; }
.logo-text strong { font-size: 1.2rem; color: var(--color-primario); }
.logo-text span { font-size: 0.9rem; color: #888; }

.top-contact .phone { font-size: 1.2rem; font-weight: 700; color: #fff; }
.contact-link { color: var(--color-barber-gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

#nav-main { 
    background-color: #141100;
    border-top: 1px solid var(--color-barber-gold); 
    padding: 12px 0; 
}
#nav-main ul { margin: 0; padding: 0; list-style: none; display: flex; justify-content: center; gap: 25px; }
#nav-main a { color: #e0e0e0; text-transform: uppercase; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.5px; }
#nav-main a:hover { color: var(--color-barber-gold); }

/* Banner & Hero */
.curso-header { margin-bottom: 30px; text-align: center; }
.curso-header .main-title { 
    color: #fff; 
    font-size: 3rem; 
    font-weight: 900; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    display: block; /* Aseguramos que ocupe su línea */
    margin: 0;
}
.curso-header .sub-title { font-size: 1.3rem; color: var(--color-barber-gold); font-weight: 400; margin-top: 10px; }

.image-container {
    border-radius: var(--radio-borde);
    overflow: hidden;
    box-shadow: var(--sombra-caja);
    border: 1px solid #333;
}
.image-container img { filter: contrast(1.1); }

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%);
    border: 1px solid var(--color-barber-gold);
    padding: 30px;
    border-radius: var(--radio-borde);
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}
.cta-banner h2 { color: #fff; margin-bottom: 15px; }

/* Sections */
.curso-section { margin-bottom: 40px; }
.curso-section li { color: var(--color-texto-claro); margin-bottom: 8px; }

/* Accordion */
details {
    border: 1px solid var(--borde-suave);
    border-radius: var(--radio-borde);
    margin-bottom: 1rem;
    background-color: var(--color-fondo-seccion);
    transition: all 0.3s ease;
}
details[open] { border-color: var(--color-barber-gold); }

summary {
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 1.2rem;
    position: relative;
    display: block;
    list-style: none;
    color: #fff;
    background-color: #252525;
    border-radius: var(--radio-borde);
}
summary:hover { background-color: #2a2a2a; color: var(--color-barber-gold); }
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    font-size: 1.5rem;
    color: var(--color-barber-gold);
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
}
details[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
details[open] summary::after { content: '-'; }

#contenido-programa {
    padding: 1.5rem;
    border-top: 1px solid var(--borde-suave);
    background-color: #1a1a1a;
    border-bottom-left-radius: var(--radio-borde);
    border-bottom-right-radius: var(--radio-borde);
}
#contenido-programa h4, #contenido-programa h5 { color: var(--color-barber-gold); margin-top: 1.2rem; }
#contenido-programa strong { color: #fff; }

/* Widgets / Sidebar */
.widget {
    background: var(--color-fondo-seccion);
    padding: 25px;
    border-radius: var(--radio-borde);
    margin-bottom: 25px;
    box-shadow: var(--sombra-caja);
    border: 1px solid var(--borde-suave);
}

.widget h5 {
    margin: -25px -25px 25px;
    padding: 15px 25px;
    background: #141100;
    color: #fff;
    border-radius: var(--radio-borde) var(--radio-borde) 0 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--color-barber-gold);
}

.widget.contact form input,
.widget.contact form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: var(--font-texto);
    background-color: var(--color-fondo-input);
    color: #fff;
    transition: border-color 0.3s;
}
.widget.contact form input:focus,
.widget.contact form textarea:focus {
    outline: none;
    border-color: var(--color-barber-gold);
    background-color: #333;
}
.widget.contact form input::placeholder,
.widget.contact form textarea::placeholder { color: #777; }

/* Buttons & CTA */
.btn-cta-principal, .btn-inscribir, .widget.contact form button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--color-acento) !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(217, 83, 42, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta-principal:hover, .btn-inscribir:hover, .widget.contact form button:hover {
    background-color: var(--color-acento-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 83, 42, 0.6);
}

/* ========================================= */
/* HORARIOS CARD FIX MOVIL (ENCIMADO)        */
/* ========================================= */
.horarios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.horario-card {
    background-color: var(--color-fondo-seccion);
    border: 1px solid var(--borde-suave);
    border-radius: var(--radio-borde);
    overflow: hidden;
    transition: transform 0.3s;
}
.horario-card:hover { transform: translateY(-5px); border-color: var(--color-barber-gold); }

.horario-card-header {
    background-color: #252525;
    padding: 15px;
    border-bottom: 1px solid #333;
    display: flex;
    /* FIX MOVIL: Apilar verticalmente por defecto */
    flex-direction: column; 
    align-items: flex-start;
    gap: 10px;
}

/* Para PC (más de 768px): Volver a poner lado a lado */
@media (min-width: 768px) {
    .horario-card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.tag-modalidad {
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
}
.tag-presencial { background-color: rgba(46, 125, 50, 0.2); color: #4caf50; border: 1px solid #2e7d32; }

.horario-card-body { padding: 20px; text-align: center; }
.horario-card-body p { color: #fff; font-size: 1.1rem; margin: 0; }
.horario-card-body strong { color: var(--color-barber-gold); display: block; font-size: 1.3rem; margin-bottom: 5px; }

.horario-card-footer {
    padding: 15px;
    background-color: #181818;
    border-top: 1px solid #333;
    text-align: center;
}
.precio-valor { display: block; font-size: 1.5rem; font-weight: 900; color: #fff; margin: 5px 0 15px; }

/* ========================================= */
/* MATRICULA PROMO BOX REFACTORIZADO         */
/* ========================================= */
#matricula-cta {
    background: radial-gradient(circle at center, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid var(--color-barber-gold);
    padding: 40px 20px;
    border-radius: var(--radio-borde);
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    /* Flexbox para alineación perfecta */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

/* Etiqueta flotante */
.promo-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--color-acento);
    color: #fff;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 900;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 10;
}

#matricula-cta h4 {
    color: var(--color-barber-gold);
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timer Digital */
.countdown-container {
    background: rgba(0,0,0,0.5);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid #444;
    margin-bottom: 25px;
    display: inline-block;
}
.countdown-label {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 5px;
    text-transform: uppercase;
}
#countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Precios */
.price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.old-price {
    font-size: 1.2rem;
    color: #777;
    text-decoration: line-through;
}
.new-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.cupos-alert {
    color: var(--color-acento);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Animación Botón Pulse */
.pulse-btn {
    animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(217, 83, 42, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(217, 83, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 83, 42, 0); }
}

/* Mobile Action Bar */
#mobile-action-bar { display: none; background-color: #1a1a1a; padding: 10px; border-top: 1px solid #333; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; }
.mobile-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.mobile-action-btn { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 8px 5px; 
    color: #ccc; 
    background-color: #2c2c2c; 
    border-radius: 6px; 
    border: 1px solid #444;
}
.mobile-action-btn svg { width: 24px; height: 24px; margin-bottom: 4px; stroke: #ccc; fill: none; stroke-width: 2; }
.mobile-action-btn span { font-size: 0.7rem; font-weight: 500; }
.mobile-action-btn.primary { background-color: var(--color-acento); color: #fff; grid-column: 1 / -1; flex-direction: row; gap: 10px; padding: 12px; margin-top: 5px; border-color: var(--color-acento); }
.mobile-action-btn.primary svg { stroke: #fff; margin-bottom: 0; }

/* Sticky WhatsApp */
.sticky-whatsapp-button {
    position: fixed;
    bottom: 80px; 
    right: 20px;
    background-color: var(--color-secundario);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.sticky-whatsapp-button:hover { transform: scale(1.1); }
.sticky-whatsapp-button svg { width: 32px; height: 32px; fill: white; }

/* Footer */
#footer { background-color: #000; padding: 40px 0; color: #888; text-align: center; border-top: 1px solid #333; }
#pie { background-color: #080808; padding: 15px 0; border-top: 1px solid #222; text-align: center; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .content-main { min-width: 100%; }
    .content-sidebar { order: -1; margin-bottom: 30px; }
    #main-wrapper { flex-direction: column-reverse; }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .curso-header .main-title { font-size: 2.2rem; }
    #top .container { flex-direction: column; gap: 15px; text-align: center; }
    #nav-main { display: none; }
    #mobile-action-bar { display: block; }
    body { padding-bottom: 140px; }
    .sticky-whatsapp-button { bottom: 150px; right: 15px; width: 50px; height: 50px; }
    .sticky-whatsapp-button svg { width: 25px; height: 25px; }
}

/* Map */
.map-responsive iframe { filter: grayscale(1) invert(1) contrast(0.8); }