/* Importar fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #0056b3; /* Azul oscuro del logo */
    --secondary-color: #00a8e8; /* Celeste vibrante para acentos */
    --dark-bg: #1a1a2e; /* Fondo oscuro para secciones tech */
    --light-bg: #f4f7f6; /* Fondo claro para contenido */
    --text-dark: #333333;
    --text-light: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Títulos */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary-color); }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* --- Header y Navegación --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.company-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    padding-bottom: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
}

/* --- Layout Principal --- */
main {
    flex: 1;
}

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

/* --- Secciones Hero (Portadas con imagen) --- */
.hero-section {
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
}

/* Superposición oscura para que el texto se lea sobre la imagen */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 4, 40, 0.7); /* Azul muy oscuro transparente */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 232, 0.4);
}

/* --- Estilos específicos de página --- */

/* Home - Placeholder del Chat */
.chat-placeholder {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.1); /* Efecto cristal */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.chat-placeholder p {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 0;
}

/* Servicios - Tarjetas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: var(--primary-color);
}

/* Contacto - Formulario */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-bg);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

footer p {
    margin: 0;
}

/* --- Responsive (Móvil) --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links li {
        margin: 0.5rem;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}
