/* =========================
   CONTENEDOR GENERAL
========================= */
.div-recursos {
    background-color: #c7b2dc52;
    padding: 2rem 3rem;
}

/* =========================
   GRID DE TARJETAS
========================= */
.div-grid-recursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(2rem, 4vw, 3rem);
}

/* =========================
   TARJETA
========================= */
.div-tarjeta {
    position: relative;

    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(
            135deg,
            rgba(0,181,226,0.35),
            rgba(140,44,136,0.45)
        ) border-box;

    border: 2px solid transparent;
    padding: 2rem;
    border-radius: 18px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;

    display: flex;
    flex-direction: column;
    height: 100%;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

/* Hover elegante */
.div-tarjeta:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 45px rgba(0,0,0,0.15),
        0 0 0 1px rgba(140,44,136,0.25);

    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(
            135deg,
            rgba(0,181,226,0.6),
            rgba(140,44,136,0.8)
        ) border-box;
}

/* Accesibilidad: foco teclado */
.div-tarjeta:focus-within {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(0,181,226,0.35),
        0 20px 45px rgba(0,0,0,0.15);
}

/* =========================
   BOTONES
========================= */
.div-tarjeta .wp-block-buttons {
    justify-content: center;
    margin-top: auto;
}

.div-tarjeta .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 1.2rem;
    padding: 0.75rem 1.6rem;

    border-radius: 14px;
    background: linear-gradient(135deg, #4caf50, #43a047);
    color: #fff;
    text-decoration: none;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

/* Hover botón */
.div-tarjeta .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76,175,80,0.35);
    background: linear-gradient(135deg, #43a047, #388e3c);
}

/* Click */
.div-tarjeta .wp-block-button__link:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Foco accesible */
.div-tarjeta .wp-block-button__link:focus-visible {
    outline: 3px solid rgba(0,181,226,0.45);
    outline-offset: 3px;
}

/* =========================
   ICONOS
========================= */
.icono-texto::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;

    background-color: var(--color-magenta01);
    color: var(--color-white);

    padding: 1rem;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 1rem;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

/* Microinteracción icono */
.div-tarjeta:hover .icono-texto::before {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(140,44,136,0.35);
}

/* Iconos específicos */
.icono-promocion::before { content: "\f4b9"; }
.icono-lealtad::before   { content: "\e4f7"; }
.icono-negocio::before  { content: "\f64a"; }

/* =========================
   USUARIOS SENSIBLES AL MOVIMIENTO
========================= */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/*DETALLES*/
.detalles summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1rem 1rem 3rem;
    color: var(--color-white);
    border-radius: 16px;
    background: linear-gradient(135deg, #8C2C88, #c96cc4);
    position: relative;
    transition: all .3s ease;
}
.detalles summary:hover {
    filter: brightness(1.1);
}
.detalles summary::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='8' y='8' width='84' height='84' rx='18' fill='none' stroke='white' stroke-width='4'/%3E%3Cline x1='50' y1='30' x2='50' y2='70' stroke='white' stroke-width='6' stroke-linecap='round'/%3E%3Cline x1='30' y1='50' x2='70' y2='50' stroke='white' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
    transition: transform .3s ease;
}
.detalles[open] summary {
    border-radius: 16px 16px 0 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.7);
}
.detalles[open] summary::before {
    transform: translateY(-50%) rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='8' y='8' width='84' height='84' rx='18' fill='none' stroke='white' stroke-width='4'/%3E%3Cline x1='30' y1='50' x2='70' y2='50' stroke='white' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.detalles .wp-block-list {
    padding: 1rem 2rem;
    margin: 0;
    background: #d5a3d357;
    border-radius: 0 0 16px 16px;
    animation: fadeIn .35s ease;
}
.detalles .wp-block-list li {
     line-height: 1.6!important;
}
    
.detalles .wp-block-list a {
    color: var(--color-black);
}

/* ANIMACIÓN */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.div-carrusel-sv-hgw, .div-carrusel-hgw {
    background-color: var(--color-celeste01);
    padding: 3rem 3rem 2rem 3rem;
}
.div-ancho-completo h4 {
    padding-bottom: 1rem;
}

.div-ayuda {
    background-color: var(--color-bg-footer);
    padding: 3rem;
    color: var(--color-white);
    text-align: center;
}
.div-ayuda h2 {
    color: var(--color-white);
}