﻿body {
    /*
    background: linear-gradient(135deg, #1565c0, #64b5f6);
        */
    background: linear-gradient(135deg, #1565c0, #42a5f5);
    font-family: 'Segoe UI', sans-serif;
}

.navbar {
    width: 100%;
    height: 90px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.35);
    box-shadow: 0 5px 20px rgba(0,0,0,.25);
    border-radius: 0 0 25px 25px;
    /*
    border-bottom: 5px solid #E53935;
        */
}


.logo {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
}

.rojo {
    color: #c62828;
}

.azul {
    color: #1565c0;
}

.img-vibrar {
    animation: vibrar 0.5s;
}

@keyframes vibrar {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    50% {
        transform: translateX(8px);
    }

    75% {
        transform: translateX(-8px);
    }

    100% {
        transform: translateX(0);
    }
}


.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.buscar-ficha {
    background: white;
    border-radius: 35px;
    padding: 40px 45px;
    margin: 45px auto;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    animation: aparecer .6s ease;
    position: relative;
    overflow: hidden;
}

    .buscar-ficha::before {
        content: "";
        position: absolute;
        top: -60px;
        right: -60px;
        width: 160px;
        height: 160px;
        background: linear-gradient(135deg,#1565c0,#42a5f5);
        opacity: .08;
        border-radius: 50%;
    }

    .buscar-ficha h2 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 24px;
        font-weight: 800;
        color: #1565c0;
        margin: 0 0 25px;
    }

        .buscar-ficha h2 i {
            font-size: 22px;
        }

.alerta-fundabiem .swal2-title {
    color: #1565c0;
    font-size: 28px;
}

.alerta-fundabiem .swal2-confirm {
    border-radius: 35px !important;
    border-radius: 35px !important;
    padding: 10px 35px !important;
    font-size: 16px;
}

.form-ficha {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ficha-ok div {
    margin-top: 8px;
}


.campo-icono {
    position: relative;
    flex: 1;
    min-width: 220px;
}

    .campo-icono i {
        position: absolute;
        left: 22px;
        top: 50%;
        transform: translateY(-50%);
        color: #90a4c8;
        font-size: 17px;
        pointer-events: none;
        transition: .3s;
    }

    .campo-icono:focus-within i {
        color: #1565c0;
    }

.input-ficha {
    width: 100%;
    padding: 16px 22px 16px 50px;
    border: 2px solid #e3ecf7;
    border-radius: 50px;
    font-size: 17px;
    font-family: inherit;
    color: #333;
    background: #f7faff;
    outline: none;
    transition: .3s;
    box-sizing: border-box;
}

    .input-ficha::placeholder {
        color: #9aa8bd;
    }

    .input-ficha:focus {
        border-color: #1565c0;
        background: white;
        box-shadow: 0 0 0 5px rgba(21,101,192,.12);
    }


.btn-buscar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg,#1565c0,#42a5f5);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(21,101,192,.35);
    transition: .3s;
}

    .btn-buscar i {
        font-size: 16px;
        transition: transform .35s ease;
    }

    .btn-buscar:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(21,101,192,.45);
    }

        .btn-buscar:hover i {
            transform: rotate(-15deg) scale(1.15);
        }

    .btn-buscar:active {
        transform: translateY(0);
    }

        .btn-buscar:active i {
            animation: girarLupa .5s ease;
        }

@keyframes girarLupa {
    0% {
        transform: rotate(0);
    }

    50% {
        transform: rotate(-25deg) scale(1.2);
    }

    100% {
        transform: rotate(0);
    }
}

.datos-ficha {
    margin-top: 20px;
}

.ficha-ok {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #a5d6a7;
    border-radius: 20px;
    padding: 16px 22px;
    font-size: 16px;
    animation: aparecer .4s ease;
}

    .ficha-ok i {
        font-size: 20px;
    }

.ficha-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ef9a9a;
    border-radius: 20px;
    padding: 16px 22px;
    font-size: 16px;
    font-weight: bold;
    animation: aparecer .4s ease;
}

    .ficha-error::before {
        content: "\f057";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 20px;
    }

/* TARJETAS */
.contenedor-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 35px;
    padding: 40px;
}

.contenedor-menu-objetos {
    width: 100%;
    background: #FDFBF5;
    /*      box-shadow: 0 4px 10px rgba(0,0,0,0.15);*/
    border-radius: 35px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}


.tarjeta-menu {
    position: relative;
    background: white;
    border-radius: 35px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding-bottom: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    transition: .4s;
    animation: aparecer .6s ease;
    flex: 1 1 300px;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarjeta-menu:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* CONTENEDOR IMAGEN */
.tarjeta-menu {
    --wrap-bg: radial-gradient(circle at 50% 35%, #eef4ff 0%, #f8fbff 60%, #ffffff 100%);
}


.imagen-menu {
    width: 85%;
    height: 220px;
    object-fit: contain;
    object-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: radial-gradient(circle at center, #eef4ff, #ffffff);
    margin: 0 auto;
    box-sizing: border-box;
}

.tarjeta-menu:hover .imagen-menu {
    transform: scale(1.08);
}

/* BADGE DE ESTADO (esquina) */
.estado-activo,
.estado-inactivo {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .3px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    backdrop-filter: blur(4px);
}

.estado-activo {
    background: rgba(232,245,233,.95);
    color: #2e7d32;
}

.estado-inactivo {
    background: rgba(255,235,238,.95);
    color: #c62828;
}

/* NOMBRE */
.nombre-menu {
    font-size: 26px;
    font-weight: 900;
    color: #1565c0;
    margin-top: 18px;
    padding: 0 20px;
}

.nombre-menu-objeto {
    width: fit-content;
    margin: 18px auto 0;
    padding: 8px 25px;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg,#c62828,#ef5350);
    color: #fff;
    border-radius: 15px;
}
/* DESCRIPCIÓN */
.descripcion-menu {
    padding: 10px 30px 5px;
    color: #667;
    font-size: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

/* PUNTOS */
.puntos-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;
    background: linear-gradient(135deg,#1565c0,#42a5f5);
    color: white;
    padding: 11px 28px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 18px;
    box-shadow: 0 5px 15px rgba(21,101,192,.35);
}

    .puntos-menu i {
        color: #ffd54f;
    }

/* BOTON INICIAR */
.btn-iniciar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px 28px 0;
    background: linear-gradient(135deg,#c62828,#ef5350);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(198,40,40,.35);
    transition: .3s;
}

    .btn-iniciar:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 12px 25px rgba(198,40,40,.45);
    }

    .btn-iniciar:active {
        transform: translateY(0) scale(1);
    }

    .btn-iniciar i {
        transition: transform .3s;
    }

    .btn-iniciar:hover i {
        transform: scale(1.2);
    }

/* RESPONSIVE */
@media(max-width:600px) {
    .logo {
        font-size: 30px;
    }

    .contenedor-menu {
        padding: 20px;
    }

    .buscar-ficha {
        padding: 30px 25px;
        margin: 25px 15px;
    }

    .form-ficha {
        flex-direction: column;
    }

    .btn-buscar {
        width: 100%;
    }
}
