/* Mejoras de performance */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
}

/* Mejora de Core Web Vitals */
body {
    font-family: 'Lora', serif;
    font-display: swap;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fefefe;
    overflow-x: hidden;
    padding: 0 2rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    margin: 0 -2rem;
    position: relative;
}

/* Estilos para botones de autenticación */
.auth-buttons-top {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 1000;
}

.user-welcome {
    color: #2c3e50;
    font-size: 14px;
    margin-right: 10px;
    font-weight: 500;
    font-family: 'Lora', serif;
}

.auth-btn {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.login-btn, .account-btn {
    background-color: #3498db;
    color: white;
}

.register-btn {
    background-color: transparent;
    color: #3498db;
    border-color: #3498db;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.register-btn:hover {
    background-color: #3498db;
    color: white;
}

.account-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.logout-btn:hover {
    background-color: #c0392b;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-style: italic;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(45deg, #fff5f5 0%, #f0f8ff 50%, #f5f5dc 100%);
    position: relative;
    margin: 0 -2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    color: #495057;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.quote {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #a8dadc;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.quote p {
    font-style: italic;
    font-size: 1.1rem;
    color: #495057;
}

/* About Workshop Section */
.about-workshop {
    padding: 4rem 0;
    background-color: #ffffff;
}

.about-workshop h2 {
    font-family: 'Crimson Text', serif;
    font-size: 2.2rem;
    color: #495057;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 3px solid #a8dadc;
    padding-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
}

.workshop-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.workshop-description p {
    margin-bottom: 1.5rem;
    color: #6c757d;
    line-height: 1.8;
    font-size: 1.1rem;
}

.workshop-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-top: 3px solid #ffd166;
}

.detail-card h3 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.detail-card p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Instructor Section */
.instructor {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaf6 100%);
    margin: 0 -2rem;
}

.instructor h3 {
    font-family: 'Crimson Text', serif;
    font-size: 2.2rem;
    color: #495057;
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 3px solid #ffd166;
    padding-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
}

.instructor-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

.instructor-photo {
    text-align: center;
}

.instructor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.instructor-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.instructor-info h4 {
    font-family: 'Crimson Text', serif;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.instructor-title {
    color: #ffd166;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1.5rem !important;
    font-style: italic;
}

.instructor-info p {
    margin-bottom: 1rem;
    color: #6c757d;
    line-height: 1.8;
}

.instructor-qualities {
    margin-top: 1.5rem;
}

.quality {
    background: #f8f9fa;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 3px solid #a8dadc;
    font-size: 0.95rem;
}

.quality strong {
    color: #495057;
}

/* Location Section */
.location {
    padding: 3rem 0;
    background-color: #ffffff;
}

.location h3 {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    color: #495057;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 3px solid #a8dadc;
    padding-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
}

.location-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.location-info h4 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 1rem;
}

.location-info p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Activities Section */
.activities {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 0 -2rem;
}

.activities h3 {
    font-family: 'Crimson Text', serif;
    font-size: 2.2rem;
    color: #495057;
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 3px solid #a8dadc;
    padding-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.activity {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #a8dadc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.activity:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.activity h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.activity p {
    color: #6c757d;
    line-height: 1.6;
}

/* Enrollment Section */
.enrollment {
    padding: 4rem 0;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
}

.enrollment-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.enrollment h3 {
    font-family: 'Crimson Text', serif;
    font-size: 2.2rem;
    color: #495057;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #a8dadc;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.enrollment-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: #6c757d;
}

.enrollment-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    border-top: 3px solid #ffd166;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.benefit:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.benefit p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #6c757d;
}

.enrollment-action {
    margin-top: 2rem;
}

.enrollment-btn {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 30px;
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(73, 80, 87, 0.2);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
    min-width: 280px;
    letter-spacing: 0.5px;
}

.enrollment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(73, 80, 87, 0.3);
    background: linear-gradient(135deg, #3a4148 0%, #5a6169 100%);
}

.enrollment-btn:active {
    transform: translateY(0);
}

.enrollment-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;
}

.enrollment-btn:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 1.3rem;
    display: inline-block;
}

.btn-text {
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-block;
}

.enrollment-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: #495057;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    margin: 0 -2rem;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Botones flotantes */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    width: calc(100% - 40px);
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    border: none;
    cursor: pointer;
    font-family: 'Crimson Text', serif;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    margin-right: auto;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.scroll-top-btn {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    margin-left: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(73, 80, 87, 0.4);
    background: linear-gradient(135deg, #3a4148 0%, #5a6169 100%);
}

/* Animaciones sutiles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .workshop-content, .instructor-content, .activities-grid, .enrollment-content {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== RESPONSIVE DESIGN - MÓVILES ===== */
@media (max-width: 768px) {
    body {
        padding: 0 1rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    header, .hero, .instructor, .activities, footer {
        margin: 0 -1rem;
    }
    
    /* HEADER MÓVIL - SOLUCIÓN DEFINITIVA */
    header {
        padding: 100px 0 30px 0 !important; /* Espacio suficiente arriba */
    }
    
    .auth-buttons-top {
        position: absolute !important;
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        padding: 0 15px !important;
        width: calc(100% - 30px) !important;
        gap: 8px !important;
    }
    
    .user-welcome {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 8px !important;
        margin-right: 0 !important;
        font-size: 12px !important;
    }
    
    .auth-btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
        min-width: 90px !important;
        text-align: center !important;
    }
    
    .logo {
        font-size: 2.2rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .subtitle {
        font-size: 1rem !important;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .workshop-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .workshop-details {
        grid-template-columns: 1fr;
    }
    
    .instructor-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .enrollment-benefits {
        grid-template-columns: 1fr;
    }
    
    .enrollment-btn {
        min-width: 250px;
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .btn-text {
        font-size: 1.1rem;
    }
    
    .floating-buttons {
        width: calc(100% - 20px);
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    /* PANTALLAS MUY PEQUEÑAS */
    header {
        padding: 110px 0 25px 0 !important;
    }
    
    .auth-buttons-top {
        flex-direction: column !important;
        gap: 6px !important;
        top: 20px !important;
    }
    
    .auth-btn {
        width: 120px !important;
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
    
    .logo {
        font-size: 1.8rem !important;
    }
    
    .subtitle {
        font-size: 0.9rem !important;
    }
    
    .floating-buttons {
        bottom: 15px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
    }
    
    .floating-btn svg {
        width: 18px;
        height: 18px;
    }
}