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

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header y navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: var(--gradient-1);
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 8rem;
    background: #93c5fd;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.cta-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.cta-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.image-floating {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    aspect-ratio: 1/1;
}

.image-floating img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 62% 35%;
    transition: transform 0.5s ease;
}

.image-floating:hover img {
    transform: scale(1.05);
}

/* Animaciones de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
}

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

/* Animación para secciones */
.section-header {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* Animación suave para hover en tarjetas */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animación de pulso suave para badges */
@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
}

.hero-badge, .section-badge {
    animation: pulseBadge 3s ease-in-out infinite;
}

/* Animación de aparición para modales */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animación para botones */
.cta-button, .book-buy-btn, .instagram-button {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button:hover, .book-buy-btn:hover, .instagram-button:hover {
    animation: buttonBounce 0.5s ease;
}

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

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gradient-2);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Sobre mí Section */
.about {
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 1s ease forwards;
}

.image-mask {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 1/1;
}

.image-mask img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 55%;
    transition: transform 0.5s ease;
}

.image-mask:hover img {
    transform: scale(1.05);
}

.about-intro {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.passions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.passion-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 2.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 16px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    color: var(--dark);
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.passion-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.passion-item:nth-child(1).visible {
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.passion-item:nth-child(2).visible {
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.passion-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
    border-color: rgba(102, 126, 234, 0.25);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.2);
}

/* Libros Section */
.books {
    background: #8b5cf6;
}

.books .section-title {
    color: #ffffff;
}

.books .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

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

.book-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.book-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

.book-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Animación escalonada para tarjetas */
.book-card:nth-child(1).visible { animation-delay: 0.1s; }
.book-card:nth-child(2).visible { animation-delay: 0.2s; }
.book-card:nth-child(3).visible { animation-delay: 0.3s; }
.book-card:nth-child(4).visible { animation-delay: 0.4s; }
.book-card:nth-child(5).visible { animation-delay: 0.5s; }
.book-card:nth-child(6).visible { animation-delay: 0.6s; }
.book-card:nth-child(7).visible { animation-delay: 0.7s; }

.book-cover {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: var(--gray-100);
}

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

.book-card:hover .book-image {
    transform: scale(1.08);
}

.book-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-action {
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--gradient-1);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.book-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--gradient-4);
    color: var(--white);
}

.book-placeholder span {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.book-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 0 2rem;
}

.book-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.book-genre {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gradient-2);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.book-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: auto;
    min-height: 3.6rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 28px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 2.5rem 3rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.modal-genre {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#modal1 .modal-genre,
#modal6 .modal-genre,
#modal7 .modal-genre {
    background: rgba(45, 52, 54, 0.15);
    color: #2d3436;
    border: 1px solid rgba(45, 52, 54, 0.25);
}

.modal-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.modal-body {
    padding: 2rem 3rem 3rem;
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    font-weight: 300;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: rotate(90deg);
}

#modal1 .close,
#modal6 .close,
#modal7 .close {
    color: #2d3436;
    background: rgba(45, 52, 54, 0.15);
}

#modal1 .close:hover,
#modal6 .close:hover,
#modal7 .close:hover {
    background: rgba(45, 52, 54, 0.25);
    color: #2d3436;
}

/* Contacto Section */
.contact {
    background: #ffffff;
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-text {
    padding: 2rem 0;
    max-width: 700px;
}

.contact-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    margin: 1rem 0 1.5rem;
    line-height: 1.2;
}

.contact-description {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(240, 147, 251, 0.4);
}

.instagram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(240, 147, 251, 0.5);
}


/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    font-size: 0.95rem;
}

/* Botón flotante de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Botón de compra en modals */
.buy-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

/* Botón de compra en tarjetas */
.book-buy-btn {
    display: inline-block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Paletas de color para modales - Fondos con transparencia y degradados suaves */

/* Modal 1: Palabra Circular - Turquesa aguamarina */
#modal1 .modal-content {
    background: linear-gradient(135deg, rgba(94, 207, 196, 0.85) 0%, rgba(110, 191, 194, 0.9) 50%, rgba(94, 207, 196, 0.8) 100%);
}

#modal1 .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

#modal1 .modal-header h2,
#modal1 .modal-body p {
    color: #1e293b;
}

#modal1 .buy-button {
    background: rgba(30, 41, 59, 0.15);
    border: 2px solid #1e293b;
    color: #1e293b;
}

#modal1 .buy-button:hover {
    background: rgba(30, 41, 59, 0.25);
}

/* Modal 2: ¿Qué es lo que hace que el amor sea amor? - Rosa romántico */
#modal2 .modal-content {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.85) 0%, rgba(245, 87, 108, 0.9) 50%, rgba(236, 72, 153, 0.8) 100%);
}

#modal2 .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

#modal2 .modal-header h2,
#modal2 .modal-body p {
    color: #ffffff;
}

#modal2 .buy-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    color: #ffffff;
}

#modal2 .buy-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal 3: Una temporada en el 761 - Naranja vibrante con turquesa */
#modal3 .modal-content {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.85) 0%, rgba(32, 178, 170, 0.75) 30%, rgba(255, 140, 66, 0.9) 70%, rgba(255, 107, 53, 0.85) 100%);
}

#modal3 .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

#modal3 .modal-header h2,
#modal3 .modal-body p {
    color: #ffffff;
}

#modal3 .buy-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    color: #ffffff;
}

#modal3 .buy-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal 4: Un cuento en cada encuentro - Azul navy profundo con toques vibrantes */
#modal4 .modal-content {
    background: linear-gradient(135deg, rgba(42, 63, 144, 0.9) 0%, rgba(30, 58, 138, 0.95) 50%, rgba(240, 147, 251, 0.7) 80%, rgba(42, 63, 144, 0.9) 100%);
}

#modal4 .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

#modal4 .modal-header h2,
#modal4 .modal-body p {
    color: #ffffff;
}

#modal4 .buy-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    color: #ffffff;
}

#modal4 .buy-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal 5: En el horizonte del tiempo - Degradado turquesa-naranja vibrante */
#modal5 .modal-content {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.85) 0%, rgba(93, 211, 208, 0.75) 25%, rgba(255, 140, 66, 0.9) 60%, rgba(255, 107, 53, 0.9) 85%, rgba(32, 178, 170, 0.8) 100%);
}

#modal5 .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

#modal5 .modal-header h2,
#modal5 .modal-body p {
    color: #ffffff;
}

#modal5 .buy-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    color: #ffffff;
}

#modal5 .buy-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal 6: Letras fugaces - Amarillo suave */
#modal6 .modal-content {
    background: linear-gradient(135deg, rgba(255, 234, 167, 0.9) 0%, rgba(253, 203, 110, 0.95) 50%, rgba(255, 234, 167, 0.85) 100%);
}

#modal6 .modal-header {
    border-bottom-color: rgba(45, 52, 54, 0.2);
}

#modal6 .modal-header h2,
#modal6 .modal-body p {
    color: #2d3436;
}

#modal6 .buy-button {
    background: rgba(45, 52, 54, 0.15);
    border: 2px solid #2d3436;
    color: #2d3436;
}

#modal6 .buy-button:hover {
    background: rgba(45, 52, 54, 0.25);
}

/* Modal 7: Orillas - Naranja cálido pastel */
#modal7 .modal-content {
    background: linear-gradient(135deg, rgba(255, 236, 210, 0.9) 0%, rgba(252, 182, 159, 0.95) 50%, rgba(255, 236, 210, 0.85) 100%);
}

#modal7 .modal-header {
    border-bottom-color: rgba(45, 52, 54, 0.2);
}

#modal7 .modal-header h2,
#modal7 .modal-body p {
    color: #2d3436;
}

#modal7 .buy-button {
    background: rgba(45, 52, 54, 0.15);
    border: 2px solid #2d3436;
    color: #2d3436;
}

#modal7 .buy-button:hover {
    background: rgba(45, 52, 54, 0.25);
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-2);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }

    .passions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .modal-content {
        margin: 2rem;
    }

    .modal-header {
        padding: 2rem;
    }

    .modal-body {
        padding: 1.5rem 2rem 2.5rem;
    }

    .contact-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 8rem 0 5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .book-cover {
        height: 380px;
    }

    .modal-header h2 {
        font-size: 1.6rem;
    }

    .close {
        top: 1rem;
        right: 1rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-description {
        font-size: 1rem;
    }
}
