/* ==========================================================================
   PORTAFOLIO BORIS SEPÚLVEDA · SISTEMA DE DISEÑO & ESTILOS PROFESIONALES
   Paleta: Acento Verde Esmeralda Exclusivo sobre Fondo Obsidiana
   ========================================================================== */

/* --- TOKENS DE COLOR & VARIABLES: TEMA OSCURO (POR DEFECTO) --- */
:root {
    --bg-main: #090d11;
    --bg-alt: #0e141a;
    --bg-card: #121920;
    --bg-card-hover: #16202a;
    --bg-elevated: #1a2530;

    /* Acento Verde Esmeralda de alta gama */
    --accent-emerald: #10b981;
    --accent-emerald-light: #34d399;
    --accent-emerald-dark: #059669;
    --accent-emerald-subtle: rgba(16, 185, 129, 0.08);
    --accent-emerald-medium: rgba(16, 185, 129, 0.16);
    --accent-emerald-glow: rgba(16, 185, 129, 0.28);
    --accent-emerald-border: rgba(16, 185, 129, 0.35);

    /* Textos */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverted: #090d11;

    /* Bordes y Líneas */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-hover: rgba(16, 185, 129, 0.4);

    /* Sombras y Luces */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-emerald: 0 10px 30px -10px rgba(16, 185, 129, 0.35);

    /* Tipografías */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    /* Dimensiones y Espaciados */
    --max-width: 1160px;
    --header-height: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- TEMA CLARO (PREMIUM & ELEGANTE) --- */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-elevated: #e2e8f0;

    --accent-emerald: #059669;
    --accent-emerald-light: #10b981;
    --accent-emerald-dark: #047857;
    --accent-emerald-subtle: rgba(5, 150, 105, 0.08);
    --accent-emerald-medium: rgba(5, 150, 105, 0.16);
    --accent-emerald-glow: rgba(5, 150, 105, 0.2);
    --accent-emerald-border: rgba(5, 150, 105, 0.35);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverted: #ffffff;

    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-medium: rgba(15, 23, 42, 0.15);
    --border-hover: rgba(5, 150, 105, 0.4);

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
    --shadow-emerald: 0 10px 25px -8px rgba(5, 150, 105, 0.25);
}

/* --- RESET Y ESTILOS BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
}

/* Accesibilidad de foco */
:focus-visible {
    outline: 2px solid var(--accent-emerald);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Enlace para saltar al contenido principal */
.skip-link {
    position: absolute;
    top: -999px;
    left: 20px;
    z-index: 9999;
    padding: 12px 20px;
    background-color: var(--accent-emerald);
    color: var(--text-inverted);
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 20px;
}

/* Contenedor global */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* --- BARRA DE PROGRESO DE SCROLL --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-emerald-dark), var(--accent-emerald), var(--accent-emerald-light));
    z-index: 1000;
    box-shadow: 0 0 10px var(--accent-emerald-glow);
    transition: width 100ms linear;
}

/* --- NAVEGACIÓN Y HEADER --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(9, 13, 17, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

[data-theme="light"] .site-header {
    background-color: rgba(248, 250, 252, 0.85);
}

.navbar-wrapper {
    height: 100%;
}

.navbar {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-symbol {
    font-family: var(--font-mono);
    color: var(--accent-emerald);
    font-weight: 700;
}

.accent-dot {
    color: var(--accent-emerald);
}

/* Badge de estado en navbar */
.nav-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background-color: var(--accent-emerald-subtle);
    border: 1px solid var(--accent-emerald-border);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent-emerald);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 2px;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-emerald);
    border-radius: 2px;
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Botón de tema Claro/Oscuro */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--accent-emerald);
    border-color: var(--accent-emerald-border);
    background-color: var(--accent-emerald-subtle);
    transform: translateY(-1px);
}

/* Iconos de sol y luna según tema */
[data-theme="dark"] .sun-icon {
    display: block;
}
[data-theme="dark"] .moon-icon {
    display: none;
}
[data-theme="light"] .sun-icon {
    display: none;
}
[data-theme="light"] .moon-icon {
    display: block;
}

/* Botón menú móvil */
.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle-btn.is-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle-btn.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- SECCIÓN HERO --- */
.hero-section {
    position: relative;
    padding: 90px 0 80px;
    overflow: hidden;
}

/* Efecto de resplandor ambiental verde */
.ambient-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.04) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    margin-bottom: 24px;
}

.badge-terminal {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--accent-emerald);
    background-color: var(--accent-emerald-subtle);
    border: 1px solid var(--accent-emerald-border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-bottom: 24px;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--accent-emerald);
    position: relative;
    display: inline-block;
}

.text-accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-emerald-glow);
    border-radius: 2px;
    z-index: -1;
}

.hero-description {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
    max-width: 740px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    font-size: 0.96rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-dark));
    color: #ffffff;
    box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, var(--accent-emerald-light), var(--accent-emerald));
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    border-color: var(--accent-emerald-border);
    color: var(--accent-emerald);
    background-color: var(--accent-emerald-subtle);
    transform: translateY(-2px);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-medium);
    background-color: var(--bg-card);
}

/* Franja de estadísticas en Hero */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    box-shadow: var(--shadow-md);
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-emerald);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-subtle);
    margin: 0 auto;
}

/* --- SECCIONES GENÉRICAS --- */
.section-container {
    padding: 96px 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    margin-bottom: 56px;
    max-width: 680px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- EFECTO SPOTLIGHT INTERACTIVO EN TARJETAS --- */
.spotlight-card {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        500px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
        rgba(16, 185, 129, 0.12),
        transparent 40%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-emerald);
    transform: translateY(-3px);
}

/* --- SECCIÓN SOBRE MÍ: BENTO GRID --- */
.about-bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.bento-card {
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.bento-card-main {
    grid-row: span 2;
}

.bento-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background-color: var(--accent-emerald-subtle);
    border: 1px solid var(--accent-emerald-border);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.bento-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.bento-card p {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
}

.mini-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background-color: var(--accent-emerald-subtle);
    color: var(--accent-emerald);
    border: 1px solid var(--accent-emerald-border);
}

/* --- SECCIÓN SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-number {
    position: absolute;
    top: 24px;
    right: 28px;
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--border-medium);
    opacity: 0.4;
    user-select: none;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.service-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
}

.feature-bullets li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-bullets li::before {
    content: '→';
    color: var(--accent-emerald);
    font-weight: 600;
}

/* --- SECCIÓN PROYECTOS --- */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.filter-btn.active {
    background-color: var(--accent-emerald-subtle);
    color: var(--accent-emerald);
    border-color: var(--accent-emerald);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.project-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.project-category {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
}

.chip-live {
    background-color: var(--accent-emerald-subtle);
    color: var(--accent-emerald);
    border: 1px solid var(--accent-emerald-border);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.project-desc {
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 22px;
    flex-grow: 1;
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-subtle);
}

[data-theme="light"] .project-highlights {
    background-color: rgba(0, 0, 0, 0.02);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.highlight-bullet {
    color: var(--accent-emerald);
    font-weight: 700;
    line-height: 1.2;
}

.project-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 18px;
}

.tech-stack-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack-list li {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-alt);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

/* Ocultar tarjetas filtradas */
.project-card.is-hidden {
    display: none !important;
}

/* --- SECCIÓN HABILIDADES --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skills-card {
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
}

.skills-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.skill-group-icon {
    font-size: 1.5rem;
}

.skills-card-header h3 {
    font-size: 1.15rem;
}

.skill-group-lead {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.skill-pill:hover {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    background-color: var(--accent-emerald-subtle);
    transform: translateY(-2px);
}

/* --- BANNER VÉRTICE SOFTWARE --- */
.vertice-banner {
    padding: 56px 48px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-alt) 100%);
    border: 1px solid var(--accent-emerald-border);
    position: relative;
}

.vertice-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background-color: var(--accent-emerald-subtle);
    border: 1px solid var(--accent-emerald-border);
    color: var(--accent-emerald);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.vertice-icon {
    color: var(--accent-emerald);
}

.vertice-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    max-width: 780px;
    margin: 0 auto 18px;
    letter-spacing: -0.02em;
}

.vertice-description {
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.vertice-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- SECCIÓN CONTACTO --- */
.contact-container {
    max-width: 860px;
}

.contact-card {
    padding: 48px;
}

.contact-card-top {
    text-align: center;
    margin-bottom: 40px;
}

.status-online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.contact-email-prompt {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.email-display-box {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background-color: var(--bg-alt);
    border: 1px solid var(--border-medium);
}

.direct-email-link {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-emerald);
}

.direct-email-link:hover {
    text-decoration: underline;
}

.btn-copy-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-copy-inline:hover {
    border-color: var(--accent-emerald-border);
    color: var(--accent-emerald);
    background-color: var(--accent-emerald-subtle);
}

.contact-channels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 36px;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    background-color: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.channel-card:hover {
    border-color: var(--accent-emerald-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.channel-icon {
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.channel-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.channel-handle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.channel-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.channel-card:hover .channel-arrow {
    transform: translateX(4px);
    color: var(--accent-emerald);
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 72px 0 36px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand .brand-logo {
    margin-bottom: 14px;
}

.footer-tagline {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 360px;
    line-height: 1.6;
}

.footer-col-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-emerald);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-emerald);
}

.footer-company-highlight {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
    gap: 20px;
}

.copyright-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.copyright-text strong {
    color: var(--text-secondary);
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-alt);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
}

/* --- TOAST FLOTANTE --- */
.toast-notification {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--accent-emerald);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), var(--shadow-emerald);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.toast-notification.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    color: var(--text-inverted);
    font-size: 0.8rem;
    font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

/* Pantallas medianas (Tablets) */
@media (max-width: 1024px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .about-bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card-main {
        grid-row: auto;
    }

    .services-grid,
    .projects-grid,
    .skills-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

/* Dispositivos móviles y tablets en vertical */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .d-none-mobile {
        display: none !important;
    }

    .nav-toggle-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
    }

    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 1.05rem;
    }

    .hero-section {
        padding: 48px 0 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .services-grid,
    .projects-grid,
    .skills-wrapper,
    .contact-channels {
        grid-template-columns: 1fr;
    }

    .vertice-banner {
        padding: 40px 24px;
    }

    .contact-card {
        padding: 32px 20px;
    }

    .email-display-box {
        flex-direction: column;
        width: 100%;
    }

    .direct-email-link {
        font-size: 1rem;
        word-break: break-all;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .toast-notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-strip {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}
