/* Estilos Generales */
body {
    background-color: #141414;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 90px; /* Espacio para el header fijo */
}

a {
    color: #fff;
    text-decoration: none;
}



/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    z-index: 100;
    background-color: #141414; /* Fondo oscuro permanente */
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: #141414;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Aumentamos la altura del logo */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.nav-links a:hover {
    color: #b3b3b3;
}

.nav-links .fab {
    font-size: 1.5rem; /* Hacemos los iconos más grandes */
    vertical-align: middle; /* Alineamos verticalmente */
}

/* Sección Hero */
.hero {
    height: 70vh; /* Altura del banner */
    background: url('../images/banner.jpg') no-repeat center center;
    background-size: cover; /* Cubre el espacio, se ve más profesional */
}

.hero-text-section {
    background-color: #141414;
    padding: 40px 20px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn-main {
    background-color: #e50914;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-main:hover {
    background-color: #f40612;
}

.btn-main .fas {
    margin-right: 10px;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #141414, transparent);
    z-index: 1;
}

/* Filas de Servicios */
.services-rows {
    padding: 0 50px;
}

.service-row {
    margin-bottom: 40px;
}

.row-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Estilo de la barra de scroll para Webkit (Chrome, Safari) */
.row-content::-webkit-scrollbar {
    height: 8px;
}

.row-content::-webkit-scrollbar-track {
    background: #141414;
}

.row-content::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 4px;
}

.service-card {
    flex: 0 1 21%; /* Reducimos el tamaño de las tarjetas */
    background-color: #222;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, z-index 0.3s ease;
    cursor: pointer;
    position: relative;
}

.service-card:hover {
    transform: scale(1.1);
    z-index: 10;
}

.service-card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Mantiene un aspect ratio cuadrado */
    object-fit: cover;   /* Asegura que la imagen cubra el espacio sin distorsionarse */
}

.card-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.service-card .card-body {
    padding: 15px;
    background-color: #222;
}

.service-card p {
    font-size: 0.9rem;
    color: #ffffff; /* Aumentamos el brillo del texto */
    margin: 0;
}

/* Sección Sobre Nosotros */
.about-section {
    padding: 40px 50px;
    background-color: #000;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-section .row-title {
    border-bottom: 2px solid #e50914;
    padding-bottom: 10px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Sección de Carrusel de Videos */
.social-section {
    padding: 40px 0;
}

.social-section .row-title {
    text-align: center;
    border-bottom: 2px solid #e50914;
    padding-bottom: 10px;
    margin-bottom: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.video-carousel-container {
    width: 40%; /* Reducimos el ancho para mejor proporción */
    margin: 0 auto;
    overflow: hidden;
}

.video-carousel {
    display: flex;
    width: 300%; /* 100% por cada video */
    animation: slide-videos 15s infinite ease-in-out;
}

.video-slide {
    width: 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}

.video-slide iframe {
    width: 100%;
    height: 315px; /* Altura estándar para videos 16:9 */
}

@keyframes slide-videos {
    0%, 25% {
        transform: translateX(0%);
    }
    33%, 58% {
        transform: translateX(-33.333%);
    }
    66%, 91% {
        transform: translateX(-66.666%);
    }
    100% {
        transform: translateX(0%);
    }
}

.social-links-section {
    text-align: center;
    padding: 30px 20px;
}

.social-links-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.social-links-section .social-links a {
    font-size: 2.5rem;
    margin: 0 15px;
}

/* Pie de Página */
.footer {
    padding: 40px 50px;
    border-top: 1px solid #333;
    margin-top: 50px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer .social-links {
    margin-top: 20px;
}

.footer .social-links a {
    font-size: 1.8rem;
    margin: 0 15px;
    color: #808080;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #fff;
}

/* Sección de Contacto y Ubicación */
.contact-section {
    padding: 0 50px;
    margin-top: 50px;
}

.contact-section .row-title {
    border-bottom: 2px solid #e50914;
    padding-bottom: 10px;
}

.contact-content {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.map-container {
    flex: 2;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    border-radius: 10px;
}

.contact-info {
    flex: 1;
    background-color: #222;
    padding: 30px;
    border-radius: 10px;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #e50914;
    padding-bottom: 10px;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info .fas {
    color: #e50914;
    width: 20px;
}

/* Diseño Responsivo */

/* Tabletas */
@media (max-width: 992px) {
    .header, .services-rows, .contact-section {
        padding: 20px 30px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .service-card {
        flex: 0 0 48%;
    }
}

/* Estilos para la fila de servicios principales */
.row-content {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas se envuelvan */
    justify-content: space-around; /* Distribuye el espacio uniformemente */
    padding-bottom: 20px;
}

.row-content::-webkit-scrollbar {
    display: none; /* Ocultamos la barra de scroll que ya no es necesaria */
}

/* Móviles */
@media (max-width: 768px) {
    body {
        padding-top: 130px; /* Espacio para el header en móvil */
    }

    .hero {
        height: 30vh; /* Altura del banner en móvil */
        background-size: contain;
        background-color: #000; /* Fondo para rellenar */
    }

    .video-carousel-container {
        width: 90%;
    }

    .video-slide iframe {
        height: 200px;
    }

    .social-links-section {
        padding: 20px;
    }

    .about-content {
        flex-direction: column;
    }

    .header, .services-rows, .contact-section {
        padding: 15px 20px;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        padding: 0;
        flex-wrap: wrap; /* Permite que los enlaces se envuelvan */
        justify-content: center; /* Centra los enlaces */
    }

    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    
    .service-card {
        flex: 1 1 100%; /* La tarjeta ocupa todo el ancho */
        margin-right: 0;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-info {
        padding: 20px;
    }
}
