/* Variables de Color (Ajustadas para NAV Blanco) */
:root {
    --color-principal: #1f4287; /* Azul Oscuro (Profundidad/NAV Links) */
    --color-acento: #8ac926; /* Verde Lima (Crecimiento/Acento) */
    --color-fondo: #f8f9fa;
    --color-texto-oscuro: #343a40;
    --color-texto-claro: #ffffff;
    --color-cta: #ff6f00; /* Naranja para el Botón Principal */
}

/* Base, Tipografía y SCROLL SUAVE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* EFECTO DE DESPLAZAMIENTO SUAVE */
html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-texto-oscuro);
    line-height: 1.6;
    background-color: var(--color-fondo);
}

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

h1, h2 {
    font-weight: 700;
    margin-bottom: 15px;
}

h1 { font-size: 2.5em; color: var(--color-texto-claro); } /* Ajustado para el HERO (fondo oscuro) */
h2 { font-size: 2em; color: var(--color-principal); }

/* Iconos */
.icon {
    font-size: 3em;
    color: var(--color-acento);
    margin-bottom: 10px;
    display: block;
}

/* --- Header y Navegación (Ahora Blanco) --- */
header {
    background-color: var(--color-texto-claro); /* Fondo Blanco */
    padding: 15px 0;
    position: sticky; 
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo-placeholder {
    /* Aquí iría la imagen del logo. Usamos texto como placeholder */
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-principal); /* Logo en Azul para contraste */
}

.nav-links a {
    color: var(--color-principal); /* Links en Azul para contraste con fondo blanco */
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-acento);
}

/* --- Fondos Temáticos (Water Theme) --- */
.themed-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    position: relative;
    z-index: 1;
}

.themed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(31, 66, 135, 0.75); /* Overlay azul */
    z-index: -1;
}

/* Placeholder de Imagenes de Rio/Agua - DEBES REEMPLAZAR ESTAS URLs */
#hero {
    background-image: url('../img/hero.png'); 
}
#testimonios {
    background-image: url('../img/RiodelaPlataTech2.png');
}
#contacto {
    background-image: url('../img/testimonio.png');
}

/* --- Hero Section --- */
#hero {
    color: var(--color-texto-claro);
    text-align: center;
    padding: 120px 20px;
    min-height: 500px;
}

#hero h1, #hero p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-button {
    display: inline-block;
    background-color: var(--color-cta); 
    color: var(--color-texto-claro);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e55c00; 
    transform: translateY(-2px);
}

/* --- Secciones Generales --- */
section {
    padding: 60px 0;
}

#servicios, #proceso, #valor {
    text-align: center;
    background-color: var(--color-fondo); 
}

/* --- Grid de Servicios --- */
.servicios-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.servicio-card {
    background-color: var(--color-texto-claro);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(25% - 30px); 
    min-width: 250px;
    transition: transform 0.3s;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.servicio-card h3 {
    color: var(--color-principal);
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* --- Testimonios (Fondo Temático) --- */
#testimonios {
    color: var(--color-texto-claro); 
    text-align: center;
}

#testimonios h2 {
    color: var(--color-acento);
}

.testimonio-card {
    font-style: italic;
    padding: 30px;
    border-left: 5px solid var(--color-acento);
    margin: 30px auto;
    max-width: 700px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.15); 
    border-radius: 5px;
    color: var(--color-texto-claro);
}

.testimonio-card strong {
    display: block;
    margin-top: 10px;
    font-style: normal;
}

/* --- Proceso --- */
.proceso-pasos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.paso {
    flex: 1 1 200px;
    padding: 20px;
    text-align: center;
}

.paso-numero {
    background-color: var(--color-acento);
    color: var(--color-principal);
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- CTA Final y Formulario (Fondo Temático) --- */
#contacto {
    color: var(--color-texto-claro); 
    text-align: center;
}

#contacto h2 {
    color: var(--color-acento);
}

.form-container {
    max-width: 600px;
    margin: 30px auto;
    background-color: rgba(255, 255, 255, 0.95); 
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: var(--color-texto-oscuro);
}

/* --- Footer --- */
footer {
    background-color: var(--color-texto-oscuro);
    color: var(--color-texto-claro);
    padding: 40px 0; /* Más padding para acomodar el contenido */
    font-size: 0.9em;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Permite que las columnas se apilen en móviles */
    gap: 30px;
}

.footer-col {
    flex: 1 1 200px; /* Tamaño base de columna, se ajustará */
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--color-acento); /* Títulos de columna en color de acento */
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-col p, .footer-col a {
    color: var(--color-texto-claro);
    display: block; /* Cada elemento en su propia línea */
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

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

.social-links a {
    display: inline-block;
    font-size: 1.5em;
    margin-right: 15px;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Query para móvil */
@media (max-width: 600px) {
    .footer-grid {
        flex-direction: column;
        gap: 20px;
    }
    .footer-col {
        text-align: center;
    }
}

/* --- Estilo para el Logo en el NAV --- */
.logo-nav {
    height: 150px; /* Altura máxima para que el nav no se infle */
    width: auto; /* Mantiene la proporción */
    vertical-align: middle; 
}

/* Opcional: ajustar el tamaño si lo necesitas más grande o pequeño */
@media (max-width: 768px) {
    .logo-nav {
        height: 100px;
    }
}