/* =========================
   BASE VISUAL Y TIPOGRAFÍA
   ========================= */

:root {
    --color-fondo-principal: #f3f4f6;
    --color-texto-principal: #111827;
    --color-texto-secundario: #4b5563;
    --color-azul-base: #2563eb;
    --color-azul-oscuro: #1e40af;
    --color-azul-claro-fondo: #eff6ff;
    --color-verde-base: #22c55e;
    --color-verde-oscuro: #166534;
    --color-rosa-base: #ec4899;
    --color-rosa-oscuro: #be185d;
    --color-amarillo-base: #facc15;
    --color-amarillo-fondo: #fefce8;
    --color-blanco: #ffffff;
}

/* Reset suave */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-fondo-principal);
    color: var(--color-texto-principal);
}

/* =========================
   CABECERA Y NAVEGACIÓN
   ========================= */

.site-header {
    background: var(--color-blanco);
    border-bottom: 2px solid rgba(37, 99, 235, 0.15);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    color: var(--color-azul-oscuro);
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-nav a {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-azul-oscuro);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.06);
    transition: background 0.2s ease, color 0.2s ease;
}

.header-nav a:hover {
    background: rgba(37, 99, 235, 0.14);
    color: var(--color-azul-base);
}

/* =========================
   HERO / INTRODUCCIÓN
   ========================= */

.hero-section {
    background: linear-gradient(to bottom, #e5e7eb, #f9fafb);
    padding: 32px 16px 24px;
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
}

.hero-content h1 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.9rem;
    color: var(--color-azul-oscuro);
}

.hero-content p {
    margin: 6px 0;
    color: var(--color-texto-secundario);
    line-height: 1.5;
}

.hero-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 4px solid var(--color-azul-base);
    background: rgba(37, 99, 235, 0.06);
}

/* =========================
   SECCIONES GENERALES
   ========================= */

.section-block {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
}

.section-block h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--color-azul-oscuro);
}

.section-block p {
    margin: 6px 0 14px;
    color: var(--color-texto-secundario);
    line-height: 1.5;
}

/* =========================
   GRID DE CATEGORÍAS
   ========================= */

.section-grid {
    padding-bottom: 28px;
}

.grid-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.category-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--color-blanco);
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.category-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--color-azul-oscuro);
}

.category-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
}

.category-social {
    border-left: 4px solid var(--color-azul-base);
}

.category-laboral {
    border-left: 4px solid #0ea5e9;
}

.category-educativa {
    border-left: 4px solid #6366f1;
}

.category-creativa {
    border-left: 4px solid var(--color-rosa-base);
}

.category-comunitaria {
    border-left: 4px solid var(--color-verde-base);
}

.category-europea {
    border-left: 4px solid var(--color-amarillo-base);
}

/* =========================
   PANEL BASE
   ========================= */

.panel {
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

/* =========================
   FACEBOOK · PANEL AZUL-SOCIAL
   ========================= */

.facebook-dentrix {
    padding: 22px;
    background: var(--color-azul-claro-fondo);
    border: 3px solid var(--color-azul-base);
}

.facebook-dentrix::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.25),
        rgba(14, 165, 233, 0.25),
        transparent);
    top: -50%;
    left: -50%;
    animation: fbPulse 4s infinite linear;
}

@keyframes fbPulse {
    0% { transform: scale(0.8); }
    100% { transform: scale(1.4); }
}

.facebook-dentrix a {
    position: relative;
    color: var(--color-azul-oscuro);
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   LINKEDIN · PANEL AZUL-PROFESIONAL
   ========================= */

.linkedin-dentrix {
    padding: 22px;
    background: var(--color-azul-claro-fondo);
    border: 3px solid var(--color-azul-base);
}

.linkedin-dentrix::after {
    content: "";
    position: absolute;
    width: 160%;
    height: 160%;
    background: rgba(37, 99, 235, 0.25);
    top: -160%;
    left: -160%;
    transform: rotate(45deg);
    transition: 0.55s ease;
}

.linkedin-dentrix:hover::after {
    top: 0;
    left: 0;
}

.linkedin-dentrix a {
    position: relative;
    color: var(--color-azul-oscuro);
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   EUROPASS · PANEL AZUL-AMARILLO
   ========================= */

.europass-dentrix {
    padding: 22px;
    background: var(--color-azul-claro-fondo);
    border: 3px solid var(--color-azul-base);
}

.europass-dentrix::after {
    content: "";
    position: absolute;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.25),
        rgba(250, 204, 21, 0.25),
        transparent);
    top: -40%;
    left: -40%;
    transform: scale(0.7);
    transition: 0.6s ease;
}

.europass-dentrix:hover::after {
    transform: scale(1.3);
}

.europass-dentrix a {
    position: relative;
    color: var(--color-azul-oscuro);
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   CIERRE INSTITUCIONAL FINAL
   ========================= */

.cierre-institucional-final {
    padding: 24px;
    background: var(--color-blanco);
    border: 3px solid var(--color-azul-base);
    border-radius: 22px;
}

.cierre-institucional-final::after {
    content: "";
    position: absolute;
    width: 220%;
    height: 220%;
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.25),
        rgba(14, 165, 233, 0.25),
        rgba(250, 204, 21, 0.25),
        transparent);
    top: -60%;
    left: -60%;
    transform: scale(0.6);
    transition: 0.7s ease;
}

.cierre-institucional-final:hover::after {
    transform: scale(1.35);
}

.cierre-institucional-final a {
    position: relative;
    color: var(--color-azul-oscuro);
    font-weight: 800;
    text-decoration: none;
    font-size: 1.15rem;
}

/* =========================
   INDEED · PANEL AZUL-PROFESIONAL
   ========================= */

.indeed-dentrix {
    padding: 22px;
    background: var(--color-azul-claro-fondo);
    border: 3px solid var(--color-azul-base);
}

.indeed-dentrix::after {
    content: "";
    position: absolute;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.25),
        rgba(14, 165, 233, 0.25),
        transparent);
    top: -40%;
    left: -40%;
    transform: scale(0.7);
    transition: 0.6s ease;
}

.indeed-dentrix:hover::after {
    transform: scale(1.3);
}

.indeed-dentrix a {
    position: relative;
    color: var(--color-azul-oscuro);
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   XING · PANEL VERDE-PROFESIONAL
   ========================= */

.xing-dentrix {
    padding: 22px;
    background: #ecfdf5;
    border: 3px solid var(--color-verde-base);
}

.xing-dentrix::after {
    content: "";
    position: absolute;
    width: 160%;
    height: 160%;
    background: rgba(34, 197, 94, 0.25);
    top: -160%;
    left: -160%;
    transform: rotate(45deg);
    transition: 0.55s ease;
}

.xing-dentrix:hover::after {
    top: 0;
    left: 0;
}

.xing-dentrix a {
    position: relative;
    color: var(--color-verde-oscuro);
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   BEHANCE 1 · PANEL AZUL-CREATIVO
   ========================= */

.behance-dentrix1 {
    padding: 22px;
    background: var(--color-azul-claro-fondo);
    border: 3px solid var(--color-azul-base);
}

.behance-dentrix1::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.25),
        rgba(236, 72, 153, 0.25),
        transparent);
    top: -50%;
    left: -50%;
    animation: behPulse1 4s infinite linear;
}

@keyframes behPulse1 {
    0% { transform: scale(0.8); }
    100% { transform: scale(1.4); }
}

.behance-dentrix1 a {
    position: relative;
    color: var(--color-azul-oscuro);
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   BEHANCE 2 · PANEL ROSA-CREATIVO
   ========================= */

.behance-dentrix2 {
    padding: 22px;
    background: #fdf2f8;
    border: 3px solid var(--color-rosa-base);
}

.behance-dentrix2::after {
    content: "";
    position: absolute;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle,
        rgba(236, 72, 153, 0.25),
        rgba(37, 99, 235, 0.25),
        transparent);
    top: -40%;
    left: -40%;
    transform: scale(0.7);
    transition: 0.6s ease;
}

.behance-dentrix2:hover::after {
    transform: scale(1.3);
}

.behance-dentrix2 a {
    position: relative;
    color: var(--color-rosa-oscuro);
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   DIRECTORIO 3 · MAPA DE OPORTUNIDADES
   ========================= */

.directorio3-mapa {
    padding: 22px;
    background: var(--color-azul-claro-fondo);
    border: 3px solid var(--color-azul-base);
}

.directorio3-mapa::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.25),
        rgba(14, 165, 233, 0.25),
        transparent);
    top: -50%;
    left: -50%;
    transform: scale(0.7);
    transition: 0.6s ease;
}

.directorio3-mapa:hover::after {
    transform: scale(1.3);
}

.directorio3-mapa a {
    position: relative;
    color: var(--color-azul-oscuro);
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   MILANUNCIOS · PANEL AMARILLO-AZUL
   ========================= */

.milanuncios-dentrix {
    padding: 22px;
    background: var(--color-amarillo-fondo);
    border: 3px solid var(--color-amarillo-base);
}

.milanuncios-dentrix::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top,
        rgba(250, 204, 21, 0.25),
        rgba(37, 99, 235, 0.25),
        transparent);
    bottom: -60%;
    left: 0;
    transition: 0.55s ease;
}

.milanuncios-dentrix:hover::after {
    bottom: 0;
}

.milanuncios-dentrix a {
    position: relative;
    color: #854d0e;
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   JOBCASE · PANEL AZUL-SOCIAL
   ========================= */

.jobcase-dentrix-final {
    padding: 22px;
    background: var(--color-azul-claro-fondo);
    border: 3px solid var(--color-azul-base);
}

.jobcase-dentrix-final::after {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.25),
        rgba(14, 165, 233, 0.25),
        transparent);
    top: -50%;
    left: -50%;
    animation: jcPulseFinal 4s infinite linear;
}

@keyframes jcPulseFinal {
    0% { transform: scale(0.8); }
    100% { transform: scale(1.4); }
}

.jobcase-dentrix-final a {
    position: relative;
    color: var(--color-azul-oscuro);
    font-weight: 700;
    text-decoration: none;
}

/* =========================
   GRID AMIGASWEBAMIGOS
   ========================= */

.grid-amigas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.amiga-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--color-blanco);
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.amiga-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--color-azul-oscuro);
}

.amiga-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
}

.amiga-note {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

/* =========================
   TIMELINE · EVOLUCIÓN
   ========================= */

.section-timeline {
    padding-bottom: 28px;
}

.timeline-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    border-left: 3px solid rgba(37, 99, 235, 0.25);
}

.timeline-list li {
    padding: 8px 0 8px 12px;
    position: relative;
}

.timeline-list li::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--color-azul-base);
    left: -6px;
    top: 14px;
}

.timeline-label {
    display: block;
    font-weight: 600;
    color: var(--color-azul-oscuro);
    font-size: 0.95rem;
}

.timeline-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
}

/* =========================
   PIE DE PÁGINA
   ========================= */

.site-footer {
    margin-top: 16px;
    padding: 16px;
    background: var(--color-blanco);
    border-top: 2px solid rgba(37, 99, 235, 0.15);
    text-align: center;
}

.site-footer p {
    margin: 4px 0;
    color: var(--color-texto-secundario);
}

.footer-note {
    font-size: 0.85rem;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .section-block {
        padding: 20px 12px;
    }
}
