/* ============================================================
   TROMBOSIS CHILE — styles.css
   Fuentes: DM Sans (Google Fonts)
   Íconos: Material Symbols Rounded (Google Fonts)
============================================================ */

/* ── RESET & VARIABLES ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:   #0D47A1;
  --blue-mid:    #1565C0;
  --blue-light:  #1976D2;
  --blue-pale:   #E3F2FD;
  --blue-accent: #64B5F6;
  --white:       #FFFFFF;
  --gray-soft:   #F5F7FA;
  --gray-mid:    #E8ECF0;
  --gray-text:   #546E7A;
  --gray-dark:   #37474F;
  --black:       #1A1A2E;
  --shadow-sm:   0 2px 8px rgba(13,71,161,.08);
  --shadow-md:   0 6px 24px rgba(13,71,161,.13);
  --shadow-lg:   0 12px 40px rgba(13,71,161,.18);
  --radius:      10px;
  --radius-lg:   18px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ── MATERIAL SYMBOLS ──────────────────────────────────── */
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
.ms-sm { font-size: 1.05em; }
.ms-lg { font-size: 1.5em; }
.ms-xl { font-size: 2rem; }

/* ── HEADER ────────────────────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--gray-mid);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 40px; width: auto; display: block; object-fit: contain; }

nav { display: flex; align-items: center; gap: 2px; }
nav a { font-size: 0.84rem; font-weight: 500; color: var(--gray-dark); text-decoration: none; padding: 6px 13px; border-radius: 8px; transition: all var(--transition); }
nav a:hover  { background: var(--blue-pale); color: var(--blue-dark); }
nav a.active { background: var(--blue-dark); color: var(--white); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--blue-dark); border-radius: 2px; transition: all var(--transition); }

/* ── MOBILE NAV ────────────────────────────────────────── */
#mobile-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-mid); box-shadow: var(--shadow-md); z-index: 999; padding: 1rem 2rem; flex-direction: column; gap: 3px; }
#mobile-nav.open { display: flex; }
#mobile-nav a { font-size: 0.9rem; font-weight: 500; color: var(--gray-dark); text-decoration: none; padding: 10px 12px; border-radius: 8px; transition: all var(--transition); }
#mobile-nav a:hover { background: var(--blue-pale); color: var(--blue-dark); }

/* ── SECTIONS ──────────────────────────────────────────── */
.page-section { padding: 88px 0; }
.page-section.bg-soft { background: var(--gray-soft); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-light); margin-bottom: .5rem; display: flex; align-items: center; gap: 6px; }
.section-title   { font-family: 'DM Sans', sans-serif; font-size: clamp(1.7rem,3vw,2.4rem); font-weight: 800; color: var(--blue-dark); line-height: 1.2; margin-bottom: 1rem; }
.section-lead    { font-size: 1.05rem; color: var(--gray-text); max-width: 620px; line-height: 1.75; }
.section-header  { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-lead    { margin: 0 auto; }
.section-header.centered .section-eyebrow { justify-content: center; }

/* ── HERO ──────────────────────────────────────────────── */
#hero { margin-top: 68px; min-height: calc(100vh - 68px); background: linear-gradient(140deg, #0A2E6E 0%, var(--blue-mid) 60%, #0D47A1 100%); position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg-pattern { position: absolute; inset: 0; opacity: .04; background-image: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,.5) 39px, rgba(255,255,255,.5) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,.5) 39px, rgba(255,255,255,.5) 40px); }
.hero-img-bg { position: absolute; inset: 0; background-image: url('https://images.unsplash.com/photo-1631217868264-e5b90bb7e133?auto=format&fit=crop&w=2000&q=80'); background-size: cover; background-position: center; background-attachment: fixed; opacity: .5; }
.hero-img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,46,110,.55) 0%, rgba(13,71,161,.72) 55%, rgba(10,46,110,.88) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 1200px; width: 100%; margin: 0 auto; padding: 4rem 2rem; display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; text-align: left; }
.hero-left { max-width: 620px; }
.hero-subtitle { font-size: clamp(1rem,1.8vw,1.15rem); color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 2.5rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-start; }
.hero-title { font-family: 'DM Sans', sans-serif; font-size: clamp(2.4rem,5vw,3.6rem); font-weight: 900; color: var(--white); line-height: 1.05; margin-bottom: 1.25rem; }
.hero-title em { font-style: italic; color: var(--blue-accent); }
.hero-subtitle { font-size: clamp(1rem,1.8vw,1.15rem); color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 2.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; background: var(--white); color: var(--blue-dark); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 700; border-radius: 8px; text-decoration: none; border: none; cursor: pointer; transition: all var(--transition); }
.btn-primary:hover { background: var(--blue-pale); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; background: transparent; color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; border-radius: 8px; border: 2px solid rgba(255,255,255,.45); text-decoration: none; cursor: pointer; transition: all var(--transition); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); transform: translateY(-2px); }

.hero-stat-num   { font-family: 'DM Sans', sans-serif; font-size: 2rem; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 0.72rem; color: rgba(255,255,255,.55); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }

.hero-right  { display: flex; align-items: center; justify-content: center; }
.hero-visual { width: 100%; max-width: 440px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; overflow: hidden; backdrop-filter: blur(12px); }
.hero-visual-img   { width: 100%; height: 200px; object-fit: cover; display: block; opacity: .85; }
.hero-visual-body  { padding: 1.4rem 1.5rem; }
.hero-visual-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1rem; }
.hero-pills { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.hero-pill  { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: .65rem .85rem; display: flex; align-items: center; gap: .5rem; }
.hero-pill .ms    { font-size: 1.15rem; color: #90CAF9; }
.hero-pill-text   { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,.85); line-height: 1.3; }
.ecg-container    { background: rgba(0,0,0,.25); border-radius: 8px; padding: .75rem .75rem .5rem; margin-bottom: 1rem; }
.ecg-line         { stroke: #69F0AE; stroke-width: 2; fill: none; stroke-dasharray: 800; stroke-dashoffset: 800; animation: drawECG 2.5s ease forwards 1s; }
@keyframes drawECG { to { stroke-dashoffset: 0; } }

/* ── ABOUT ─────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-block { position: relative; }
.about-img-wrapper { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.about-img-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-badge-float { position: absolute; bottom: -18px; right: -18px; background: var(--blue-dark); color: var(--white); border-radius: 8px; padding: 1.1rem 1.4rem; box-shadow: var(--shadow-md); text-align: center; }
.about-badge-num   { font-family: 'DM Sans', sans-serif; font-size: 1.8rem; line-height: 1; }
.about-badge-label { font-size: 0.7rem; font-weight: 500; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }
.about-text p { color: var(--gray-text); line-height: 1.8; margin-bottom: 1rem; font-size: .97rem; }

/* Objetivos */
.objectives-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 1.25rem; margin-top: 3rem; }
.obj-card { background: var(--white); border-radius: 8px; padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-mid); transition: all var(--transition); }
.obj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #90CAF9; }
.obj-icon { width: 50px; height: 50px; background: var(--blue-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.obj-icon .ms { font-size: 1.5rem; color: var(--blue-mid); }
.obj-card h3 { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; color: var(--blue-dark); margin-bottom: .4rem; }
.obj-card p  { font-size: 0.88rem; color: var(--gray-text); line-height: 1.6; }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1.25rem; }
.team-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-mid); transition: all var(--transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; transition: transform .4s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info  { padding: 1.1rem 1.15rem 1.3rem; }
.team-name  { font-family: 'DM Sans', sans-serif; font-size: 0.97rem; color: var(--blue-dark); margin-bottom: .15rem; }
.team-role  { font-size: 0.73rem; font-weight: 600; color: var(--blue-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .5rem; }
.team-bio   { font-size: 0.8rem; color: var(--gray-text); line-height: 1.55; }

/* ── NOVEDADES ─────────────────────────────────────────── */
.news-controls { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; }
.search-input  { flex: 1; min-width: 220px; padding: 10px 16px; border: 1.5px solid var(--gray-mid); border-radius: 8px; font-size: 0.9rem; font-family: 'DM Sans',sans-serif; color: var(--black); background: var(--white); outline: none; transition: border-color var(--transition); }
.search-input:focus { border-color: var(--blue-light); }
.filter-select { padding: 10px 16px; border: 1.5px solid var(--gray-mid); border-radius: 8px; font-size: 0.9rem; font-family: 'DM Sans',sans-serif; color: var(--gray-dark); background: var(--white); outline: none; cursor: pointer; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 1.5rem; }
.news-card  { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-mid); transition: all var(--transition); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-img   { width: 100%; height: 185px; overflow: hidden; flex-shrink: 0; }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-body  { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.news-meta  { display: flex; align-items: center; gap: .7rem; margin-bottom: .65rem; }
.news-date  { font-size: 0.75rem; color: var(--gray-text); font-weight: 500; }
.news-tag   { font-size: 0.67rem; font-weight: 700; color: var(--blue-light); background: var(--blue-pale); padding: 2px 9px; border-radius: 100px; text-transform: uppercase; letter-spacing: .5px; }
.news-title { font-family: 'DM Sans', sans-serif; font-size: 1.02rem; color: var(--blue-dark); margin-bottom: .55rem; line-height: 1.35; }
.news-excerpt { font-size: 0.87rem; color: var(--gray-text); flex: 1; margin-bottom: 1rem; }
.btn-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--blue-light); background: none; border: none; padding: 0; cursor: pointer; transition: color var(--transition); }
.btn-link:hover { color: var(--blue-dark); }
.btn-link .ms { font-size: 1rem; transition: transform var(--transition); }
.btn-link:hover .ms { transform: translateX(3px); }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.58); z-index: 2000; padding: 2rem; overflow-y: auto; align-items: flex-start; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: 10px; max-width: 720px; width: 100%; margin: auto; padding: 2.5rem; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,.3); animation: modalIn .25s ease; }
@keyframes modalIn { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
.modal-close { position: absolute; top: 1.4rem; right: 1.4rem; background: var(--gray-soft); border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--gray-text); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.modal-close:hover { background: var(--gray-mid); color: var(--black); }
.modal-tag           { font-size: 0.72rem; font-weight: 700; color: var(--blue-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: .5rem; }
.modal-title         { font-family: 'DM Sans', sans-serif; font-size: 1.55rem; color: var(--blue-dark); margin-bottom: .4rem; line-height: 1.25; }
.modal-date          { font-size: 0.8rem; color: var(--gray-text); margin-bottom: 1.5rem; }
.modal-section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-light); margin: 1.5rem 0 .5rem; }
.modal-text          { font-size: 0.95rem; color: var(--gray-dark); line-height: 1.75; }
.modal-text p{ margin-bottom:15px;}
.modal-keys          { margin: 0; padding-left: 1.2rem; }
.modal-keys li       { font-size: 0.9rem; color: var(--gray-dark); line-height: 1.7; margin-bottom: .25rem; }
.modal-ref           { font-size: 0.82rem; color: var(--gray-text); margin-bottom: .3rem; padding-left: 1rem; border-left: 3px solid var(--blue-pale); }

/* Newsletter */
.newsletter-box { background: var(--blue-dark); border-radius: 10px; padding: 2.5rem; display: flex; align-items: center; gap: 3rem; margin-top: 3rem; }
.newsletter-text { flex: 1; }
.newsletter-text h3 { font-family: 'DM Sans', sans-serif; font-size: 1.35rem; color: var(--white); margin-bottom: .4rem; }
.newsletter-text p  { font-size: 0.9rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: .7rem; min-width: 270px; }
.newsletter-form input { padding: 10px 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; font-size: 0.9rem; background: rgba(255,255,255,.1); color: var(--white); font-family: 'DM Sans',sans-serif; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.5); }
.btn-newsletter { padding: 11px 20px; background: var(--white); color: var(--blue-dark); font-size: 0.88rem; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; font-family: 'DM Sans',sans-serif; transition: all var(--transition); }
.btn-newsletter:hover { background: var(--blue-pale); }

/* ── RECOMENDACIONES ───────────────────────────────────── */
.guidelines-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(255px,1fr)); gap: 1.5rem; }
.guide-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-mid); transition: all var(--transition); }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.guide-cover { width: 100%; height: 155px; overflow: hidden; position: relative; }
.guide-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.guide-card:hover .guide-cover img { transform: scale(1.04); }
.guide-cover-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,71,161,.75) 0%, rgba(13,71,161,.2) 60%, transparent 100%); display: flex; align-items: flex-end; padding: .9rem; }
.guide-cover-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.85); background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); padding: 3px 9px; border-radius: 100px; display: flex; align-items: center; gap: 4px; }
.guide-cover-tag .ms { font-size: .9rem; }
.guide-body  { padding: 1.2rem; }
.guide-date  { font-size: 0.72rem; color: var(--gray-text); font-weight: 500; margin-bottom: .35rem; }
.guide-title { font-family: 'DM Sans', sans-serif; font-size: 0.94rem; color: var(--blue-dark); margin-bottom: .45rem; line-height: 1.3; }
.guide-desc  { font-size: 0.81rem; color: var(--gray-text); line-height: 1.6; margin-bottom: .9rem; }
.btn-download { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; background: var(--blue-pale); color: var(--blue-dark); font-size: 0.8rem; font-weight: 700; border-radius: 8px; text-decoration: none; border: none; cursor: pointer; transition: all var(--transition); font-family: 'DM Sans',sans-serif; }
.btn-download:hover { background: var(--blue-dark); color: var(--white); }
.btn-download .ms { font-size: 1rem; }

/* ── MEDICAMENTOS ──────────────────────────────────────── */
.drugs-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap: 1.5rem; }
.drug-card  { background: var(--white); border-radius: 8px; padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-mid); border-left: 4px solid var(--blue-light); transition: all var(--transition); display: flex; flex-direction: column; gap: .45rem; }
.drug-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.drug-icon-row { display: flex; align-items: center; gap: 10px; margin-bottom: .2rem; }
.drug-icon { width: 40px; height: 40px; background: var(--blue-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.drug-icon .ms { font-size: 1.3rem; color: var(--blue-mid); }
.drug-name   { font-family: 'DM Sans', sans-serif; font-size: 1.07rem; color: var(--blue-dark); }
.drug-brand  { font-size: 0.78rem; color: var(--gray-text); }
.drug-lab    { font-size: 0.72rem; font-weight: 600; color: var(--blue-light); text-transform: uppercase; letter-spacing: .5px; }
.drug-type   { display: inline-block; padding: 3px 10px; background: var(--blue-pale); color: var(--blue-dark); font-size: 0.7rem; font-weight: 700; border-radius: 100px; text-transform: uppercase; letter-spacing: .5px; }
.drug-desc   { font-size: 0.86rem; color: var(--gray-text); line-height: 1.6; flex: 1; }

/* ── CASOS CLÍNICOS ────────────────────────────────────── */
.cases-list { display: flex; flex-direction: column; gap: 1.25rem; }
.case-card  { background: var(--white); border-radius: 8px; padding: 1.75rem 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-mid); transition: all var(--transition); cursor: pointer; }
.case-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow-md); transform: translateX(4px); }
.case-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.case-num    { font-size: 0.7rem; font-weight: 700; color: var(--blue-light); text-transform: uppercase; letter-spacing: 1px; background: var(--blue-pale); padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
.case-date   { font-size: 0.78rem; color: var(--gray-text); }
.case-title  { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; color: var(--blue-dark); margin-bottom: .55rem; line-height: 1.3; }
.case-preview { font-size: 0.87rem; color: var(--gray-text); line-height: 1.65; }

/* ── Q&A ───────────────────────────────────────────────── */
.qa-grid { display: flex; flex-direction: column; gap: 1rem; }
.qa-item { background: var(--white); border-radius: 8px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-mid); overflow: hidden; transition: box-shadow var(--transition); }
.qa-item:hover { box-shadow: var(--shadow-md); }
.qa-question { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem; cursor: pointer; background: var(--white); border: none; width: 100%; text-align: left; }
.qa-q-icon { width: 30px; height: 30px; background: var(--blue-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--blue-dark); flex-shrink: 0; }
.qa-q-content { flex: 1; }
.qa-q-text   { font-size: 0.95rem; font-weight: 600; color: var(--blue-dark); line-height: 1.4; }
.qa-meta     { display: flex; gap: .75rem; margin-top: .3rem; }
.qa-category { font-size: 0.68rem; font-weight: 700; color: var(--blue-light); text-transform: uppercase; letter-spacing: .5px; }
.qa-date     { font-size: 0.72rem; color: var(--gray-text); }
.qa-chevron  { flex-shrink: 0; color: var(--gray-text); transition: transform var(--transition); margin-top: 4px; }
.qa-item.open .qa-chevron { transform: rotate(180deg); }
.qa-answer   { display: none; padding: 0 1.5rem 1.25rem 3.5rem; }
.qa-item.open .qa-answer { display: block; }
.qa-a-badge  { display: inline-flex; align-items: center; gap: .35rem; font-size: 0.72rem; font-weight: 700; color: var(--white); background: var(--blue-dark); padding: 3px 10px; border-radius: 100px; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .5px; }
.qa-a-badge .ms  { font-size: .95rem; }
.qa-answer-text  { font-size: 0.9rem; color: var(--gray-dark); line-height: 1.75; }

/* Formularios */
.send-forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.send-form-box   { background: var(--white); border-radius: 8px; padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-mid); }
.send-form-title { font-family: 'DM Sans', sans-serif; font-size: 1.15rem; color: var(--blue-dark); margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-mid); display: flex; align-items: center; gap: 8px; }
.send-form-title .ms { color: var(--blue-light); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-dark); margin-bottom: .4rem; }
.form-group input,
.form-group textarea,
.form-group select { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-mid); border-radius: 8px; font-size: 0.9rem; font-family: 'DM Sans',sans-serif; color: var(--black); background: var(--gray-soft); outline: none; transition: border-color var(--transition); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue-light); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-send { width: 100%; padding: 12px 20px; background: var(--blue-dark); color: var(--white); font-size: 0.9rem; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; font-family: 'DM Sans',sans-serif; transition: all var(--transition); }
.btn-send:hover { background: var(--blue-mid); transform: translateY(-1px); }

/* ── CONTACTO ──────────────────────────────────────────── */
.contact-box       { max-width: 580px; margin: 0 auto; text-align: center; }
.contact-icon-wrap { width: 76px; height: 76px; background: var(--blue-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.contact-icon-wrap .ms { font-size: 2.2rem; color: var(--blue-mid); }
.contact-email { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); text-decoration: none; background: var(--blue-pale); padding: 12px 24px; border-radius: 8px; margin: 1.5rem 0; transition: all var(--transition); }
.contact-email:hover { background: var(--blue-dark); color: var(--white); }
.contact-email .ms { font-size: 1.15rem; }
.contact-lead { font-size: 1rem; color: var(--gray-text); line-height: 1.7; }

/* ── PAGE HERO (headers internos con foto de fondo) ────── */
.page-hero {
  margin-top: 68px;
  min-height: 340px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(140deg, #0A2E6E 0%, var(--blue-mid) 60%, #0D47A1 100%);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .5;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,46,110,.55) 0%, rgba(13,71,161,.72) 55%, rgba(10,46,110,.9) 100%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 3rem 2rem; text-align: center; }
.page-hero .section-eyebrow { color: rgba(255,255,255,.75); justify-content: center; }
.page-hero-title { font-family: 'DM Sans', sans-serif; font-size: clamp(2rem,4vw,2.9rem); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 1rem; }
.page-hero-title-news { font-family: 'DM Sans', sans-serif; font-size: clamp(2rem,4vw,2.9rem); font-weight: 900; color: var(--blue-dark); line-height: 1.1; margin-bottom: 1rem; }
.page-hero-lead  { font-size: 1.02rem; color: rgba(255,255,255,.8); line-height: 1.75; max-width: 620px; margin: 0 auto; }

/* ── PAGINACIÓN ────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination button {
  min-width: 40px; height: 40px; padding: 0 .8rem;
  border: 1.5px solid var(--gray-mid); background: var(--white); color: var(--gray-dark);
  border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans',sans-serif; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.pagination button:hover:not(:disabled) { border-color: var(--blue-light); color: var(--blue-dark); }
.pagination button.active { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .ms { font-size: 1.1rem; }
/* ── TEMAS DE INTERÉS (nuevo) ─────────────────────────── */
.topics-section { padding: 3rem 0; background: var(--blue-pale); }
.topics-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.topic-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 1.5px solid var(--gray-mid);
  border-radius: 100px; padding: 12px 22px;
  text-decoration: none; color: var(--blue-dark);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.92rem;
  transition: all var(--transition);
}
.topic-pill:hover { border-color: var(--blue-light); background: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13,71,161,.12); }
.topic-pill .ms { color: var(--blue-mid); font-size: 1.2rem; }

/* ── BANNER DESTACADO (nuevo, inspirado en referencia PPTX) ── */
.featured-banner { position: relative; border-radius: 10px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.featured-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.featured-banner-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,40,.15) 0%, rgba(10,20,40,.35) 45%, rgba(10,20,40,.78) 100%); }
.featured-panel {
  position: relative; z-index: 2; margin: 2rem; margin-left: auto;
  width: 100%; max-width: 420px;
  background: rgba(20,30,55,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 2rem;
}
.featured-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-pale); font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.featured-badge .ms { font-size: 1rem; }
.featured-title { font-family: 'DM Sans', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: .8rem; }
.featured-desc { color: rgba(255,255,255,.82); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }
.featured-dots { display: flex; gap: 6px; margin-top: 1.6rem; }
.featured-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); }
.featured-dots span.active { background: var(--white); width: 20px; border-radius: 100px; }
@media (max-width: 640px) {
  .featured-panel { margin: 1rem; max-width: none; }
  .featured-banner { min-height: 380px; }
}

footer { background: #080E1F; color: rgba(255,255,255,.6); padding: 4rem 0 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.footer-top   { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 2rem; }
.footer-logo     { display: flex; align-items: center; margin-bottom: 1rem; }
.footer-logo-img { height: 36px; width: auto; display: block; object-fit: contain;
                   /* Logo sobre fondo oscuro: si tu PNG es oscuro, activa el filtro de abajo */
                   /* filter: brightness(0) invert(1); */ }
.footer-brand p { font-size: 0.86rem; line-height: 1.7; max-width: 270px; margin-bottom: 1.25rem; }
.footer-socials { display: flex; gap: .7rem; }
.footer-social { width: 34px; height: 34px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: all var(--transition); }
.footer-social:hover { background: var(--blue-light); color: var(--white); }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: .9rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { font-size: 0.86rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.82rem; }

/* ── UTILS ─────────────────────────────────────────────── */
.no-results { text-align: center; padding: 3rem; color: var(--gray-text); font-size: 0.95rem; }
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--blue-dark); color: var(--white); padding: 12px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-md); z-index: 3000; opacity: 0; transform: translateY(10px); transition: all var(--transition); pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content    { grid-template-columns: 1fr; }
  .hero-right      { display: none; }
  .about-grid      { grid-template-columns: 1fr; }
  .about-img-block { display: none; }
  .footer-top      { grid-template-columns: 1fr 1fr; }
  .send-forms-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav             { display: none; }
  .hamburger      { display: flex; }
  .hero-title     { font-size: 2.4rem; }
  .hero-img-bg    { background-attachment: scroll; }
  .page-section   { padding: 64px 0; }
  .page-hero      { min-height: 260px; }
  .footer-top     { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-box { flex-direction: column; gap: 1.5rem; }
  .newsletter-form { min-width: auto; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}
.news-detail{
  margin-top: 80px;
}