/* =============================================
   LA IA ES TU ESCLAVA - Estilos Responsive
   ============================================= */

/* Tablets (1024px y menor) */
@media screen and (max-width: 1024px) {
    /* Tipografía ajustada */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    /* Sobre el Libro */
    .book-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Sobre el Autor */
    .author-content {
        grid-template-columns: 250px 1fr;
        gap: var(--spacing-lg);
    }
}

/* Tablets pequeñas y móviles grandes (768px y menor) */
@media screen and (max-width: 768px) {
    /* Variables para móvil */
    :root {
        --spacing-xxl: 3rem;
        --spacing-xl: 2rem;
    }
    
    /* Navegación móvil */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: var(--spacing-lg) 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: var(--spacing-md);
    }
    
    /* Hero móvil */
    .hero {
        padding-top: calc(70px + var(--spacing-xl));
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: var(--spacing-lg);
    }
    
    .book-cover {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    /* Sobre el Autor móvil */
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-image {
        max-width: 250px;
        margin: 0 auto var(--spacing-lg);
    }
    
    /* Formularios móvil */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

/* Móviles pequeños (480px y menor) */
@media screen and (max-width: 480px) {
    /* Tipografía móvil pequeño */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description,
    .section-description,
    .book-synopsis {
        font-size: 1rem;
    }
    
    /* Container móvil */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Botones móvil */
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
        width: 100%;
    }
    
    /* Libro portada móvil */
    .book-cover {
        max-width: 250px;
    }
    
    /* Ejercicio card móvil */
    .exercise-card {
        padding: var(--spacing-md);
    }
    
    .exercise-steps {
        margin-left: var(--spacing-md);
    }
    
    /* Footer móvil */
    .footer-link {
        display: block;
        margin: var(--spacing-xs) 0;
    }
}

/* Animación para menú hamburguesa */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Ajustes para pantallas muy grandes (1600px+) */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .book-cover {
        max-width: 500px;
    }
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .newsletter,
    .contact-form,
    .footer-links {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .hero {
        min-height: auto;
        padding: 2cm 0;
    }
    
    .btn {
        display: none;
    }
} 