/* Encabezado y menú fijos juntos */
.fb nav li.menu-right a {
    margin-right: 18px;
}
.fb nav li.menu-right a {
    padding-right: 0;
}
.fb nav li.menu-right a {
    padding-left: 0.8em;
    padding-right: 0.2em;
}
/* ===== Fuentes ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:ital,wght@1,700&family=Cooper+Hewitt:wght@700&display=swap');

/* ===== Base ===== */
html {
    background-color: #beb;
    transition: 1s ease;
    font-size: 14px;
}

.fb {
    width: 98%;
    max-width: 1024px;
    margin: 0 auto 150px;
    background-color: white;
    font-family: 'Montserrat', sans-serif;
}

/* ===== Header ===== */
.fb header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
}
.fb header img {
    width: 100%;
    margin-bottom: -5px;
    display: block;
}

/* ===== Nav ===== */
.fb nav {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Menú con flexbox para alinear el último ítem a la derecha */
.fb nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #9f9;
    display: flex;
    align-items: center;
    width: 100%;
}
.fb nav li.menu-right a {
    padding-left: 0;
    padding-right: 0;
}
.fb nav li {
    margin: 0;
    padding: 0;
}
.fb nav li.menu-right {
    margin-left: auto;
}
.fb nav li a {
    color: black;
    display: block;
    text-align: left;
    padding: 1.3em 1.2em;
    text-decoration: none;
    border-bottom: 5px solid #99ff99;
    transition: .5s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 400;
    background: none;
}
.fb nav li a:hover {
    background-color: #cdffcb;
    border-bottom: 5px solid white;
}
    color: black;
    display: block;
    text-align: left;
    padding: 1.3em 1.2em;
    text-decoration: none;
    border-bottom: 5px solid #99ff99;
    transition: .5s ease;
}
.fb nav li a:hover {
    background-color: #cdffcb;
}
.fb nav li a:hover,
.fb nav li a.sel {
    border-bottom: 5px solid white;
}
.fb nav li img {
    width: 20px;
    vertical-align: middle;
}

/* ===== Secciones generales ===== */
.fb section {
    clear: both;
    padding: 0 30px 35px;
}
.fb article {
    margin: 30px 0;
}

/* ===== Turnos ===== */
.fb #turnos-tittle {
    text-align: left;
}
.fb #tomorrow-turnos-tittle {
    text-align: right;
}
.fb #turnero {
    text-align: center;
}
.fb #turnero-tomorrow {
    text-align: right;
}

/* ===== Tarjeta de farmacia (reemplaza la imagen) ===== */
.farmacia-card {
    display: inline-block;
    background-color: #99ff99;
    border-radius: 10px;
    padding: 24px 36px;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 0.3em 0.2em rgba(0,0,0,0.16), 0 0.4em 0.6em rgba(0,0,0,0.23);
}

/* Nombre de la farmacia */
.farmacia-card .farmacia-nombre {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 2.2em;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.45);
    margin: 0 0 10px;
    line-height: 1.2;
    text-align: center;
}

/* Estilo especial para Farmacia Bandini */
.farmacia-card .farmacia-bandini-nombre {
    font-family: 'Cooper Hewitt', 'Cooper Black', 'Playfair Display', serif !important;
    font-size: 5.2em !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 4px 18px #FFD700, 0 1px 0 #FFD700, 2px 2px 0 #FFD700;
    margin-bottom: 12px;
    line-height: 1.1;
}

/* Dirección y teléfono */
.farmacia-card .farmacia-direccion,
.farmacia-card .farmacia-telefono {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-size: 1.25em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 4px 0;
    text-align: center;
}

/* Texto de carga */
.farmacia-cargando {
    color: #555;
    font-style: normal;
    text-align: center;
    margin: 0;
}

/* Versión pequeña — para "mañana" (alineada a la derecha, ~30% de ancho) */
.farmacia-card--pequena {
    max-width: 260px;
    padding: 10px 18px;
}
.farmacia-card--pequena .farmacia-nombre {
    font-size: 1.1em;
    white-space: nowrap;
}
.farmacia-card--pequena .farmacia-direccion,
.farmacia-card--pequena .farmacia-telefono {
    font-size: 1em;
}

/* ===== Tabla Ubicación ===== */
.fb #ubicacion table {
    width: auto;
    margin: auto;
    border-collapse: collapse;
}
.fb #ubicacion table th,
.fb #ubicacion table td {
    padding: 6px 12px;
}

/* ===== Shadows (Material Design) ===== */
.shadow {
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    box-shadow: 0 0.3em 0.2em rgba(0,0,0,0.16), 0 0.4em 0.6em rgba(0,0,0,0.23);
}

/* ===== Contacto / Formulario ===== */
#contacto {
    overflow: hidden;
}
#cargando {
    margin: -70px auto;
    width: 260px;
}
div.error { color: red; }
input.error, textarea.error { border: 1px solid red !important; }

form {
    width: 80%;
    margin: auto;
}
input[type=text],
input[type=email],
textarea {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
input[type=submit],
button[type=button] {
    background-color: #45877e;
    color: white;
    font-weight: bold;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
input[type=submit] {
    width: 100%;
}

/* ===== Splide slider ===== */
.splide__slide--cargando {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-style: italic;
    height: 310px;
}

/* ===== Responsive ===== */
@media screen and (max-width: 1000px) {
    .fb {
        width: 100%;
        margin: 0 auto 0;
    }
    .fb nav ul {
        padding: 0 10px;
    }
    .fb nav li a {
        padding: 1.3em 0.6em;
    }
    .fb section {
        padding: 0 20px 35px;
    }
    .fb article {
        margin: 10px 0;
    }
    form {
        width: 100%;
    }
    .farmacia-card--pequena {
        max-width: 260px;
    }
    .splide__slide--cargando {
        height: 190px;
    }
}
