/* ===========================
   RESET BÁSICO
=========================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* ===========================
   HEADER
=========================== */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #111;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 40px;
}

/* Menú escritorio */
.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Botón hamburguesa (oculto en escritorio) */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* ===========================
   SLIDER
=========================== */

.slider {
    position: relative;
    overflow: hidden;
    height: 60vh;
    max-height: 600px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

.caption {
    position: absolute;
    bottom: 15%;
    left: 10%;
    color: white;
    text-shadow: 0 0 10px black;
    max-width: 400px;
}

.caption h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.caption p {
    font-size: 1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* ===========================
   SECCIONES
=========================== */

.seccion {
    padding: 40px 20px;
}

.seccion h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* Grid adaptable */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* o center */
    height: 100%; /* importante */
}


.card img {
    width: 100%;
    height: 180px; /* Ajusta a tu gusto */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card.full-image img {
    object-fit: contain;
    background: #fff; /* opcional, por si queda espacio alrededor */
}



/* Eventos */
.eventos .evento {
    background: white;
    padding: 15px;
    margin: 10px auto;
    max-width: 600px;
    border-radius: 8px;
}

/* Contacto layout */
.contacto-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contacto form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacto input,
.contacto textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #aaa;
}

.contacto button {
    padding: 10px;
    background: #111;
    color: white;
    border: none;
    cursor: pointer;
}

.mapa {
    background: #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   FOOTER
=========================== */

.footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ===========================
   MEDIA QUERIES
=========================== */

/* Tablets y abajo */
@media (max-width: 900px) {
    .slider {
        height: 50vh;
    }

    .slide img {
        height: 50vh;
    }

    .caption {
        bottom: 10%;
        left: 5%;
        max-width: 70%;
    }

    .caption h2 {
        font-size: 1.6rem;
    }

    .contacto-layout {
        grid-template-columns: 1fr;
    }
}

/* Móviles */
@media (max-width: 700px) {
    /* Mostrar hamburguesa, ocultar menú horizontal */
    .burger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 60px;
        right: 0;
        background: #111;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.open {
        max-height: 300px;
    }

    .nav ul {
        flex-direction: column;
        padding: 10px 20px 20px;
        gap: 10px;
    }

    .slider {
        height: 40vh;
    }

    .slide img {
        height: 40vh;
    }

    .caption {
        bottom: 8%;
        left: 5%;
        max-width: 90%;
    }

    .caption h2 {
        font-size: 1.3rem;
    }

    .slider-btn {
        font-size: 24px;
        padding: 6px;
    }

    
    .video-card {
        border-radius: 8px;
    }

    .video-card video {
        max-height: 250px;
    }

}

.video-card {
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.video-card video {
    width: 100%;
    display: block;
}
.social-links {
    text-align: right;
    margin: 20px 0;
}

.social-links a {
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

.social-links a:hover {
    color: #007bff;
}

.social-links img {
    width: 50px;      /* tamaño en escritorio */
    height: 50px;
    margin-left: 15px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* Versión responsiva para móviles */
@media (max-width: 768px) {
    .social-links img {
        width: 35px;   /* tamaño más pequeño en móviles */
        height: 35px;
    }
}

@media (max-width: 480px) {
    .social-links img {
        width: 28px;   /* aún más pequeño en pantallas muy pequeñas */
        height: 28px;
    }
}
