/* ======== ESTILOS GENERALES ======== */
body {
    margin: 0;
    font-family: "Arial", sans-serif;
    background: #f4f8ff;
    color: #222;
}

main {
    padding: 120px 20px 40px 20px;
    max-width: 1200px;
    margin: auto;
}

/* ======== HEADER ======== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    z-index: 1000;
}

header img.logo {
    height: 70px;
}

/* ======== MENÚ ======== */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    font-size: 18px;
    color: #1a3c7c;
    font-weight: bold;
    transition: 0.2s;
}

nav ul li a:hover {
    color: #0066ff;
}

/* ======== IDIOMAS ======== */
.idiomas {
    display: flex;
    gap: 15px;
}

.idiomas img {
    height: 28px;
    cursor: pointer;
}

/* ======== FOOTER ======== */
footer {
    background: #1a3c7c;
    color: white;
    padding: 25px 10px;
    margin-top: 60px;
    text-align: center;
}

.redes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.redes img {
    width: 32px;
}

/* ======== AGENDA LAYOUT ======== */
.calendario-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ======== CALENDARIO ======== */
#calendario {
    width: 65%;
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#mes-actual {
    text-align: center;
    color: #1a3c7c;
    font-size: 26px;
    margin-bottom: 20px;
}

.nav-mes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.nav-mes button {
    padding: 10px 20px;
    background: #e7efff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.nav-mes button:hover {
    background: #d1e1ff;
}

.dias {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.dias button {
    padding: 15px 10px;
    border: none;
    background: #f0f4ff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.dias button:hover {
    background: #cfe0ff;
}

.dias button.seleccionado-dia {
    background: #0066ff;
    color: white;
}

/* ======== CUADRO HORAS ======== */
#horas {
    margin-top: 25px;
    padding: 20px;
    background: #f8faff;
    border-radius: 14px;
}

.franja {
    padding: 12px 15px;
    border-radius: 10px;
    background: white;
    margin-bottom: 10px;
    border: 1px solid #d0d8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.franja:hover {
    background: #eef3ff;
}

.franja.seleccionada {
    background: #0066ff !important;
    color: white;
}

.franja.lleno {
    background: #ff4d4d !important;
    color: white;
    cursor: not-allowed;
}

.franja .plazas {
    font-size: 14px;
    opacity: 0.8;
}

/* ======== MENÚ DE PAGO ======== */
#pago {
    width: 30%;
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#pago h3 {
    color: #1a3c7c;
    margin-bottom: 20px;
}

#pago button {
    width: 100%;
    margin-bottom: 12px;
    padding: 15px;
    font-size: 16px;
    background: #e7efff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

#pago button:hover {
    background: #d1e1ff;
}

/* ======== RESUMEN GRÁFICO ======== */
#resumen {
    margin-top: 50px;
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#resumen h3 {
    color: #1a3c7c;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7ff;
    margin: 0;
    padding: 20px;
}

/* Layout general */
.agenda-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.cal-container {
    flex: 2;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Resumen */
.resumen-container {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.resumen-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.resumen-buttons button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

#vaciar {
    background: #ff4d4d;
    color: white;
}

#pagar {
    background: #0066ff;
    color: white;
}

/* Calendario */
#cal-mes {
    text-align: center;
    font-size: 26px;
    margin-bottom: 10px;
}

.cal-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cal-nav button {
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    background: #dbe5ff;
    cursor: pointer;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.cal-dia {
    background: #eef4ff;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
}

.cal-dia.selected {
    background: #0066ff;
    color: white;
}

/* Franjas */
.franjas {
    margin-top: 20px;
}

.franja {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #d7e2ff;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.franja:hover {
    background: #eef4ff;
}

.franja .hora {
    font-weight: bold;
}

.resumen-item {
    background: #eef4ff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}
