/* =========================================================
   PR SEO CONSULTING — Estilos principales
   Pedro Ramírez Sánchez · Las Palmas de Gran Canaria
   ========================================================= */

/* ── VARIABLES ─────────────────────────────────────────── */
:root {
  --navy:        #0a1628;
  --navy-light:  #122040;
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #dbeafe;
  --green:       #059669;
  --green-light: #d1fae5;
  --orange:      #ea580c;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-900:    #0f172a;
  --text:        #1e293b;
  --text-light:  #64748b;
  --white:       #ffffff;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --transition:  all 0.25s cubic-bezier(.4,0,.2,1);
  --font:        'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── TIPOGRAFÍA ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; }
p { margin-bottom: 1rem; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #94a3b8; }
.section-gray { background: var(--gray-50); }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10,22,40,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  z-index: 1000;
  padding: .9rem 0;
  transition: var(--transition);
}
.navbar.scrolled { padding: .6rem 0; }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 0 1.5rem;
}
.logo {
  display: flex; align-items: center; gap: .75rem;
  font-weight: 800; font-size: 1.1rem; color: var(--white); text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue), #6366f1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: white;
  flex-shrink: 0;
}
.logo-text { line-height: 1.1; }
.logo-text small { font-size: .65rem; font-weight: 400; color: #94a3b8; display: block; }
.nav-links {
  display: flex; align-items: center; gap: .25rem;
}
.nav-links a {
  color: #cbd5e1; font-size: .875rem; font-weight: 500;
  padding: .45rem .75rem; border-radius: 6px;
  transition: var(--transition); text-decoration: none;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-links .btn-nav {
  background: var(--blue); color: var(--white) !important;
  padding: .5rem 1.1rem; border-radius: 6px;
  font-weight: 600; margin-left: .5rem;
}
.nav-links .btn-nav:hover { background: var(--blue-dark); text-decoration: none; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border-radius: 10px;
  box-shadow: var(--shadow-xl); border: 1px solid var(--gray-200);
  min-width: 220px; padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); z-index: 100;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; color: var(--text) !important;
  padding: .5rem .75rem; border-radius: 6px; font-size: .85rem;
}
.dropdown-menu a:hover { background: var(--gray-100); color: var(--blue) !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 60px;
  background: var(--navy); z-index: 999;
  flex-direction: column; padding: 2rem 1.5rem; gap: .5rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #cbd5e1; font-size: 1rem; font-weight: 500;
  padding: .75rem 1rem; border-radius: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
}
.mobile-menu a:hover { color: white; background: rgba(255,255,255,.08); }
.mobile-menu .mobile-cta {
  background: var(--blue); color: white !important;
  text-align: center; border-radius: 8px; margin-top: 1rem;
  font-weight: 700; font-size: 1rem; border: none;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 9rem 0 6rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(37,99,235,.18), transparent),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(99,102,241,.12), transparent);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(37,99,235,.2); border: 1px solid rgba(37,99,235,.4);
  color: #93c5fd; font-size: .8rem; font-weight: 600;
  padding: .35rem .85rem; border-radius: 999px;
  margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: .05em;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: #60a5fa; }
.hero-subtitle {
  font-size: 1.15rem; color: #94a3b8; margin-bottom: 2rem; line-height: 1.7;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex; gap: 2rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.75rem; color: white; font-weight: 800; }
.hero-stat span { font-size: .8rem; color: #94a3b8; }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 2rem;
  width: 100%; max-width: 420px;
  backdrop-filter: blur(8px);
}
.hero-card-title {
  color: #94a3b8; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 1.25rem; font-weight: 600;
}
.metric-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.metric-row:last-child { border-bottom: none; }
.metric-label { color: #94a3b8; font-size: .875rem; }
.metric-value {
  font-weight: 700; color: white; font-size: .9rem;
  display: flex; align-items: center; gap: .4rem;
}
.metric-up { color: #34d399; }
.metric-bar-wrap { margin-top: 1.25rem; }
.metric-bar-label { display: flex; justify-content: space-between; color: #94a3b8; font-size: .75rem; margin-bottom: .4rem; }
.metric-bar-track { background: rgba(255,255,255,.1); border-radius: 999px; height: 6px; }
.metric-bar-fill { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #6366f1); }

/* ── BOTONES ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: .75rem 1.6rem; border-radius: var(--radius);
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.btn-white { background: white; color: var(--navy); }
.btn-white:hover { background: var(--gray-100); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,.3); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.btn-green { background: var(--green); color: white; box-shadow: 0 4px 14px rgba(5,150,105,.3); }
.btn-green:hover { background: #047857; box-shadow: 0 6px 20px rgba(5,150,105,.35); }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ── PAIN POINTS ────────────────────────────────────────── */
.pain-section { background: var(--gray-50); }
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.pain-list { display: flex; flex-direction: column; gap: .75rem; margin: 1.5rem 0; }
.pain-item {
  display: flex; align-items: flex-start; gap: .75rem;
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.pain-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #fef2f2; color: #ef4444;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; margin-top: 2px;
}
.pain-item p { font-size: .9rem; margin: 0; color: var(--gray-700); }
.solution-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg); padding: 2.5rem;
  color: white; position: sticky; top: 100px;
}
.solution-box h3 { color: white; margin-bottom: 1rem; }
.solution-box p { color: #94a3b8; }
.solution-quote {
  font-style: italic; font-size: 1.05rem; color: #e2e8f0;
  border-left: 3px solid var(--blue); padding-left: 1rem;
  margin: 1.5rem 0; line-height: 1.7;
}

/* ── ABOUT/QUIÉN SOY ────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), #1e3a5f);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about-photo-placeholder {
  text-align: center; color: rgba(255,255,255,.5);
  font-size: .875rem; padding: 2rem;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  background: var(--blue); color: white;
  border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xl); text-align: center;
}
.about-badge strong { display: block; font-size: 1.5rem; font-weight: 800; }
.about-badge span { font-size: .75rem; opacity: .9; }
.about-points { display: flex; flex-direction: column; gap: .75rem; margin: 1.5rem 0; }
.about-point {
  display: flex; align-items: flex-start; gap: .75rem;
}
.check-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0; margin-top: 2px; font-weight: 700;
}
.about-point p { font-size: .95rem; margin: 0; }

/* ── SERVICIOS ──────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.service-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow); transition: var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-xl); border-color: var(--blue);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.service-card p { font-size: .875rem; color: var(--gray-600); flex: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .875rem; font-weight: 600; color: var(--blue);
  margin-top: 1.25rem; transition: var(--transition);
}
.service-link:hover { gap: .6rem; text-decoration: none; }

/* ── PROCESO ────────────────────────────────────────────── */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; position: relative; }
.process-steps::before {
  content: ''; position: absolute;
  top: 32px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--blue), #6366f1);
}
.process-step { text-align: center; position: relative; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #6366f1);
  color: white; font-weight: 800; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; box-shadow: 0 4px 14px rgba(37,99,235,.35);
  position: relative; z-index: 1;
}
.process-step h3 { font-size: 1rem; margin-bottom: .5rem; }
.process-step p { font-size: .85rem; color: var(--text-light); }

/* ── SECTORES ───────────────────────────────────────────── */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.sector-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition); text-decoration: none;
}
.sector-card:hover {
  border-color: var(--blue); box-shadow: var(--shadow-lg);
  transform: translateY(-2px); text-decoration: none;
}
.sector-emoji { font-size: 1.75rem; }
.sector-card h3 { font-size: 1rem; margin-bottom: .25rem; color: var(--navy); }
.sector-card p { font-size: .8rem; color: var(--text-light); margin: 0; }
.sector-arrow { margin-left: auto; color: var(--blue); flex-shrink: 0; }

/* ── TESTIMONIALES ──────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.testimonial-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow);
}
.stars { color: #f59e0b; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: .9rem; color: var(--gray-700); font-style: italic; line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #6366f1);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.author-info strong { display: block; font-size: .875rem; color: var(--navy); }
.author-info span { font-size: .8rem; color: var(--text-light); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; background: white;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: var(--font); font-weight: 600;
  font-size: .95rem; color: var(--navy); transition: var(--transition);
}
.faq-q:hover { background: var(--gray-50); }
.faq-q .faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; transition: var(--transition); font-weight: 400;
}
.faq-item.open .faq-icon { background: var(--blue); color: white; transform: rotate(45deg); }
.faq-a {
  display: none; padding: 0 1.5rem 1.25rem;
  font-size: .9rem; color: var(--gray-700); line-height: 1.7;
}
.faq-a p { margin: 0; }
.faq-item.open .faq-a { display: block; }

/* ── PRECIOS ────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pricing-card {
  background: white; border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; transition: var(--transition);
  position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1), var(--shadow-xl);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: white;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  padding: .3rem 1rem; border-radius: 999px; white-space: nowrap;
  text-transform: uppercase;
}
.pricing-name { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-light); font-weight: 600; margin-bottom: .5rem; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-desc { font-size: .875rem; color: var(--text-light); margin: .75rem 0 1.5rem; }
.pricing-features { flex: 1; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.pricing-feature {
  display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: var(--gray-700);
}
.pricing-feature .check { color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue), #6366f1);
  border-radius: var(--radius-lg); padding: 4rem 3rem;
  text-align: center; margin: 2rem 0;
}
.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--gray-900); color: #94a3b8;
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; line-height: 1.7; color: #64748b; }
.footer-nap { font-size: .8rem; color: #64748b; margin-top: 1.25rem; line-height: 1.8; }
.footer-nap strong { color: #94a3b8; display: block; }
.footer-col h4 { color: var(--white); font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { font-size: .875rem; color: #64748b; transition: var(--transition); text-decoration: none; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: #475569; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: white; }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
  padding: .6rem 0; margin-top: 68px;
}
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--gray-400); }

/* ── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  background: var(--navy); padding: 3.5rem 0 3rem;
  margin-top: 0;
}
.page-hero .tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(37,99,235,.2); border: 1px solid rgba(37,99,235,.35);
  color: #93c5fd; font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  padding: .3rem .8rem; border-radius: 999px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-hero h1 { color: white; margin-bottom: 1.25rem; }
.page-hero p { color: #94a3b8; font-size: 1.1rem; max-width: 620px; }
.page-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ── SECTION HEADERS ────────────────────────────────────── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-header .tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--blue-light); color: var(--blue);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  padding: .3rem .85rem; border-radius: 999px; text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--text-light); font-size: 1rem; }
.section-header.light .tag { background: rgba(37,99,235,.2); color: #93c5fd; }
.section-header.light h2 { color: white; }

/* ── CARACTERÍSTICAS ─────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.feature-item h3 { font-size: 1rem; margin-bottom: .35rem; }
.feature-item p { font-size: .875rem; color: var(--text-light); margin: 0; }

/* ── INCLUDED LIST ───────────────────────────────────────── */
.included-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.included-item {
  display: flex; align-items: flex-start; gap: .75rem;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.included-item .icon {
  font-size: 1.25rem; flex-shrink: 0; margin-top: 2px;
}
.included-item strong { display: block; font-size: .9rem; margin-bottom: .2rem; color: var(--navy); }
.included-item p { font-size: .8rem; color: var(--text-light); margin: 0; }

/* ── CONTACTO FORM ──────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-form-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.contact-form-card h2 { margin-bottom: .5rem; }
.contact-form-card .subtitle { color: var(--text-light); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .4rem; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; border: 2px solid var(--gray-200); border-radius: var(--radius);
  padding: .75rem 1rem; font-family: var(--font); font-size: .925rem;
  color: var(--text); background: white; transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-card { padding-top: 1rem; }
.contact-info-card > h2 { margin-bottom: .5rem; }
.contact-info-card > p { color: var(--text-light); margin-bottom: 2rem; }
.contact-channel {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; background: var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  margin-bottom: 1rem; transition: var(--transition); text-decoration: none;
}
.contact-channel:hover { border-color: var(--blue); background: var(--blue-light); text-decoration: none; }
.contact-channel-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.contact-channel-icon.phone { background: var(--blue-light); }
.contact-channel-icon.whatsapp { background: #d1fae5; }
.contact-channel-icon.email { background: #fef3c7; }
.contact-channel strong { display: block; font-size: .9rem; color: var(--navy); }
.contact-channel span { font-size: .8rem; color: var(--text-light); }
.contact-steps { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-step { display: flex; gap: 1rem; align-items: flex-start; }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; flex-shrink: 0;
}
.contact-step h4 { font-size: .9rem; margin-bottom: .25rem; }
.contact-step p { font-size: .8rem; color: var(--text-light); margin: 0; }

/* ── BLOG ───────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  opacity: 0;
  transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.blog-card:hover::before { opacity: 1; }

/* Cards usadas sin wrapper body (artículos del blog e índice) */
article.blog-card, a.blog-card { padding: 1.75rem; }
a.blog-card { text-decoration: none; color: inherit; }

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.3);
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.blog-meta {
  font-size: .72rem; color: var(--text-light);
  margin-bottom: 1rem; display: flex; gap: .6rem; align-items: center;
}
.blog-tag {
  background: var(--blue-light); color: var(--blue);
  font-size: .68rem; font-weight: 700; padding: .25rem .7rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}
.blog-date { color: var(--gray-400); font-size: .72rem; }

.blog-card h3 { font-size: 1rem; margin-bottom: .75rem; line-height: 1.45; }
.blog-card h3 a { color: var(--navy); text-decoration: none; }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card p { font-size: .875rem; color: var(--text-light); flex: 1; line-height: 1.65; }

.blog-card-footer { padding: 0 1.5rem 1.5rem; }

/* Blog index card title & excerpt */
.blog-card .blog-title {
  font-size: 1.05rem; font-weight: 700; line-height: 1.4;
  margin-bottom: .75rem; color: var(--navy);
}
.blog-card .blog-title a { color: inherit; text-decoration: none; }
.blog-card .blog-title a:hover { color: var(--blue); }
.blog-excerpt {
  font-size: .875rem; color: var(--text-light);
  line-height: 1.65; flex: 1; margin: 0 0 1.25rem;
}

.blog-read-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: var(--blue);
  text-decoration: none; padding: .5rem 1rem;
  background: var(--blue-light); border-radius: 6px;
  transition: var(--transition); margin-top: .25rem;
}
.blog-read-more:hover {
  background: var(--blue); color: white; gap: .6rem;
  text-decoration: none;
}

/* Blog article page */
.blog-post-header { margin-bottom: 2.5rem; }
.blog-post-header h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.25; margin-bottom: 1rem; }
.blog-intro { font-size: 1.1rem; color: var(--text-light); line-height: 1.7; border-left: 4px solid var(--blue); padding-left: 1.25rem; margin-top: 1rem; }
.blog-content { line-height: 1.8; color: var(--text); }
.blog-content h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; color: var(--navy); }
.blog-content h3 { font-size: 1.1rem; margin: 2rem 0 .75rem; color: var(--navy); }
.blog-content p { margin-bottom: 1.25rem; }
.blog-content ul, .blog-content ol { margin-bottom: 1.25rem; }
.blog-content strong { color: var(--navy); }
.blog-content a { color: var(--blue); }
.blog-content a:hover { text-decoration: underline; }

/* ── SOBRE MÍ ───────────────────────────────────────────── */
.profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.profile-sidebar {
  position: sticky; top: 100px;
}
.profile-photo-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); text-align: center;
}
.profile-photo-img {
  height: 280px;
  background: linear-gradient(135deg, var(--navy), #1e3a5f);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.3);
}
.profile-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { padding: 1.5rem; }
.profile-info h2 { font-size: 1.25rem; margin-bottom: .25rem; }
.profile-info .title { color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.profile-info .nap { font-size: .8rem; color: var(--text-light); line-height: 2; }
.profile-info .nap strong { color: var(--gray-700); }
.trust-badges { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.trust-badge {
  display: flex; align-items: center; gap: .75rem;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: .75rem;
}
.trust-badge .badge-icon { font-size: 1.25rem; }
.trust-badge p { font-size: .8rem; margin: 0; color: var(--text-light); }
.trust-badge strong { color: var(--navy); font-size: .875rem; display: block; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.value-card {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.25rem;
}
.value-card .icon { font-size: 1.5rem; margin-bottom: .75rem; }
.value-card h4 { font-size: .9rem; margin-bottom: .35rem; }
.value-card p { font-size: .8rem; color: var(--text-light); margin: 0; }

/* ── CASOS DE ÉXITO ─────────────────────────────────────── */
.cases-grid { display: flex; flex-direction: column; gap: 2.5rem; }
.case-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: grid;
  grid-template-columns: 1fr 2fr;
}
.case-side {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 2.5rem; display: flex; flex-direction: column; justify-content: center;
}
.case-sector {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(37,99,235,.25); color: #93c5fd;
  font-size: .75rem; font-weight: 700; padding: .3rem .8rem;
  border-radius: 999px; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em;
}
.case-side h3 { color: white; font-size: 1.2rem; margin-bottom: 1.5rem; }
.case-metrics { display: flex; flex-direction: column; gap: .75rem; }
.case-metric .metric-label { font-size: .75rem; color: #94a3b8; margin-bottom: .25rem; }
.case-metric .metric-num { font-size: 1.5rem; font-weight: 800; color: #34d399; }
.case-body { padding: 2.5rem; }
.case-tag {
  display: inline-flex; background: var(--green-light);
  color: var(--green); font-size: .75rem; font-weight: 700;
  padding: .25rem .75rem; border-radius: 999px; margin-bottom: 1.25rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.case-body h4 { font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.case-body p { font-size: .9rem; color: var(--gray-700); margin-bottom: 1.5rem; }
.case-testimonial {
  background: var(--gray-50); border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
}
.case-testimonial p { font-style: italic; font-size: .875rem; margin-bottom: .5rem; }
.case-testimonial cite { font-size: .8rem; color: var(--text-light); font-style: normal; }

/* ── PRECIOS PAGE ────────────────────────────────────────── */
.price-table {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); margin-bottom: 2rem;
}
.price-table-header {
  background: var(--navy); padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.price-table-header h3 { color: white; margin: 0; }
.price-table-header .price { font-size: 1.75rem; font-weight: 800; color: white; }
.price-table-header .price span { font-size: .9rem; font-weight: 400; color: #94a3b8; }
.price-table-body { padding: 2rem; }
.price-table-body ul { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.price-table-body ul li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .875rem; color: var(--gray-700);
}
.price-table-body ul li .check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.price-table-footer { padding: 0 2rem 2rem; }

/* ── UTILITIES ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.font-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.gap-section { margin-bottom: 4rem; }
.divider { height: 1px; background: var(--gray-200); margin: 3rem 0; }
.alert-box {
  background: #fefce8; border: 1px solid #fde047;
  border-radius: var(--radius); padding: 1rem 1.25rem;
  font-size: .875rem; color: #78350f; display: flex; gap: .75rem; align-items: flex-start;
}
.alert-box p { margin: 0; color: #92400e; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .solution-box { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-height: 320px; aspect-ratio: unset; }
  .about-badge { display: none; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 7rem 0 4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .included-list { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .values-grid { grid-template-columns: 1fr; }
  .price-table-body ul { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .process-steps { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero-ctas { flex-direction: column; }
}
