/* ============================================================
   WEB ECONÓMICA LORCA — Hoja de estilos principal
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 700; }

/* --- Container --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 2px solid #e8e8f0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo span { color: #e63946; }

/* --- Main Nav --- */
.main-nav { display: flex; align-items: center; }

.menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Cada ítem de nivel 1 */
.menu > li {
  position: relative;
}

.menu > li > a,
.menu > li > .menu-label {
  display: block;
  padding: .5rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
  user-select: none;
}

.menu > li > a:hover,
.menu > li > .menu-label:hover,
.menu > li:hover > .menu-label,
.menu > li:hover > a {
  color: #e63946;
}

/* ============================================================
   DROPDOWN — SOLO VISIBLE EN HOVER, OCULTO POR DEFECTO
   ============================================================ */
.dropdown {
  display: none;           /* OCULTO por defecto */
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid #e8e8f0;
  border-top: 3px solid #e63946;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: .4rem 0;
}

/* Se muestra SOLO cuando el li padre recibe hover */
.has-dropdown:hover > .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: .55rem 1.2rem;
  font-size: .88rem;
  color: #1a1a2e;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.dropdown li a:hover {
  background: #f7f0f0;
  color: #e63946;
}

/* Indicador de flecha en ítems con dropdown */
.has-dropdown > .menu-label::after {
  content: ' ▾';
  font-size: .7rem;
  opacity: .6;
}

/* --- Hamburguesa móvil --- */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #1a1a2e;
  border-radius: 4px;
  cursor: pointer;
  padding: .35rem .5rem;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  padding: 4.5rem 0 3.5rem;
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.theme-home    { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%); }
.theme-autonomo { background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%); }
.theme-pyme    { background: linear-gradient(135deg, #1a1a2e 0%, #2b2d42 100%); }
.theme-seo     { background: linear-gradient(135deg, #023e8a 0%, #0077b6 100%); }
.theme-landing { background: linear-gradient(135deg, #3d0066 0%, #7b2d8b 100%); }
.theme-zone    { background: linear-gradient(135deg, #7a1200 0%, #c1121f 100%); }
.theme-contact { background: linear-gradient(135deg, #333 0%, #555 100%); }
.theme-blog    { background: linear-gradient(135deg, #0a3d62 0%, #1e5f8c 100%); }
.theme-article { background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%); }

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: .5rem;
}
.hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.subtitle {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 520px;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-image img {
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  width: 100%;
  object-fit: cover;
  max-height: 340px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  background: #e63946;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 6px;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #c1121f; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
}
.btn-secondary:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid #e63946;
  color: #e63946;
}
.btn-outline:hover { background: #e63946; color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 3.5rem 0; }
.section.alt { background: #f8f8fc; }
.section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #1a1a2e;
}
.section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: #1a1a2e;
}
.section p { margin-bottom: .9rem; font-size: 1rem; }

/* --- CTA Box --- */
.cta-box {
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  text-align: center;
}
.cta-box h3 { color: #fff; font-size: 1.4rem; margin-bottom: .6rem; }
.cta-box p  { opacity: .9; margin-bottom: 1.2rem; }

/* ============================================================
   PRICING GRID
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.price-card {
  background: #fff;
  border: 2px solid #e8e8f0;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow .2s;
}
.price-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.price-card.featured {
  border-color: #e63946;
  box-shadow: 0 4px 20px rgba(230,57,70,.15);
}
.price-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.price { font-size: 2rem; font-weight: 800; color: #e63946; margin: .5rem 0 .75rem; }
.price-card ul { text-align: left; margin: 1rem 0 1.5rem; }
.price-card ul li {
  padding: .35rem 0;
  font-size: .92rem;
  border-bottom: 1px solid #f0f0f8;
}
.price-card ul li::before { content: '✓ '; color: #e63946; font-weight: 700; }

/* ============================================================
   FEATURES / BENEFITS GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border-top: 3px solid #e63946;
}
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { margin-bottom: .5rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border-left: 4px solid #e63946;
}
.testimonial-card blockquote { font-style: italic; margin-bottom: .75rem; font-size: .95rem; }
.testimonial-author { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .88rem; }
.avatar { font-size: 1.5rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.process-step {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.step-number {
  width: 44px; height: 44px;
  background: #e63946;
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
}

/* ============================================================
   FAQs
   ============================================================ */
.faq-list { margin-top: 1.25rem; }
.faq-item {
  border-bottom: 1px solid #e8e8f0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 1.25rem 1rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { color: #e63946; }
.faq-icon { font-size: 1.2rem; flex-shrink: 0; transition: transform .25s; }
.faq-answer {
  display: none;
  padding: 0 0 1rem;
  font-size: .96rem;
  color: #444;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ============================================================
   ZONES GRID
   ============================================================ */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.zone-card {
  background: linear-gradient(135deg, #1a1a2e, #2c3e50);
  color: #fff;
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.zone-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.zone-card h3 { color: #fff; margin-bottom: .4rem; }
.zone-card p { font-size: .85rem; opacity: .8; margin: 0 0 .75rem; }

/* ============================================================
   PROFESSIONS GRID
   ============================================================ */
.professions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}
.profession-chip {
  background: #f0f0f8;
  border-radius: 6px;
  padding: .6rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  border-left: 3px solid #e63946;
}

/* ============================================================
   BLOG INDEX
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-tag {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e63946;
  margin-bottom: .5rem;
}
.blog-card h2 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
  line-height: 1.35;
}
.blog-card p { font-size: .9rem; color: #555; flex: 1; margin-bottom: 1rem; }
.blog-card .btn { align-self: flex-start; font-size: .85rem; padding: .5rem 1.1rem; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-featured-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 2rem;
}
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.article-body h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; color: #333; }
.article-body p  { margin-bottom: 1rem; }
.article-body ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body ul li { list-style: disc; margin-bottom: .4rem; }
.article-meta { font-size: .85rem; color: #777; margin-bottom: 2rem; }
.article-breadcrumb { font-size: .85rem; margin-bottom: 1rem; color: #888; }
.article-breadcrumb a { color: #e63946; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.map-embed iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 10px;
}
.contact-info-block { padding: 1.5rem; background: #f8f8fc; border-radius: 10px; }
.contact-info-block h3 { margin-bottom: .75rem; }

/* ============================================================
   FLOATING CTA
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.call-btn, .wa-btn {
  display: block;
  padding: .65rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform .15s;
  text-align: center;
  color: #fff;
}
.call-btn:hover, .wa-btn:hover { transform: scale(1.05); }
.call-btn { background: #1a1a2e; }
.wa-btn   { background: #25d366; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h3 { color: #fff; margin-bottom: .75rem; font-size: 1rem; }
.site-footer p, .site-footer a { font-size: .88rem; line-height: 1.8; }
.site-footer a:hover { color: #e63946; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1rem;
  text-align: center;
  font-size: .8rem;
  opacity: .6;
}

/* ============================================================
   PROSE SECTION (2 columns text)
   ============================================================ */
.prose-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.prose-single { max-width: 800px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .prose-cols { grid-template-columns: 1fr; }

  /* En móvil el nav se oculta hasta que se haga clic en hamburguesa */
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 2px solid #e8e8f0;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
  }
  .main-nav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li > a,
  .menu > li > .menu-label { padding: .75rem .5rem; font-size: 1rem; }

  /* En móvil los dropdowns se muestran al hacer clic */
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    border-left: 3px solid #e63946;
    border-radius: 0;
    margin-left: 1rem;
    display: none;
  }
  .has-dropdown.open > .dropdown { display: block; }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .floating-cta { bottom: .75rem; left: .75rem; }
}
