*{
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

h1{font-size: 4em;}
h2{font-size: 2em;}
h3{font-size: 1.7em;}
p{font-size: 1.25em;}
li{font-size: 1.2em;}
li{text-align: left;}


header {
    position: fixed; 
    top: 0;          
    width: 100%; 
    background: linear-gradient(to right, #000000, #042650);
    color: white;   
    display: flex;
    flex-direction: column; /* Apila elementos verticalmente */
    align-items: center; /* Centra horizontalmente */
    padding: 20px;
    
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacio entre enlaces */
    list-style: none;
    padding: 0;
    margin: 0;
   
}

.navbar a{
    padding: 8px 10px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size:x-large;
}

.navbar a:hover{
    background-color: rgba(255,255,255,0.12);
    color: #c7d4ff;
    transform: translateY(-2px);
}

/* Estilos del Logo */
.logo img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.ubicacion { 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

.ubicacion img { 
     width: clamp(40px, 10vw, 100px);
    height: auto;
}

.sucursales {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}

.sanjose iframe,
.doctormora iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: 0;
    border-radius: 12px;
}

 
.sanjose,
.doctormora {
    margin: 30px auto;
    max-width: 900px;
    padding: 10px;
}

.sucursales h2 {
    text-align: center;
    margin-bottom: 40px;
}

.sanjose h4,
.doctormora h4 {
    margin-bottom: 15px;
    font-size: 1.4em;
}


#final .container {
    padding: 20px;
    text-align: center;
    
}

.final h4{
    color: white;
    padding-bottom: 0px;
    margin-bottom: 2px;
    text-align: center;
    justify-content: center;
}

footer {
    background-color: #042650;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* CLAVE para móvil */
    gap: 15px;
    padding: 15px;
    color: white;
    text-align: center;
}

/* Logo */
.footer-logo img {
    height: 40px;
}

/* Items (teléfono y correo) */
.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Iconos */
.footer-item img {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {


    .sucursales {
        padding: 15px;
        height: auto;
    }

    .sanjose,
    .doctormora {
        margin: 20px auto;
        width: 100%;
    }

    .sanjose iframe,
    .doctormora iframe {
        width: 100%;
        height: 300px;
    }

    #final .container {
        padding: 20px;
    }

   footer {
        flex-wrap: wrap;
        text-align: center;
    }

     footer {
        flex-direction: column; /* Se apilan */
        gap: 10px;
    }

    .footer-item {
        justify-content: center;
    }

    .footer-logo img {
        height: 35px;
    }


header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px; /* vertical | horizontal */
    width: 100%;
    padding: 0;
    margin: 0;
}

.navbar li {
    list-style: none;
    flex: 0 1 auto;
}

.navbar a {
    display: block;
    font-size: 15px !important;
    padding: 4px 8px;
    white-space: nowrap; /* evita cortes raros */
}
}
