/* ========================================
   RESET Y VARIABLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #7c3aed;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

/* Control global de imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ========================================
   HEADER NAVIGATION - STICKY
======================================== */
.tema-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tema-nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    flex-grow: 1;
    text-align: center;
    line-height: 1.3;
    min-width: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-ingreso,
.btn-volver {
    padding: 0.5rem 0.8rem;
    font-size: 1.0rem;
    color: white;
    background: #2c2c2c;
    border: 2px solid #2c2c2c;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-ingreso:hover,
.btn-volver:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}
    
    /* Breadcrumbs */
    .breadcrumbs {
        padding: 0.75rem 1rem;
    }
    
    .breadcrumbs ol {
        flex-wrap: nowrap;
        white-space: nowrap;
        font-size: 0.85rem;
    }
    
    /* Hero principal */
    .hero-principal {
        padding: 2.5rem 1rem;
    }
    
    .hero-principal h1 {
        font-size: 1.75rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Secciones */
    .seccion-destacada,
    .seccion-valor {
        padding: 2.5rem 1rem;
    }
    
    .seccion-destacada h2,
    .seccion-valor h2,
    .temas-grid h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .texto-destacado {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Grid de temas */
    .temas-grid {
        padding: 2.5rem 0;
    }
    
    .temas-grid .container {
        padding: 0 1rem;
    }
    
    .temas-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tema-card-img {
        height: 200px;
    }
    
    .tema-card-content {
        padding: 1.25rem;
    }
    
    .tema-card-titulo {
        font-size: 1.25rem;
    }
    
    .tema-card-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    /* Características y valores */
    .caracteristicas-grid,
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .caracteristica,
    .valor-item {
        padding: 1.5rem;
    }
    
    /* Hero tema individual */
    .tema-hero {
        min-height: 320px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    
    .tema-descripcion {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .categoria-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .tema-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .tema-meta span {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Contenido del artículo */
    .tema-articulo {
        padding: 2rem 0;
    }
    
    .tema-articulo .container {
        padding: 0 1rem;
    }
    
    .tema-contenido {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .tema-contenido h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }
    
    .tema-contenido h3 {
        font-size: 1.25rem;
        margin: 1.75rem 0 0.875rem;
    }
    
    .tema-contenido h4 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .tema-contenido p {
        margin-bottom: 1.25rem;
    }
    
    .tema-contenido img {
        margin: 1.5rem 0;
        border-radius: 8px;
    }
    
    .tema-contenido ul,
    .tema-contenido ol {
        padding-left: 1.25rem;
        margin: 1.25rem 0;
    }
    
    .tema-contenido li {
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Cajas especiales */
    .dato-importante,
    .consejo-practico,
    .recursos-adicionales {
        padding: 1.25rem;
        margin: 1.75rem 0;
        border-radius: 10px;
        border-left-width: 4px;
    }
    
    .dato-importante h4,
    .consejo-practico h4,
    .recursos-adicionales h3 {
        font-size: 1.1rem;
    }
    
    /* Blockquote */
    blockquote {
        padding: 1.25rem;
        margin: 1.75rem 0;
        border-left-width: 4px;
    }
    
    blockquote p {
        font-size: 1rem;
    }
    
    /* Videos */
    .video-container {
        margin: 1.5rem 0;
        border-radius: 8px;
    }
    
    /* Figuras */
    figure {
        margin: 1.5rem 0;
    }
    
    figure img {
        border-radius: 8px;
    }
    
    figcaption {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    /* Compartir social */
    .compartir-social {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }
    
    .compartir-social h3 {
        font-size: 1.25rem;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .social-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }
    
    /* Footer */
    .tema-footer {
        padding: 2rem 1rem;
        margin-top: 3rem;
    }
    
    .footer-cta {
        font-size: 1rem;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem !important;
    }
    
    .footer-legal p {
        font-size: 0.875rem;
    }
    
    .disclaimer {
        font-size: 0.8rem;
        padding: 0.875rem;
    }
    
    .footer-badge p {
        font-size: 0.875rem;
        padding: 0.875rem;
    }

/* ========================================
   RESPONSIVE - MOBILE PEQUEÑO (max-width: 480px)
======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 0.875rem;
    }
    
    /* Header */
    .tema-nav {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .logo img {
        height: 32px;
    }
    
    .nav-titulo {
        font-size: 0.8rem;
        padding-top: 0.5rem;
    }
    
    .btn-ingreso,
    .btn-volver {
        font-size: 0.7rem;
        padding: 0.4rem 0.625rem;
    }
    
    /* Breadcrumbs */
    .breadcrumbs {
        padding: 0.75rem 0.875rem;
    }
    
    .breadcrumbs ol {
        font-size: 0.75rem;
    }
    
    /* Hero principal */
    .hero-principal {
        padding: 2rem 0.875rem;
    }
    
    .hero-principal h1 {
        font-size: 1.5rem;
    }
    
    .hero-principal p {
        font-size: 0.95rem;
    }
    
    /* Secciones */
    .seccion-destacada h2,
    .seccion-valor h2,
    .temas-grid h2 {
        font-size: 1.5rem;
    }
    
    /* Hero tema */
    .tema-hero {
        min-height: 280px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .tema-descripcion {
        font-size: 0.95rem;
    }
    
    /* Contenido */
    .tema-contenido {
        font-size: 0.95rem;
    }
    
    .tema-contenido h2 {
        font-size: 1.35rem;
    }
    
    .tema-contenido h3 {
        font-size: 1.15rem;
    }
    
    .tema-contenido h4 {
        font-size: 1.05rem;
    }
    
    /* Cajas */
    .dato-importante,
    .consejo-practico,
    .recursos-adicionales {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .dato-importante h4,
    .consejo-practico h4,
    .recursos-adicionales h3 {
        font-size: 1rem;
    }
    
    blockquote {
        padding: 1rem;
    }
    
    blockquote p {
        font-size: 0.95rem;
    }
    
    /* Cards */
    .tema-card-content {
        padding: 1rem;
    }
    
    .tema-card-titulo {
        font-size: 1.15rem;
    }
    
    .tema-card-descripcion {
        font-size: 0.9rem;
    }
    
    .tema-card-img {
        height: 180px;
    }
    
    /* Footer */
    .footer-legal p {
        font-size: 0.8rem;
    }
    
    .disclaimer {
        font-size: 0.75rem;
    }
    
    .footer-badge p {
        font-size: 0.8rem;
    }
}

/* ========================================
   RESPONSIVE - PANTALLAS MUY PEQUEÑAS (max-width: 360px)
======================================== */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .tema-nav {
        padding: 0.625rem;
        gap: 0.4rem;
    }
    
    .logo img {
        height: 28px;
    }
    
    .nav-titulo {
        font-size: 0.75rem;
        padding-top: 0.4rem;
    }
    
    .btn-ingreso,
    .btn-volver {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }
    
    .breadcrumbs {
        padding: 0.625rem 0.75rem;
    }
    
    .breadcrumbs ol {
        font-size: 0.7rem;
    }
    
    .hero-principal h1 {
        font-size: 1.35rem;
    }
    
    .hero-content h1 {
        font-size: 1.35rem;
    }
    
    .tema-contenido h2 {
        font-size: 1.25rem;
    }
    
    .tema-card-titulo {
        font-size: 1.1rem;
    }
}ingreso {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid white;
}

.btn-ingreso:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-volver {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-volver:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   BREADCRUMBS
======================================== */
.breadcrumbs {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    position: relative;
    z-index: 100;
    margin-top: 0;
}

.breadcrumbs ol {
    max-width: 1600px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ========================================
   HERO PRINCIPAL (Listado)
======================================== */
.hero-principal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-principal h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-principal p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   SECCIÓN DESTACADA
======================================== */
.seccion-destacada {
    background: white;
    padding: 4rem 2rem;
}

.seccion-destacada .container {
    max-width: 1600px;
    margin: 0 auto;
}

.seccion-destacada h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.texto-destacado {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.caracteristica {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.caracteristica:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.caracteristica .icono {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.caracteristica h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.caracteristica p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ========================================
   GRID DE TEMAS - ANCHO COMPLETO
======================================== */
.temas-grid {
    background: var(--bg-light);
    padding: 4rem 0;
    width: 100%;
}

.temas-grid .container {
    max-width: 100%;
    padding: 0 2rem;
}

.temas-grid h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.temas-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1800px;
    margin: 0 auto;
}

.tema-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tema-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.tema-card a {
    text-decoration: none;
    color: inherit;
}

.tema-card a:hover .tema-card-titulo {
    color: var(--primary-color);
}

.tema-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.tema-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tema-card-categoria {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.tema-card-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    color: var(--text-dark);
    text-decoration: none;
}

.tema-card-descripcion {
    color: var(--text-gray);
    margin-bottom: auto;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    text-decoration: none;
}

.tema-card-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
}

/* ========================================
   SECCIÓN DE VALOR
======================================== */
.seccion-valor {
    background: white;
    padding: 4rem 2rem;
}

.seccion-valor .container {
    max-width: 1600px;
    margin: 0 auto;
}

.seccion-valor h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.valor-item {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.valor-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.valor-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.valor-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   HERO TEMA INDIVIDUAL
======================================== */
.tema-hero {
    position: relative;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--bg-white);
    max-width: 1200px;
    padding: 2rem 1.5rem;
    z-index: 2;
    width: 100%;
}

.categoria-badge {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.tema-descripcion {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.tema-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.tema-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    padding: 0.625rem 1.125rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* ========================================
   CONTENIDO DEL ARTÍCULO
======================================== */
.tema-articulo {
    padding: 4rem 0;
    background: var(--bg-white);
    overflow-x: hidden;
}

.tema-articulo .container {
    max-width: 1400px;
}

.tema-contenido {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.tema-contenido h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 3rem 0 1.25rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.tema-contenido h2:first-child {
    margin-top: 0;
}

.tema-contenido h3 {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.tema-contenido h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text-dark);
}

.tema-contenido p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.tema-contenido strong {
    color: var(--primary-color);
    font-weight: 700;
}

.tema-contenido ul,
.tema-contenido ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.tema-contenido li {
    margin-bottom: 0.875rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.tema-contenido a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.tema-contenido a:hover {
    color: var(--primary-dark);
}

/* Imágenes dentro del contenido */
.tema-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    box-shadow: var(--shadow-md);
    display: block;
}

/* Tablas responsivas */
.tema-contenido table {
    width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    margin: 2rem 0;
}

.tema-contenido th,
.tema-contenido td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

/* Pre y code responsivos */
.tema-contenido pre {
    overflow-x: auto;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

.tema-contenido code {
    word-break: break-all;
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* iframes responsivos */
.tema-contenido iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* ========================================
   VIDEOS EMBEBIDOS RESPONSIVOS
======================================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 12px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ========================================
   FIGURAS CON CAPTION
======================================== */
figure {
    margin: 2rem 0;
}

figure img {
    width: 100%;
    border-radius: 12px;
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    font-style: italic;
}

/* ========================================
   CAJAS ESPECIALES
======================================== */
.dato-importante,
.consejo-practico,
.recursos-adicionales {
    padding: 1.75rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    border-left: 5px solid;
    box-shadow: var(--shadow-sm);
}

.dato-importante {
    background: #eff6ff;
    border-color: var(--primary-color);
}

.consejo-practico {
    background: #f0fdf4;
    border-color: var(--success-color);
}

.recursos-adicionales {
    background: #fef3c7;
    border-color: var(--warning-color);
}

.dato-importante h4,
.consejo-practico h4,
.recursos-adicionales h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.recursos-adicionales ul {
    margin: 1rem 0 0;
}

/* ========================================
   BLOCKQUOTE
======================================== */
blockquote {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-left: 5px solid var(--secondary-color);
    border-radius: 12px;
    font-style: italic;
    box-shadow: var(--shadow-sm);
}

blockquote p {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.7;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.95rem;
    font-style: normal;
    color: var(--text-light);
    font-weight: 600;
}

/* ========================================
   COMPARTIR SOCIAL
======================================== */
.compartir-social {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.compartir-social h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--bg-white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.linkedin { background: #0a66c2; }
.social-btn.whatsapp { background: #25d366; }

/* ========================================
   FOOTER
======================================== */
.tema-footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.tema-footer .container {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-content {
    display: none;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-contact p,
.footer-section p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-contact a,
.footer-nav a {
    color: #93c5fd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover,
.footer-nav a:hover {
    color: white;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-categorias {
    list-style: none;
}

.footer-categorias li {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-cta {
    font-size: 1.0rem;
    margin-bottom: 2rem !important;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.footer-cta strong {
    color: white;
    font-weight: 700;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 900;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    padding: 0.10rem 0.5rem;
    display: inline-block;
}

.footer-link:hover {
    color: #93c5fd;
    border-bottom-color: #93c5fd;
    transform: translateY(-1px);
}

.footer-legal {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-legal p {
    margin: 1rem 0;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
}

.disclaimer {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.7;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 1.5rem 0;
}

.privacy-note {
    font-size: 0.85rem;
    opacity: 0.7;
}

.privacy-note a {
    color: #93c5fd;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.privacy-note a:hover {
    color: white;
    border-bottom-color: white;
}

.footer-badge {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-badge p {
    font-size: 0.95rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* ========================================
   ERROR 404
======================================== */
.error-404 {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.error-404 h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* ========================================
   UTILIDADES
======================================== */
.img-full-width {
    width: 100%;
    max-width: none;
}

.text-center {
    text-align: center;
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 1024px)
======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .tema-nav {
        padding: 1rem 1.5rem;
        gap: 1.5rem;
    }
    
    .nav-titulo {
        font-size: 1.3rem;
    }
    
    .logo img {
        height: 45px;
    }
    
    .temas-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .caracteristicas-grid,
    .valores-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .tema-hero {
        min-height: 400px;
    }
    
    .tema-contenido img {
        margin: 1.5rem auto;
    }
    
    .seccion-destacada,
    .seccion-valor {
        padding: 3rem 1.5rem;
    }
    
    .hero-principal {
        padding: 3rem 1.5rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 768px)
======================================== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* Header y navegación */
    .tema-nav {
        padding: 0.875rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .logo img {
        height: 38px;
    }
    
    .nav-titulo {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        font-size: 0.95rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .btn-ingreso,
    .btn-volver {
        font-size: 0.8rem;
        padding: 0.5rem 0.875rem;
    }
    
    .hero-principal h1 {
        font-size: 1.75rem;
    }
    
    .tema-card-titulo {
        font-size: 1.25rem;
    }
    
    .tema-card-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .seccion-destacada h2,
    .seccion-valor h2,
    .temas-grid h2 {
        font-size: 1.75rem;
    }
    
    .footer-legal p {
        font-size: 0.85rem;
    }
}