/* =========================================
   ESTILOS EXCLUSIVOS PARA EL HOME (index.html)
   ========================================= */

/* --- 1. HERO CAROUSEL --- */
.home-hero {
    position: relative;
    height: 90vh; /* Altura de pantalla casi completa */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    background: #000;
}

.home-hero .hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.badge-hero {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #000;
    font-weight: 600;
}

.home-hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}



.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Animación de pulso para el botón de donar */
@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.pulse-animation {
    animation: pulse-btn 2s infinite;
}
/* --- 2. GRID DE VIDEOS (PROYECTOS) --- */
.home-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.home-intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.big-text {
    font-size: 1.2rem;
    color: var(--text-light);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.video-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* --- AQUÍ ESTÁ EL CAMBIO IMPORTANTE --- */
.video-wrapper {
    position: relative;
    /* Quitamos el padding-bottom fijo para que no fuerce 16:9 si no quieres */
    /* O lo dejamos en 56.25% (16:9 standard) pero con fondo negro */
    padding-bottom: 56.25%; 
    height: 0;
    background: #000; /* Fondo negro elegante para los bordes */
}

.video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* CAMBIO CLAVE: 'contain' muestra el video entero sin recortar nada */
    object-fit: contain; 
}
/* --------------------------------------- */

.video-info {
    padding: 25px;
    text-align: center;
}

/* --- 3. BENTO CARDS (OTROS TRABAJOS) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Ajuste para centrar cuando son solo 2 tarjetas */
.bento-grid.two-columns {
    max-width: 900px;
    margin: 0 auto;
}

.bento-card {
    background: linear-gradient(135deg, var(--primary-blue), #2c3e50);    
    color: white;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden; /* Asegura que las imágenes no se salgan */
}
.bento-card h3 {
    margin-bottom: 15px;
    color: var(--white);
    font-size: 1.5rem;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon-header {
    margin-bottom: 20px;
}

.icon-header i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: block;
}

.highlight-card {
    background: linear-gradient(135deg, var(--primary-blue), #2c3e50);
}

.highlight-card h3, 
.highlight-card p,
.highlight-card i {
    color: var(--white) !important;
}

/* --- NUEVO: GALERÍA DENTRO DE LA TARJETA --- */
.bento-gallery {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.bento-gallery img {
    width: 48%; /* Para que quepan dos */
    height: 150px; /* Altura fija para uniformidad */
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.bento-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
}


/* --- 4. REDES SOCIALES (BOTONES) --- */
.justify-center {
    justify-content: center;
    margin-top: 20px;
}

/* =========================================
   SECCIÓN DE UBICACIÓN (MAPAS)
   ========================================= */

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.location-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 76, 129, 0.15);
}

/* Encabezado de la tarjeta (Info) */
.location-info {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.location-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.flag-icon {
    width: 25px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.location-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-info p i {
    color: var(--accent-cyan);
    width: 20px;
    text-align: center;
}

/* Contenedor del Mapa */
.map-container {
    height: 300px; /* Altura fija para el mapa */
    width: 100%;
    background: #eee; /* Color de carga */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block; /* Quita espacios extra */
    filter: grayscale(20%); /* Opcional: Desatura un poco el mapa para que se vea más elegante */
    transition: filter 0.3s;
}

.location-card:hover .map-container iframe {
    filter: grayscale(0%); /* Vuelve a color al pasar el mouse */
}

/* =========================================
   BOTONES DE REDES SOCIALES (PREMIUM)
   ========================================= */

.social-cta h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.social-cta p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.social-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Estilo Base del Botón Social */
.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700; /* Letra gruesa */
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    min-width: 200px; /* Para que tengan el mismo ancho */
    position: relative;
    overflow: hidden;
}

.btn-social i {
    font-size: 1.5rem; /* Icono grande */
    transition: transform 0.3s ease;
}

/* --- ESTILO INSTAGRAM (Degradado Oficial) --- */
.btn-social.instagram {
    background: #f09433; 
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.3);
}

/* --- ESTILO FACEBOOK (Azul Oficial) --- */
.btn-social.facebook {
    background: linear-gradient(to right, #1877F2, #3b5998);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.3);
}

/* --- INTERACCIÓN HOVER (AL PASAR EL MOUSE) --- */
.btn-social:hover {
    transform: translateY(-5px) scale(1.05); /* Sube y crece un poco */
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}

.btn-social:hover i {
    transform: rotate(15deg) scale(1.2); /* El icono gira y crece */
}

/* Efecto de brillo al pasar el mouse */
.btn-social::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-social:hover::after {
    left: 100%; /* Brillo pasa de izquierda a derecha */
}
.social-cta.text-center.mt-5{
    margin-top: 45px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .home-hero h1 { font-size: 2.5rem; }
    .videos-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .bento-gallery img { width: 100%; margin-bottom: 10px; }
    .bento-gallery { flex-direction: column; }
}