/*
Theme Name: MikelAut 2.0
Theme URI: https://mikelflandes.com
Author: Mikel De Flandes
Author URI: https://mikelflandes.com
Description: Tema personalizado para escritor Mikel De Flandes. Diseño minimalista y elegante con animaciones sutiles, paleta de colores profesional (naranja y dorado sobre fondo oscuro). Incluye secciones de inicio, biografía, obras, blog y contacto. Optimizado para mostrar la obra literaria "La impronta del letrado" y futuras publicaciones. Compatible con el plugin MikelBoletín para newsletter.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mikelaut
Tags: escritor, literatura, minimalista, responsive, blog, portfolio
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
*/

@font-face {
    font-family: 'Lora';
    src: url('assets/fonts/lora/Lora-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('assets/fonts/lora/Lora-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

/* Variables CSS */
:root {
    --color-primary: #E67E22;
    --color-secondary: #D4AF37;
    --color-dark: #1A1A1A;
    --color-text: #333333;
    --color-light-bg: #F8F9FA;
    --color-white: #FFFFFF;
    --font-primary: 'Lora', serif;
    --font-secondary: 'Lora', serif;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-light-bg);
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main content debe expandirse para empujar el footer abajo */
main,
.site-main,
.biography-page,
.obras-page,
.blog-page,
.contact-page,
.single-post-page,
.archive-page,
.search-page,
.error-404-page {
    flex: 1 0 auto;
}

.site-main {
    display: flex;
    flex-direction: column;
}

/* Footer siempre al final */
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* =====================================================
   ANIMATED BACKGROUND - Partículas flotantes
   ===================================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-light-bg) 0%, #fff 50%, var(--color-light-bg) 100%);
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(230, 126, 34, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(26, 26, 26, 0.03) 0%, transparent 30%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Partículas flotantes */
.particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.particle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.1) 0%, transparent 70%);
    top: 10%;
    left: -5%;
    animation: float1 20s ease-in-out infinite;
}

.particle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    top: 60%;
    right: -10%;
    animation: float2 25s ease-in-out infinite;
}

.particle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.06) 0%, transparent 70%);
    bottom: 20%;
    left: 30%;
    animation: float3 18s ease-in-out infinite;
}

.particle-4 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    top: 30%;
    right: 20%;
    animation: float4 22s ease-in-out infinite;
}

.particle-5 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(26, 26, 26, 0.04) 0%, transparent 70%);
    top: 50%;
    left: 10%;
    animation: float5 28s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 30px) rotate(90deg); }
    50% { transform: translate(20px, 60px) rotate(180deg); }
    75% { transform: translate(-30px, 20px) rotate(270deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(1.1); }
    66% { transform: translate(30px, 40px) scale(0.9); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    50% { transform: translate(40px, -40px); opacity: 1; }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(180deg); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-20px, -40px) scale(1); }
    75% { transform: translate(-40px, 20px) scale(0.95); }
}

/* Líneas decorativas animadas */
.animated-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.animated-lines span {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(230, 126, 34, 0.1), transparent);
    animation: lineMove 8s ease-in-out infinite;
}

.animated-lines span:nth-child(1) { left: 10%; animation-delay: 0s; }
.animated-lines span:nth-child(2) { left: 25%; animation-delay: 1s; }
.animated-lines span:nth-child(3) { left: 40%; animation-delay: 2s; }
.animated-lines span:nth-child(4) { left: 55%; animation-delay: 3s; }
.animated-lines span:nth-child(5) { left: 70%; animation-delay: 4s; }
.animated-lines span:nth-child(6) { left: 85%; animation-delay: 5s; }

@keyframes lineMove {
    0%, 100% { opacity: 0; transform: translateY(-100%); }
    50% { opacity: 1; transform: translateY(100%); }
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.site-title:hover {
    color: var(--color-primary);
}

/* Navegación */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--color-primary);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    text-align: center;
    padding: 8rem 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.03) 0%, transparent 50%);
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.hero-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 40px rgba(26, 26, 26, 0.3),
        0 0 0 5px rgba(230, 126, 34, 0.2),
        0 0 0 10px rgba(212, 175, 55, 0.1);
    animation: iconPulse 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(26, 26, 26, 0.3),
            0 0 0 5px rgba(230, 126, 34, 0.2),
            0 0 0 10px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow:
            0 15px 50px rgba(26, 26, 26, 0.4),
            0 0 0 8px rgba(230, 126, 34, 0.3),
            0 0 0 15px rgba(212, 175, 55, 0.15);
    }
}

.hero-icon img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.hero-title {
    font-size: 4rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #d46e1a 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(230, 126, 34, 0.05);
}

.btn-dark {
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a2a2a 100%);
    color: var(--color-white);
    display: inline-flex;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.2);
}

.btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 26, 26, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #c9a227 100%);
    color: var(--color-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* =====================================================
   FEATURED BOOK SECTION
   ===================================================== */
.featured-book {
    padding: 6rem 2rem;
    background: rgba(248, 249, 250, 0.9);
    position: relative;
}

.featured-book-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.book-content {
    padding-right: 2rem;
}

.book-label {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.book-label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.book-title {
    font-size: 3rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.book-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.book-image-container {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.book-cover {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2a2a2a 100%);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 25px 50px rgba(26, 26, 26, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.2);
    transition: transform 0.5s ease;
    animation: bookFloat 6s ease-in-out infinite;
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(5deg); }
}

.book-cover:hover {
    transform: translateY(-15px) rotateY(10deg) scale(1.02);
}

.book-cover img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */
.testimonials-section {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.9);
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-slider {
    background: linear-gradient(135deg, var(--color-dark) 0%, #0d0d0d 100%);
    padding: 2.5rem 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow:
        0 30px 60px rgba(26, 26, 26, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.testimonial-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(230, 126, 34, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: testimonialGlow 8s ease-in-out infinite;
}

@keyframes testimonialGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.quote-icon {
    color: var(--color-primary);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(230, 126, 34, 0.5);
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    color: var(--color-white);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-family: var(--font-primary);
}

.testimonial-author {
    color: var(--color-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    opacity: 1;
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
}

/* =====================================================
   PÁGINA DE BIOGRAFÍA
   ===================================================== */
.biography-page {
    padding: 6rem 2rem;
}

.biography-container {
    max-width: 1000px;
    margin: 0 auto;
}

.biography-header {
    text-align: center;
    margin-bottom: 4rem;
}

.biography-header h1 {
    font-size: 3.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.biography-header .subtitle {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-style: italic;
}

.biography-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.biography-image {
    position: sticky;
    top: 120px;
}

.biography-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.2);
    transition: transform 0.5s ease;
}

.biography-image img:hover {
    transform: scale(1.02) rotate(1deg);
}

.biography-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--color-primary);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.biography-text {
    color: #555;
    line-height: 1.9;
}

.biography-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.biography-text p:first-of-type::first-letter {
    font-size: 4rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-primary);
    float: left;
    margin-right: 0.5rem;
    line-height: 1;
}

.biography-quote {
    background: linear-gradient(135deg, var(--color-dark), #2a2a2a);
    color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
}

.biography-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.5;
    font-family: var(--font-primary);
}

.timeline {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #eee;
}

.timeline h3 {
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 3px solid var(--color-primary);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2);
}

.timeline-year {
    font-weight: 700;
    color: var(--color-primary);
    min-width: 80px;
    font-size: 1.1rem;
}

.timeline-content h4 {
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    margin-bottom: 0;
}

/* =====================================================
   PÁGINA DE OBRAS
   ===================================================== */
.obras-page {
    padding: 6rem 2rem;
}

.obras-container {
    max-width: 1200px;
    margin: 0 auto;
}

.obras-header {
    text-align: center;
    margin-bottom: 4rem;
}

.obras-header h1 {
    font-size: 3.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.obras-header p {
    color: #666;
    font-size: 1.2rem;
}

.obras-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #ddd;
    background: transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.obras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.obra-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.obra-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.obra-card:hover::before {
    transform: scaleX(1);
}

.obra-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.obra-image {
    height: 250px;
    background: linear-gradient(135deg, var(--color-dark), #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.obra-image img {
    width: 60%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.obra-card:hover .obra-image img {
    transform: scale(1.1) rotate(3deg);
}

.obra-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.obra-content {
    padding: 1.5rem;
}

.obra-category {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.obra-title {
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.obra-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.obra-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.obra-year {
    color: #999;
    font-size: 0.85rem;
}

.obra-link {
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.obra-link:hover {
    gap: 0.75rem;
}

/* =====================================================
   PÁGINA DE BLOG
   ===================================================== */
.blog-page {
    padding: 6rem 2rem;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 3.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.blog-header p {
    color: #666;
    font-size: 1.2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blog-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.blog-post-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-post-image {
    height: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, var(--color-dark), #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.1);
}

.blog-post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #999;
}

.blog-post-category {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-title {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.blog-post-card:hover .blog-post-title {
    color: var(--color-primary);
}

.blog-post-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-post-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-link:hover {
    gap: 1rem;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-primary);
}

.sidebar-search input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.sidebar-search input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.sidebar-categories ul {
    list-style: none;
}

.sidebar-categories li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    color: #555;
    display: flex;
    justify-content: space-between;
}

.sidebar-categories a:hover {
    color: var(--color-primary);
}

.sidebar-categories span {
    background: var(--color-light-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.sidebar-recent li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.sidebar-recent li:last-child {
    border-bottom: none;
}

.sidebar-recent a {
    color: var(--color-dark);
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.sidebar-recent a:hover {
    color: var(--color-primary);
}

.sidebar-recent .date {
    color: #999;
    font-size: 0.85rem;
}

/* =====================================================
   SINGLE POST
   ===================================================== */
.single-post-page {
    padding: 4rem 2rem;
}

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.single-post-category {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.single-post-title {
    font-size: 3rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #999;
    font-size: 0.95rem;
}

.single-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post-image {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.single-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-content {
    color: #444;
    line-height: 1.9;
    font-size: 1.1rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content h2 {
    font-size: 2rem;
    color: var(--color-dark);
    margin: 2.5rem 0 1rem;
}

.single-post-content h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin: 2rem 0 1rem;
}

.single-post-content blockquote {
    background: var(--color-light-bg);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}

.single-post-content ul,
.single-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

.single-post-content a {
    color: var(--color-primary);
    border-bottom: 1px solid transparent;
}

.single-post-content a:hover {
    border-bottom-color: var(--color-primary);
}

.single-post-content img {
    border-radius: 8px;
    margin: 2rem 0;
}

.single-post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--color-light-bg);
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--color-primary);
    color: white;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.post-nav-link {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-nav-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.post-nav-link span {
    display: block;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.post-nav-link strong {
    color: var(--color-dark);
    font-size: 1.1rem;
}

.post-nav-link.next {
    text-align: right;
}

/* =====================================================
   PÁGINA DE CONTACTO
   ===================================================== */
.contact-page {
    padding: 6rem 2rem;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h1 {
    font-size: 3.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.contact-header p {
    color: #666;
    font-size: 1.2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.3);
}

.contact-details h3 {
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p,
.contact-details a {
    color: #666;
}

.contact-details a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

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

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* =====================================================
   PÁGINA 404
   ===================================================== */
.error-404-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.error-404-container {
    max-width: 600px;
}

.error-404-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 3rem;
    background: linear-gradient(135deg, var(--color-dark), #2a2a2a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(26, 26, 26, 0.3);
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.error-404-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.5;
}

.error-404-title {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-404-subtitle {
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.error-404-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.error-404-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   PÁGINA DE BÚSQUEDA
   ===================================================== */
.search-page {
    padding: 6rem 2rem;
}

.search-container {
    max-width: 1000px;
    margin: 0 auto;
}

.search-header {
    text-align: center;
    margin-bottom: 3rem;
}

.search-header h1 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.search-header h1 span {
    color: var(--color-primary);
}

.search-form-large {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-form-large input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    padding-right: 60px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.search-form-large input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px rgba(230, 126, 34, 0.15);
}

.search-form-large button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-form-large button:hover {
    background: var(--color-dark);
    transform: translateY(-50%) scale(1.1);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-result-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.search-result-type {
    display: inline-block;
    background: var(--color-light-bg);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.search-result-title {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.search-result-title a {
    color: inherit;
}

.search-result-title a:hover {
    color: var(--color-primary);
}

.search-result-excerpt {
    color: #666;
    line-height: 1.7;
}

.search-result-excerpt mark {
    background: rgba(230, 126, 34, 0.2);
    color: var(--color-primary);
    padding: 0 0.25rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h2 {
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.no-results p {
    color: #666;
    margin-bottom: 2rem;
}

/* =====================================================
   ARCHIVE PAGE
   ===================================================== */
.archive-page {
    padding: 6rem 2rem;
}

.archive-container {
    max-width: 1200px;
    margin: 0 auto;
}

.archive-header {
    text-align: center;
    margin-bottom: 4rem;
}

.archive-header h1 {
    font-size: 3rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.archive-header .archive-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   COMMENTS
   ===================================================== */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #eee;
}

.comments-title {
    font-size: 1.75rem;
    color: var(--color-dark);
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.comment-author {
    font-weight: 600;
    color: var(--color-dark);
}

.comment-date {
    color: #999;
    font-size: 0.85rem;
}

.comment-content {
    color: #555;
    line-height: 1.7;
}

.comment-reply {
    margin-top: 1rem;
}

.comment-reply-link {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.comment-reply-link:hover {
    color: var(--color-dark);
}

.children {
    list-style: none;
    margin-left: 3rem;
    margin-top: 1.5rem;
}

/* Comment Form */
.comment-respond {
    margin-top: 3rem;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.comment-reply-title {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.comment-form textarea {
    min-height: 150px;
}

.comment-form .submit {
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.comment-form .submit:hover {
    background: var(--color-dark);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: white;
    color: var(--color-text);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pagination a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.pagination .current {
    background: var(--color-primary);
    color: white;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: linear-gradient(135deg, var(--color-dark) 0%, #0d0d0d 100%);
    color: var(--color-white);
    padding: 5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(230, 126, 34, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.footer-logo span {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-credits {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-credits a {
    color: var(--color-primary);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .biography-content {
        grid-template-columns: 1fr;
    }

    .biography-image {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        display: none;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .header-container {
        position: relative;
    }

    .hero-title,
    .hero-subtitle {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 5rem 1.5rem;
    }

    .featured-book-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-content {
        padding-right: 0;
        text-align: center;
    }

    .testimonial-slider {
        padding: 2.5rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1.3rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .blog-post-card {
        grid-template-columns: 1fr;
    }

    .blog-post-image {
        min-height: 200px;
    }

    .single-post-title {
        font-size: 2rem;
    }

    .single-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .error-404-title {
        font-size: 5rem;
    }

    .children {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title,
    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .obras-grid {
        grid-template-columns: 1fr;
    }

    .obra-image {
        height: 200px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .error-404-title {
        font-size: 4rem;
    }

    .error-404-buttons {
        flex-direction: column;
    }
}

/* =====================================================
   ANIMACIONES ADICIONALES
   ===================================================== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
