﻿/* ==========================================
   HERO PRINCIPAL (OPTIMIZADO)
========================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('../images/fondo_hero.jpg');
    background-size: cover;
    background-position: center 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 2rem 1rem;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(140, 110, 74, 0.7), rgba(85, 109, 99, 0.7));
        z-index: 1;
        backdrop-filter: blur(1px);
    }

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInHero 1.2s ease-out forwards;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    margin-bottom: 1.5rem;
}

.contacto-btn {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    padding: 0.8rem 2rem;
    border: 2px solid #fff;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

    .contacto-btn:hover {
        background-color: #8c6e4a;
        border-color: #8c6e4a;
        color: #fff;
    }

.hero-subtext {
    background-color: #5c3f1b;
    color: #f5f0e8;
    width: 100%;
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    padding: 1rem;
    margin-top: 2rem;
    font-family: 'Cinzel', serif;
    position: relative;
    z-index: 2;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   BOTONES DESTACADOS Y DE CATEGORÍAS
========================================== */
.category-buttons {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    z-index: 2;
}

.category-btn {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    padding: 0.4rem 1.2rem;
    color: #322203;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .category-btn:hover {
        background-color: #8c6e4a;
        color: white;
    }

.destacado-btn {
    background: linear-gradient(90deg, #8c6e4a, #5c3f1b);
    color: #fff;
    font-size: 1.1rem;
    padding: 0.6rem 1.6rem;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: breathingPulse 2.5s ease-in-out infinite;
    transition: background 0.3s ease;
}

    .destacado-btn:hover {
        background: linear-gradient(90deg, #a37b50, #6e4b28);
    }

@keyframes breathingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 14px rgba(0,0,0,0.3);
    }
}

/* ==========================================
   SECCIONES GENERALES
========================================== */
.seccion-principal {
    background: linear-gradient(to bottom, #d6cfbb, #eae7dd);
    padding: 48px 20px;
    min-height: calc(100vh - 200px);
}

.titulo-seccion {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    color: #322203;
    text-align: center;
    margin-bottom: 2rem;
}

.separador-seccion,
.separador-linea {
    display: block;
    width: 80px;
    height: 2px;
    background-color: #8c6e4a;
    margin: -1rem auto 3rem auto;
    border-radius: 2px;
    opacity: 0.9;
}

/* ==========================================
   FORMULARIOS / AUTENTICACIÓN
========================================== */
.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 100%;
    margin: auto;
}

.custom-tabs .nav-link {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    color: #322203;
    border: 2px solid transparent;
    background: transparent;
    transition: all 0.3s ease;
}

    .custom-tabs .nav-link.active {
        background: #322203;
        color: #fff;
        border-color: #322203;
    }

    .custom-tabs .nav-link:hover {
        background: #8c6e4a;
        color: #fff;
        border-color: #8c6e4a;
    }

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    font-family: Arial, sans-serif !important;
    text-transform: none !important;
}

/* ==========================================
   RESPONSIVE GLOBAL (UNIFICADO)
========================================== */

/* Tablet */
@media (max-width: 992px) {
    .hero {
        min-height: 85vh;
        padding: 3rem 1.5rem;
    }

        .hero h1 {
            font-size: 2.4rem;
            line-height: 1.2;
        }

    .seccion-principal {
        padding: 2rem 1.2rem !important;
    }
}

/* Móvil general */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 2rem 1rem;
    }

        .hero h1 {
            font-size: 2rem;
        }

    .seccion-principal {
        padding: 1.5rem 1rem !important;
    }

    .titulo-seccion {
        font-size: clamp(1.6rem, 6vw, 2rem) !important;
        margin-bottom: 1.5rem;
    }

    .separador-seccion {
        width: 70px !important;
        height: 2px !important;
        margin: 0 auto 2rem !important;
    }

    .bloque-consulta,
    .taller-card,
    .docente-card {
        max-width: 90% !important;
        margin: 1.5rem auto !important;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
    }

        .hero h1 {
            font-size: 1.8rem;
        }

    .titulo-seccion {
        font-size: clamp(1.4rem, 7vw, 1.9rem) !important;
    }

    .bloque-consulta,
    .taller-card {
        padding: 1rem !important;
    }
}

/* Extra pequeño */
@media (max-width: 400px) {
    .hero {
        min-height: 80vh;
    }

        .hero h1 {
            font-size: 1.5rem;
        }
}




.enlace-olvidar {
    color: #322203;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Cinzel', serif;
}

    .enlace-olvidar:hover {
        color: #6b4b2c;
        text-decoration: underline;
    }
