/* --- Importación de Fuente y Variables Globales --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root {
    --color-blue: #1E5DAE;
    --color-green: #35B34A;
    --dark-gray: #2c2c2c;
    --light-gray: #58595B;
    --white: #ffffff;
    --bg-light: #f4f4f4;
    --overlay-color: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* --- Estilos Landing Page (index.html) --- */
.landing-body {
    overflow: hidden; 
    height: 100vh;
}

#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: -1;
}

/* --- Header y Navegación (Común para todas las páginas) --- */
header {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

header .logo {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    display: inline-block;
    margin-bottom: 20px;
}

header .logo img {
    width: 200px;
    display: block;
}

header nav {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px); 
}

header nav ul {
    list-style: none;
}

header nav ul li a {
    text-decoration: none;
    color: var(--dark-gray); /* MODIFICADO: Cambiado a color oscuro para contraste */
    font-size: 1.3rem; 
    font-weight: 700; 
    padding: 10px 0; 
    display: block;
    transition: color 0.3s ease, transform 0.3s ease; 
    transform-origin: left center; 
}

header nav ul li a:hover {
    color: var(--color-green);
    transform: translateX(5px) scale(1.2); 
}

/* --- Cintillo de Marcas (Solo en Landing Page) --- */
.brand-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: eff5f1;
    padding: 1px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-block;
    animation: scroll-ticker 40s linear infinite;
}

.ticker-track img {
    height: 35px;
    margin: 0 40px;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ticker-track img:hover {
    opacity: 1;
    transform: scale(1.4);
}


@keyframes scroll-ticker {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* --- Estilos Páginas Internas (Nosotros, Servicios, Contacto) --- */
.main-content {
    padding: 150px 40px 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content h1 {
    font-size: 2.8rem;
    color: var(--color-blue);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--color-green);
    padding-bottom: 10px;
    display: inline-block;
}

.main-content h2 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-top: 40px;
    margin-bottom: 15px;
}

.main-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
}

/* --- Página de Servicios --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-light);
    border-left: 5px solid var(--color-blue);
    padding: 25px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.project-card h3 {
    color: var(--color-blue);
    margin-bottom: 10px;
}

/* --- Página de Contacto --- */
.contact-form {
    margin-top: 40px;
    max-width: 700px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

.submit-btn {
    background-color: var(--color-green);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #2ca03c;
}

/* --- Controles Globales (WhatsApp y Volumen) --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

#volume-control {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 40px;
    left: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 100;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#volume-control:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.8);
}

#volume-control svg {
    width: 24px;
    height: 24px;
}