/* ------------------------------------------------ */
/* === GLACIAL INDIFFERENCE FONT IMPORT CORREGIDA === */
/* ------------------------------------------------ */
@font-face {
    font-family: 'Glacial Indifference';
    /* Asegúrate de que tus archivos .otf estén en /fonts */
    src: url('fonts/Regular.otf') format('opentype'); 
    font-weight: normal;
    font-style: normal;
    font-display: swap; 
}

@font-face {
    font-family: 'Glacial Indifference';
    src: url('fonts/Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------------------------ */
/* === ESTILOS GENERALES Y RESET === */
/* ------------------------------------------------ */
body {
    margin: 0;
    padding: 0;
    font-family: 'Glacial Indifference', sans-serif; 
    color: #333; 
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: inherit;
}

.logo, .hero-slogan-image, .superpuesta-image, .btn-img, .text-image {
    display: block; 
    object-fit: contain; 
    max-width: 100%;
    height: auto;
}


/* ------------------------------------------------ */
/* === SECCIÓN 1: HERO === */
/* ------------------------------------------------ */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slogan-image {
    width: 60%; 
    max-width: 400px;
    height: auto;
    margin-top: 20px; 
    background-color: transparent; 
}

#video-bg-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #555; 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 250px; 
    height: 250px;
    border: none;
    border-radius: 0;
}


/* ------------------------------------------------ */
/* === SECCIÓN 2: TEXTO IMAGEN (ELEVAMOS TU HISTORIA...) === */
/* ------------------------------------------------ */
.text-as-image-section {
    padding: 30px 20px 0; 
    text-align: center;
}

.text-image {
    max-width: 800px;
    width: 100%;
    height: 150px; 
    margin: 0 auto 30px; 
}


/* ------------------------------------------------ */
/* === SECCIÓN 3: GRID DE VIDEOS CUADRADOS === */
/* ------------------------------------------------ */
.video-grid-section {
    background-color: #f8f8f8; 
    padding: 30px 20px 60px; 
    text-align: center;
}

.video-grid {
    display: grid;
    gap: 30px;
    margin-top: 0; 
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.video-card {
    background-color: white; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px; 
    overflow: hidden; 
    text-align: center; 
}

.video-description {
    padding: 15px;
    font-size: 0.9em;
    color: #666;
    line-height: 1.6; 
}

.video-thumbnail {
    position: relative; 
    width: 100%;
    padding-bottom: 100%; 
    background-color: black; 
    overflow: hidden; 
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.video-title {
    position: absolute;
    bottom: 15px; 
    left: 15px; 
    color: white; 
    font-size: 1.3em;
    font-weight: bold;
    z-index: 5; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
    text-align: left;
}


/* ------------------------------------------------ */
/* === SECCIÓN 4: FOOTER CON BOTONES CASA (^) === */
/* ------------------------------------------------ */
.footer-section {
    position: relative;
    background-image: url('assets/ventana.webp'); 
    background-size: cover; 
    background-position: center; 
    padding: 50px 20px; 
    min-height: 400px; 
    overflow: hidden;
}

.footer-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.superpuesta-image {
    width: 600px; 
    height: 600px;
    margin-bottom: 30px;
}

/* Configuración para la separación amplia en escritorio (Flexbox) */
.button-house-container {
    display: flex;
    justify-content: space-between; 
    align-items: flex-end; 
    width: 100%;
    max-width: 800px; 
    position: relative;
    padding: 50px 0 0; 
    box-sizing: border-box;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform 0.2s; /* Animación de los íconos de redes */
    margin: 0; 
    min-height: 60px;
}

.btn:hover {
    transform: translateY(-5px); /* Efecto hover de los íconos de redes */
}

.btn-left, .btn-right {
    width: 90px;
    height: 90px;
    margin-top: 60px; 
}

.btn-contact {
    position: absolute; 
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #42977a;
    color: white;
    /* 💡 CORRECCIÓN FINAL: Aumentamos el padding para hacerlo más largo */
    padding: 15px 40px; 
    font-weight: bold;
    z-index: 20;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border-radius: 50px; 
    transition: none; /* Eliminamos la animación */
}

.btn-contact:hover {
    transform: translateX(-50%); /* Mantiene el botón fijo y centrado al hacer hover */
}

.btn-img {
    width: 70px; 
    height: 70px;
}

.footer-info {
    color: white; 
    text-align: center;
    margin-top: 50px; 
    font-size: 0.9em;
    opacity: 0.7; 
}

.footer-info p {
    margin: 5px 0; 
}

/* ------------------------------------------------ */
/* === ADAPTABILIDAD MÓVIL (Responsiveness) === */
/* ------------------------------------------------ */
/* ------------------------------------------------ */
/* === ADAPTABILIDAD MÓVIL (Responsiveness) === */
/* ------------------------------------------------ */
@media (max-width: 768px) {
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .button-house-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        /* 💡 CORRECCIÓN MÓVIL: Aumentamos el padding superior total del contenedor */
        padding-top: 100px; /* Subimos de 60px a 100px para dar espacio al botón CONTACTO */
    }
    
    .btn-contact {
        top: 0;
        position: absolute; 
    }

    .btn-left, .btn-right {
        margin: 10px 0; 
        width: 80px; 
        height: 80px;
        margin-top: 0; 
    }
    
    .btn-img {
        width: 60px;
        height: 60px;
    }
    
    .btn-left {
        order: 2; 
    }
    
    .btn-right {
        order: 3;
    }
}