/* ========================================
   Configuración Global y Variables
   ======================================== */
:root {
    --color-primario: #0d47a1; /* Azul oscuro y formal */
    --color-secundario: #2289dd; /* Azul sereno y claro */
    --color-texto: #333333; /* Gris oscuro para legibilidad */
    --color-texto-claro: #f4f4f4;
    --color-fondo: #ffffff;
    --color-fondo-seccion: #f9f9f9;
    --font-principal: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --whatsapp-color: #25D366;
    --facebook-color: #1877F2;
}

/* ========================================
   Reseteo Básico y Globales
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    line-height: 1.6;
}

body {
    font-family: var(--font-principal);
    color: var(--color-texto);
    background-color: var(--color-fondo);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--color-primario);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
ul { list-style-position: inside; margin-left: 1rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================
   Header y Navegación
   ======================================== */
.header {
    background: var(--color-fondo);
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.justify-left {
    text-align: justify;
    font-weight: 500;

}

.logo img {
    max-height: 40px;
    width: auto;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.nav a {
    text-decoration: none;
    color: var(--color-primario);
    font-weight: 600;
    transition: color 0.3s ease;
}
.nav a:hover { color: var(--color-secundario); }

/* ========================================
   Sección Hero (Bienvenida)
   ======================================== */
.hero {
    background-color: var(--color-fondo-seccion);
    padding: 4rem 0;
    text-align: center;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.subtitulo-hero {
    font-size: 1.2rem;
    color: var(--color-secundario);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-primario);
    color: var(--color-fondo);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.cta-button:hover { background-color: var(--color-secundario); }

/* ========================================
   Secciones Generales
   ======================================== */
.subtitulo {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    color: #555;
}

.section-nosotros {
    padding: 4rem 0;
    background: var(--color-fondo);
}
.vision-mision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.card-vm {
    background: var(--color-fondo-seccion);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--color-secundario);
}

.section-porque {
    padding: 4rem 0;
    background: var(--color-fondo-seccion);
}
.porque-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.porque-icon {
    max-height: 100px;
    margin: 0 auto 1rem auto;
}

.section-servicios {
    padding: 4rem 0;
    background: var(--color-fondo);
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.card-servicio {
    background: var(--color-fondo-seccion);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-servicio h4 { padding: 1rem 1.5rem 0 1.5rem; color: var(--color-primario); }
.card-servicio p,
.card-servicio ul { padding: 0 1.5rem; }
.card-servicio ul { margin-top: auto; padding-bottom: 1.5rem; }
.servicio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-primario);
    color: var(--color-texto-claro);
    padding: 3rem 0;
    margin-top: 2rem;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.footer a { color: var(--color-texto-claro); }
.footer-logo { text-align: right; }
.footer-logo img {
    max-height: 40px;
    width: auto;
    margin-bottom: 1rem;
    margin-left: auto;
}

/* ========================================
   Estilos de Formulario
   ======================================== */
.section-contacto {
    padding: 4rem 0;
    background: var(--color-fondo-seccion);
}

.form-container {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    background: var(--color-fondo);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primario);
}

.form-group input,
.form-group textarea {
    padding: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-principal);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secundario);
    box-shadow: 0 0 8px rgba(66,165,245,0.4);
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ========================================
   Estilos Botones Flotantes
   ======================================== */
.floating-buttons-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-button,
.facebook-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-button {
    background-color: var(--whatsapp-color);
}

.facebook-button {
    background-color: var(--facebook-color);
}

.whatsapp-button:hover,
.facebook-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.whatsapp-button svg,
.facebook-button svg {
    width: 30px;
    height: 30px;
    fill: white;
}

#inicio{
    background-image: url(./img/hero-3.png);
    background-size: 100%;
    background-repeat: no-repeat;

}


/* ========================================
   Responsividad (Móviles)
   ======================================== */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .header .container { flex-direction: column; gap: 1rem; }
    .nav ul { flex-wrap: wrap; justify-content: center; gap: 1rem; padding: 0 1rem; }
    .vision-mision, .porque-grid, .servicios-grid { grid-template-columns: 1fr; }
    .footer .container { flex-direction: column; text-align: center; }
    .footer-logo { text-align: center; }
    .footer-logo img { margin: 0 auto 1rem auto; }

    /* Ajustes para botones flotantes en móviles */
    .floating-buttons-container {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-button,
    .facebook-button {
        width: 55px;
        height: 55px;
    }
    #inicio{
    background-image: url(./img/hero-3.webp);

    background-size:cover;
    background-repeat: no-repeat;

    background-position: center;
}
}

/* ========================================
   Animaciones (Fade In)
   ======================================== */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}