/* RESET Y VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&display=swap');

:root {
    --primary-color: #00509d;
    --secondary-color: rgb(255, 206, 16);
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    background: var(--secondary-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: black;
    font-family: 'Oswald', sans-serif;
    font-style: normal;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-family: 'Oswald', sans-serif;
}

.nav-link {
    text-decoration: none;
    color: black;
    font-size: 1.1rem;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.4);
    border-bottom-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0s linear;
}

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

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 51, 69, 0.7);
    filter: brightness(0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 0rem;
    animation: fadeInUp 1s ease;
    text-shadow:
    1px 1px 2px rgba(0,0,0,0.4),
    0 0 10px rgba(45, 51, 69, 0.8);
}

.hero-content p {
    font-size: 1.4rem;
    font-style: italic;
    margin-top: 0rem;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow:
    2px 2px 4px rgba(0,0,0,0.4),
    0 0 10px rgba(45, 51, 69, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid white;
    
}

.btn-primary:hover {
    background: #e76f51;
    transform: translateY(-2px);
    
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-dark);
}

/* SECCIONES */
section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.contacto {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contacto h2 {
    margin-bottom: 1.5rem;
}
.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    font-size: 4rem;
}

/* NOTICIAS */

.noticias {
    background: var(--primary-color);
}

.noticias h2{
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.noticias p{
    color: #7d8597;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    font-style: italic;
}

.noticias-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.btn-noticias{
    background: white;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 0;
    border-radius: 1.5em;

}

.btn-noticias:hover {
    background: var(--secondary-color);  
    transform: translateY(-5px);
}
.btn-noticias:hover p {
    color: var(--primary-color);  
}

.btn-noticias i {
    animation: iconPulse 2s infinite;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.btn-noticias:hover i {
  animation-play-state: paused;
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 10px currentColor);
}


.btn-noticias h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* EVENTOS */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.evento-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.evento-date {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

.evento-card h3 {
    margin: 1rem 0 0.5rem 0;
    color: var(--primary-color);
}

/* CONTACTO */
/* FORMULARIO CONTACTO - RESPONSIVE MEJORADO */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.contact-image-wrapper {
    width: 100%;
}

.contact-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.contact-image:hover {
    transform: scale(1.02);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.form-control, .form-select {
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
    height: auto;
    width: 100%;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,80,157,0.15);
    background: white;
    transform: translateY(-2px);
}

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

.btn-submit {
    height: 60px;
    font-size: 1.15rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-color), #1e3a8a);
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,80,157,0.4);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-image {
        height: 280px;
        order: -1; /* Imagen primero en mobile */
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-control, .form-select {
        font-size: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .logo span { 
        transition: opacity 0.3s ease;
    }
    
    .logo {
        font-size: 0; /* Oculta texto sobrante */
    }
    
    .logo img {
        height: 35px;
        margin-right: 0;
    }
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contacto-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-form input,
.contacto-form textarea {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* FOOTER */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOTÓN SUBIR AL INICIO */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: var(--shadow);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

/* ✅ ESTILOS ESPECÍFICOS PARA EL FORMULARIO */
.contacto {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-form {
    background: white;
    padding: 1rem;
    border-radius: 25px;
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.form-control .form-select {
    font-size: 1.1rem;              /* TEXTO MÁS GRANDE */
    padding: 1rem 1.5rem;           /* PADDING AMPLIO */
    border: 2px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
    margin-bottom: 0.5rem;
    
}

.form-select:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 0.25rem rgba(0,123,255,0.15);
            background: white;
            transform: translateY(-2px);
            height: 62px !important;       /* LEVANTA AL HACER FOCUS */
        }

.btn-primary {
    background: linear-gradient(45deg, #2c5aa0, #1e3a8a);
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(44,90,160,0.4);
}

.info-item {
    text-align: center;
    padding: 0.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-item i {
    margin-bottom: 1rem;
}

/* Animación loading */
.btn:disabled {
    opacity: 0.8;
}

/* 🎨 ESTILOS CONTACTO MEJORADOS - REFERENCIA ADAPTADA */
.contact-image {
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), #1e3a8a);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,80,157,0.3);
    margin-bottom: 2.5rem;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

/* .contact-image::before REMOVIDO - Sin blur/sobre imagen */

.form-control, .form-select {

    font-size: 1.2rem !important;
    padding: 1.3rem 2rem !important;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.4s ease;
    background: #fafbfc !important;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 0.5rem;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.3rem rgba(0,123,255,0.15), inset 0 1px 4px rgba(0,0,0,0.05);
    background: white;
    transform: translateY(-3px);
    height: 68px !important;
}

.form-control {
    resize: vertical;
    font-family: inherit;
}

.form-select {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
            padding-right: 3.5rem;
        }

.btn-submit {
height: 70px;
            font-size: 1.25rem;
            font-weight: 600;
            border-radius: 20px;
            background: linear-gradient(45deg, #007bff, #0056b3);
            border: none;
            box-shadow: 0 12px 35px rgba(0,123,255,0.4);
            transition: all 0.4s ease;
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,123,255,0.5);
    background: linear-gradient(45deg, #0056b3, #004085);
}

/* 📍 INFO CONTACTO */
.info-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.info-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/*NOSOTROS*/
.nosotros-section {
    background: var(--primary-color);
    padding: 5rem 0;
}


/* 🎯 TÍTULOS */
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 991px) {
    .contact-image {
        height: 320px;
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem !important;
    }

    .contact-info-grid {
        grid-template-columns: 1fr; /* 1 columna mobile */
    }


}
