body { background:#f5f5f5; padding-top: 20px; }
.top { background:#003580; color:white; padding:20px;  margin-top: 10px;}

.header {
  height: auto;          /* deja que crezca con el contenido */
  min-height: 50px;
}

.nav-container {
  display: flex;
  align-items: center;   /* centra verticalmente logo, nav y toggle */
  justify-content: space-between;
  padding: 8px 20px;     /* reduce padding para que no desborde */
  height: 100%;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  white-space: nowrap;   /* evita el salto de línea */
  flex-shrink: 0;        /* evita que se comprima si el nav ocupa mucho */
}

.menu-toggle {
  flex-shrink: 0;        /* evita que se comprima o desplace */
  order: 3;              /* siempre al final */
}

.nav {
  flex: 1;               /* ocupa el espacio entre logo y toggle */
  display: flex;
  justify-content: flex-end;
}

.contenedor{max-width:1100px;margin:30px auto;padding: 0 20px;}
.card {
    background: white;
    flex: 1;               /* modificado — antes no tenías el valor */
    min-width: 0;          /* añadido — evita desbordamiento */
    margin-bottom: 0;      /* modificado — lo gestiona card-row */
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}
.card-info h2{margin:0;color:#003580;}
.precio{font-weight:bold;color:#0071c2;margin-top: 10px;}
.precio_finde{font-weight:bold;color:#0071c2;}
.formulario form{width:260px;max-width: 100%;}
.formulario input,button{width:100%;padding:10px;margin-top:8px;}
.formulario button{background:#0071c2;border:none;color:white;font-weight:bold;cursor:pointer;}
.formulario button:hover{background:#005fa3;}

.card-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
      width: 100%;
}

/* Permitir layout vertical dentro del día */
.flatpickr-day {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Wrapper vertical */
.fp-dia-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

/* Número del día */
.fp-dia-num {
    font-size: 14px;
    font-weight: 600;
}

/* Precio debajo */
.fp-dia-precio {
    font-size: 10px;
    color: #555;
}

/* Precio especial */
.fp-dia-precio.especial {
    color: #000000;
    font-weight: 0;
}

#resumen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9998;
}

#resumen-modal {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50vh;
    background: #fff;
    z-index: 9999;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,.3);
    transform: translateY(100%);
    transition: transform .3s ease;
    overflow-y: auto;
}

#resumen-modal.visible {
    transform: translateY(0);
}

.resumen-botones {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.resumen-botones button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    background:#0071c2;
    border:none;
    color:white;
    font-weight:bold;
}

.resumen-botones button:hover{background:#005fa3;}

.mensaje-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.mensaje-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    z-index: 2001;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.mensaje-modal button {
    margin-top: 15px;
    padding: 8px 15px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.mensaje-modal button:hover {
    background: #0056b3;
}

/* Imagen principal (la primera dentro del bloque flex) */
.card-info > div[style*="display: flex"] > img:first-child {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 6px;
}

/* Iconos pequeños (mantener 24x24 SIEMPRE) */
.card-info > div img[width="24"] {
    width: 24px !important;
    height: 24px !important;
    max-width: none;
    max-height: none;
}

/* Info bubble de pago diferido */

.info-bubble {
    position: relative;
    background: #e9f6f6;
    border: 1px solid #cfe7e7;
    color: #1f4f4f;
    padding: 14px 18px;
    border-radius: 6px;
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 320px;
}

/* Flechita superior */
.info-bubble::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 30px;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #cfe7e7 transparent;
}

.info-bubble::after {
    content: "";
    position: absolute;
    top: -7px;
    left: 30px;
    border-width: 0 7px 7px 7px;
    border-style: solid;
    border-color: transparent transparent #e9f6f6 transparent;
}


.select-container {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: absolute;
  bottom: 110%;
  left: 0;
  background: #333;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  display: none;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 10px;
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}


@media (max-width: 768px) {
    .card-row {
	flex-direction: column;
}


    .review-widget {
        width: 100%;
        min-width: unset;
    }

    .top {
        text-align: center;
        padding: 20px;
	margin-top: 25px;
    }

    .card {
        flex-direction: column;
    }

    .formulario {
        width: 100%;
        margin-top: 15px;
    }

    .card-info h2 {
        font-size: 18px;
    }

    .precio,
    .precio_finde {
        font-size: 14px;
    }

    .card-info > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center;
    }

    /* Imagen grande a 100% */
    .card-info > div[style*="display: flex"] > img:first-child {
        max-width: 100%;
    }

    /* Iconos siguen siendo 24x24 */
    .card-info > div img[width="24"] {
        width: 24px !important;
        height: 24px !important;
    }


}
