/* ======== VARIABLES GLOBALES Y RESET ======== */
:root {
    --primary-color: #1ED760; /* Verde vibrante de las capturas */
    --dark-bg: #000000;
    --card-bg: #181818;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --border-color: #2c2c2c;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

p.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 6rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: #fff;
}

.btn-secondary {
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: #000;
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

/* ======== HEADER / NAVEGACIÓN ======== */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px; /* Ajusta esto al tamaño de tu logo.png */
    width: 40px;
    border-radius: 6px; /* Para que coincida con el logo "3D" de la captura */
}

header nav ul {
    display: flex;
    gap: 2rem;
}

header nav ul a {
    font-weight: 500;
    padding: 5px 0;
}

header nav ul a:hover {
    color: var(--primary-color);
}

/* ======== SECCIÓN INICIO (HERO) - CON VIDEO DE FONDO ======== */
#inicio {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; /* Necesario para posicionar el video */
    overflow: hidden; /* Para asegurar que el video no se salga */
    padding: 0; /* Remove padding as content is centered by hero-content */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Detrás del contenido */
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Asegura que el video cubra el área */
    filter: brightness(0.4) blur(2px); /* Oscurece y desenfoca el video para la legibilidad del texto */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay adicional para más oscuridad */
    z-index: 1;
}

.hero-content {
    position: relative; /* Posiciona el contenido sobre el video */
    z-index: 2;
    color: var(--text-primary); /* Asegura que el texto sea blanco */
    padding: 0 2rem; /* Añade padding para móviles si es necesario */
}

#inicio h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

#inicio p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center; /* Centra los botones */
}

/* ======== SECCIÓN SERVICIOS ======== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    display: flex; /* Para organizar imagen, icono y texto */
    flex-direction: column;
    align-items: center; /* Centra el contenido en el card */
    text-align: center;
}

.service-image {
    width: 100%; /* La imagen ocupa todo el ancho disponible */
    height: 200px; /* Altura fija para la imagen */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Sombra para el efecto flotante */
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease; /* EFECTO MODERNO */
}

.service-card:hover .service-image img {
    transform: scale(1.05); /* Efecto zoom al pasar el ratón */
}


.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-card ul {
    text-align: left; /* Alinea la lista a la izquierda */
    width: 100%;
}

.service-card ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ======== SECCIÓN SOBRE NOSOTROS ======== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-text ul {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-text .icon-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(30, 215, 96, 0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.about-text li i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.about-text li div {
    display: flex;
    flex-direction: column;
}

.about-text li strong {
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

.about-text li span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Sombra para profundidad */
}

/* ======== SECCIÓN GALERÍA ======== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--card-bg);
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #333;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Sombra para el efecto flotante */
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease; /* EFECTO MODERNO */
}

/* EFECTO DE IMAGEN LLAMATIVO */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay-text {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 2;
}

/* Overlay sutil para mejorar legibilidad */
.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}


/* ======== SECCIÓN BLOG ======== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* EFECTO MODERNO */
}

/* EFECTO DE IMAGEN LLAMATIVO */
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.blog-card .img-wrapper {
    overflow: hidden; /* Necesario para el efecto zoom */
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease; /* EFECTO MODERNO */
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ======== FOOTER ======== */
footer {
    background-color: #050505;
    padding-top: 5rem;
    font-size: 0.95rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-col .logo {
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.footer-contact li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding: 2rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.social-icons a {
    font-size: 1.5rem;
    margin-left: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color); /* EFECTO HOVER */
}

/* ======== BOTÓN FLOTANTE WHATSAPP ======== */
.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}


/* ======== DISEÑO RESPONSIVO (PARA MÓVILES) ======== */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }

    .service-grid,
    .blog-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1; /* Pone la imagen arriba en móvil */
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 768px) {
    header nav ul {
        display: none; /* Oculta el menú en móviles (para un menú hamburguesa) */
    }
    
    #inicio h1 {
        font-size: 2.5rem;
    }

    #inicio p {
        font-size: 1rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .service-grid,
    .blog-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom .container {
        flex-direction: column-reverse;
        gap: 1.5rem;
        text-align: center;
    }

    .social-icons {
        margin-top: 1rem;
    }

    .social-icons a {
        margin: 0 0.75rem;
    }

    .whatsapp-fab {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 1rem;
        right: 1rem;
    }
}