/* ==========================================
   CONFIGURACIÓN GENERAL
========================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: #f4f7fb;

    color: #1f2937;
}

a {
    text-decoration: none;
}


/* ==========================================
   CONTENEDOR PRINCIPAL
========================================== */

.app {
    min-height: 100vh;
}


/* ==========================================
   ENCABEZADO
========================================== */

.header {
    background: #001489;

    color: white;

    padding: 20px 40px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}

.header h1 {
    margin: 0;

    font-size: 28px;
}

.header p {
    margin: 5px 0 0;

    opacity: .9;

    font-size: 14px;
}


/* ==========================================
   CONTENIDO
========================================== */

.contenido {
    width: 95%;

    max-width: 1400px;

    margin: 30px auto;

}


/* ==========================================
   ENCABEZADO DE PÁGINA
========================================== */

.encabezado-pagina {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 25px;
}

.encabezado-pagina h2 {
    margin: 0 0 8px;

    color: #001489;

    font-size: 25px;
}

.fecha-seleccionada {
    margin: 0;

    color: #6b7280;

    font-size: 15px;
}

.fecha-seleccionada strong {
    color: #001489;
}


/* ==========================================
   BOTÓN REGRESAR
========================================== */

.boton-regresar {
    display: inline-block;

    background: white;

    color: #001489;

    border: 2px solid #001489;

    padding: 10px 16px;

    border-radius: 10px;

    font-weight: bold;

    transition: .2s;
}

.boton-regresar:hover {
    background: #001489;

    color: white;
}


/* ==========================================
   BOTÓN VER RENTAS
========================================== */

.boton-rentas {
    display: inline-block;

    background: white;

    color: #001489;

    padding: 11px 18px;

    border-radius: 10px;

    font-weight: bold;

    transition: .2s;

    white-space: nowrap;
}

.boton-rentas:hover {
    background: #eaf0ff;

    transform: translateY(-1px);
}


/* ==========================================
   CALENDARIO
========================================== */

.calendario {
    background: white;

    border-radius: 18px;

    padding: 25px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}


/* ==========================================
   HEADER CALENDARIO
========================================== */

.calendario-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}

.calendario-header h2 {
    margin: 0;

    color: #001489;

    font-size: 22px;
}

.flecha-calendario {
    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: #f0f3ff;

    color: #001489;

    font-size: 24px;

    font-weight: bold;

    transition: .2s;
}

.flecha-calendario:hover {
    background: #001489;

    color: white;
}


/* ==========================================
   DÍAS DE LA SEMANA
========================================== */

.dias-semana {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 8px;

    margin-bottom: 8px;
}

.dias-semana div {
    text-align: center;

    padding: 10px 5px;

    font-size: 12px;

    font-weight: bold;

    color: #6b7280;
}


/* ==========================================
   DÍAS DEL CALENDARIO
========================================== */

.dias-calendario {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 8px;
}


/* ==========================================
   DÍA
========================================== */

.dia-calendario {
    min-height: 75px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: #374151;

    transition: .2s;
}

.dia-calendario:hover {
    border-color: #001489;

    background: #eef2ff;

    transform: translateY(-2px);
}

.dia-calendario.seleccionado {
    background: #001489;

    color: white;

    border-color: #001489;
}

.dia-calendario.hoy {
    border: 2px solid #1da102;
}

.dia-calendario.seleccionado.hoy {
    border: 2px solid #1da102;
}


/* ==========================================
   NÚMERO DEL DÍA
========================================== */

.numero-dia {
    font-size: 20px;

    font-weight: bold;
}


/* ==========================================
   TEXTO HOY
========================================== */

.texto-hoy {
    font-size: 11px;

    margin-top: 4px;

    font-weight: bold;
}


/* ==========================================
   DÍAS VACÍOS
========================================== */

.dia-calendario.vacio {
    background: transparent;

    border: none;

    pointer-events: none;
}


/* ==========================================
   INSTRUCCIÓN
========================================== */

.instruccion {
    margin-top: 20px;

    padding: 15px 18px;

    background: #eef2ff;

    border-radius: 12px;

    color: #001489;

    text-align: center;
}

.instruccion p {
    margin: 0;

    font-size: 14px;
}


/* ==========================================
   CATÁLOGO DE INFLABLES
========================================== */

.catalogo {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(220px, 1fr));

    gap: 20px;
}


/* ==========================================
   TARJETA INFLABLE
========================================== */

.tarjeta-inflable {
    background: white;

    border-radius: 18px;

    padding: 15px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .08);

    text-align: center;

    transition: .2s;

    overflow: hidden;
}

.tarjeta-inflable:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .12);
}


/* ==========================================
   IMAGEN INFLABLE
========================================== */

.imagen-inflable {
    width: 100%;

    height: 170px;

    background: #f4f7fb;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    margin-bottom: 14px;
}

.imagen-inflable img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;
}


/* ==========================================
   ICONO
========================================== */

.icono-inflable {
    font-size: 55px;
}


/* ==========================================
   NOMBRE
========================================== */

.tarjeta-inflable h3 {
    margin: 8px 0 12px;

    color: #001489;

    font-size: 18px;

    min-height: 22px;
}


/* ==========================================
   ESTADOS
========================================== */

.estado {
    display: inline-block;

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: bold;

    margin-bottom: 12px;
}

.estado.disponible {
    background: #dcfce7;

    color: #166534;
}

.estado.rentado {
    background: #fee2e2;

    color: #991b1b;
}


/* ==========================================
   BOTÓN SELECCIONAR
========================================== */

.boton-seleccionar {
    display: block;

    width: 100%;

    padding: 11px 15px;

    background: #001489;

    color: white;

    border-radius: 10px;

    font-weight: bold;

    transition: .2s;
}

.boton-seleccionar:hover {
    background: #0575e6;
}

.boton-seleccionar.deshabilitado {
    background: #d1d5db;

    color: #6b7280;

    cursor: not-allowed;
}


/* ==========================================
   TARJETA BLOQUEADA
========================================== */

.tarjeta-inflable.bloqueado {
    opacity: .82;
}


/* ==========================================
   TABLA DE RENTAS
========================================== */

.tabla-container {
    width: 100%;

    background: white;

    border-radius: 18px;

    padding: 20px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, .08);

    overflow-x: auto;
}


/* ==========================================
   TABLA
========================================== */

.tabla-rentas {
    width: 100%;

    border-collapse: collapse;

    min-width: 1000px;
}

.tabla-rentas th {
    background: #001489;

    color: white;

    padding: 14px 12px;

    text-align: left;

    font-size: 14px;
}

.tabla-rentas td {
    padding: 14px 12px;

    border-bottom: 1px solid #e5e7eb;

    font-size: 14px;
}

.tabla-rentas tbody tr:hover td {
    background: #f8fafc;
}


/* ==========================================
   ESTADO DE RENTA
========================================== */

.estado-renta {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: bold;
}

.estado-renta.activa {
    background: #dcfce7;

    color: #166534;
}

.estado-renta.cancelada {
    background: #f3f4f6;

    color: #6b7280;
}


/* ==========================================
   BOTÓN CANCELAR
========================================== */

.boton-cancelar-renta {
    display: inline-block;

    background: #fee2e2;

    color: #b91c1c;

    padding: 8px 12px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: bold;

    transition: .2s;
}

.boton-cancelar-renta:hover {
    background: #dc2626;

    color: white;
}


/* ==========================================
   SIN ACCIÓN
========================================== */

.sin-accion {
    color: #9ca3af;

    font-size: 18px;
}


/* ==========================================
   SIN RENTAS
========================================== */

.sin-rentas {
    text-align: center;

    padding: 60px 20px;

    color: #6b7280;
}

.sin-rentas h3 {
    color: #001489;

    margin-bottom: 10px;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 800px) {

    .header {
        padding: 18px 20px;

        flex-direction: column;

        align-items: flex-start;
    }


    .contenido {
        width: 92%;

        margin: 20px auto;
    }


    .encabezado-pagina {
        flex-direction: column;

        align-items: flex-start;
    }


    .catalogo {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }


    .tarjeta-inflable {
        padding: 10px;
    }


    .imagen-inflable {
        height: 140px;
    }


    .calendario {
        padding: 15px;
    }


    .dias-calendario {
        gap: 5px;
    }


    .dia-calendario {
        min-height: 60px;
    }

}


@media (max-width: 500px) {

    .catalogo {
        grid-template-columns: 1fr;
    }


    .dias-semana {
        gap: 3px;
    }


    .dias-calendario {
        gap: 3px;
    }


    .dia-calendario {
        min-height: 55px;

        border-radius: 8px;
    }


    .numero-dia {
        font-size: 17px;
    }


    .header h1 {
        font-size: 23px;
    }

}