/* Variables para facilitar cambios de color globales */
:root {
    --primary-color: #0056b3; /* Azul corporativo */
    --secondary-color: #2c3e50; /* Gris oscuro para texto */
    --accent-color: #27ae60; /* Verde para botones/éxito */
    --bg-light: #f8f9fa;
    --text-white: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--bg-light);
}

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

/* Header y Navegación */
header {
    background: var(--text-white);
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 75px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem; 
    font-weight: 700;
    color: var(--secondary-color);
    margin-left: 15px;
    margin-top: 0;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-white);
    padding: 1.5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Botones */
.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-white);
    padding: 0.6rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s, background 0.3s;
}

.btn-primary:hover {
    background: #219150;
    transform: translateY(-2px);
}

/* --- Pasarela (Carrusel) con Fusión Pura --- */
#galeria {
    padding: 1.5rem 0 0 0;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: var(--text-white); 
}

.carousel-inner {
    display: grid; 
}

.slide {
    grid-area: 1 / 1; 
    opacity: 0; 
    transition: opacity 1.2s ease-in-out; 
    pointer-events: none; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; 
}

.slide.active {
    opacity: 1; 
    pointer-events: auto;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sección Soluciones */
#soluciones {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--text-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

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

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.card h3 {
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Contacto */
#contacto {
    background: var(--text-white);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--secondary-color);
}

.contact-list li strong {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--text-white);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--text-white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    body { font-size: 16px; }
    nav { flex-direction: column; }
    
    .logo-container {
        flex-direction: column;
        align-items: center;
    }

    .logo-img { height: 70px; }
    
    .logo-text { 
        font-size: 1.3rem; 
        margin-left: 0;
        margin-top: 5px;
    }
    
    nav ul { margin-top: 1rem; }
    nav ul li a { margin: 0 0.5rem; }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Resaltado del formulario en smartphones */
    .contact-form {
        background-color: #ffffff;
        padding: 1.5rem;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        border: 2px solid #eef2f7;
    }
}