/* ========================================
   Pueblo Latino - CSS Principal
   Versión 2.0
   ======================================== */

/* Reset y Variables */
:root {
    --primary-color: #0057a8;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --facebook-color: #1877f2;
    --whatsapp-color: #25d366;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 87, 168, 0.85) 0%, rgba(0, 61, 122, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-content h4 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Animaciones del Hero */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.animate-fade-in-delay-4 {
    animation: fadeIn 0.8s ease-out 0.8s both;
}

/* Controles del Slider */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-control:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
    left: 30px;
}

.slider-control.next {
    right: 30px;
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    width: 30px;
    border-radius: 6px;
}

/* Acceso Rápido */
.quick-access {
    padding: 40px 0;
    background-color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 5;
    margin-top: -50px;
}

.quick-access-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.quick-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.quick-btn-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #003d7a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.quick-btn-content h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.quick-btn-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Secciones */
.section-padding {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--secondary-color);
}

.mt-4 {
    margin-top: 2rem;
}

/* Cursos Destacados */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.curso-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.curso-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.curso-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.curso-card:hover .curso-image img {
    transform: scale(1.1);
}

.curso-nivel {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.curso-content {
    padding: 25px;
}

.curso-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.curso-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.curso-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Programas */
.programas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.programa-card {
    background-color: white;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.programa-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.programa-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #003d7a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.programa-card h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.programa-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Eventos */
.evento-destacado-card {
    display: flex;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.evento-imagen {
    flex: 0 0 45%;
    overflow: hidden;
}

.evento-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.evento-destacado-card:hover .evento-imagen img {
    transform: scale(1.05);
}

.evento-info {
    flex: 0 0 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.evento-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.evento-fecha {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.evento-fecha i {
    color: var(--primary-color);
}

.evento-descripcion {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
}

.evento-detalles {
    background-color: #f5f8ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.evento-detalles p {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.evento-detalles i {
    color: var(--primary-color);
    width: 20px;
}

.otros-eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.evento-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.evento-card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 25px;
}

.evento-fecha-small {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.evento-card-header h4 {
    font-size: 1.3rem;
    line-height: 1.4;
}

.evento-card-body {
    padding: 25px;
    color: var(--text-light);
    line-height: 1.6;
}

.evento-card-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* Revista */
.revista-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.revista-info {
    flex: 0 0 35%;
}

.revista-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.revista-descripcion {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.revista-datos {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.revista-dato {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    color: var(--text-dark);
}

.revista-dato i {
    color: var(--primary-color);
    font-size: 1.3rem;
    width: 25px;
}

.revista-preview {
    flex: 0 0 60%;
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.revista-preview iframe {
    border-radius: 10px;
}

/* Publicaciones */
.publicaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.publicacion-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.publicacion-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pub-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.pub-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.pub-header h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.pub-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.pub-content {
    padding: 20px;
    color: var(--text-dark);
    line-height: 1.6;
}

.pub-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.publicacion-card:hover .pub-image img {
    transform: scale(1.05);
}

.pub-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.btn-facebook {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--facebook-color);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
}

/* Contacto */
.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contacto-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #003d7a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contacto-item h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contacto-item p,
.contacto-item a {
    color: var(--text-light);
    text-decoration: none;
}

.contacto-item a:hover {
    color: var(--primary-color);
}

.contacto-form {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .hero-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }
    
    .hero-content h4 {
        font-size: 1.2rem;
    }
    
    .evento-destacado-card {
        flex-direction: column;
    }
    
    .evento-imagen {
        flex: 0 0 100%;
        height: 300px;
    }
    
    .evento-info {
        flex: 0 0 100%;
    }
    
    .revista-container {
        flex-direction: column;
    }
    
    .revista-info,
    .revista-preview {
        flex: 0 0 100%;
    }
    
    .contacto-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.3rem;
    }
    
    .hero-content h4 {
        font-size: 1.1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .slider-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-control.prev {
        left: 15px;
    }
    
    .slider-control.next {
        right: 15px;
    }
    
    .quick-access {
        margin-top: 0;
    }
    
    .quick-access-buttons {
        grid-template-columns: 1fr;
    }
    
    .cursos-grid,
    .programas-grid,
    .publicaciones-grid,
    .otros-eventos-grid {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}
