/* 🌞 LIGHT MODE — Default */
.acordeon-detalles {
    margin-bottom: 28px;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.acordeon-detalles[open] {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.acordeon-detalles summary {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 18px 20px 18px 48px;
    cursor: pointer;
    position: relative;
    user-select: none;
    color: #333;
    background: linear-gradient(to right, #fafafa, #ffffff);
    transition: background 0.25s ease;
    list-style: none;
    outline: none;
}

.acordeon-detalles summary:hover {
    background: #f0f0f0;
}

.acordeon-detalles summary::-webkit-details-marker {
    display: none;
}

.acordeon-detalles summary::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #777;
    border-bottom: 2px solid #777;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.25s ease;
}

.acordeon-detalles[open] summary::before {
    transform: translateY(-50%) rotate(135deg);
}

.acordeon-contenido {
    padding: 20px 22px;
    animation: fadeSlide 0.35s ease;
      display: grid;
        grid-template-columns: repeat(4,1fr);
        place-items: start center;
        gap: 20px 20px;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.caja-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
    transition: transform 0.2s ease;
    flex-direction: column;
}
.caja-item a{
    text-decoration: none;
}
.caja-item:last-child {
    border-bottom: none;
}

.caja-item:hover {
    transform: translateX(4px);
}

.caja-item figure {
    margin: 0;
    max-width: 110px;
    flex-shrink: 0;
    padding-bottom: 15px;
}

.caja-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.caja-texto h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #222;
    font-weight: 600;
    text-decoration: none;
}

.caja-texto h4 {
    margin: 4px 0 10px;
    color: #666;
    font-size: 0.98rem;
    font-weight: 500;
     text-decoration: none;
}

.caja-texto p {
    margin: 0;
    line-height: 1.52;
    color: #555;
     text-decoration: none;
}

/* 🌙 DARK MODE — Auto detect */
@media (prefers-color-scheme: dark) {

    .acordeon-detalles {
        background: #1c1c1c;
        border: 1px solid #2e2e2e;
        box-shadow: 0 4px 14px rgba(0,0,0,0.45);
    }

    .acordeon-detalles[open] {
        box-shadow: 0 6px 22px rgba(0,0,0,0.6);
    }

    .acordeon-detalles summary {
        color: #e7e7e7;
        background: linear-gradient(to right, #232323, #1c1c1c);
    }

    .acordeon-detalles summary:hover {
        background: #262626;
    }

    .acordeon-detalles summary::before {
        border-right: 2px solid #bbb;
        border-bottom: 2px solid #bbb;
    }

    .acordeon-detalles[open] summary::before {
        border-color: #fff;
    }

    .acordeon-contenido {
        background: #141414;
        border-top: 1px solid #2a2a2a;
    }

    .caja-item {
        border-bottom: 1px solid #2a2a2a;
    }

    .caja-item:hover {
        background: rgba(255,255,255,0.05);
        border-radius: 12px;
    }

    .caja-item img {
        box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    }

    .caja-texto h3 {
        color: #f2f2f2;
    }

    .caja-texto h4 {
        color: #bbbbbb;
    }

    .caja-texto p {
        color: #d0d0d0;
    }
}
