* {
    box-sizing: border-box;
}

:root {
    --azul: #73b7ff;
    --azul-claro: #dff3ff;
    --verde: #dfffe8;
    --amarillo: #fff4bf;
    --rosado: #ffe3ef;
    --morado: #eee3ff;
    --gris: #f5f6fa;
    --blanco: #ffffff;
    --texto: #334155;
    --sombra: 0 8px 20px rgba(80, 120, 180, 0.18);
}

body {
    margin: 0;
    font-family: "Comic Sans MS", Arial, sans-serif;
    background: linear-gradient(180deg, #eaf7ff, #fff8e8);
    color: var(--texto);
}

.app-header {
    background: linear-gradient(135deg, #73b7ff, #9ddcff);
    color: white;
    text-align: center;
    padding: 24px 16px;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
    box-shadow: var(--sombra);
}

.app-header h1 {
    margin: 0;
    font-size: 34px;
}

.app-header p {
    margin: 8px 0 0;
    font-size: 18px;
}

.home,
.app {
    padding: 20px;
}

.home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.home-card {
    min-height: 220px;
    border-radius: 36px;
    text-decoration: none;
    color: var(--texto);
    font-size: 30px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra);
    border: 5px solid white;
}

.home-card span {
    font-size: 90px;
    margin-bottom: 12px;
}

.azul { background: var(--azul-claro); }
.verde { background: var(--verde); }
.gris { background: var(--morado); }

.btn-volver {
    display: inline-block;
    margin-bottom: 18px;
    background: white;
    padding: 14px 22px;
    border-radius: 22px;
    text-decoration: none;
    color: var(--texto);
    font-weight: bold;
    font-size: 20px;
    box-shadow: var(--sombra);
}

.frase-box {
    background: white;
    border-radius: 34px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: var(--sombra);
    border: 4px solid #dff3ff;
}

.frase-box p {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 14px;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.frase-box button,
.form-card button,
.escribir-box button {
    width: 100%;
    border-radius: 24px;
    padding: 18px;
    margin-top: 12px;
    background: #fff4bf;
    font-size: 24px;
    font-weight: bold;
    color: var(--texto);
    box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}

.categorias {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.cat-btn {
    border-radius: 28px;
    padding: 18px 10px;
    font-size: 20px;
    font-weight: bold;
    background: white;
    box-shadow: var(--sombra);
    border: 4px solid white;
}

.cat-btn.activa {
    background: #73b7ff;
    color: white;
    border-color: #ffffff;
}

.grid-tarjetas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.tarjeta {
    border-radius: 36px;
    min-height: 245px;
    padding: 16px;
    font-size: 30px;
    font-weight: bold;
    background: white;
    box-shadow: var(--sombra);
    border: 5px solid white;
    overflow: hidden;
}

.tarjeta img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    border-radius: 28px;
    margin-bottom: 12px;
}

.sin-imagen {
    height: 175px;
    font-size: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fbff;
    border-radius: 28px;
    margin-bottom: 12px;
}

.tarjeta:active,
.home-card:active,
.cat-btn:active,
button:active {
    transform: scale(0.96);
}

.escribir-box,
.form-card {
    background: white;
    border-radius: 34px;
    padding: 22px;
    box-shadow: var(--sombra);
    margin-bottom: 22px;
    border: 4px solid #ffffff;
}

textarea {
    width: 100%;
    min-height: 250px;
    border: 4px solid #dff3ff;
    border-radius: 30px;
    padding: 22px;
    font-size: 30px;
    resize: vertical;
    font-family: inherit;
}

input,
select {
    width: 100%;
    padding: 17px;
    margin: 10px 0;
    border-radius: 22px;
    border: 3px solid #d8e3f0;
    font-size: 22px;
    font-family: inherit;
}

label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-top: 14px;
    font-size: 18px;
}

.preview {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 30px;
    margin: 12px auto;
    display: block;
    border: 5px solid #fff4bf;
}

.oculto {
    display: none !important;
}

.lista-adulto {
    margin-top: 16px;
}

.item-adulto {
    background: #ffffff;
    border-radius: 26px;
    padding: 16px;
    margin-bottom: 14px;
    text-align: left;
    box-shadow: var(--sombra);
    border: 3px solid #eef5ff;
}

.item-adulto img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 20px;
    vertical-align: middle;
    margin-right: 12px;
}

.item-adulto button {
    width: 48%;
    border-radius: 18px;
    padding: 12px;
    margin-top: 10px;
    font-weight: bold;
    background: #dff3ff;
}

.menu-adulto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.menu-adulto a {
    background: white;
    border-radius: 24px;
    padding: 18px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--texto);
    font-size: 19px;
    font-weight: bold;
    box-shadow: var(--sombra);
}

.btn-flotante {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--sombra);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 32px;
}

@media (max-width: 900px) {
    .home {
        grid-template-columns: repeat(2, 1fr);
    }

    .categorias {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .app-header h1 {
        font-size: 28px;
    }

    .home {
        grid-template-columns: 1fr;
    }

    .home-card {
        min-height: 175px;
        font-size: 26px;
    }

    .home-card span {
        font-size: 72px;
    }

    .grid-tarjetas {
        grid-template-columns: 1fr;
    }

    .tarjeta {
        min-height: 215px;
        font-size: 27px;
    }

    .tarjeta img,
    .sin-imagen {
        height: 150px;
    }

    .frase-box p {
        font-size: 26px;
    }

    textarea {
        font-size: 26px;
        min-height: 220px;
    }

    .menu-adulto {
        grid-template-columns: 1fr;
    }
}