/* Configuración General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f4;
    overflow-x: hidden;
}

/* Encabezado */
.main-header {
    background-color: #ffffff;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10; /* Asegura que el header quede sobre el carrusel */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    height: 60px;
    width: auto;
}

.title-area h1 {
    font-size: 1.8rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-area a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #e1306c;
    font-weight: bold;
    transition: color 0.3s ease;
}

.social-area a:hover {
    color: #833ab4;
}

.social-area i {
    font-size: 1.5rem;
    margin-right: 8px;
}

/* --- ESTILOS DEL CARRUSEL --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: auto; /* Cambiado de 100vh a auto */
    min-height: 300px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide picture {
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto; /* La imagen mantiene su proporción natural */
    max-height: 80vh; /* Para que no se haga infinita hacia abajo */
    object-fit: contain; /* En lugar de 'cover', 'contain' muestra la foto completa */
    background-color: #000; /* Fondo negro por si la foto no llena todo el ancho */
}

/* Ajuste de altura para móviles */
@media (max-width: 768px) {
    .carousel-container {
        height: 80vh; /* Un poco más alto en móvil para lucir fotos verticales */
    }
}

/* Textos sobre las imágenes */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 40px 80px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #ffffff;
    z-index: 3;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Botones de dirección (Flechas) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 4;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Indicadores (Puntitos) */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* Adaptación para Celulares */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .carousel-container {
        height: 60vh; /* En móviles es mejor reducir un poco la altura proporcional */
    }

    .carousel-caption h2 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-btn {
        padding: 10px 15px;
        font-size: 1.2rem;
    }
}