*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green: #2ecc71; --green-dark: #27ae60;
  --sky: #56b4d3; --bg: #0d0d0d;
  --card: #141414; --card2: #181818;
  --text: #f0f0f0; --muted: #888; --celta: #88cfb0;
}
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: .6rem 2.5rem; background: rgba(13,13,13,.88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(46,204,113,.12); gap: 1rem; }
.logo { display: flex; align-items: center; flex-shrink: 0; line-height: 0; cursor: default; }
.logo svg { display: block; transition: filter .3s; }
.logo:hover svg { filter: drop-shadow(0 0 10px rgba(46,204,113,.55)) drop-shadow(0 0 20px rgba(86,180,211,.25)); }
nav ul { list-style: none; display: flex; gap: 1.6rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: .88rem; letter-spacing: .05em; transition: color .2s; }
nav a:hover { color: var(--green); }
.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.lang-sw { display: flex; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; }
.lang-btn { background: transparent; border: none; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; padding: .3rem .5rem; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.lang-btn.active { background: rgba(46,204,113,.15); color: var(--green); }
.lang-btn:hover:not(.active) { background: rgba(255,255,255,.06); color: var(--text); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--muted); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: rgba(13,13,13,.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(46,204,113,.12); padding: 1.5rem 2rem; gap: 1.2rem; z-index: 99; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--muted); text-decoration: none; font-size: 1rem; letter-spacing: .05em; padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.05); transition: color .2s; }
.mobile-menu a:hover { color: var(--green); }

/* ── HERO ── */
.hero { min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(46,204,113,.14) 0%, transparent 70%), radial-gradient(ellipse 50% 40% at 80% 80%, rgba(52,152,219,.07) 0%, transparent 60%); pointer-events: none; }
.hero-inner { max-width: 750px; position: relative; width: 100%; }
.badge { display: inline-block; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.3); color: var(--green); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.5rem; animation: pulse-badge 3s ease-in-out infinite; }
@keyframes pulse-badge { 0%,100%{box-shadow:0 0 0 0 rgba(46,204,113,.3)} 50%{box-shadow:0 0 0 8px rgba(46,204,113,0)} }
h1 { font-size: clamp(2.6rem,9vw,6rem); font-weight: 900; letter-spacing: -.02em; line-height: 1; margin-bottom: 1rem; }
h1 span { color: var(--green); }
.typing-wrap { min-height: 1.8em; font-size: clamp(.95rem,3vw,1.15rem); color: var(--muted); }
.typing-text { color: var(--sky); font-weight: 600; }
.cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--sky); margin-left: 2px; vertical-align: middle; animation: blink 1s step-end infinite; }
@keyframes blink { 50%{opacity:0} }
.hero-sub { font-size: clamp(.9rem,2.5vw,1rem); color: var(--muted); max-width: 520px; margin: .6rem auto 2.5rem; }
.cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: .75rem 1.8rem; border-radius: 8px; font-weight: 600; font-size: .92rem; text-decoration: none; transition: transform .15s, box-shadow .15s; cursor: pointer; border: none; }
.btn-primary { background: var(--green); color: #000; box-shadow: 0 0 24px rgba(46,204,113,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(46,204,113,.5); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.15); }
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.scroll-hint { margin-top: 3.5rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--muted); font-size: .72rem; letter-spacing: .1em; }
.scroll-hint span { display: block; width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, var(--green)); margin: 0 auto; animation: scroll-ln 2s ease-in-out infinite; }
@keyframes scroll-ln { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── SECTIONS ── */
section { padding: 5rem 1.5rem; }
.container { max-width: 1000px; margin: 0 auto; }
.section-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: .75rem; }
h2 { font-size: clamp(1.8rem,5vw,3rem); font-weight: 800; margin-bottom: 1.5rem; line-height: 1.15; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 1.02rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-card { background: var(--card); border: 1px solid rgba(46,204,113,.1); border-radius: 12px; padding: 1.3rem; transition: border-color .3s, transform .3s; }
.stat-card:hover { border-color: rgba(46,204,113,.4); transform: translateY(-4px); }
.stat-number { font-size: 2rem; font-weight: 900; color: var(--green); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--muted); margin-top: .3rem; }

/* ── ESTUDIOS ── */
#estudios { background: rgba(52,152,219,.03); }
.curiosity-box { background: var(--card); border: 1px solid rgba(86,180,211,.25); border-radius: 16px; padding: 2rem 2.5rem; margin-top: 2rem; position: relative; overflow: hidden; min-height: 120px; display: flex; align-items: center; }
.curiosity-box::before { content: '💡'; position: absolute; top: 1rem; right: 1.2rem; font-size: 1.3rem; opacity: .6; }
.curiosity-inner { position: relative; z-index: 1; width: 100%; }
.curiosity-label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); margin-bottom: .5rem; }
.curiosity-text { font-size: clamp(.95rem,2.5vw,1.08rem); color: var(--text); font-weight: 500; transition: opacity .5s ease, transform .5s ease; padding-right: 2.5rem; }
.curiosity-text.fade-out { opacity: 0; transform: translateY(-10px); }
.curiosity-dots { display: flex; gap: .4rem; margin-top: 1rem; flex-wrap: wrap; }
.curiosity-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(86,180,211,.3); transition: background .3s; flex-shrink: 0; }
.curiosity-dot.active { background: var(--sky); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.imaging-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.imaging-card { background: var(--card2); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 1.4rem; transition: border-color .2s, transform .2s; }
.imaging-card:hover { border-color: rgba(86,180,211,.35); transform: translateY(-4px); }
.imaging-icon { font-size: 1.8rem; margin-bottom: .7rem; }
.imaging-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.imaging-card p { font-size: .83rem; color: var(--muted); }
.prog-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.prog-item label { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .4rem; }
.prog-item label span { color: var(--muted); font-size: .78rem; }
.prog-bar { height: 5px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sky), var(--green)); width: 0; transition: width 1.2s ease; }

/* ── NEWS SLIDER ── */
.slider-section-title { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); margin: 2.5rem 0 0; }
.news-slider { position: relative; border-radius: 16px; overflow: hidden; margin-top: .9rem; background: #0a0a0a; border: 1px solid rgba(255,255,255,.07); aspect-ratio: 16/6; min-height: 240px; }
.ns-track { position: absolute; inset: 0; }
.ns-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.ns-slide.active { opacity: 1; pointer-events: auto; }
.ns-image { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 9s ease; }
.ns-slide.active .ns-image { transform: scale(1); }
.ns-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,10,10,.95) 0%, rgba(10,10,10,.7) 48%, rgba(10,10,10,.15) 100%); }
.ns-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.8rem 2rem; max-width: 62%; }
.ns-tag { display: inline-block; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .65rem; width: fit-content; background: rgba(46,204,113,.14); border: 1px solid rgba(46,204,113,.35); color: var(--green); }
.ns-tag.t-sky { background: rgba(86,180,211,.14); border-color: rgba(86,180,211,.35); color: var(--sky); }
.ns-tag.t-celta { background: rgba(136,207,176,.14); border-color: rgba(136,207,176,.35); color: var(--celta); }
.ns-content h3 { font-size: clamp(.92rem,2vw,1.35rem); font-weight: 800; line-height: 1.25; margin-bottom: .45rem; color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .8s ease .3s, transform .8s ease .3s; }
.ns-content p { font-size: clamp(.78rem,1.5vw,.86rem); color: rgba(240,240,240,.65); line-height: 1.55; margin-bottom: .7rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: 0; transform: translateY(10px); transition: opacity .8s ease .5s, transform .8s ease .5s; }
.ns-meta { font-size: .68rem; color: var(--muted); letter-spacing: .04em; opacity: 0; transition: opacity .8s ease .7s; }
.ns-slide.active .ns-content h3,
.ns-slide.active .ns-content p,
.ns-slide.active .ns-meta { opacity: 1; transform: translateY(0); }
.ns-controls { position: absolute; bottom: 1rem; right: 1.2rem; display: flex; align-items: center; gap: .6rem; z-index: 10; }
.ns-btn { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.75); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .76rem; transition: background .2s, color .2s; backdrop-filter: blur(6px); line-height: 1; }
.ns-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.ns-dots-row { display: flex; gap: 5px; align-items: center; }
.ns-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.22); cursor: pointer; transition: background .35s, transform .35s; }
.ns-dot.active { background: var(--green); transform: scale(1.35); }
.ns-slider-celta .ns-dot.active { background: var(--celta); }
.ns-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--green); width: 0%; z-index: 10; }
.ns-slider-celta .ns-progress { background: var(--celta); }
.ns-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ns-spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--green); border-radius: 50%; animation: ns-spin .8s linear infinite; }
.ns-slider-celta .ns-spinner { border-top-color: var(--celta); }
@keyframes ns-spin { to { transform: rotate(360deg); } }
.ns-news-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--muted); font-size: .82rem; }
.ns-news-error span { font-size: 1.6rem; }
.ns-content h3 a { color: inherit; text-decoration: none; }
.ns-content h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── AFICIONES ── */
#aficiones { background: rgba(46,204,113,.02); }
.aficiones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.3rem; margin-top: 2.5rem; }
.aficion-card { background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 1.8rem 1.4rem; text-align: center; position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.aficion-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 120%, var(--cg, rgba(46,204,113,.1)) 0%, transparent 70%); opacity: 0; transition: opacity .3s; }
.aficion-card:hover { transform: translateY(-6px); border-color: var(--cb, rgba(46,204,113,.3)); }
.aficion-card:hover::after { opacity: 1; }
.aficion-card.celta { --cg:rgba(136,207,176,.15); --cb:rgba(136,207,176,.4); }
.aficion-card.musica { --cg:rgba(155,89,182,.15); --cb:rgba(155,89,182,.4); }
.aficion-card.viajes { --cg:rgba(52,152,219,.15); --cb:rgba(52,152,219,.4); }
.aficion-card.amigos { --cg:rgba(241,196,15,.12); --cb:rgba(241,196,15,.35); }
.aficion-icon { font-size: 2.5rem; margin-bottom: .9rem; display: block; transition: transform .3s; }
.aficion-card:hover .aficion-icon { transform: scale(1.15) rotate(-5deg); }
.aficion-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .45rem; }
.aficion-card p { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.celta-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(136,207,176,.12); border: 1px solid rgba(136,207,176,.3); color: var(--celta); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .22rem .65rem; border-radius: 999px; margin-top: .8rem; font-weight: 600; }

/* ── SKILLS ── */
.skills-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
.skill-group-title { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.tag { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: .3rem .75rem; font-size: .8rem; color: var(--text); transition: background .2s, border-color .2s, transform .2s; }
.tag:hover { background: rgba(46,204,113,.1); border-color: rgba(46,204,113,.3); color: var(--green); transform: translateY(-2px); }
.tag.blue:hover { background: rgba(86,180,211,.1); border-color: rgba(86,180,211,.3); color: var(--sky); }

/* ── TIMELINE ── */
.timeline { position: relative; margin-top: 2.5rem; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--green), transparent); }
.timeline-item { position: relative; padding: 0 0 2.2rem 2rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.4rem; top: .4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(46,204,113,.5); transition: box-shadow .3s; }
.timeline-item:hover::before { box-shadow: 0 0 18px rgba(46,204,113,.8); }
.timeline-year { font-size: .72rem; color: var(--green); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25rem; }
.timeline-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.timeline-item p { font-size: .88rem; color: var(--muted); }

/* ── CONTACT ── */
#contacto { text-align: center; }
.contact-card { background: var(--card); border: 1px solid rgba(46,204,113,.15); border-radius: 20px; padding: 3.5rem 2rem; max-width: 600px; margin: 0 auto; }
.contact-card p { color: var(--muted); margin-bottom: 2rem; font-size: 1rem; }

/* ── FOOTER ── */
footer { text-align: center; padding: 2.5rem 1.5rem; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); font-size: .84rem; }
footer strong { color: var(--green); }

/* ── CANVAS / PARTICLES ── */
#fluid-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#neural-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.floating-particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--green); opacity: 0; animation: float-up var(--dur,8s) linear var(--delay,0s) infinite; }
@keyframes float-up { 0%{opacity:0;transform:translateY(100vh) scale(0)} 10%{opacity:.4} 90%{opacity:.15} 100%{opacity:0;transform:translateY(-10vh) scale(1)} }
.hero,section,footer { position: relative; z-index: 1; }
nav { z-index: 100; }

/* ── HELPERS ── */
.hl { color: var(--green); }
.celta-txt { color: var(--celta); }
.sky-txt { color: var(--sky); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  nav ul { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .skills-split { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  nav { padding: .85rem 1.2rem; }
  section { padding: 4rem 1.2rem; }
  h2 { font-size: 1.7rem; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-number { font-size: 1.6rem; }
  .news-slider { aspect-ratio: unset; min-height: 280px; }
  .ns-content { max-width: 100%; padding: 1.2rem; background: linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.5) 60%, transparent 100%); }
  .ns-overlay { background: rgba(10,10,10,.55); }
  .ns-content h3 { font-size: .95rem; }
  .ns-content p { display: none; }
  .curiosity-box { padding: 1.5rem 1.2rem; }
  .contact-card { padding: 2.5rem 1.2rem; }
  .aficiones-grid { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: 1.5rem; }
  .timeline-item { padding: 0 0 1.8rem 1.5rem; }
  .timeline-item::before { left: -1.9rem; }
}
@media (max-width: 380px) {
  .aficiones-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}

/* ── SECTION INTRO ── */
.section-intro { color: var(--muted); font-size: .92rem; max-width: 680px; margin-bottom: 2rem; line-height: 1.65; }
.section-label.sky { color: var(--sky); }

/* ── NEWS TABS ── */
.news-tabs { display: flex; gap: .5rem; margin: 1.5rem 0; flex-wrap: wrap; }
.news-tab { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: .32rem .9rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.news-tab:hover { background: rgba(46,204,113,.1); border-color: rgba(46,204,113,.3); color: var(--green); }
.news-tab.active { background: rgba(46,204,113,.15); border-color: rgba(46,204,113,.5); color: var(--green); }

/* ── NEWS GRID ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 1.4rem; margin-top: .5rem; }
.celta-grid .news-card { --accent: var(--celta); --accent-bg: rgba(136,207,176,.12); --accent-border: rgba(136,207,176,.35); }

/* ── NEWS CARD ── */
.news-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.news-card:hover { transform: translateY(-6px); border-color: rgba(46,204,113,.3); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.celta-grid .news-card:hover { border-color: rgba(136,207,176,.4); box-shadow: 0 12px 40px rgba(0,0,0,.4); }

.news-card-img { height: 190px; background: linear-gradient(135deg,#0e1f0e,#091a1a); position: relative; flex-shrink: 0; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 6s ease; }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 55%, transparent 100%); }
.news-card-no-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; opacity: .18; }
.news-card-tag {
  position: absolute; top: .75rem; left: .8rem;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  font-size: .58rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px;
  white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis;
}
.news-card-date-badge {
  position: absolute; bottom: .65rem; right: .7rem;
  background: rgba(0,0,0,.6); color: rgba(255,255,255,.55);
  font-size: .6rem; padding: .18rem .52rem; border-radius: 5px; backdrop-filter: blur(4px);
}

.news-card-body { padding: 1.25rem 1.3rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.news-card-body h3 { font-size: .97rem; font-weight: 700; line-height: 1.42; margin-bottom: .7rem; color: var(--text); }
.news-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: .75rem; margin-top: auto;
}
.news-card-source { font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.news-card-link { font-size: .75rem; font-weight: 700; color: var(--green); letter-spacing: .03em; white-space: nowrap; }
.celta-grid .news-card-link { color: var(--celta); }
.news-card:hover .news-card-link { text-decoration: underline; text-underline-offset: 3px; }

/* ── SKELETON LOADER ── */
.news-card-skeleton { background: var(--card); border: 1px solid rgba(255,255,255,.05); border-radius: 16px; height: 340px; animation: skeleton-pulse 1.6s ease-in-out infinite; }
@keyframes skeleton-pulse { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ── TIPS / CURIOSITY CARDS ── */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.6rem; margin-top: 1.6rem; }

.tip-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  padding: 1.8rem 1.6rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation-delay: var(--delay, 0s);
}
.tip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--sky));
  border-radius: 18px 18px 0 0;
}
.tip-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 110%, rgba(46,204,113,.06) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.tip-card:hover { transform: translateY(-6px); border-color: rgba(46,204,113,.28); box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(46,204,113,.08); }
.tip-card:hover::after { opacity: 1; }

.tip-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.tip-icon { font-size: 2rem; line-height: 1; display: block; }
.tip-num { font-size: 2.4rem; font-weight: 900; color: rgba(255,255,255,.04); line-height: 1; font-variant-numeric: tabular-nums; user-select: none; }

.tip-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.38; margin-bottom: 0; color: var(--text); }

.tip-divider { width: 2.5rem; height: 2px; background: linear-gradient(90deg, var(--green), var(--sky)); border-radius: 99px; margin: .85rem 0 .9rem; flex-shrink: 0; }

.tip-card p { font-size: .875rem; color: var(--muted); line-height: 1.72; flex: 1; }

.curiosity-card { background: var(--card2); border-color: rgba(86,180,211,.1); }
.curiosity-card::before { background: linear-gradient(90deg, var(--sky), #9b59b6); }
.curiosity-card::after { background: radial-gradient(ellipse 70% 50% at 50% 110%, rgba(86,180,211,.07) 0%, transparent 70%); }
.curiosity-card:hover { border-color: rgba(86,180,211,.3); box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(86,180,211,.08); }
.curiosity-card .tip-divider { background: linear-gradient(90deg, var(--sky), #9b59b6); }

.tip-skeleton { animation: skeleton-pulse 1.6s ease-in-out infinite; }
.tip-skeleton h3 { color: transparent; background: rgba(255,255,255,.07); border-radius: 4px; }
.tip-skeleton p { color: transparent; }
.tip-skeleton .tip-icon { opacity: .25; }

/* ── NEWS empty / error ── */
.news-empty { grid-column: 1/-1; text-align: center; color: var(--muted); font-size: .9rem; padding: 3rem 0; }
.news-empty span { display: block; font-size: 2rem; margin-bottom: .5rem; }

/* ── #investigacion, #curiosidades, #noticias ── */
#noticias { background: rgba(46,204,113,.02); }

/* ── Toque especial: section divider glow ── */
#noticias::before,
#investigacion::before,
#curiosidades::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(46,204,113,.25) 30%, rgba(86,180,211,.25) 70%, transparent 100%);
  margin-bottom: 0;
}
#investigacion::before { background: linear-gradient(90deg, transparent 0%, rgba(86,180,211,.25) 30%, rgba(155,89,182,.2) 70%, transparent 100%); }
#curiosidades::before  { background: linear-gradient(90deg, transparent 0%, rgba(86,180,211,.2) 30%, rgba(155,89,182,.2) 70%, transparent 100%); }

/* ── Section header badge ── */
.section-topic-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(46,204,113,.08); border: 1px solid rgba(46,204,113,.2);
  color: var(--green); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .85rem; border-radius: 999px;
  margin-bottom: 1.2rem;
}
.section-topic-badge.sky { background: rgba(86,180,211,.08); border-color: rgba(86,180,211,.2); color: var(--sky); }
.section-topic-badge.celta { background: rgba(136,207,176,.08); border-color: rgba(136,207,176,.2); color: var(--celta); }

/* ── News grid topic label ── */
.news-topic-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.news-topic-header h2 { margin-bottom: 0; }
.news-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(46,204,113,.4);
  animation: live-pulse 2.5s ease-in-out infinite;
  flex-shrink: 0; margin-left: .2rem;
}
@keyframes live-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(46,204,113,.4); }
  60%      { box-shadow: 0 0 0 7px rgba(46,204,113,0); }
}

/* Revealed tip-cards with delay */
.tip-card.reveal.visible { animation: tip-in .55s ease both; }
@keyframes tip-in {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive tips */
@media (max-width: 600px) {
  .tips-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .tip-card { padding: 1.4rem 1.2rem 1.2rem; }
  .tip-num { font-size: 1.8rem; }
}

/* ── RESPONSIVE nuevas secciones ── */
@media (max-width: 860px) {
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .news-card-img { height: 150px; }
  .section-intro { font-size: .86rem; }
}
