/* 🎨 Colores principales */
:root {
    --rosa-claro: #fddde6;
    --oro-rosa: #b76e79;
    --dorado: #ffd700;
    --blanco: #fff;
    --gris-suave: #f5f5f5;
    --texto: #3d3d3d;
}

/* 🌐 Estilos globales */
body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--gris-suave);
    color: var(--texto);
    margin: 0;
    padding: 0;
}

h2 {
    color: var(--oro-rosa);
    text-align: center;
    margin-top: 30px;
}

/* 🧁 Encabezado */
header {
    background: linear-gradient(to right, var(--rosa-claro), var(--oro-rosa));
    padding: 15px 30px;
    color: var(--blanco);
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 🍰 Formularios */
form {
    max-width: 500px;
    margin: 30px auto;
    background: linear-gradient(180deg, #fff6fb, #fbe3ec);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(245, 203, 220, 0.4);
    border: 2px solid #f7c6d9;
}

/* 🧁 Inputs y selects */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="month"],
select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 2px solid #f7c6d9;
    border-radius: 10px;
    font-size: 14px;
    background: #fffafc;
    color: #3d3d3d;
    box-shadow: inset 0 2px 4px rgba(245, 190, 220, 0.2);
    transition: border 0.3s ease;
}

input:focus,
select:focus {
    border-color: #f5a6c6;
    outline: none;
    box-shadow: 0 0 5px rgba(245, 166, 198, 0.5);
}

/* 💖 Botones */
button,
.btn {
    background: linear-gradient(145deg, #fbe3ec, #ffeef5);
    color: #b76e79;
    padding: 10px 18px;
    border: 2px solid #f7c6d9;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(245, 203, 220, 0.4);
}

button:hover,
.btn:hover {
    background: linear-gradient(145deg, #f5a6c6, #ed7eaa);
    color: white;
    border-color: #ed7eaa;
}

/* 📅 Calendario de clases */
table.calendar {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--blanco);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(245, 190, 220, 0.3);
    overflow: hidden;
}

table.calendar th,
table.calendar td {
    border: 1px solid var(--oro-rosa);
    padding: 10px;
    vertical-align: top;
    min-height: 120px;
}

table.calendar th {
    background: var(--oro-rosa);
    color: var(--blanco);
    font-weight: bold;
    text-align: center;
}

table.calendar td strong {
    color: var(--oro-rosa);
    display: block;
    margin-bottom: 6px;
}

/* 🎀 Caja de clase */
.class-box {
    background-color: var(--rosa-claro);
    border-left: 5px solid var(--oro-rosa);
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 13px;
    position: relative;
}

.class-box.reserved {
    background: #e0ffe0;
    border-left-color: #4caf50;
    font-weight: bold;
}

/* 🎬 Acciones */
.class-actions {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.class-box:hover .class-actions {
    display: flex;
}

.class-actions form {
    display: block;
}

/* Botones dentro de clases */
.btn.editar {
    background-color: #f9b3c2;
    color: black;
}

.btn.editar:hover {
    background-color: #d48cb4;
}

.btn.cancelar {
    background-color: #e57373;
}

.btn.cancelar:hover {
    background-color: #d64f4f;
}

/* Responsive: mostrar botones en móvil */
@media (max-width: 768px) {
    .class-actions {
        display: flex !important;
    }
}

/* 🎓 Tablas generales */
table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #f6c5d5;
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 2rem;
    background-color: #fffafc;
    box-shadow: 0 4px 8px rgba(245, 190, 220, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

table thead th {
    background: linear-gradient(90deg, #f6c5d5, #f9d6e5);
    color: #a66c9b;
    padding: 12px;
    font-size: 16px;
    border-bottom: 2px solid #f3aac1;
    text-align: left;
}

table td {
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #f3c6d3;
    color: #444;
}

table tbody tr:nth-child(even) {
    background-color: #fff1f5;
}

table tbody tr:hover {
    background-color: #fcdbe9;
}

table button {
    background-color: #f6b6d1;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(240, 140, 180, 0.4);
}

table button:hover {
    background-color: #d48cb4;
}

table .reserved {
    background-color: #ffe6f0;
    border-left: 4px solid #e09ec9;
    font-weight: bold;
}

/* 🌸 Menú principal */
.main-menu {
    background: linear-gradient(to right, #ffe4f0, #fff6fb);
    padding: 15px 0;
    border-bottom: 3px solid #f7c6d9;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 25px;
}

.main-menu li {
    display: inline;
}

.main-menu a {
    text-decoration: none;
    color: #b76e79;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #fbe3ec, #ffeef5);
    box-shadow: 0 4px 6px rgba(245, 203, 220, 0.5);
}

.main-menu a:hover {
    color: white;
    background: linear-gradient(145deg, #f5a6c6, #ed7eaa);
    box-shadow: 0 4px 8px rgba(231, 130, 175, 0.5);
}
