/* ============================================
   STARFIVE AGENCY - Rediseño 2026
   Paleta basada en el logo (cian + amarillo)
   ============================================ */

:root {
  --brand-cyan: #00bbcc;
  --brand-cyan-dark: #0097a7;
  --brand-cyan-deep: #06575f;
  --brand-yellow: #f9bf00;
  --brand-yellow-dark: #e0a800;
  --ink-900: #0b1b21;
  --ink-700: #24404a;
  --ink-500: #5a6b73;
  --line: #e4eaed;
  --bg-soft: #f4f8f9;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(11, 27, 33, .06);
  --shadow-md: 0 14px 40px rgba(11, 27, 33, .10);
  --wrap: 1180px;
  --ease: .28s cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Hind", "Segoe UI", system-ui, -apple-system, arial, sans-serif;
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-cyan-dark); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--brand-cyan); }

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
}
.btn-primary { background: var(--brand-yellow); color: var(--ink-900); box-shadow: 0 8px 20px rgba(249,191,0,.35); }
.btn-primary:hover { background: var(--brand-yellow-dark); color: var(--ink-900); transform: translateY(-3px); }
.btn-secondary { background: var(--brand-cyan); color: #fff; box-shadow: 0 8px 20px rgba(0,187,204,.30); }
.btn-secondary:hover { background: var(--brand-cyan-dark); color: #fff; transform: translateY(-3px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-outline { background: transparent; border-color: var(--brand-cyan); color: var(--brand-cyan-dark); padding: 10px 22px; font-size: 15px; }
.btn-outline:hover { background: var(--brand-cyan); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink-700); font-weight: 600; font-size: 15.5px; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brand-cyan); transition: width var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--ink-900); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-cta { margin-left: 8px; }
.mobile-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--ink-900); margin: 5px 0; transition: var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(0,187,204,.45), transparent 60%),
              linear-gradient(160deg, var(--brand-cyan-deep) 0%, #03191d 100%);
  padding: 110px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .55;
}
.hero .wrap { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero .eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 54px); font-weight: 700; margin-bottom: 18px; }
.hero h1 em { color: var(--brand-yellow); font-style: normal; }
.hero p.subtitle { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.88); margin: 0 auto 34px; max-width: 680px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .kicker { color: var(--brand-cyan-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 10px; }
.section-head p { color: var(--ink-500); margin-bottom: 0; }

/* ---------- Grid de tarjetas ---------- */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(0,187,204,.4); }
.card .icon {
  width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,187,204,.14), rgba(249,191,0,.16)); margin-bottom: 20px;
}
.card .icon svg { width: 32px; height: 32px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--ink-500); margin: 0 0 18px; }

/* ---------- Feature (split) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split h2 { font-size: clamp(24px, 3vw, 34px); }
.split ul.feature-list { list-style: none; padding: 0; margin: 22px 0 0; }
.split ul.feature-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--ink-700); }
.split ul.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}

/* ---------- Panel grafico (reemplaza fotos en secciones split) ---------- */
.split-media .panel {
  border-radius: var(--radius); padding: 48px; min-height: 320px;
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(600px 260px at 80% -20%, rgba(0,187,204,.28), transparent 60%),
              linear-gradient(150deg, var(--brand-cyan-deep), #04191d);
  box-shadow: var(--shadow-md); text-align: center;
}
.split-media .panel::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 20px 20px; opacity: .4;
}
.split-media .panel svg { width: 120px; height: 120px; position: relative; z-index: 2; }
.split-media .panel .panel-inner { position: relative; z-index: 2; }
.split-media .panel .panel-badge {
  display: inline-block; margin-top: 20px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .04em;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat .num { font-size: 42px; font-weight: 700; color: var(--brand-cyan-dark); line-height: 1; }
.stat .label { color: var(--ink-500); font-size: 15px; margin-top: 8px; }

/* ---------- Bandas CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-cyan-dark), var(--brand-cyan));
  color: #fff; border-radius: 22px; padding: 56px 40px; text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Formulario ---------- */
.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink-900); margin-bottom: 7px; font-size: 15px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px; color: var(--ink-900); background: #fff; transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-cyan); box-shadow: 0 0 0 4px rgba(0,187,204,.14);
}
.info-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.info-box h3 { font-size: 20px; }
.info-box .info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.info-box .info-item svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; }
.info-box .info-item b { color: var(--ink-900); display: block; }
.info-box .info-item span { color: var(--ink-500); }

/* ---------- Ilustración de contacto (SVG vertical) ---------- */
.contact-art { width: 100%; max-width: 540px; margin: 0 auto; align-self: start; }
.contact-art svg {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.72); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--brand-yellow); }
.site-footer .f-links { list-style: none; padding: 0; margin: 0; }
.site-footer .f-links li { margin-bottom: 10px; }
.site-footer .footer-brand img { height: 44px; margin-bottom: 14px; background: transparent; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 22px; text-align: center; font-size: 14px; }
.social { display: flex; gap: 12px; margin-top: 8px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.10); display: grid; place-items: center; }
.social a:hover { background: var(--brand-cyan); }
.social svg { width: 18px; height: 18px; }

/* ---------- Página interna hero ---------- */
.page-hero {
  background: radial-gradient(900px 400px at 75% -30%, rgba(0,187,204,.4), transparent 60%),
              linear-gradient(160deg, var(--brand-cyan-deep), #03191d);
  color: #fff; padding: 84px 0 76px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 46px); }
.page-hero p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { gap: 28px; }
}
@media (max-width: 820px) {
  .mobile-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height var(--ease);
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 22px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 14px 0; }
  .main-nav a::after { display: none; }
  .nav-cta { margin: 14px 0 0; }
  .hero { padding: 78px 0 68px; }
  .section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================
   BLOG / ARTICULOS
   ============================================ */
.breadcrumb-light { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb-light a { color: rgba(255,255,255,.9); }

/* Chips de categorías */
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 44px; }
.filter-chips button {
  background: #fff; border: 1px solid var(--line); color: var(--ink-700);
  padding: 9px 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: var(--ease);
}
.filter-chips button:hover { border-color: var(--brand-cyan); color: var(--ink-900); }
.filter-chips button.active { background: var(--brand-cyan); border-color: var(--brand-cyan); color: #fff; }

/* Tarjeta de artículo */
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(0,187,204,.4); }
.post-card .thumb {
  height: 160px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(400px 200px at 80% -20%, rgba(0,187,204,.35), transparent 60%),
              linear-gradient(150deg, var(--brand-cyan-deep), #04191d);
}
.post-card .thumb svg { width: 56px; height: 56px; }
.post-card .thumb.has-img svg { display: none; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .badge {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-cyan-dark);
  background: rgba(0,187,204,.12); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.post-card h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.25; }
.post-card h3 a { color: var(--ink-900); }
.post-card h3 a:hover { color: var(--brand-cyan-dark); }
.post-card p { color: var(--ink-500); font-size: 15.5px; margin: 0 0 16px; flex: 1; }
.post-card .read-more { font-weight: 600; font-size: 15px; }
.post-card .read-more::after { content: " →"; transition: var(--ease); }
.post-card:hover .read-more::after { margin-left: 4px; }
.post-meta { font-size: 14px; color: var(--ink-500); margin-bottom: 8px; }

/* Artículo individual */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article { padding: 56px 0 20px; }
.article-head { margin-bottom: 32px; }
.article-head h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.article-head .article-meta { color: var(--ink-500); font-size: 15px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-head .article-meta a { font-weight: 600; }
.prose { font-size: 18px; line-height: 1.8; color: var(--ink-700); }
.prose h2 { font-size: clamp(22px, 3vw, 30px); margin: 44px 0 16px; }
.prose h3 { font-size: 22px; margin: 34px 0 12px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose a { color: var(--brand-cyan-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--brand-cyan); }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 26px 0; }
.prose figure { margin: 30px 0; }
.prose figure img { margin: 0; }
.prose figcaption { text-align: center; font-size: 14.5px; color: var(--ink-500); margin-top: 12px; font-style: italic; }
.prose blockquote {
  margin: 26px 0; padding: 18px 26px; border-left: 4px solid var(--brand-cyan);
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-700); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink-900); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* Caja CTA al final del artículo */
.article-cta {
  margin: 48px 0 20px; padding: 40px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-cyan-dark), var(--brand-cyan)); color: #fff; text-align: center;
  box-shadow: var(--shadow-md);
}
.article-cta h3 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,.92); margin: 0 auto 22px; max-width: 520px; }

/* Navegación entre artículos */
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 40px 0 10px; padding-top: 30px; border-top: 1px solid var(--line); }
.post-nav a { font-weight: 600; max-width: 45%; }
.post-nav .next { margin-left: auto; text-align: right; }

@media (max-width: 620px) {
  .post-nav { flex-direction: column; }
  .post-nav a, .post-nav .next { max-width: 100%; text-align: left; margin: 0; }
}

/* ============================================
   GEO: resumen extraíble y preguntas frecuentes
   ============================================ */
.article-answer {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--brand-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px; margin: 30px 0;
}
.article-answer h2 { font-size: 18px; margin: 0 0 10px; letter-spacing: .01em; }
.article-answer ul { margin: 0; padding-left: 20px; }
.article-answer li { margin-bottom: 6px; }
.article-answer p:last-child { margin-bottom: 0; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  margin-bottom: 14px; padding: 2px 22px; box-shadow: var(--shadow-sm);
}
.faq summary {
  font-weight: 600; color: var(--ink-900); cursor: pointer;
  padding: 16px 28px 16px 0; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 13px;
  font-size: 20px; line-height: 1; color: var(--brand-cyan-dark); font-weight: 700;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 16px; color: var(--ink-700); }
