/* --- 1. CONFIGURACIÓN Y VARIABLES --- */
:root {
    --primary-dark: #61784A;    /* Verde bosque oscuro */
    --accent-green: #61784A;     /* Verde medio */
    --soft-green: #b5c99a;       /* Verde claro */
    --bg-light: #f9fbf7;         /* Fondo grisáceo muy claro */
    --white: #ffffff;
    --text-main: #333333;
    --text-light: #666666;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset de márgenes y prevención de desbordamiento horizontal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; 
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- 2. HEADER Y BANNER (HERO) --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    /* La imagen se queda como respaldo por si el video no carga */
    background: linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0)),
                url('img/conocenos.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 0 8%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Evita que el video se salga si es muy grande */
}

/* Estilo para el video del Hero */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; /* Detrás del contenido */
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.8; /* Puedes bajarla a 0.5 si el video es muy brillante */
}

/* Capa de oscuridad extra (overlay) para que el video no tape el texto */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.322); /* Capa negra semitransparente */
    z-index: 2;
}

/* Subimos el z-index de la navegación y el contenido para que se vean sobre el video */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    position: relative;
    z-index: 10; /* Por encima del video y del overlay */
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    max-width: 650px;
    position: relative;
    z-index: 10; /* Por encima del video y del overlay */
}


.logo img {
    height: 80px;
    filter: brightness(0) invert(1); 
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px; /* SEPARACIÓN EXACTA */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 1.0rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.95;
}

.nav-links a:hover { opacity: 1; }

/* Diseño de botones de icono (Home, Talleres, Login, FAQ) */
.nav-icon-btn, .back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12); /* Fondo traslúcido */
    color: var(--white) !important;
    border-radius: 15px; /* Bordes suavizados estilo App */
    font-size: 1.6rem !important;
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(8px); /* Efecto cristal */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-icon-btn:hover, .back-arrow:hover {
    background: var(--primary);
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}


.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--primary-dark);
    padding: 10px 25px; 
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}
.btn-banner {
    color: #070707 !important; /* Aquí pones el tono de azul que prefieras */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* --- 3. SECCIÓN BIENVENIDA / GALERÍA --- */
.gallery-section {
    padding: 80px 8%;
    text-align: center;
}

.gallery-content h4 {
    color: var(--accent-green);
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.gallery-logo {
    height: 60px; 
    width: auto;
    margin-bottom: 30px;
    object-fit: contain;
}

.gallery-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.05rem;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 50px 0;
}

.galeria img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition);
}

.galeria img:hover { transform: translateY(-8px); }

/* --- 4. VALORES --- */
.values-section {
    padding: 80px 8%;
    background-color: var(--bg-light);
    text-align: center;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.value-item {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.value-icon {
    font-size: 2.8rem;
    color: var(--accent-green);
    margin-bottom: 15px;
}

/* --- 5. SECCIÓN BUSINESS (TU DISEÑO ORIGINAL MEJORADO EN ESPACIO) --- */
.business-section {
    padding: 10px 4%; /* Poco espacio arriba/abajo como pediste */
    display: flex;
    justify-content: center; 
    background-color: var(--white);
}

.container-small {
    max-width: 1400px; /* Largo hacia los lados */
    width: 100%;
}

.business-card {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--accent-green); /* Vuelve a tu color original */
    border-radius: 20px; 
    overflow: hidden; 
    min-height: 450px;
}

.business-content {
    flex: 1.1;
    padding: 50px;
    color: #ffffff;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.business-subtitle {
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.8;
}

.business-title {
    font-family: 'Poppins', sans-serif; /* Regresó a tu tipografía original */
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.business-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-info {
    background: #ffffff;
    color: var(--accent-green); /* Color original del botón */
    padding: 12px 30px;
    border-radius: 50px; /* Redondo original */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    width: fit-content;
    transition: var(--transition);
}

.btn-info:hover {
    background: var(--soft-green);
}

.business-image {
    flex: 1;
    min-width: 300px;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); 
    display: block;
}

/* --- 6. FOOTER ORIGINAL --- */
.site-footer {
    position: relative;
    overflow: hidden; /* Importante para que el video no se salga */
    background: linear-gradient(rgb(0, 0, 0), rgb(0, 0, 0)), 
                url('img/descarga (6).jfif'); /* Esta imagen queda de respaldo (fallback) */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 70px 8% 30px;
}

/* Estilo del video de fondo */
.footer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que el video cubra todo el espacio sin deformarse */
    z-index: 0;
    pointer-events: none; /* Para que el video no interfiera con los clics en los links */
    opacity: 0.5; /* Ajusta la opacidad para que el texto sea legible */
}

/* Asegurar que el contenido esté por encima del video */
.footer-container {
    position: relative;
    z-index: 1; 
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1); 
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.8rem;
    transition: 0.3s;
}

.social-icons a:hover { color: var(--soft-green); }

/* --- 7. RESPONSIVO --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 35px; }
    .nav-links { gap: 35px; font-size: 0.8rem; }
    .hero-content { text-align: center; align-items: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .galeria { grid-template-columns: repeat(2, 1fr); }
    .business-card { flex-direction: column; }
    .business-content { text-align: center; align-items: center; padding: 40px 20px; }
    .business-image { height: 250px; }
}

@media (max-width: 480px) {
    .galeria { grid-template-columns: 1fr; }
    .footer-container { 
        text-align: center; 
        justify-content: center; 
        flex-direction: column;
        align-items: center;
    }
}