:root {
    --paper: #f3eee2;
    --ink: #262019;
    --green: #2f6a4c;
    --line: #e7dcc8;
    --muted: #857b68;
    --surface: #fffdf6;
    --green-soft: rgba(47, 106, 76, 0.10);
    --green-line: rgba(47, 106, 76, 0.24);
    --gold: #c08a3e;
    --gold-ink: #97652a;
    --gold-soft: rgba(192, 138, 62, 0.12);
    --gold-line: rgba(192, 138, 62, 0.30);
    --shadow-soft: 0 20px 60px rgba(90, 65, 25, 0.10);
    --radius: 32px;
    --radius-lg: 48px;
    --color-bg-primary: var(--paper);
    --color-bg-secondary: var(--surface);
    --color-bg-tertiary: var(--paper);
    --color-accent: var(--green);
    --color-accent-dim: var(--green-soft);
    --color-accent-border: var(--green-line);
    --color-text-primary: var(--ink);
    --color-text-secondary: var(--muted);
    --color-text-muted: var(--muted);
    --shadow-glow: 0 0 0 1px var(--green-line);
    --shadow-card: var(--shadow-soft);
}

html { color-scheme: light; }
html[data-theme="light"] { color-scheme: light; }

/* ══ Tema oscuro real (repunta variables → cascada global) ══ */
html[data-theme="dark"] {
    color-scheme: dark;
    --paper: #12130e;
    --ink: #edefe4;
    --green: #62b98d;
    --line: #2a3125;
    --muted: #a5ab96;
    --surface: #191d14;
    --green-soft: rgba(98, 185, 141, 0.14);
    --green-line: rgba(98, 185, 141, 0.30);
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.5);
    --color-text-primary: var(--ink);
    --color-text-secondary: var(--muted);
    --color-text-muted: var(--muted);
}
html[data-theme="dark"] body { background: var(--paper) !important; color: var(--ink) !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body,
html[data-theme] body {
    background: var(--paper) !important;
    background-image: none !important;
    color: var(--ink) !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    line-height: 1.65;
}
h1, h2, h3, .hero-name, .page-title, .section-title {
    color: var(--ink);
    font-family: "Outfit", sans-serif !important;
}
a { color: inherit; }
img { max-width: 100%; }
.cloud { display: none !important; }
.container { max-width: 1280px !important; }

/* Navegación fija por secciones. */
.site-header {
    position: fixed;
    top: 12px;
    left: 20px;
    z-index: 20;
    width: min(850px, calc(100vw - 250px));
}
.site-nav {
    position: relative;
    display: flex;
    gap: 0.2rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 32px rgba(9, 9, 11, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.nav-indicator {
    position: absolute;
    z-index: 0;
    top: 0.35rem;
    left: 0;
    width: var(--indicator-width, 0px);
    height: calc(100% - 0.7rem);
    background: var(--ink);
    border-radius: 999px;
    opacity: 0;
    transform: translateX(var(--indicator-x, 0px));
    transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.38s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s ease;
    pointer-events: none;
}
.nav-indicator.is-visible { opacity: 1; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav-link {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    padding: 0.48rem 0.72rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}
.site-nav-link:hover { color: var(--green); }
.site-nav-link.is-active,
.site-nav-link[aria-current] { color: #ffffff; }

/* Barra de control: cabecera de vidrio y regla inferior. */
.floating-controls {
    top: 18px !important;
    right: 24px !important;
    gap: 0.25rem !important;
    padding: 0.35rem 0.5rem !important;
    background: color-mix(in srgb, var(--surface) 88%, transparent) !important;
    border: 1px solid var(--line) !important;
    border-bottom-color: var(--green-line) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 32px rgba(9, 9, 11, 0.08) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.float-btn { color: var(--muted) !important; border-radius: 999px !important; }
.float-btn:hover, .float-btn.active { color: var(--green) !important; background: var(--green-soft) !important; }
.float-sep { color: var(--line) !important; }
.back-btn, .back-to-top {
    background: color-mix(in srgb, var(--surface) 92%, transparent) !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 30px rgba(9, 9, 11, 0.08) !important;
    color: var(--green) !important;
    backdrop-filter: blur(16px);
}
.back-btn:hover, .back-to-top:hover { background: var(--green) !important; color: #ffffff !important; }

/* Hero: grilla técnica, escala tipográfica y verde como único acento. */
.hero, .page-hero, .page-header {
    position: relative;
    color: var(--ink) !important;
    background-color: var(--paper) !important;
    background-image:
        radial-gradient(60% 55% at 15% 12%, var(--green-soft) 0%, transparent 60%),
        radial-gradient(55% 50% at 88% 85%, rgba(15, 76, 58, 0.06) 0%, transparent 60%) !important;
    background-size: 100% 100% !important;
    border-bottom: 1px solid var(--line);
}
.hero {
    min-height: 760px;
    margin-inline: calc(50% - 50vw);
    padding-inline: max(1.25rem, calc((100vw - 1200px) / 2)) !important;
}
.hero-inner { max-width: 1200px !important; }
.hero-inner { position: relative; z-index: 1; }
.hero-tech-icons { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tech-float {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0.55rem;
    object-fit: contain;
    opacity: 0.42;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    animation: tech-icon-float 5.8s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}
.tech-float:nth-child(1) { top: 13%; left: 3%; --float-delay: -0.8s; }
.tech-float:nth-child(2) { top: 8%; right: 5%; --float-delay: -3.1s; }
.tech-float:nth-child(3) { top: 43%; left: 38%; --float-delay: -1.9s; }
.tech-float:nth-child(4) { top: 35%; right: 2%; --float-delay: -4.2s; }
.tech-float:nth-child(5) { bottom: 11%; left: 6%; --float-delay: -2.7s; }
.tech-float:nth-child(6) { right: 19%; bottom: 8%; --float-delay: -0.3s; }
.hero-motion-ready .hero-copy-step {
    animation: hero-copy-in 0.72s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(90ms + var(--motion-order) * 105ms);
}
@keyframes hero-copy-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}
@keyframes tech-icon-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
    50% { transform: translate3d(0, -13px, 0) rotate(3deg); }
}
.hero-name {
    max-width: 11ch;
    color: var(--ink) !important;
    font-size: clamp(3.6rem, 7vw, 7rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.065em !important;
    line-height: 0.86 !important;
}
.hero-title { margin-top: 1.5rem; color: var(--green) !important; font-weight: 700 !important; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-role, .page-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 0.45rem 0.85rem;
    background: var(--surface) !important;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--green) !important;
}
.hero-companies, .page-subtitle, .page-desc { color: var(--muted) !important; }
.hero-image img {
    border: 8px solid var(--surface) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-soft) !important;
    filter: none !important;
}
.specialty-item, .focus-tag, .skill-item, .tech-tag {
    background: color-mix(in srgb, var(--surface) 84%, transparent) !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    color: var(--ink) !important;
}
.specialty-item i, .section-title i, .skill-icon { color: var(--green) !important; }
.hero-btn, .card-link, .proj-link, .submit-btn, .form-submit {
    border: 1px solid var(--green) !important;
    border-radius: 999px !important;
    background: var(--green) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
.hero-btn:nth-child(n+2) { background: var(--surface) !important; color: var(--green) !important; }
.hero-btn i, .card-link i, .proj-link i { color: currentColor !important; }
button.hero-btn { font: inherit !important; font-weight: 600 !important; cursor: pointer; line-height: normal; }
.hero-btn--direct, .hero-btn--direct:nth-child(n+2) {
    background: var(--ink) !important;
    color: #ffffff !important;
    border-color: var(--ink) !important;
    box-shadow: 0 10px 26px rgba(9, 9, 11, 0.22) !important;
}
.hero-btn--direct i { color: #ffffff !important; }
.hero-btn--direct:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 34px rgba(9, 9, 11, 0.3) !important;
    filter: brightness(1.08);
}
.social-link {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: 50% !important;
    color: var(--green) !important;
    box-shadow: none !important;
}

/* Secciones y paneles de composición. */
.section, .about-section {
    padding-block: clamp(4.5rem, 8vw, 7.5rem) !important;
    border-bottom: 1px solid var(--line) !important;
    background: transparent !important;
}
.section-header { margin-bottom: 2.5rem !important; }
.section-title {
    color: var(--ink) !important;
    font-size: clamp(2rem, 4vw, 3.6rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.045em !important;
    line-height: 1.05;
}
.section-subtitle { color: var(--muted) !important; }
.about-section { border-radius: 0 !important; }
.about-layout, .currently-panel, .hackathon-block, .events-panel, .ethics-block {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-soft) !important;
}
.about-layout { overflow: hidden; }
.about-main, .about-focus-panel { background: transparent !important; }
.about-main { padding: clamp(1.5rem, 4vw, 3rem) !important; }
.about-focus-panel { padding: clamp(1.5rem, 3vw, 2.25rem) !important; border-left: 1px solid var(--line); }
.currently-panel { padding: 1.25rem !important; }
.currently-item, .focus-card, .event-item, .vs-item {
    background: color-mix(in srgb, var(--green) 4%, var(--surface)) !important;
    border: 1px solid var(--line) !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 14px rgba(38, 32, 25, 0.04) !important;
}
.currently-panel .currently-item {
    animation: currently-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease !important;
}
.currently-panel .currently-item:nth-child(1) { animation-delay: 0.15s; }
.currently-panel .currently-item:nth-child(2) { animation-delay: 0.27s; }
.currently-panel .currently-item:nth-child(3) { animation-delay: 0.39s; }
.currently-panel .currently-item:nth-child(4) { animation-delay: 0.51s; }
.currently-panel .currently-item:nth-child(n+5) { animation-delay: 0.6s; }
.currently-panel .currently-item:hover {
    transform: translateX(4px) !important;
    box-shadow: 0 10px 26px rgba(15, 76, 58, 0.1) !important;
}
@keyframes currently-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
.currently-icon, .focus-card-icon, .about-main-icon, .form-icon, .contact-icon-wrap, .concept-icon {
    background: var(--gold-soft) !important;
    border: 1px solid var(--gold-line) !important;
    color: var(--gold-ink) !important;
}
.currently-key, .currently-label, .about-focus-label, .featured-category, .proj-category, .rally-category { color: var(--green) !important; }
.currently-val, .about-text, .featured-desc, .proj-desc, .event-org, .concept-body p, .ethics-card p { color: var(--muted) !important; }

/* Tarjetas grandes del segundo diseño, ya traducidas al sistema verde. */
.featured-grid, .project-grid, .concept-grid, .ethics-grid, .skills-grid, .cert-grid { gap: 2rem !important; }
.featured-card, .proj-card, .concept-card, .ethics-card, .skill-card, .cert-item,
.accordion-item, .form-card, .contact-card, .contact-form, .social-section, .rally-card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-soft) !important;
    color: var(--ink) !important;
    overflow: hidden;
}
.featured-card, .concept-card, .ethics-card, .skill-card { padding: clamp(1.4rem, 3vw, 2.2rem) !important; }
.featured-card::before, .rally-card::before { background: var(--green) !important; }
.rally-card::before, .rally-card:hover::before { opacity: 0 !important; }
.featured-grid > :nth-child(even), .project-grid > :nth-child(even), .concept-grid > :nth-child(even) { margin-top: 2rem; }
.featured-title, .proj-name, .concept-title, .skill-title, .cert-text h4,
.event-name, .contact-info h3, .form-title, .ethics-card h3 { color: var(--ink) !important; }
.featured-icon, .proj-preview-placeholder, .rally-icon-wrap, .cert-icon, .ethics-card-icon {
    background: var(--gold-soft) !important;
    border-color: var(--gold-line) !important;
    color: var(--gold-ink) !important;
}
.featured-thumb, .proj-preview {
    margin: 0.75rem !important;
    border-radius: 24px !important;
    background: var(--green-soft) !important;
    overflow: hidden;
}
.proj-body { background: var(--surface) !important; }
.featured-badge, .proj-badge, .rally-badge, .cert-rank, .cert-status, .ethics-badge {
    background: var(--green-soft) !important;
    border: 1px solid var(--green-line) !important;
    border-radius: 999px !important;
    color: var(--green) !important;
}
.rally-card { padding: clamp(1.5rem, 4vw, 3rem) !important; }
.rally-title, .rally-badge-rank { color: var(--ink) !important; }
.rally-desc, .rally-year, .rally-badge-label { color: var(--muted) !important; }
.events-panel { padding: 2rem !important; }
.event-thumb, .event-thumb-combo { border-radius: 18px !important; border-color: var(--line) !important; }

/* Páginas interiores. */
.page-hero { padding-block: 7rem 4rem !important; }
.page-title {
    color: var(--ink) !important;
    font-size: clamp(3.2rem, 7vw, 6.5rem) !important;
    font-weight: 600 !important;
    letter-spacing: -0.06em !important;
    line-height: 0.95 !important;
}
.page-header { margin-bottom: 3rem; padding: 7rem clamp(1.25rem, 4vw, 3rem) 3rem !important; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.ethics-block { padding: clamp(1.5rem, 4vw, 3rem) !important; }
.timeline { border-left-color: var(--green-line) !important; }
.timeline li::before { background: var(--green) !important; box-shadow: 0 0 0 4px var(--green-soft) !important; }
.t-year { color: var(--green) !important; }
.t-text, .vs-item p, .vs-note { color: var(--muted) !important; }
.accordion-item.open { background: var(--green-soft) !important; border-color: var(--green-line) !important; }
.accordion-header, .accordion-term { color: var(--ink) !important; }
.accordion-header:hover, .accordion-index, .accordion-icon { color: var(--green) !important; }
.accordion-index { background: var(--green-soft) !important; border: 1px solid var(--green-line) !important; border-radius: 12px !important; }
.accordion-body-inner { color: var(--muted) !important; }

/* Formularios y contacto. */
#contacto { background: transparent !important; }
.contact-form, .form-card { padding: clamp(1.5rem, 4vw, 2.75rem) !important; }
.contact-intro, .contact-links-title, .contact-info p, .social-title, .status-text { color: var(--muted) !important; }
.contact-interests li {
    background: var(--green-soft) !important;
    border: 1px solid var(--green-line) !important;
    color: var(--green) !important;
}
.form-input, .form-textarea, .form-group input, .form-group textarea {
    background: var(--paper) !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    color: var(--ink) !important;
}
.form-input:focus, .form-textarea:focus, .form-group input:focus, .form-group textarea:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 4px var(--green-soft) !important;
}
.contact-link, .contact-card { background: var(--surface) !important; border-color: var(--line) !important; color: var(--ink) !important; }
.status-bar { background: var(--green-soft) !important; border-color: var(--green-line) !important; }
.status-dot { background: var(--green) !important; }

.site-footer, footer {
    margin-top: 0 !important;
    padding-block: 3rem !important;
    background: var(--green) !important;
    border: 0 !important;
    color: #ffffff !important;
}
.site-footer p, .site-footer a, footer p, footer a { color: #ffffff !important; }

*:focus-visible { outline: 3px solid var(--green) !important; outline-offset: 3px !important; }

.motion-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.motion-reveal.is-visible { opacity: 1; transform: none; }
.motion-ambient { animation: ambient-grid 22s ease-in-out infinite alternate; }
.hero-btn.is-active, .hero-btn[aria-current] {
    background: var(--green) !important;
    border-color: var(--green) !important;
    color: #ffffff !important;
}
@keyframes ambient-grid {
    from { background-position: 0% 0%, 100% 100%; }
    to { background-position: 8% 6%, 92% 94%; }
}

@media (max-width: 1024px) {
    .hero { min-height: auto; }
    .about-focus-panel { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
    .floating-controls { top: 10px !important; right: 12px !important; }
    .site-header { top: 58px; left: 12px; width: calc(100vw - 24px); }
    .site-nav { width: 100%; }
    .hero { padding-top: 9rem !important; }
    .hero-name { font-size: clamp(3rem, 14vw, 5rem) !important; }
    .tech-float { width: 38px; height: 38px; opacity: 0.26; }
    .hero-image img { border-radius: var(--radius) !important; }
    .section, .about-section { padding-block: 4rem !important; }
    .about-layout, .currently-panel, .hackathon-block, .events-panel, .ethics-block { border-radius: var(--radius) !important; }
    .featured-grid > :nth-child(even), .project-grid > :nth-child(even), .concept-grid > :nth-child(even) { margin-top: 0; }
    .featured-card, .proj-card, .concept-card, .ethics-card, .skill-card, .cert-item,
    .accordion-item, .form-card, .contact-card, .contact-form, .social-section, .rally-card { border-radius: 24px !important; }
    .page-title { font-size: clamp(2.8rem, 14vw, 4.5rem) !important; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-motion-ready .hero-copy-step,
    .tech-float { animation: none !important; opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
    .motion-reveal { opacity: 1; transform: none; }
    .currently-panel .currently-item { opacity: 1; transform: none; }
}

/* ══ Contacto Directo — modal (tema claro) ══ */
.cd-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; background: rgba(9, 9, 11, 0.45);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.cd-overlay.open { opacity: 1; visibility: visible; }
.cd-card {
    width: min(480px, 100%); background: #ffffff;
    border: 1px solid var(--line); border-radius: 28px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 30px 80px rgba(9, 9, 11, 0.28);
    position: relative; text-align: center;
    transform: scale(.92) translateY(16px); opacity: 0;
    transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s ease;
}
.cd-overlay.open .cd-card { transform: scale(1) translateY(0); opacity: 1; }
.cd-close {
    position: absolute; top: 1.2rem; right: 1.4rem;
    width: 34px; height: 34px; border: none; border-radius: 50%;
    background: transparent; color: #94a3b8; font-size: 1.5rem;
    cursor: pointer; line-height: 1; transition: background .2s, color .2s;
}
.cd-close:hover { background: #f1f5f9; color: #475569; }
.cd-title { font-size: 1.7rem; font-weight: 800; color: var(--ink); margin-bottom: .5rem; }
.cd-sub { font-size: 1rem; color: #64748b; margin-bottom: 1.8rem; line-height: 1.5; }
.cd-actions { display: flex; flex-direction: column; gap: .9rem; }
.cd-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 1.4rem; border-radius: 18px;
    font-size: 1.05rem; font-weight: 700; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cd-row i { font-size: 1.4rem; width: 1.6rem; }
.cd-row:hover { transform: translateX(4px); filter: brightness(.97); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.cd-row--wa   { background: #e9f1ea; color: #2f6a4c; }
.cd-row--mail { background: #f5ecd7; color: #97652a; }
.cd-row--li   { background: #e6f0ea; color: #276b4f; }
@media (max-width: 480px) {
    .cd-card { padding: 2.2rem 1.3rem 1.6rem; }
    .cd-title { font-size: 1.45rem; }
}

/* ══ Proyectos — layout editorial alternado (estilo iCloud) ══ */
#featured-grid, #pinned-projects {
    display: flex !important;
    flex-direction: column;
    gap: clamp(3rem, 7vw, 5.5rem) !important;
}
#pinned-projects > * { margin-top: 0 !important; }
#pinned-projects .rally-card { width: 100%; }
/* Paridad con /proyectos: oculta categoría y convierte links a texto */
#pinned-projects .proj-info .featured-category { display: none !important; }
#pinned-projects .proj-footer { display: flex; gap: 1.4rem; align-items: center; margin-top: .4rem; }
#pinned-projects .proj-footer .card-link,
#pinned-projects .proj-footer .card-link-placeholder {
    padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
    font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .12em;
    text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
}
#pinned-projects .proj-footer .card-link--demo { color: var(--green) !important; }
#pinned-projects .proj-footer .card-link-placeholder { color: var(--muted) !important; opacity: 1 !important; }
#pinned-projects .proj-footer .card-link--demo i { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
#pinned-projects .proj-footer .card-link--demo:hover i { transform: translate(3px, -3px); }
.proj-row {
    display: grid !important;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}
.proj-row {
    animation: proj-row-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--pi, 0) * 0.12s + 0.1s);
}
@keyframes proj-row-in {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}
.proj-row:nth-child(even) .proj-info { order: 2; }
.proj-row:nth-child(even) .proj-visual { order: 1; }
.proj-info { display: flex; flex-direction: column; gap: 1rem; }
.proj-eyebrow {
    display: flex; align-items: center; gap: .9rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted); margin: 0;
}
.proj-eyebrow-line { height: 1px; width: 3.5rem; background: var(--line); }
.proj-row .proj-name {
    font-size: clamp(1.8rem, 3.5vw, 2.7rem) !important;
    font-weight: 800 !important; line-height: 1.05 !important;
    letter-spacing: -.03em !important; color: var(--ink) !important; margin: 0 !important;
}
.proj-row .proj-desc {
    color: var(--muted) !important; font-size: 1.02rem !important;
    line-height: 1.6 !important; max-width: 46ch; margin: 0 !important;
}
.proj-row .proj-tech { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0; }
.proj-row .proj-footer { display: flex; gap: 1.4rem; align-items: center; margin-top: .4rem; }
.proj-row .proj-link {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: 0 !important; background: transparent !important; border: 0 !important;
    font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .12em;
    text-transform: uppercase; text-decoration: none;
}
.proj-row .proj-link--demo { color: var(--green) !important; }
.proj-row .proj-link--gh, .proj-row .proj-link--private { color: var(--muted) !important; }
.proj-row .proj-link--demo i { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.proj-row .proj-link--demo:hover i { transform: translate(3px, -3px); }

/* Preview ficticio (mock) con gradientes iCloud */
.proj-visual { perspective: 1200px; }
.proj-mock {
    position: relative; overflow: hidden;
    min-height: clamp(220px, 26vw, 320px);
    border-radius: 24px; border: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .6rem; box-shadow: 0 22px 55px rgba(0, 40, 90, 0.14);
    transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.proj-row:hover .proj-mock { transform: translateY(-6px); box-shadow: 0 32px 70px rgba(0, 40, 90, 0.2); }
.proj-mock i { font-size: 2.4rem; color: #ffffff; opacity: .9; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.proj-mock-name {
    font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em;
    color: #ffffff; text-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.proj-mock::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.28), transparent 55%);
    pointer-events: none;
}
.proj-mock--0 { background: linear-gradient(150deg, #2f6a4c, #1b452f); }
.proj-mock--1 { background: linear-gradient(150deg, #4a3a29, #2b2018); }
.proj-mock--2 { background: linear-gradient(150deg, #b5813a, #8a5c1f); }
.proj-mock--3 { background: linear-gradient(150deg, #357a58, #204d38); }
/* Divisor dentro de la sección Proyectos (repositorios en el mismo bloque) */
.section-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.section-divider-label {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--color-accent, #2f6a4c); white-space: nowrap;
}
.section-divider-line { flex: 1; height: 1px; background: var(--line, rgba(0,0,0,.12)); }

/* Preview con logo real: la marca del proyecto llena la tarjeta, sin doble marco */
.proj-mock--img {
    padding: 0; background: #0f0f12; overflow: hidden; border: none;
    min-height: clamp(170px, 19vw, 240px); max-width: 440px; margin-inline: auto;
}
.proj-mock--img .proj-mock-logo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.proj-mock--img .proj-mock-logo { animation: mockFloat 7s ease-in-out infinite; }
.proj-row:hover .proj-mock--img .proj-mock-logo { transform: scale(1.04); animation-play-state: paused; }
@keyframes mockFloat {
    0%, 100% { transform: scale(1.01) translateY(0); }
    50%      { transform: scale(1.045) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    .proj-mock--img .proj-mock-logo { animation: none; }
}
.proj-mock--img::after {
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 34%, transparent 62%);
}
.proj-mock--img .proj-mock-name {
    position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.1rem; z-index: 2;
    font-size: clamp(1rem, 1.9vw, 1.35rem); letter-spacing: -.01em;
    text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
/* Preview con imagen en tarjetas de /proyectos */
.proj-preview-logo { width: 100%; height: 100%; background: #0f0f12; }
.proj-preview-logo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
    .proj-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .proj-row:nth-child(even) .proj-info { order: 2; }
    .proj-row:nth-child(even) .proj-visual { order: 1; }
}

/* ══ Preview ficticio en cards de la portada ══ */
.featured-mock {
    height: 148px; border-radius: 18px; margin-bottom: 1.3rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5rem; color: #ffffff; position: relative; overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 40, 90, 0.16);
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.featured-mock::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.28), transparent 55%);
    pointer-events: none;
}
.featured-card:hover .featured-mock { transform: scale(1.02); }
.featured-mock i { font-size: 1.9rem; opacity: .92; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.featured-mock-name {
    font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; text-align: center;
    padding: 0 1rem; text-shadow: 0 3px 16px rgba(0,0,0,.32);
}
.featured-mock--0 { background: linear-gradient(150deg, #2f6a4c, #1b452f); }
.featured-mock--1 { background: linear-gradient(150deg, #4a3a29, #2b2018); }
.featured-mock--2 { background: linear-gradient(150deg, #b5813a, #8a5c1f); }
.featured-mock--3 { background: linear-gradient(150deg, #357a58, #204d38); }
