:root {
    --primary: #d32f2f; /* Rojo pedagógico / YouTube */
    --dark: #1f2937;
    --light: #f9fafb;
    --text: #4b5563;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 800px; /* Se amplía ligeramente para dar espacio a la imagen y al título */
    width: 100%;
    text-align: center;
}

/* Aviso Próximamente ajustado para Accesibilidad (WCAG Compliant) */
.badge {
    display: inline-block;
    background-color: #7f1d1d;  /* Rojo vino oscuro (mejora drásticamente el contraste) */
    color: #ffffff;             /* Texto blanco puro para legibilidad perfecta */
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid #991b1b;
    box-shadow: 0 2px 8px rgba(127, 29, 29, 0.25);
    margin-bottom: 15px;
}

/* Contenedor flexible para alinear la imagen a la izquierda del título */
.header-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 10px;
}

/* Ajuste de dimensiones de la imagen (más pequeña) */
.header-logo {
    width: 130px; /* Reducimos el ancho de 254px a 130px */
    height: auto; /* Mantiene la proporción original sin distorsionar */
    object-fit: contain;
    flex-shrink: 0;
}

/* Alineación y tamaño de texto ajustado */
h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #111827;
    text-align: left;
    line-height: 1.2;
}

.subtitle {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.card-youtube {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.btn-youtube:hover {
    background-color: #b71c1c;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    text-align: left;
}

.feature-item {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.feature-item h3 {
    font-size: 1rem;
    margin: 0 0 5px;
    color: var(--primary);
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text);
    margin: 0;
}

/* Ajuste responsivo para celulares */
@media (max-width: 640px) {
    .header-title-container {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        text-align: center;
        font-size: 1.6rem;
    }
}

/* Tarjeta Interactiva del Café Pedagógico */
.cafe-interactive-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fff8f6;
    border: 2px dashed #fca5a5;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    text-align: left;
}

/* Imagen del Logo Café Pedagógico */
.cafe-image-wrapper {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cafe-logo {
    width: 130px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

/* Textos de la tarjeta */
.cafe-content h3 {
    margin: 0 0 8px 0;
    color: #b71c1c;
    font-size: 1.3rem;
}

.cafe-content p {
    margin: 0 0 15px 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Botones de acción */
.cafe-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-live:hover {
    background-color: #b71c1c;
}

.btn-youtube-secondary {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-youtube-secondary:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Animación de punto rojo "En vivo" */
.live-indicator {
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Adaptabilidad a dispositivos móviles */
@media (max-width: 640px) {
    .cafe-interactive-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .cafe-buttons {
        justify-content: center;
    }
}

/* Sección Creative Commons / Cultura Libre */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

.cc-license {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cc-license img {
    opacity: 0.9;
    transition: opacity 0.2s;
}

.cc-license img:hover {
    opacity: 1;
}

.cc-license p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 600px;
    color: #4b5563;
}

.cc-license a {
    color: var(--primary);
    text-decoration: underline;
}

.cc-license a:hover {
    color: #b71c1c;
}

/* Ajuste móvil */
@media (min-width: 640px) {
    .cc-license {
        flex-direction: row;
        text-align: left;
    }
}