﻿body {
    background-image: url(https://images.unsplash.com/photo-1617791160536-598cf32026fb?q=80&w=1964&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-abstraccion {
    background-color: #7b1fa2;
}

.agency-bold {
    font-family: 'Agency FB', sans-serif;
    font-weight: bold;
    font-size: 20px;
}

.agency-bold2 {
    font-family: 'Agency FB', sans-serif;
    font-weight: bold;
    font-size: 25px;
}

.btn-horizontal1 {
    display: inline-block; /* que el botón se ajuste al contenido */
    padding: 12px 20px;
    white-space: normal; /* que el texto pueda hacer salto de línea */
    word-wrap: break-word; /* romper palabras largas si hace falta */
    max-width: 100%; /* no se salga del contenedor padre */
    box-sizing: border-box;
    text-align: left; /* texto alineado a la izquierda */
}




:root {
    --blur: 8px;
    --radius: 20px;
    --shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Fondo (backdrop) */
.intro-backdrop {
    position: fixed;
    inset: 0;
    background: radial-gradient(1200px 600px at 10% -20%, rgba(255,0,128,.25), transparent 60%), radial-gradient(1200px 600px at 110% 120%, rgba(0,200,255,.25), transparent 60%), rgba(10,10,10,.45);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

    .intro-backdrop.show {
        display: flex;
    }

    /* Opción NO bloqueante (permitir clics al fondo) */
    .intro-backdrop.nonblocking {
        pointer-events: none; /* clics pasan al fondo */
    }

        .intro-backdrop.nonblocking .intro-modal {
            pointer-events: auto; /* pero sí dentro del modal */
        }

/* Caja modal */
.intro-modal {
    width: min(900px, 95vw);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    color: #0f172a;
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 35%, #e0e7ff 100%);
    border: 2px solid rgba(255,255,255,.6);
    transform: translateY(12px) scale(.98);
    opacity: 0;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s;
    max-height: 95vh; /* No superar altura de pantalla */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.intro-backdrop.show .intro-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Encabezado */
.intro-header {
    position: relative;
    padding: 20px 72px 20px 20px;
    background: linear-gradient(90deg, #22d3ee, #a78bfa, #f472b6);
    color: white;
}

.intro-title {
    margin: 0;
    font: 800 24px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    letter-spacing: .2px;
    text-shadow: 0 1px 0 rgba(0,0,0,.15);
}

.intro-sub {
    margin: 8px 0 0;
    font: 500 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    opacity: .95;
}

.intro-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    color: white;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .15s, background .2s;
}

    .intro-close:hover {
        transform: rotate(8deg) scale(1.04);
        background: rgba(255,255,255,.3);
    }

/* Contenido */
.intro-body {
    padding: 18px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, 1fr);
    padding: 18px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, 1fr);
    overflow-y: auto; /* permite scroll vertical si el contenido excede */
}

/* Pie y aviso legal */
.intro-footer,
.intro-legal {
    flex-shrink: 0; /* nunca se achican al reducir la pantalla */
    padding: 12px 18px;
}

/* Media queries para tablet y móviles */
@media (max-width: 1024px) { /* tablets y pantallas medianas */
    .intro-modal {
        width: 90vw; /* ocupar casi todo el ancho */
        max-height: 90vh;
    }

    .intro-body {
        grid-template-columns: 1fr; /* columnas únicas en tablet y móvil */
    }

    .intro-header, .intro-footer, .intro-legal {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 700px) { /* móviles */
    .intro-header, .intro-footer, .intro-legal {
        padding: 8px;
        font-size: 13px;
    }
}

.intro-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: white;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
}

.intro-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fde68a, #fca5a5);
}

.intro-icon--brain {
    background: linear-gradient(135deg, #a7f3d0, #60a5fa);
}

.intro-icon--book {
    background: linear-gradient(135deg, #fbcfe8, #fef08a);
}

.intro-icon--bolt {
    background: linear-gradient(135deg, #c7d2fe, #86efac);
}

.intro-icon--gear {
    background: linear-gradient(135deg, #fda4af, #93c5fd);
}

.intro-card h3 {
    margin: 2px 0 6px;
    font: 800 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.intro-card p {
    margin: 0;
    font: 400 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: #334155;
}

.pill {
    display: inline-block;
    font: 700 11px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    color: white;
    box-shadow: 0 6px 14px rgba(99,102,241,.35);
    letter-spacing: .3px;
}

/* Pie */
.intro-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px 18px;
    justify-content: space-between;
    align-items: center;
}

.intro-actions {
    display: flex;
    gap: 10px;
}

.btn {
    cursor: pointer;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font: 700 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    transition: transform .12s ease, box-shadow .2s ease, filter .2s;
}

    .btn:focus {
        outline: 3px solid #22d3ee55;
        outline-offset: 2px;
    }

.btn-primary {
    background: linear-gradient(90deg, #34d399, #22d3ee, #a78bfa);
    color: white;
}

    .btn-primary:hover {
        filter: brightness(1.02);
        transform: translateY(-1px);
    }

.btn-ghost {
    background: white;
    color: #1f2937;
    border: 1px solid rgba(0,0,0,.08);
}

    .btn-ghost:hover {
        background: #f8fafc;
        transform: translateY(-1px);
    }

/* Ondas decorativas */
.wave {
    height: 9px;
    width: 100%;
    background: linear-gradient(90deg, #34d399, #22d3ee, #a78bfa, #f472b6, #fb7185, #facc15);
    background-size: 300% 100%;
    animation: flow 8s linear infinite;
}

@keyframes flow {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 300% 0;
    }
}

/* Ocultar si se desactiva por JS */
.hidden {
    display: none !important;
}





/* Bloquear selección de texto en los artículos */
.protegido {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

    /* Evitar arrastrar imágenes dentro de los artículos */
    .protegido img {
        pointer-events: none;
    }

article {
    border: 1px solid #ccc;
    padding: 15px;
    margin: 10px;
    border-radius: 8px;
    background: #f8f9fa;
}



/* Fondo de marca de agua */
.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* No bloquea clics */
    background-repeat: repeat;
    background-size: 300px 200px;
    opacity: 0.15;
    z-index: 9999;
    animation: moveWatermark 20s linear infinite;
}

/* Animación para que el fondo se mueva */
@keyframes moveWatermark {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 1000px;
    }
}

