/* =============================================
   PALOMINO AZULINO - Estilos Premium
   Diseño moderno para cuentos infantiles
   ============================================= */

:root {
    /* Paleta de colores vibrante */
    --color-primary: #1a4f8b;
    --color-primary-dark: #0d3a6b;
    --color-primary-light: #2d6cb5;
    --color-secondary: #f5a623;
    --color-secondary-light: #ffc857;
    --color-accent-1: #e74c8c;
    --color-accent-2: #00c9b7;
    --color-accent-3: #9b59b6;

    /* Fondos */
    --bg-dark: #0a1628;
    --bg-light: #f8f9fa;
    --bg-cream: #fff9f0;

    /* Texto */
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --text-muted: #6c757d;

    /* Gradientes premium */
    --gradient-hero: linear-gradient(135deg, #1a4f8b 0%, #0d2a4a 50%, #0a1628 100%);
    --gradient-accent: linear-gradient(135deg, #f5a623 0%, #e74c8c 100%);
    --gradient-magic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e74c8c 100%);
    --gradient-ocean: linear-gradient(135deg, #00c9b7 0%, #1a4f8b 100%);

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(245, 166, 35, 0.5);
    --shadow-glow-pink: 0 0 40px rgba(231, 76, 140, 0.4);

    /* Tipografía */
    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Quicksand', sans-serif;

    /* Espaciado y bordes */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =============================================
   ELEMENTOS FLOTANTES DECORATIVOS
   ============================================= */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-bird,
.floating-star {
    position: absolute;
    font-size: 2rem;
    opacity: 0.25;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.bird-1 {
    top: 15%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.bird-2 {
    top: 40%;
    right: 8%;
    animation: float 7s ease-in-out infinite 2s;
}

.bird-3 {
    top: 70%;
    left: 5%;
    animation: float 9s ease-in-out infinite 4s;
}

.star-1 {
    top: 25%;
    right: 15%;
    animation: twinkle 3s ease-in-out infinite;
    font-size: 1.5rem;
}

.star-2 {
    top: 60%;
    right: 20%;
    animation: twinkle 4s ease-in-out infinite 1.5s;
    font-size: 1.2rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(3deg);
    }

    50% {
        transform: translateY(-25px) rotate(-3deg);
    }

    75% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* =============================================
   NAVEGACIÓN
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    background: rgba(26, 79, 139, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(13, 42, 74, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo-icon {
    font-size: 1.8rem;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(10deg);
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: var(--transition-normal);
    transform: translateX(-50%);
    border-radius: 3px;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-link:hover::before {
    width: 60%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 2rem 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(245, 166, 35, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 140, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: var(--text-light);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(231, 76, 140, 0.2));
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(245, 166, 35, 0.4);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    display: block;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    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: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text-light);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(245, 166, 35, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: translateY(-4px);
}

/* Book Showcase */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.book-showcase {
    position: relative;
}

.book-cover {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius-md);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition-slow);
}

.book-cover.floating {
    animation: bookFloat 5s ease-in-out infinite;
}

@keyframes bookFloat {

    0%,
    100% {
        transform: translateY(0) rotateY(-8deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(8deg) rotateX(-5deg);
    }
}

.book-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(245, 166, 35, 0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    color: var(--bg-light);
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features {
    padding: 6rem 0;
    background: var(--gradient-hero);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(245, 166, 35, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(0, 201, 183, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.features .container {
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
    transition: var(--transition-normal);
}

.feature-icon-circle i {
    font-size: 1.5rem;
    color: white;
}

.feature-card:hover .feature-icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 15px 40px rgba(245, 166, 35, 0.5),
        0 0 0 10px rgba(245, 166, 35, 0.2),
        0 0 0 20px rgba(245, 166, 35, 0.1);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(26, 79, 139, 0.1), rgba(0, 201, 183, 0.1));
    color: var(--color-primary);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(26, 79, 139, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* =============================================
   BOOKS SECTION
   ============================================= */
.books-section {
    padding: 6rem 0;
    background: var(--bg-cream);
    position: relative;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.book-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.book-card-image {
    position: relative;
    padding: 2rem;
    background: var(--gradient-hero);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 320px;
}

.book-card-image img {
    max-height: 280px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-normal);
}

.book-card-image img {
    max-height: 290px;
    width: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-normal);
}

.book-card:hover .book-card-image img {
    transform: scale(1.05) rotate(-2deg);
}

.book-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--gradient-accent);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 140, 0.4);
}

.book-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: flex-start;
}

.book-author,
.book-illustrator {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    min-height: 1.4rem;
}

.book-description {
    margin: 1.25rem 0;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

.book-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
    align-items: center;
}

.book-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-accent-2);
    background: rgba(0, 201, 183, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.book-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(231, 76, 140, 0.08));
    border-radius: var(--radius-md);
    border: 2px solid rgba(245, 166, 35, 0.35);
    box-shadow:
        0 4px 15px rgba(245, 166, 35, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
}

.book-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.price-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* =============================================
   OPCIONES DE COMPRA EN RECUADROS
   ============================================= */
.purchase-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.purchase-option {
    background: linear-gradient(135deg, rgba(26, 79, 139, 0.04) 0%, rgba(0, 201, 183, 0.02) 100%);
    border: 1px solid rgba(26, 79, 139, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem;
    position: relative;
    transition: var(--transition-normal);
}

.purchase-option:hover {
    border-color: rgba(26, 79, 139, 0.3);
    box-shadow: 0 4px 15px rgba(26, 79, 139, 0.1);
    transform: translateY(-2px);
}

/* Opción Premium destacada */
.purchase-option.option-premium {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.08) 0%, rgba(231, 76, 140, 0.05) 100%);
    border: 2px solid rgba(155, 89, 182, 0.3);
}

.purchase-option.option-premium:hover {
    border-color: rgba(155, 89, 182, 0.5);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.2);
}

.option-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, #9b59b6, #e74c8c);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.option-header i {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.option-premium .option-header i {
    color: #9b59b6;
}

.option-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.option-details {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.option-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    padding: 0.25rem 0;
}

.option-details li i {
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}

.option-details li i.fa-check {
    color: var(--color-accent-2);
}

.option-details li i.fa-clock {
    color: var(--color-secondary);
}

/* =============================================
   SELECTOR DE FORMATO COMPACTO (TABS)
   ============================================= */
.format-selector {
    margin-top: 1rem;
    background: rgba(26, 79, 139, 0.03);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    border: 1px solid rgba(26, 79, 139, 0.1);
}

.format-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.format-tab {
    flex: 1;
    padding: 0.6rem 0.5rem;
    border: 2px solid rgba(26, 79, 139, 0.2);
    background: white;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.format-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.format-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.format-tab i {
    font-size: 0.85rem;
}

.format-content {
    position: relative;
}

.format-panel {
    display: none;
    animation: fadeInPanel 0.3s ease;
}

.format-panel.active {
    display: block;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.format-info {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.format-info i {
    color: var(--color-accent-2);
    font-size: 0.75rem;
}

.format-delivery {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.format-delivery i {
    color: var(--color-secondary);
    font-size: 0.75rem;
}

.format-delivery i.fa-bolt {
    color: var(--color-accent-2);
}

.format-badge {
    display: inline-block;
    background: linear-gradient(135deg, #9b59b6, #e74c8c);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

/* Botón dentro del panel */
.format-panel .btn-buy,
.format-panel .btn-buy-pdf,
.format-panel .btn-buy-premium {
    margin-top: 0;
}

.btn-buy {
    width: 100%;
    background: var(--gradient-accent);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    margin-top: auto;
}

.btn-buy:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* Contenedor de botones de compra */
.book-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

/* Estilos base compartidos para botones de compra */
.btn-buy,
.btn-buy-pdf,
.btn-buy-premium {
    width: 100%;
    color: white;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    border: none;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Botón principal - Impreso/Anillado */
.btn-buy {
    background: var(--gradient-accent);
}

/* Botón de compra PDF */
.btn-buy-pdf {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, #00a896 100%);
}

/* Botón de compra Premium (plastificado) */
.btn-buy-premium {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 50%, #e74c8c 100%);
}

/* Efecto shine para todos los botones */
.btn-buy::before,
.btn-buy-pdf::before,
.btn-buy-premium::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: var(--transition-slow);
}

.btn-buy:hover::before,
.btn-buy-pdf:hover::before,
.btn-buy-premium:hover::before {
    left: 100%;
}

/* Hover states */
.btn-buy:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.btn-buy-pdf:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 201, 183, 0.4);
}

.btn-buy-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.5);
}

/* Iconos */
.btn-buy i,
.btn-buy-pdf i,
.btn-buy-premium i {
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-buy-premium i {
    color: #ffd700;
}

/* Caja de info unificada */
.book-info-box {
    background: linear-gradient(135deg, rgba(26, 79, 139, 0.08) 0%, rgba(0, 201, 183, 0.05) 100%);
    border: 2px solid rgba(26, 79, 139, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    box-shadow:
        inset 0 1px 3px rgba(26, 79, 139, 0.08),
        0 4px 12px rgba(26, 79, 139, 0.08);
    position: relative;
    overflow: hidden;
}

.book-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-ocean);
    opacity: 0.6;
}

.book-info-box.stock-highlight {
    background: rgba(0, 201, 183, 0.08);
    border-color: var(--color-accent-2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.5rem;
    font-size: 0.88rem;
    color: var(--text-dark);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.info-item:hover {
    background: rgba(26, 79, 139, 0.05);
}

.info-item:not(:last-child) {
    border-bottom: 1px dashed rgba(26, 79, 139, 0.15);
}

.info-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.9rem;
    background: rgba(26, 79, 139, 0.1);
    border-radius: 6px;
    flex-shrink: 0;
}

.book-info-box.stock-highlight .info-item i {
    color: var(--color-accent-2);
}

.info-item.stock-item {
    color: var(--color-accent-2);
    font-weight: 600;
}

/* Coming Soon Cards */
.book-card-coming .book-card-image {
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
}

.coming-soon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.coming-soon-content {
    text-align: center;
    color: white;
}

.coming-icon {
    font-size: 4.5rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: float 4s ease-in-out infinite;
}

.coming-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-notify {
    width: 100%;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-weight: 700;
}

.btn-notify:hover {
    background: var(--color-primary);
    color: white;
}

.book-card-back {
    display: none;
}

/* =============================================
   AUTHOR SECTION
   ============================================= */
.author-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

/* Author/Illustrator Tabs */
.author-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.author-tab {
    padding: 1rem 2rem;
    border: none;
    background: white;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-tab:hover {
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.author-tab.active {
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 8px 25px rgba(26, 79, 139, 0.35);
}

.author-tab.active i {
    color: var(--color-secondary);
}

/* Tab Content */
.tab-content {
    display: none !important;
}

.tab-content.active {
    display: grid !important;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.author-content {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.author-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.author-avatar {
    width: 220px;
    height: 220px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.avatar-icon {
    font-size: 6rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-decoration {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 270px;
    height: 270px;
    border: 3px dashed var(--color-secondary);
    border-radius: 50%;
    animation: spin 25s linear infinite;
}

@keyframes spin {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

.author-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.author-bio {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1rem;
}

/* Illustrator specific styles */
.author-role {
    font-size: 1.2rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.illustrator-avatar {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent-2) 100%) !important;
}

.illustrator-decoration {
    border-color: var(--color-secondary) !important;
}

.illustrator-gallery {
    margin-top: 2rem;
}

.gallery-placeholder {
    width: 200px;
    height: 200px;
    background: rgba(245, 166, 35, 0.1);
    border: 3px dashed var(--color-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    transition: var(--transition-normal);
}

.gallery-placeholder:hover {
    background: rgba(245, 166, 35, 0.15);
    transform: scale(1.02);
}

.gallery-placeholder i {
    font-size: 2.5rem;
}

.gallery-placeholder span {
    font-weight: 600;
}

.author-social {
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition-normal);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.35);
}

.social-link.instagram:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(220, 39, 67, 0.5);
}

/* =============================================
   TRANSLATION SECTION - DISEÑO PREMIUM AZUL
   ============================================= */
.translation-section {
    padding: 5rem 0;
    background: var(--gradient-hero);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.translation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(245, 166, 35, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 201, 183, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.translation-section .container {
    position: relative;
    z-index: 2;
}

.translation-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.translation-main-content .section-badge {
    background: rgba(245, 166, 35, 0.2);
    color: var(--color-secondary);
    border: 1px solid rgba(245, 166, 35, 0.4);
    backdrop-filter: blur(10px);
}

.translation-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: white;
    margin: 1rem 0 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.translator-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.translator-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.translator-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.2rem;
}

.translator-info p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.translation-intro {
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
}

.translation-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.service-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    transition: var(--transition-normal);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.service-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.2rem;
    color: white;
}

.service-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
}

.service-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
}

.translation-cta {
    text-align: center;
}

.btn-translation {
    display: inline-flex;
    justify-content: center;
    background: var(--gradient-accent);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1rem 3rem;
    box-shadow: 0 10px 35px rgba(245, 166, 35, 0.35);
}

.btn-translation:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(245, 166, 35, 0.5);
}

/* =============================================
   MAGIC GALLERY SECTION
   ============================================= */
.magic-gallery {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-cream) 0%, #f0e6ff 50%, var(--bg-cream) 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.gallery-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0 0.5rem;
}

.gallery-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Floating Gallery - Imágenes que aparecen y desaparecen */
.floating-gallery {
    position: relative;
    width: 100%;
    height: 500px;
}

.floating-image {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 180px;
    height: auto;
    animation: magicFloat 12s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0;
    transform: scale(0.8) rotate(0deg);
    z-index: 1;
}

.floating-image:hover {
    z-index: 100;
}

.floating-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal);
}

.floating-image:hover img {
    transform: scale(1.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@keyframes magicFloat {
    0% {
        opacity: 0;
        transform: scale(0.6) rotate(-8deg);
    }

    10% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    45% {
        opacity: 1;
        transform: scale(1.02) rotate(2deg);
    }

    90% {
        opacity: 1;
        transform: scale(1) rotate(-1deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.6) rotate(8deg);
    }
}

/* Animación de flotación suave para desktop */
@keyframes floatBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-3px) rotate(0.5deg) scale(1.01);
    }
}

.magic-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    animation: sparkle 4s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 85%;
    top: 15%;
    animation-delay: 0.8s;
}

.particle:nth-child(3) {
    left: 50%;
    top: 80%;
    animation-delay: 1.6s;
}

.particle:nth-child(4) {
    left: 20%;
    top: 70%;
    animation-delay: 2.4s;
}

.particle:nth-child(5) {
    left: 70%;
    top: 60%;
    animation-delay: 3.2s;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes fadeInGallery {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive for translation */
@media (max-width: 900px) {
    .translation-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-image {
        width: 280px;
    }

    /* Features responsive */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon-circle {
        width: 50px;
        height: 50px;
    }

    .feature-icon-circle i {
        font-size: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {

    /* Galería mágica en móvil - mantener efecto flotante */
    .magic-gallery {
        padding: 4rem 1rem 6rem;
        min-height: 500px;
    }

    .floating-gallery {
        position: relative;
        width: 100%;
        height: 450px;
    }

    .floating-image {
        position: absolute;
        left: var(--x);
        top: var(--y);
        width: 140px;
        height: auto;
        animation: magicFloat 10s ease-in-out infinite;
        animation-delay: var(--delay);
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
        z-index: 1;
    }

    .gallery-header h2 {
        font-size: 1.8rem;
    }

    /* Book cards en móvil */
    .book-title {
        min-height: auto;
    }

    .book-description {
        min-height: auto;
    }

    .book-features {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .translation-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .translator-profile {
        flex-direction: column;
        text-align: center;
    }

    /* Features en móvil - rectángulos horizontales simétricos */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .feature-card {
        padding: 1rem 1.25rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    .feature-card::before {
        display: none;
    }

    .feature-icon-circle {
        width: 45px;
        height: 45px;
        min-width: 45px;
        margin: 0;
    }

    .feature-icon-circle i {
        font-size: 1.1rem;
    }

    .feature-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.15rem;
        white-space: nowrap;
    }

    .feature-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        display: block;
        margin: 0;
        color: rgba(255, 255, 255, 0.7);
    }

    .service-item {
        padding: 0.75rem;
    }

    .service-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 0.5rem;
    }

    .service-icon i {
        font-size: 1rem;
    }

    .service-item h4 {
        font-size: 0.8rem;
    }

    .service-item p {
        font-size: 0.7rem;
        display: none;
        /* Ocultar descripción en móvil muy pequeño */
    }

    /* Galería móvil - grilla 3x3 */
    .magic-gallery {
        padding: 2rem 0.5rem 2rem;
        min-height: 480px;
    }

    .floating-gallery {
        position: relative;
        width: 100%;
        height: 420px;
    }

    .floating-image {
        position: absolute;
        width: 80px;
        height: auto;
        opacity: 0;
        z-index: 1;
    }

    .floating-image img {
        border-radius: 10px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }

    /* Animación de flotación suave */
    @keyframes floatBounce {

        0%,
        100% {
            transform: translateY(0) rotate(0deg) scale(1);
        }

        50% {
            transform: translateY(-2px) rotate(0.5deg) scale(1.01);
        }
    }

    .particle {
        font-size: 1rem;
    }
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 8px 25px rgba(26, 79, 139, 0.3);
}

.contact-card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.contact-card a {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-card a:hover {
    color: var(--color-accent-1);
}

.contact-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Contact Form */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 79, 139, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-submit {
    width: 100%;
    background: var(--gradient-accent);
    color: white;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    padding: 1.1rem 2rem;
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    padding-top: 80px;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: var(--bg-cream);
    transform: translateY(-99%);
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding: 3rem 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand .logo-icon {
    font-size: 3rem;
}

.footer-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    opacity: 0.7;
    transition: var(--transition-fast);
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--color-secondary);
    color: var(--text-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.4);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    opacity: 0.7;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .translation-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: rgba(13, 42, 74, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition-normal);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero: texto primero, imagen después */
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        order: 1;
        text-align: center;
    }

    .hero-image {
        order: 2;
    }

    /* Author section responsive */
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-image {
        order: 1;
    }

    .author-text {
        order: 2;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .translation-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .book-cover {
        max-width: 280px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .translation-card h3 {
        font-size: 1.5rem;
    }
}

/* =============================================
   ANIMACIONES
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

/* Make book images clickable */
.book-card-image {
    cursor: pointer;
}

.book-card-image img {
    transition: var(--transition-normal);
}

.book-card-image:hover img {
    transform: scale(1.05);
}