/* Reset and General Styles */
body {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4; /* Fondo gris claro para el cuerpo general */
}

main {
    /* No debería tener un background-color aquí a menos que sea intencional */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden; 
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: #003366; /* Primary Blue */
    margin-bottom: 0.75em;
}

h1 {
    font-size: 2.8em;
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5em;
}

p {
    margin-bottom: 1em;
    font-size: 1em;
    color: #555;
}

a {
    color: #FFA500; /* Orange accent */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background: #fff; 
    color: #333; 
    padding: 15px 0;
    position: sticky; 
    top: 0;
    z-index: 1000;
    min-height: 80px;
    border-bottom: 4px solid #FFA500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.header-overlay-solid { /* No está activamente estilizado si el header es blanco */ }


header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* No es estrictamente necesario aquí pero no daña */
    z-index: 3; /* Si hubiera otros elementos que pudieran superponerse */
}

#logo {
    height: 60px;
    max-width: 250px;
    object-fit: contain;
}

header nav {
    margin-left: auto;
}

header nav a {
    color: #003366; 
    margin: 0 12px;
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

header nav a:hover {
    color: #FFA500;
    text-decoration: none;
}

.header-contact-buttons {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.header-cta {
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 500;
    margin-left: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}
.header-cta i {
    margin-right: 6px;
}

.header-cta.whatsapp-cta {
    background-color: #25D366;
}
.header-cta.whatsapp-cta:hover {
    background-color: #1DAE50;
    color: #fff;
    text-decoration: none;
}

.header-cta.phone-cta {
    background-color: #007bff;
}
.header-cta.phone-cta:hover {
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
}


/* Hero Content Section - RECOMENDACIÓN */
/* Hero Content Section - ESTILOS DEFINITIVOS PARA VIDEO DE FONDO */
#hero-content {
    position: relative; /* CLAVE: Para que los hijos posicionados absolutamente se basen en este */
    text-align: center;
    overflow: hidden;   /* CLAVE: Para contener el video si usa object-fit: cover */
    color: #fff;        /* Color de texto por defecto para esta sección */
    
    /* Define la altura de la sección del héroe. Ajusta estos valores. */
    padding-top: 100px;    
    padding-bottom: 100px; 
    min-height: 400px;   /* Altura mínima deseada */
    /* max-height: 450px;  Si quieres un límite superior estricto, descomenta y ajusta */
    
    /* NO background-color aquí si el video es el fondo. 
       Ponemos un fallback por si el video no carga */
    background-color: #000000; /* Negro como fallback */

    display: flex; 
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el .hero-text-container */
    align-items: center;     /* Centra horizontalmente el .hero-text-container */
}

.hero-background-video {
    position: absolute; /* CLAVE */
    top: 0; 
    left: 0;
    width: 100%;  
    height: 100%; /* CLAVE: Para llenar la altura de #hero-content */
    object-fit: cover; /* CLAVE: Llena el espacio, mantiene proporción, puede recortar */
    z-index: 1; /* Detrás del overlay y el texto */
}

.hero-overlay {
    position: absolute; /* CLAVE */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 25, 50, 0.70); /* Overlay (ajusta opacidad 0.0 a 1.0) */
    z-index: 2; /* Encima del video, debajo del texto */
}

#hero-content .hero-text-container { /* El div que contiene H1 y P */
    position: relative; /* CLAVE */
    z-index: 3; /* Encima del overlay y del video */
    width: 100%; /* Para que use el padding del .container global */
    max-width: 800px; /* Limita el ancho del texto para legibilidad */
    padding-left: 20px; /* Si el .container no está aplicando su padding */
    padding-right: 20px;/* Si el .container no está aplicando su padding */
    box-sizing: border-box; /* Importante si añades padding aquí */
}

#hero-content h1 {
    color: #fff; /* Asegura color blanco */
    font-size: 2.6em; 
    margin-top: 0; 
    margin-bottom: 20px; 
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7); 
}

#hero-content p {
    color: #f0f0f0; /* Asegura color casi blanco */
    font-size: 1.2em; 
    margin-bottom: 0; 
    line-height: 1.6;
    /* max-width ya está en .hero-text-container o .container */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6); 
}

/* --- MEDIA QUERIES PARA AJUSTAR EL HERO --- */
@media (max-width: 992px) { /* Tablets y móviles grandes en horizontal */
    #hero-content {
        padding-top: 80px;
        padding-bottom: 80px;
        min-height: 350px;
        /* max-height: 420px; Si usas max-height, ajústalo también */
    }
    #hero-content h1 {
        font-size: 2.4em;
    }
    #hero-content p {
        font-size: 1.15em;
    }
}

@media (max-width: 768px) { /* Móviles */
    #hero-content {
        padding-top: 70px; 
        padding-bottom: 70px; 
        min-height: 300px; 
        /* max-height: 380px; Si usas max-height, ajústalo también */
    }
    #hero-content h1 {
        font-size: 2.2em;
    }
    #hero-content p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) { /* Móviles muy pequeños */
    #hero-content {
        padding-top: 60px; 
        padding-bottom: 60px; 
        min-height: 250px; 
        /* max-height: 320px; Si usas max-height, ajústalo también */
    }
    #hero-content h1 {
        font-size: 2em;
    }
    #hero-content p {
        font-size: 1em;
    }
}
/* El botón .cta-button fue eliminado de esta sección */


/* About Intro Section */
#about-intro {
    padding: 60px 0; 
    background-color: #fff; /* Fondo blanco para esta sección */
    text-align: center;
}

.about-intro-text {
    font-size: 1.35em; 
    color: #333;
    max-width: 850px; 
    margin: 0 auto; 
    line-height: 1.75;
    font-weight: 400; 
}

/* Products Section */
#products {
    padding: 60px 0;
    background-color: #f9f9f9; /* Fondo gris claro para productos */
}

#products .container > p { /* Párrafo introductorio de productos */
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #444;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-card img {
    max-width: 90%;
    height: 180px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    border-radius: 5px;
}

.product-card h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
    font-weight: 600;
    color: #003366;
}

.product-card .description {
    font-size: 0.9em;
    color: #555;
    flex-grow: 1;
    margin-bottom: 20px;
    min-height: 50px;
}

.cta-button-product, /* Botón para productos y servicios */
#services .cta-button { /* Específico para el botón en servicios */
    display: inline-block;
    background: #FFA500; /* Naranja consistente con el de hero si lo hubiera */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 500; /* O bold si se prefiere */
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.cta-button-product:hover,
#services .cta-button:hover {
    background: #cc8400; /* Naranja más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}


/* Services Section */
#services {
    padding: 60px 0;
    background: #e9ecef; /* Fondo gris claro diferente para servicios */
    text-align: center;
}
#services p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}
.phone-contact {
    margin-top: 25px;
    font-size: 1.2em;
}
.phone-contact a {
    color: #003366;
    font-weight: bold;
}

/* Testimonials Section */
#testimonials {
    padding: 60px 0;
    background: #fff; /* Fondo blanco para testimonios */
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: #f9f9f9;
    border-left: 6px solid #FFA500;
    padding: 25px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: #444;
    font-size: 0.95em;
}

.testimonial-card h4 {
    text-align: right;
    color: #003366;
    font-size: 1em;
    font-weight: 600;
}

/* Footer */
footer {
    background: #222; /* Fondo oscuro para el footer */
    color: #ffffff; /* CAMBIO: Texto principal del footer ahora es blanco */
    text-align: center;
    padding: 40px 0;
}

footer p {
    margin-bottom: 8px;
    font-size: 0.9em;
    /* El color se hereda de 'footer' (blanco) o se puede especificar aquí si es necesario */
}

/* Enlaces generales dentro del footer (como el número de teléfono y email) */
footer a {
    color: #FFA500; /* Naranja para los enlaces, como estaba */
    transition: color 0.3s ease;
}
footer a:hover {
    color: #FFC966; /* Un naranja más claro al pasar el ratón, o puedes usar #fff si prefieres */
    text-decoration: underline;
}

/* Estilos para el texto de copyright y el crédito del desarrollador */
.copyright-text {
    /* Hereda el color blanco del 'footer' */
}

.developer-credit {
    display: inline-block; 
    margin-top: 5px; 
    font-size: 0.9em; 
    color: #cccccc; /* Un gris muy claro para el texto "Developed by", sutilmente diferente del blanco puro */
}

/* Estilos específicos para el enlace del desarrollador si quieres diferenciarlo más */
.developer-credit a {
    color: #FFA500; /* Naranja también para este enlace, para consistencia */
    font-weight: normal; /* O 'bold' si quieres que resalte más */
    text-decoration: none; 
}

.developer-credit a:hover {
    color: #FFC966; /* Naranja más claro al pasar el ratón */
    text-decoration: underline; 
}


/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}


/* Responsiveness */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    #logo {
        margin-bottom: 15px;
    }
    header nav {
        margin-left: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    header nav a {
        margin: 0 8px;
        display: inline-block;
        margin-bottom: 5px;
    }
    .header-contact-buttons {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }
    .header-cta {
        margin: 5px;
    }
    .products-grid {
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; } /* Ajustado para pantallas más pequeñas */
    #hero-content h1 { font-size: 2.4em; } /* Específico para el hero si es necesario */
    
    h2 { font-size: 1.8em; }

    #hero-content {
        padding-top: 80px; 
        padding-bottom: 80px; 
        min-height: 300px; /* Reducir min-height en móviles */
    }
    #hero-content p {
        font-size: 1.1em;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-card img {
        height: 170px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    header nav a {
        padding: 5px 0;
    }
    .about-intro-text {
        font-size: 1.15em;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}