:root {
    /* --- Paleta de Colores "Miami Sunset" --- */
    --primary-color: #F2784B; 
    --light-theme-bg: #F8F5F2;
    --card-bg: #FFFFFF;
    --text-color: #3D3D3D;
    --heading-color: #1A1A1A;
    
    /* --- Arquitectura de Fuentes --- */
    --body-font: 'Poppins', sans-serif;
    --heading-font: 'Bebas Neue', sans-serif;
}

body {
    background-color: var(--light-theme-bg);
    color: var(--text-color);
    font-family: var(--body-font);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}

a:hover {
    transform: scale(1.05);
}

/* --- ESTILOS DE HEADER Y NAVBAR V4 (DEFINITIVOS) --- */
header {
    background-color: rgba(248, 245, 242, 0.85); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E0E0E0;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%; /* Padding inicial */
    transition: padding 0.3s ease-in-out; /* Animación del padding */
}

header.scrolled {
    padding: 0.5rem 5%; /* Padding compacto al scrollear */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.social-icons, .main-nav {
    flex: 1; 
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons {
    justify-content: flex-start;
}

.main-nav {
    list-style: none;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.social-icons a img {
    height: 24px;
    width: auto;
    display: block;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 700;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.logo-central {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-central img {
    height: 75px; /* Tamaño del logo en estado scrolleado */
    width: auto;
    display: block;
    transition: height 0.3s ease-in-out; /* Animación de la altura */
}

header:not(.scrolled) .logo-central img {
    height: 120px; /* Tamaño del logo en estado inicial (grande) */
}
/* --- FIN DE ESTILOS DE NAVBAR --- */

.cta-button, .secondary-button, .tertiary-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    font-family: var(--body-font);
}

.cta-button:hover, .secondary-button:hover, .tertiary-button:hover {
    transform: scale(1.05);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--heading-color);
    border: 2px solid var(--primary-color);
}

.secondary-button {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--heading-color);
}

.tertiary-button {
    background-color: #EFEFEF;
    color: var(--text-color);
    padding: 0.5rem 1rem;
}

.tertiary-button:hover {
    background-color: var(--primary-color);
    color: var(--heading-color);
}

main {
    padding: 0 5%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem; 
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3rem;
}

/* === LA SOLUCIÓN ESTÁ AQUÍ === */

/* 1. Preparamos el contenedor para que pueda centrar a sus hijos */
.latest-episode {
    display: flex;
    flex-direction: column;
    align-items: center; /* Esto centrará la tarjeta del episodio */
}

/* 2. Le damos un ancho máximo a la tarjeta para que no ocupe el 100% */
.episode-card-large {
    display: flex;
    gap: 2.5rem;
    align-items: center; 
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem; 
    width: 100%; /* Le decimos que ocupe el 100% del espacio que le demos */
    max-width: 1100px; /* PERO, nunca más ancho que 1100px */
    box-sizing: border-box; /* Importante para que el padding no altere el ancho */
}

/* === FIN DE LA SOLUCIÓN === */


.episode-card-large iframe {
    flex: 0 0 45%; 
    max-width: 560px;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    border: none;
}

.episode-card-large .episode-item-info {
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 1rem; 
}

.episode-card-large h3, .episode-card-large h4 {
    font-size: 1.8rem;
    margin: 0; 
}

.episode-card-large .episode-item-info p {
    margin: 0; 
}


.manifesto-teaser {
    text-align: center;
    background-color: var(--card-bg);
    padding: 4rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 4rem; /* <-- ESTA LÍNEA AÑADÍ */
}
.manifesto-teaser blockquote {
    font-size: 2rem;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    border: none;
    padding: 0;
    line-height: 1.3;
}

.page-content {
    max-width: 1100px;
    margin: 4rem auto;
}
.page-content h1 { text-align: center; font-size: 4rem; }
.page-content .subtitle { text-align: center; font-size: 1.2rem; color: #777; margin-top: -1rem; margin-bottom: 4rem; }


.manifesto-page {
    text-align: left; 
}
.manifesto-layout {
    display: flex;
    align-items: center; 
    gap: 1.5rem; 
    margin-top: 1rem;
}
.manifesto-image-container {
    flex: 0 0 45%; 
    max-width: 500px;
}
.profile-pic-manifiesto {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.manifesto-text-container {
    flex: 1; 
}
.manifesto-text-container p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.manifesto-text-container .cta-button {
    margin-top: 1rem;
}

.community-page .community-box {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.community-box h2 { font-size: 3rem; }
.community-box ul {
    list-style: '⚡️';
    padding-left: 1.5rem;
    text-align: left;
    display: inline-block;
    margin-bottom: 2rem;
}
.community-box form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.community-box input[type="email"] {
    padding: 0.8rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    background-color: #fff;
    color: var(--text-color);
    border-radius: 5px;
    width: 300px;
}
.community-box input[type="email"]:focus {
    outline: 2px solid var(--primary-color);
    border-color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 2rem 5%;
    margin-top: 4rem;
    border-top: 1px solid #E0E0E0;
}
.social-links a {
    margin: 0 0.5rem;
    font-weight: 700;
}

.guest-form {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px; 
    margin: 2rem auto 0 auto;
}

.community-box .guest-form input,
.community-box .guest-form textarea {
    width: 90% !important; 
    max-width: 500px !important; 
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--body-font);
    border: 2px solid #ddd;
    background-color: #fff;
    color: var(--text-color);
    border-radius: 5px;
    box-sizing: border-box; 
    text-align: center;
}

.guest-form input:focus,
.guest-form textarea:focus {
    outline: 2px solid var(--primary-color);
    border-color: var(--primary-color);
}

.guest-form textarea {
    min-height: 150px; 
    resize: vertical; 
}

.guest-form button {
    width: auto; 
    align-self: center;
}

/* --- Estilos para el botón de Instagram en Manifiesto --- */
.manifesto-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Espacio entre la foto y el botón */
}

/* --- INICIO DE LA OPERACIÓN ASALTO MÓVIL (PANTALLAS PEQUEÑAS) --- */
@media (max-width: 768px) {
    
    section {
        padding: 2.5rem 0;
    }
    .page-content {
        margin: 2.5rem auto;
    }

    nav {
        flex-direction: column; 
        gap: 1rem; 
    }
    .logo-central {
        order: -1; 
        height: 60px; 
    }
    header:not(.scrolled) .logo-central img,
    header.scrolled .logo-central img {
        height: 60px; 
    }
    .nav-bottom-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .social-icons, .main-nav {
        gap: 0.8rem;
    }
    .main-nav a {
        font-size: 0.9rem;
    }

    .hero h1 { font-size: 2.5rem; }
    section h2 { font-size: 2.2rem; }
    .page-content h1 { font-size: 2.8rem; }
    .community-box h2 { font-size: 2.2rem; }

    .episode-card-large, .manifesto-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .episode-card-large iframe, .manifesto-image-container {
        flex-basis: auto;
    }
    
    .episode-card-large .episode-item-info, .manifesto-text-container {
        text-align: center;
        align-items: center;
    }

    .manifesto-image-container {
        max-width: 80%;
    }
    
    .community-box {
        padding: 2rem 1.5rem; 
    }

    .community-box .guest-form input,
    .community-box .guest-form textarea {
        width: 100% !important;
        font-size: 0.9rem; 
    }

    .page-content .subtitle {
        font-size: 1rem; 
        margin-bottom: 2.5rem;
    }
}