/* 1. Variables */
:root {
    --azul-med: #0056b3;
    --celeste-claro: #e3f2fd;
    --texto: #333;
    --verde-wa: #25d366;
    --blanco: #ffffff;
}

/* 2. Base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--texto);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* 3. Navegación (Header) - SOLUCIÓN MENÚ */
nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 8% !important;
    background: var(--blanco);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex !important;           /* FUERZA HORIZONTAL */
    flex-direction: row !important;     /* FUERZA FILA */
    list-style: none !important;        /* QUITA PUNTOS */
    margin: 0 !important;
    padding: 0 !important;
    gap: 25px;
}

nav ul li {
    list-style: none !important;        /* QUITA PUNTOS EN LI TAMBIÉN */
    display: block;
}

nav ul li a {
    text-decoration: none !important;
    color: var(--azul-med) !important;
    font-weight: 700 !important;
    white-space: nowrap;
    transition: color 0.3s;
}

/* 4. Secciones y Márgenes - SOLUCIÓN TEXTO PEGADO */
#nosotros, #servicios, #contacto {
    display: block;
    padding: 80px 10% !important;      /* MARGEN LATERAL DEL 10% */
    max-width: 1200px;
    margin: 0 auto !important;         /* CENTRADO */
    box-sizing: border-box;            /* EVITA QUE EL PADDING AGRANDE EL ANCHO */
}

/* 5. Hero */
#hero {
    background: linear-gradient(rgba(0,86,179,0.8), rgba(0,86,179,0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 10%;
    margin-bottom: 150px;
}

.btn-turno {
    background: var(--verde-wa);
    color: white !important;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
}

/* 6. Listas dentro de Nosotros (para que no se vean como el menú) */
#nosotros ul {
    display: block !important;
    list-style: none !important;
    padding-left: 0;
}

#nosotros li {
    border-left: 4px solid var(--azul-med);
    padding-left: 15px;
    margin-bottom: 10px;
}

/* Esto le da "aire" a todo el contenido interno de una vez */
#nosotros, #servicios, #contacto {
    padding: 60px 10%; /* 10% de margen lateral automático */
    max-width: 1200px;
    margin: 0 auto;    /* Centra el bloque en la pantalla */
    margin-top: 50px;
    box-sizing: border-box; 
}

/* Alineación específica para los textos dentro de esas secciones */
#nosotros p, #nosotros h2, #nosotros h3 {
    text-align: left;
    margin-bottom: 20px;
    margin-top: 150px;

}

/* Si quieres que solo afecte al interior de las secciones */
section p, section ul {
    padding: 0 20px;
    margin-bottom: 1.5rem;
}

.contact-item i {
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: translateY(-10px); /* El icono sube sutilmente */
}