/* ==========================================================================
   UN GRAN PEQUEÑO RUIDO - HOJA DE ESTILOS PRINCIPAL (APP.CSS)
   ========================================================================== */

:root {
    /* Paleta de colores */
    --color-primario: #2c1a4d;        /* Morado profundo del texto y botones */
    --color-primario-hover: #1a0f2e;  /* Morado ultra profundo */
    --color-primario-light: #442a78;  /* Morado medio */
    --color-acento: #ffc107;          /* Amarillo vibrante de la mano y CTA */
    --color-acento-hover: #e5ac00;    /* Ámbar enérgico */
    --color-acento-footer:#fffcc7;
    --color-coral: #ff5e4d;           /* Coral alegre para detalles vivos */
    --color-coral-soft: #fff0ee;
    --color-blue-sky: #1994e6;        /* Azul cielo dinámico */
    --color-blue-soft: #eaf5fc;
    --color-purple-soft: #f4ecfc;
    --color-sun-soft: #fff7df;
    --color-whatsapp: #25d366;
    --color-instagram: #e1306c;
    --color-youtube: #ff0000;

    --color-fondo: #fdfdfc;           /* Crema/blanco muy suave (papel) */
    --color-surface: #ffffff;         /* Blanco puro para tarjetas */
    --color-text-body: #3c3252;
    --color-text-muted: #695e7c;

    /* Textura de papel en base64 para evitar cargar imágenes externas */
    --textura-papel: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

    /* Sombras suaves y tintadas */
    --shadow-subtle: 0 4px 16px rgba(44, 26, 77, 0.04);
    --shadow-card: 0 12px 36px rgba(44, 26, 77, 0.07);
    --shadow-hover: 0 18px 44px rgba(44, 26, 77, 0.12);
    --shadow-acento: 0 6px 20px rgba(255, 193, 7, 0.35);

    /* Radios orgánicos (trazo a mano alzada) */
    --radius-organic-card: 255px 18px 225px 18px / 18px 225px 18px 255px;
    --radius-organic-card-alt: 18px 255px 18px 225px / 225px 18px 255px 18px;
    --radius-organic-btn: 30px 10px 30px 10px / 10px 30px 10px 30px;
    --radius-organic-btn-alt: 10px 30px 10px 30px / 30px 10px 30px 10px;
    --radius-organic-badge: 20px 8px 20px 8px / 8px 20px 8px 20px;
    --radius-organic-input: 24px 10px 24px 10px / 10px 24px 10px 24px;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--color-fondo);
    background-image: var(--textura-papel);
    color: var(--color-primario);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primario);
    line-height: 1.2;
}

a {
    color: var(--color-blue-sky);
    text-decoration: none;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Estructura Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.contenedor-principal {
    flex: 1;
    width: 100%;
}

.contenedor-ilustrado {
    background-color: var(--color-surface);
    background-image: var(--textura-papel);
    border: none;
    border-radius: var(--radius-organic-card);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* --- Navegación (Navbar) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    background-image: var(--textura-papel);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(44, 26, 77, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.lnk-videos {
    padding: 7px 18px !important;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1a1a1a !important;
    text-decoration: none;
}

.lnk-videos:hover {
    color: #1a1a1a !important;
    transform: translateY(-2px) rotate(-1deg);
}

.lnk-videos::after {
    display: none !important;
}

.nav-brand:hover .logo-img {
    transform: scale(1.03) rotate(-1deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-primario);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-heading);
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-acento);
    border-radius: 4px;
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* --- Buscador en Navbar --- */
.nav-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-input {
    width: 160px;
    height: 38px;
    padding: 0 14px 0 34px;
    border-radius: var(--radius-organic-btn);
    border: 1.5px solid var(--color-purple-lavender);
    background-color: var(--color-surface);
    color: var(--color-primario);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-search-input:focus {
    width: 210px;
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px rgba(255, 94, 77, 0.15);
}

.nav-search-input::placeholder {
    color: var(--color-text-muted);
    font-weight: 500;
    opacity: 0.85;
}

.nav-search-icon {
    position: absolute;
    left: 12px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.nav-search-form:focus-within .nav-search-icon {
    color: var(--color-coral);
}

.nav-social-icon {
    font-size: 1.25rem;
    color: var(--color-primario);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-fondo);
    transition: all 0.2s ease;
}

.nav-social-icon:hover {
    transform: translateY(-2px);
}

.nav-social-icon.instagram:hover {
    color: #ffffff;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.nav-social-icon.whatsapp:hover {
    color: #ffffff;
    background-color: var(--color-whatsapp);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-primario);
    cursor: pointer;
    padding: 6px;
}

/* --- Botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-organic-btn);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

/* Botón Primario Oscuro (Contraste para Navbar y Admin) */
.btn-primario, .btn-admin {
    background-color: var(--color-primario);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    transition: transform 0.3s ease, background-color 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primario:hover, .btn-admin:hover {
    background-color: var(--color-primario-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(44, 26, 77, 0.25);
}

/* Botón directo de edición en admin */
.btn-admin-edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primario);
    color: #ffffff !important;
    padding: 7px 18px;
    border-radius: var(--radius-organic-badge);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 4px 12px rgba(44, 26, 77, 0.2);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-admin-edit:hover {
    background-color: var(--color-coral);
    color: #ffffff !important;
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 0 6px 18px rgba(255, 94, 77, 0.35);
}

/* Botón con bordes orgánicos para la acción principal (Buscador QR / Acento) */
.btn-acento, .btn-primary {
    background-color: var(--color-acento);
    color: #1a1a1a;
    border: none;
    border-radius: 30px 10px 30px 10px / 10px 30px 10px 30px;
    padding: 12px 32px;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-acento);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-acento:hover, .btn-primary:hover {
    background-color: var(--color-acento-hover);
    color: #1a1a1a;
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 0 10px 28px rgba(255, 193, 7, 0.45);
}

/* Botón Secundario Blanco */
.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-primario);
    box-shadow: var(--shadow-subtle);
    border-radius: var(--radius-organic-btn);
    padding: 12px 26px;
    font-weight: 700;
}

.btn-secondary:hover {
    background-color: var(--color-purple-soft);
    color: var(--color-primario);
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: var(--shadow-card);
}

/* --- HERO SECTION (HOME) --- */
.hero-section {
    background-color: var(--color-fondo);
    background-image: var(--textura-papel);
    padding: 60px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 52px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-purple-soft);
    color: var(--color-primario);
    padding: 7px 20px;
    border-radius: var(--radius-organic-badge);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: var(--shadow-subtle);
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.6rem);
    font-weight: 900;
    color: var(--color-primario);
    line-height: 1.12;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-author-byline {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-coral);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.hero-author-byline strong {
    color: var(--color-primario);
    font-weight: 800;
}

.hero-description {
    font-size: 1.18rem;
    color: var(--color-text-body);
    line-height: 1.7;
    margin-bottom: 34px;
    max-width: 560px;
}

/* Buscador de QR estilo tarjeta flotante */
.qr-launcher-card {
    background-color: var(--color-surface);
    background-image: var(--textura-papel);
    padding: 30px;
    border-radius: var(--radius-organic-card);
    box-shadow: var(--shadow-card);
    border: none;
    margin-bottom: 28px;
}

.qr-launcher-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-primario);
    margin-bottom: 16px;
}

.qr-launcher-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.qr-input-wrapper {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.qr-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-coral);
    font-size: 1.15rem;
}

.qr-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 2px solid #f0eaf7;
    border-radius: var(--radius-organic-input);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primario);
    background-color: var(--color-fondo);
    outline: none;
    transition: all 0.25s ease;
}

.qr-input:focus {
    border-color: var(--color-acento);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
}

.qr-quick-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.qr-tag {
    display: inline-block;
    background-color: var(--color-purple-soft);
    color: var(--color-primario);
    padding: 4px 14px;
    border-radius: 18px 6px 18px 6px / 6px 18px 6px 18px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qr-tag:hover {
    background-color: var(--color-acento);
    color: #1a1300;
    transform: translateY(-2px) rotate(-1deg);
}

/* Portada en el Hero */
.hero-media-wrapper {
    display: flex;
    justify-content: center;
}

.hero-cover-card {
    background-color: var(--color-surface);
    background-image: var(--textura-papel);
    padding: 16px;
    border-radius: 255px 22px 225px 22px / 22px 225px 22px 255px;
    box-shadow: var(--shadow-hover);
    border: none;
    max-width: 440px;
    width: 100%;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.hero-cover-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 24px 50px rgba(44, 26, 77, 0.14);
}

.hero-cover-img {
    width: 100%;
    border-radius: 245px 16px 215px 16px / 16px 215px 16px 245px;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* --- SECCIÓN CÓMO FUNCIONA --- */
.section {
    padding: 84px 0;
}

.section-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 52px;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--color-coral);
    background-color: var(--color-coral-soft);
    padding: 5px 18px;
    border-radius: var(--radius-organic-badge);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    color: var(--color-primario);
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.step-card {
    background-color: var(--color-surface);
    background-image: var(--textura-papel);
    padding: 42px 32px;
    box-shadow: var(--shadow-card);
    border: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.step-1 {
    border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

.step-2 {
    border-radius: 18px 255px 18px 225px / 225px 18px 255px 18px;
}

.step-3 {
    border-radius: 225px 18px 255px 18px / 18px 255px 18px 225px;
}

.step-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: var(--shadow-hover);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 26px;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-purple-soft);
    user-select: none;
}

.step-icon-wrapper {
    width: 66px;
    height: 66px;
    border-radius: 25px 10px 25px 10px / 10px 25px 10px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 24px;
}

.step-1 .step-icon-wrapper {
    background-color: var(--color-sun-soft);
    color: #8c5d00;
}

.step-2 .step-icon-wrapper {
    background-color: var(--color-blue-soft);
    color: var(--color-blue-sky);
}

.step-3 .step-icon-wrapper {
    background-color: var(--color-coral-soft);
    color: var(--color-coral);
}

.step-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--color-primario);
}

.step-desc {
    color: var(--color-text-body);
    font-size: 1rem;
    line-height: 1.65;
}

/* --- SECCIÓN SOBRE EL LIBRO / ORIGEN E HISTORIA --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.about-card {
    background-color: var(--color-surface);
    background-image: var(--textura-papel);
    border-radius: var(--radius-organic-card);
    box-shadow: var(--shadow-card);
    padding: 36px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.about-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 20px 8px 20px 8px / 8px 20px 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background-color: var(--color-purple-soft);
    color: var(--color-primario);
}

.about-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--color-primario);
}

.about-text {
    color: var(--color-text-body);
    font-size: 1rem;
    line-height: 1.65;
}

/* --- SECCIÓN DE PRENSA Y MEDIOS --- */
.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.press-card {
    background-color: var(--color-surface);
    background-image: var(--textura-papel);
    border-radius: var(--radius-organic-card);
    box-shadow: var(--shadow-card);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.press-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.press-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.press-media-icon {
    width: 52px;
    height: 52px;
    border-radius: 20px 8px 20px 8px / 8px 20px 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.press-media-icon.newspaper {
    background-color: var(--color-sun-soft);
    color: #8c5d00;
}

.press-media-icon.youtube {
    background-color: #ffe6e6;
    color: var(--color-youtube);
}

.press-badge-source {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.press-headline {
    font-size: 1.25rem;
    color: var(--color-primario);
    margin-bottom: 12px;
    line-height: 1.35;
}

.press-excerpt {
    font-size: 0.98rem;
    color: var(--color-text-body);
    line-height: 1.65;
    margin-bottom: 24px;
    flex: 1;
}

.press-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.story-hand-visual {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(255, 193, 7, 0.4));
    transition: transform 0.3s ease;
}

.story-hand-visual:hover {
    transform: scale(1.08) rotate(4deg);
}

/* --- CATÁLOGO DE VIDEOS EN LSC --- */
.video-catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 32px;
    margin-top: 36px;
}

.video-catalogue-card {
    background-color: var(--color-surface);
    background-image: var(--textura-papel);
    border-radius: var(--radius-organic-card);
    box-shadow: var(--shadow-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.video-catalogue-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: var(--shadow-hover);
}

.video-card-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px 8px 18px 8px / 8px 18px 8px 18px;
    overflow: hidden;
    background-color: #1a0f2e;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(44, 26, 77, 0.08);
    border: 1px solid var(--color-acento);  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    position:absolute;
}

.video-catalogue-card:hover .video-card-thumb-img {
    transform: scale(1.04);
}

.video-card-thumb-fallback {
    width: 100%;
    height: 100%;
    
    background: linear-gradient(135deg, #2c1a4d 0%, #442a78 100%);
    color: #ffffff;
    gap: 10px;
    position:absolute;
}

.video-card-thumb-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-acento);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.25s ease;
    z-index: 20;
}

.video-catalogue-card:hover .video-card-thumb-icon {
    transform: scale(1.12);
    background-color: var(--color-coral);
    color: #ffffff;
}

.video-card-thumb-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #e4ddf2;
}

.video-card-body {
    flex: 1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.video-card-title {
    font-size: 1.25rem;
    color: var(--color-primario);
    margin-bottom: 10px;
    line-height: 1.35;
}

.video-card-title a,
.video-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.video-card-title a:hover,
.video-card-title-link:hover {
    color: var(--color-coral);
}

.video-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.video-card-qr-footer-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-family: var(--font-heading);
    color: var(--color-coral);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed rgba(44, 26, 77, 0.12);
}

.video-card-qr-footer-tag strong {
    color: var(--color-primario);
    font-weight: 800;
}

.video-card-footer {
    margin-top: auto;
}

/* --- PAGINACIÓN ORGÁNICA --- */
.pagination-container {
    margin-top: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pagination-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--radius-organic-badge);
    background-color: var(--color-surface);
    background-image: var(--textura-papel);
    color: var(--color-primario);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.96rem;
    box-shadow: var(--shadow-subtle);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
}

.page-link:hover:not(.disabled):not(.active) {
    background-color: var(--color-purple-soft);
    color: var(--color-primario);
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: var(--shadow-card);
}

.page-link.active {
    background-color: var(--color-acento);
    color: #1a1a1a;
    box-shadow: var(--shadow-acento);
    cursor: default;
    transform: scale(1.05);
}

.page-link.prev-next {
    gap: 8px;
    padding: 0 18px;
}

.page-link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    background-color: rgba(44, 26, 77, 0.04);
}

.pagination-summary {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
}

.pagination-summary strong {
    color: var(--color-primario);
}

/* --- VISTA DETALLE DE VIDEO Y BARRA LATERAL --- */
.video-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.video-main-column {
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.video-sidebar-column {
    position: sticky;
    top: 90px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
}

.video-sidebar-wrapper {
    background-color: var(--color-surface);
    background-image: var(--textura-papel);
    border-radius: var(--radius-organic-card);
    box-shadow: var(--shadow-card);
    padding: 26px 22px;
    max-width: 100%;
    box-sizing: border-box;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-purple-soft);
}

.sidebar-title {
    font-size: 1.15rem;
    color: var(--color-primario);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.sidebar-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.related-videos-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
}

.related-video-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: var(--color-fondo);
    border-radius: var(--radius-organic-btn);
    box-shadow: var(--shadow-subtle);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.related-video-card:hover {
    transform: translateY(-3px) rotate(-0.5deg);
    box-shadow: var(--shadow-card);
    background-color: var(--color-purple-soft);
}

.related-video-thumb-box {
    position: relative;
    width: 84px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1a0f2e;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-video-thumb-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c1a4d 0%, #442a78 100%);
}

.related-video-thumb-play {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--color-acento);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.related-video-card:hover .related-video-thumb-play {
    transform: scale(1.15);
    background-color: var(--color-coral);
    color: #ffffff;
}

.related-video-info {
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.related-video-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-primario);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.related-video-snippet {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    max-width: 100%;
}

/* --- ETIQUETAS / KEYWORDS EN DETALLE --- */
.video-tag-pill {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-purple-soft);
    color: var(--color-primario);
    padding: 4px 12px;
    border-radius: var(--radius-organic-badge);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
    border: 1px solid var(--color-purple-lavender);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-tag-pill:hover {
    background-color: var(--color-coral);
    color: #ffffff;
    transform: translateY(-2px) rotate(-1deg);
    border-color: var(--color-coral);
    box-shadow: 0 4px 10px rgba(255, 94, 77, 0.25);
}

@media (max-width: 960px) {
    .video-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .video-sidebar-column {
        position: static !important;
        margin-top: 10px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .related-videos-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px;
        width: 100% !important;
    }

    .video-sidebar-wrapper {
        padding: 22px 16px !important;
        border-radius: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 600px) {
    .related-videos-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .related-video-title {
        white-space: normal;
    }

    .related-video-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 10px !important;
    }

    .related-video-thumb-box {
        width: 76px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
    }
}

/* --- FOOTER OSCURO --- */
.site-footer {
    background-color: var(--color-primario);
    background-image: var(--textura-papel);
    color:var(--color-acento);
    box-shadow: 0 -6px 24px rgba(44, 26, 77, 0.08);
    padding: 60px 0 36px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-img {
    height: 58px;
    width: auto;
    margin-bottom: 18px;
}

.footer-desc {
    color: var(--color-acento-footer);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 360px;
}

.footer-title {
    font-size: 1.15rem;
    color: var(--color-acento);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-acento-footer);
    font-weight: 600;
    font-size: 0.96rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-acento-hover);
    transform: translateX(4px);
}

.footer-social-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-acento-footer);
    font-weight: 700;
    font-size: 0.96rem;
    transition: all 0.25s ease;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.footer-social-link:hover {
    transform: translateX(4px);
}

.footer-social-link.instagram:hover .footer-social-icon {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #ffffff;
}

.footer-social-link.whatsapp:hover .footer-social-icon {
    background-color: var(--color-whatsapp);
    color: #ffffff;
}

.footer-social-link.vaki:hover .footer-social-icon {
    background-color: var(--color-coral);
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #cbcfa9;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom strong {
    color: var(--color-acento-footer);
}

/* --- GRID SOBRE EL LIBRO (2 COLUMNAS) --- */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
}
.hero-buttons{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 28px;
}
.story-hand-visual {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-grid,
    .about-hero-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    .hero-grid {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .qr-launcher-form {
        justify-content: center;
    }

    .qr-quick-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .steps-grid,
    .press-grid,
    .about-grid,
    .video-catalogue-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .hero-section {
        padding: 36px 0 48px;
    }
    .hero-buttons{
        grid-template-columns: 1fr; /* Una columna por defecto (móvil) */
    }
    .hero-title {
        font-size: clamp(2rem, 7.5vw, 2.7rem) !important;
        word-break: break-word;
    }

    .hero-description {
        font-size: 1.05rem !important;
        margin-bottom: 24px !important;
    }

    .contenedor-ilustrado,
    .step-card,
    .press-card,
    .about-card,
    .video-catalogue-card {
        padding: 24px 18px !important;
        border-radius: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .navbar {
        padding: 0.75rem 16px !important;
        width: 100% !important;
        box-shadow: none;
        border-bottom: 1px solid rgba(44, 26, 77, 0.08);
    }

    .logo-img {
        height: 44px;
        box-shadow: none;
        filter: none;
    }

    .nav-actions .nav-search-form {
        display: none !important;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-social-icon {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
        box-shadow: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100% !important;
        background-color: #ffffff;
        background-image: var(--textura-papel);
        flex-direction: column;
        padding: 20px 16px !important;
        box-shadow: 0 14px 30px rgba(44, 26, 77, 0.08);
        border-top: 1px solid rgba(44, 26, 77, 0.06);
        gap: 16px;
    }

    .nav-links.is-active {
        display: flex;
    }

    .nav-links .mobile-search-item {
        display: block;
        width: 100%;
        margin-bottom: 4px;
    }

    .nav-links .mobile-search-item .nav-search-form {
        display: flex;
        width: 100%;
    }

    .nav-links .mobile-search-item .nav-search-input {
        width: 100% !important;
    }

    .mobile-menu-toggle {
        display: block;
        box-shadow: none;
    }
}
