:root {
  --petrol: #00647B;
  --petrol-dark: #004A5B;
  --aqua: #00D2C4;
  --aqua-soft: #E3F8F5;
  --ink: #12343B;
  --text: #43626A;
  --muted: #5A767D;
  --line: #DCEBE8;
  --bg: #F7FBFA;
  --deep: #0B3A43;
  --radius: 16px;
  --head: "Raleway", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--petrol); text-decoration: none; }
a:hover { color: var(--petrol-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); letter-spacing: -.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.accent { color: var(--petrol); }
.kicker { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--petrol); }
.pill { align-self: flex-start; display: inline-block; background: var(--aqua-soft); color: var(--petrol); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.pill-aqua { background: var(--aqua); color: var(--deep); font-weight: 700; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text); margin: 0; }

/* Botones */
.btn { display: inline-block; background: var(--petrol); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 600; border: 1.5px solid var(--petrol); line-height: 1.2; }
.btn:hover { background: var(--petrol-dark); border-color: var(--petrol-dark); color: #fff; }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-outline { background: #fff; color: var(--petrol); }
.btn-outline:hover { background: var(--aqua-soft); color: var(--petrol-dark); }
.btn-aqua { background: var(--aqua); border-color: var(--aqua); color: var(--deep); font-weight: 700; }
.btn-aqua:hover { background: #3fe0d4; border-color: #3fe0d4; color: var(--deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Encabezado */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--petrol); }

/* Portada */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.02em; }
.featured { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--ink); }
.featured img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.featured-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.featured-title { font: 700 26px/1.2 var(--head); }
.featured:hover .featured-title { color: var(--petrol); }

.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-bottom: 48px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--petrol); transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--aqua); transform: translateY(-2px); color: var(--petrol); }
.cat-name { font: 700 18px/1.2 var(--head); color: var(--ink); }
.cat-desc { font-size: 13px; color: var(--muted); }

.band { background: var(--petrol); color: #fff; }
.band-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.band-text { display: flex; flex-direction: column; gap: 16px; }
.band h2 { color: #fff; margin: 0; font-weight: 800; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; }
.band p { margin: 0; color: #D9F3F0; font-size: 17px; }
.band-price { color: #D9F3F0; font-size: 15px; }
.band-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.band-imgs img { border-radius: var(--radius); background: #fff; aspect-ratio: 1; object-fit: cover; width: 100%; }

.section { padding-top: 56px; padding-bottom: 24px; }
.section h2 { font-weight: 800; font-size: clamp(26px, 3vw, 32px); margin: 0 0 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* Tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; padding: 8px 0 32px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(0, 100, 123, .10); }
.card-img img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.card-title { font: 700 20px/1.25 var(--head); margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--petrol); }
.card-excerpt { color: var(--muted); font-size: 15px; margin: 0; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 40px; color: var(--muted); font-size: 15px; }

/* Categoría */
.page-head { padding: 48px 0 24px; max-width: 720px; }
.page-title { font-weight: 800; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 6px 0 10px; }

/* Artículo */
.post { max-width: 740px; margin: 0 auto; padding: 48px 0 24px; }
.post-head h1 { font-weight: 800; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; margin: 8px 0 14px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.post-cover { margin: 0 0 32px; }
.post-cover img { border-radius: 20px; width: 100%; }
.prose { font-size: 19px; line-height: 1.75; color: #1c3d44; }
.prose h2 { font-weight: 800; font-size: 28px; line-height: 1.25; margin: 44px 0 12px; }
.prose h3 { font-weight: 700; font-size: 22px; line-height: 1.3; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--petrol); }
.prose blockquote { margin: 28px 0; padding: 16px 20px; background: var(--aqua-soft); border-radius: 12px; color: var(--ink); }
.prose img, .prose figure { margin: 28px 0; border-radius: 12px; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.ad { margin: 32px 0; min-height: 100px; }
.promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0; padding: 24px; background: var(--aqua-soft); border-radius: 20px; }
.promo p { margin: 4px 0 0; }
.promo-title { font: 700 22px/1.25 var(--head); color: var(--ink); }
.related { border-top: 1px solid var(--line); padding: 32px 0 24px; }
.related h2 { font-weight: 800; font-size: 26px; }

/* Agenda 2027 */
.agenda-hero { background: var(--aqua-soft); }
.agenda-hero .hero { padding-top: 64px; padding-bottom: 64px; }
.agenda-hero-img { border-radius: 24px; width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.product img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--aqua-soft); }
.product-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.product h3 { margin: 0; font-weight: 800; font-size: 26px; }
.product p { margin: 0; font-size: 15px; }
.product ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.8; }
.product-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.price { font: 800 30px/1 var(--head); color: var(--petrol); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.step-n { width: 36px; height: 36px; border-radius: 999px; background: var(--aqua); color: var(--deep); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.read-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; }
.read-title { font: 700 24px/1.25 var(--head); margin: 8px 0 0; }
.read-links { display: flex; flex-direction: column; gap: 10px; font-weight: 500; }

/* Vacío / 404 */
.empty { text-align: center; padding: 96px 24px; }
.empty h1 { font-weight: 800; font-size: 34px; }

/* Pie */
.site-footer { background: var(--deep); color: #D9F3F0; margin-top: 56px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; line-height: 1.6; max-width: 380px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: #D9F3F0; }
.site-footer nav a:hover { color: #fff; }
.footer-title { color: #fff; font-weight: 600; margin: 0 0 4px; }
.footer-bottom { border-top: 1px solid rgba(217, 243, 240, .15); padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: #A9D5CF; }

/* Responsive */
@media (max-width: 960px) {
  .hero, .band-grid, .read-box { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .prose { font-size: 18px; }
  .hero { padding-top: 32px; gap: 28px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}

/* Suscripción */
.subscribe { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; margin: 40px 0; padding: 28px; background: var(--deep, #0b3440); color: #fff; border-radius: 20px; }
.subscribe .kicker { color: var(--aqua); }
.subscribe .muted, .subscribe .small { color: rgba(255,255,255,.75); }
.subscribe a { color: var(--aqua); }
.subscribe-title { font: 800 24px/1.2 var(--head); margin: 6px 0; color: #fff; }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 10px; }
.subscribe-form input[type=email] { flex: 1 1 220px; padding: 14px 18px; border-radius: 999px; border: 0; font: inherit; }
.subscribe-form .btn { background: var(--aqua); border-color: var(--aqua); color: var(--deep, #0b3440); font-weight: 700; }
.subscribe-form .small { flex-basis: 100%; margin: 0; font-size: 13px; }
.sub-msg { flex-basis: 100%; margin: 0; color: #ffd6d6; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.thanks { text-align: center; max-width: 720px; }
@media (max-width: 760px) { .subscribe { grid-template-columns: 1fr; } }

/* Buscador */
.search-mini { display: flex; align-items: center; background: var(--aqua-soft); border-radius: 999px; padding: 4px 4px 4px 16px; margin-left: auto; }
.search-mini input { border: 0; background: transparent; font: inherit; font-size: 15px; width: 150px; outline: none; color: var(--ink); }
.search-mini input::-webkit-search-cancel-button { display: none; }
.search-mini button { border: 0; background: var(--petrol); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.search-mini button:hover { background: var(--petrol-dark); }
.search-big { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; max-width: 640px; }
.search-big input { flex: 1 1 260px; padding: 14px 20px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; }
.search-big input:focus { outline: none; border-color: var(--petrol); }
.search-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 32px; }
@media (max-width: 960px) { .search-mini input { width: 110px; } }
@media (max-width: 640px) { .search-mini { order: 2; } .search-mini input { width: 90px; } }
