:root{
    --color-primary: #005A9C;
    --color-primary-700: #003f6b;
    --color-secondary: #ECC94B;
    --color-accent: #D69E2E;
    --neutral-900: #0f172a;
    --neutral-700: #374151;
    --neutral-400: #9CA3AF;
    --bg: #F7FAFC;
    --surface: #ffffff;
    --radius-lg: 12px;
    --shadow-soft: 0 8px 24px rgba(16,24,40,0.08);
    --flow: 1.6;
    --type-scale-1: 3rem; /* h1 */
    --type-scale-2: 2.25rem; /* h2 */
    --type-scale-3: 1.75rem; /* h3 */
    --type-base: 1rem;
}

/* Estilos base del sitio */
body { 
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
        background: var(--bg);
        color: var(--neutral-900);
        line-height: 1.6;
        font-size: var(--type-base);
}

.section-title { 
    font-size: var(--type-scale-2); 
    font-weight: 800; 
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Estilo para el nombre principal animado */
.animated-gradient-text {
    background-size: 200% 200%;
    background-image: linear-gradient(
        -45deg,
        var(--color-primary),
        #2563eb,
        #3b82f6,
        #60a5fa
    );
    animation: gradient-animation 10s ease infinite;
}

/* Estilos profesionales y futuristas para el nombre y encabezados */
.professional-name {
    font-family: 'Poppins', 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #0b2545; /* color más serio */
}

.professional-heading {
    font-family: 'Poppins', 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #0b2545;
    text-transform: none;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Estilo del Hero estático (reemplaza el carrusel) */
.hero-static {
    position: relative;
    width: 100%;
    min-height: 56vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-static .container { z-index: 2; }

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.45)); }

/* El overlay del hero no debe interceptar eventos de pointer: permitir clicks sobre el contenido del héroe */
.hero-overlay { pointer-events: none; }

.hero-content { color: white; }
.hero-cta { margin-top: 1.25rem; display:flex; gap: 0.75rem; }
.btn { display:inline-block; padding: .75rem 1.1rem; border-radius: 999px; font-weight: 700; text-decoration:none; }
.btn-primary { background: var(--color-primary); color: white; }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,0.2); color: white; }

/* Card common */
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 1rem; }

/* Reveal on scroll helper */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Focus styles accesible */
:focus { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

/* Estilos para el encabezado de Tips Docentes */
.tips-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.tips-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3a8a;
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .05em;
    animation:
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange; }
}

.tips-subtitle {
    color: #4a5568;
    font-size: 1.25rem;
    line-height: 1.75rem;
    max-width: 80%;
    margin: 1rem auto 0;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 3.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.subtitle-line {
    display: block;
    margin-bottom: 0.5rem;
}

/* Portafolio card CTA improvements */
.portafolio-cta {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: linear-gradient(90deg, #2563eb 0%, #5b21b6 100%);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(37,99,235,0.18);
    transition: transform .18s ease, box-shadow .18s ease;
    font-weight: 600;
}
.portafolio-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37,99,235,0.24); }

/* Marco y fondo para la sección Sobre Mí */
.sobre-mi-frame {
    border: 2px solid rgba(37,99,235,0.08);
    box-shadow: 0 6px 20px rgba(3,7,18,0.04);
    background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(245,249,255,0.9));
}

/* Estilos adicionales para la sección de servicio Portafolio */
.service-hero {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(59,130,246,0.06));
    border-radius: 12px;
    padding: 1.25rem;
}
.service-cta {
    display:inline-block; padding: .9rem 1.2rem; border-radius: 12px; background: linear-gradient(90deg,#059669,#10b981); color: white; font-weight:700; box-shadow: 0 8px 30px rgba(5,150,105,0.18); transition: transform .16s ease; text-decoration:none;
}
.service-cta:hover { transform: translateY(-3px); }

/* Global aesthetic improvements */
:root {
    --accent: #5b7cff;
    --accent-2: #6b46ff;
    --surface-elev: rgba(11,37,69,0.06);
    --text-illuminate: rgba(107,70,193,0.12);
}

/* Smooth transitions across text and cards */
body, p, a, li, h1, h2, h3, h4, h5, h6, button {
    transition: transform 160ms ease, box-shadow 180ms ease, color 180ms ease, filter 180ms ease;
}

/* Hover brings element forward with subtle glow */
.interactive-hover:hover, a:hover, button:hover, .card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 10px 30px var(--surface-elev), 0 1px 0 rgba(255,255,255,0.02) inset;
    filter: drop-shadow(0 6px 18px rgba(11,37,69,0.12));
}

/* Text illumination on hover */
.interactive-text:hover, a:hover, .nav-link:hover, .professional-name:hover {
    color: var(--accent-2) !important;
    text-shadow: 0 6px 18px rgba(107,70,193,0.12);
}

/* Focus-visible for accessibility */
.interactive-hover:focus, a:focus, button:focus {
    outline: 3px solid rgba(91,124,255,0.12);
    outline-offset: 3px;
}

/* Card accent gradient */
.card-accent {
    background: linear-gradient(135deg, rgba(91,124,255,0.12), rgba(107,70,193,0.06));
    border-radius: 12px;
}

/* Small micro animation for headings */
@keyframes floatUp {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
}
.heading-animated:hover {
    animation: floatUp 220ms ease forwards;
}

