/* =============================================
   WEB ECONÓMICA CHICLANA — style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --primary:      #1B4F72;
  --primary-dark: #154360;
  --primary-light:#2980B9;
  --accent:       #E67E22;
  --accent-dark:  #CA6F1E;
  --green:        #27AE60;
  --green-dark:   #1E8449;
  --dark:         #1C2833;
  --text:         #2C3E50;
  --muted:        #7F8C8D;
  --bg-light:     #F4F6F9;
  --bg-alt:       #EAF2FB;
  --white:        #FFFFFF;
  --border:       #D5D8DC;
  --shadow:       0 4px 20px rgba(0,0,0,.12);
  --radius:       10px;
  --font:         'Poppins', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
ul { list-style: none; }
strong, b { color: var(--primary-dark); font-weight: 600; }

/* ── Layout ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.section-alt { background: var(--bg-light); }
.section-blue { background: var(--primary); color: var(--white); }
.section-blue strong, .section-blue b { color: #AED6F1; }
.section-dark { background: var(--dark); color: var(--white); }

/* ── Headings ── */
h1,h2,h3,h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem,5vw,3.2rem); color: var(--white); }
h2 { font-size: clamp(1.5rem,3.5vw,2.2rem); color: var(--primary); margin-bottom: 18px; }
h3 { font-size: clamp(1.1rem,2.5vw,1.4rem); color: var(--primary-dark); margin-bottom: 10px; }
.section-blue h2, .section-blue h3 { color: var(--white); }
.section-dark h2, .section-dark h3 { color: #AED6F1; }
.subtitle { font-size: 1.2rem; color: var(--muted); margin-bottom: 30px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .25s;
  border: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,126,34,.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27,79,114,.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  height: 68px;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}
/* Logo */
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo .logo-we {
  background: var(--accent);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 1.4rem;
}
.logo .logo-city { color: #AED6F1; font-size: 1.1rem; font-weight: 500; }
.logo:hover { color: var(--white); }

/* Nav menu */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li > a {
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: .95rem;
  display: block;
  transition: background .2s;
}
.nav-menu > li > a:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 8px 0;
  z-index: 2000;
  border-top: 3px solid var(--accent);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.dropdown-menu li a:hover { background: var(--bg-light); color: var(--accent); }
/* Arrow indicator */
.dropdown > a::after { content: ' ▾'; font-size: .7rem; opacity: .7; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 6px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0a2740 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  background-blend-mode: overlay;
  padding: 100px 20px 60px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(27,79,114,.75) 0%, rgba(12,36,58,.88) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero .hero-sub {
  font-size: 1.25rem;
  color: #AED6F1;
  margin-bottom: 36px;
  font-weight: 400;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Subpage hero (shorter) */
.hero-sub-page {
  min-height: 52vh;
  padding: 110px 20px 60px;
}

/* ── TRUST SECTION ── */
.trust-section { background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 28px; margin-top: 32px; }
.trust-item {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border-bottom: 4px solid var(--accent);
  transition: transform .2s, box-shadow .2s;
}
.trust-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trust-icon { font-size: 2.6rem; margin-bottom: 12px; }
.trust-item h3 { color: var(--primary); font-size: 1.1rem; }
.trust-item p { font-size: .95rem; color: var(--muted); margin-top: 6px; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 2px solid var(--border);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(230,126,34,.25);
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-5px); }
.pricing-badge {
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-name { font-size: 1.3rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin: 14px 0 4px;
  line-height: 1;
}
.pricing-price span { font-size: 1.2rem; vertical-align: super; }
.pricing-price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.pricing-desc { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.pricing-features { margin: 20px 0 28px; }
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-card .btn { width: 100%; text-align: center; }

/* ── STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 28px;
  margin-top: 36px;
}
.stat-item { text-align: center; padding: 24px 16px; }
.stat-number { font-size: 3.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 1rem; color: var(--white); margin-top: 8px; opacity: .9; }
.section-blue .stat-number { color: #F9E79F; }

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 24px;
  margin-top: 32px;
}
.why-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.why-icon { font-size: 2rem; margin-bottom: 10px; }
.why-item h3 { color: var(--primary); margin-bottom: 8px; }
.why-item p { font-size: .95rem; color: var(--muted); }

/* ── SERVICES CARDS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 28px;
  margin-top: 36px;
}
.service-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  border-top: 4px solid var(--primary-light);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { font-size: 2.8rem; margin-bottom: 14px; }
.service-card h3 { color: var(--primary); margin-bottom: 10px; }
.service-card p { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }

/* ── ZONES GRID ── */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
  margin-top: 32px;
}
.zone-card {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  color: var(--white);
  transition: background .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.zone-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.zone-card:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-4px); }
.zone-icon { font-size: 2.2rem; margin-bottom: 10px; }
.zone-card h3 { color: var(--white); font-size: 1.1rem; }

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 28px;
  margin-top: 36px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  border-top: 4px solid var(--primary-light);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: var(--primary-light);
  opacity: .15;
  position: absolute;
  top: 10px; left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-text { font-style: italic; color: var(--text); margin-bottom: 18px; font-size: .98rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.testimonial-name { font-weight: 600; color: var(--primary); font-size: .95rem; }
.testimonial-role { font-size: .85rem; color: var(--muted); }
.stars { color: #F39C12; font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }

/* ── PROCESS ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 0;
  margin-top: 40px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 48px; left: 10%; right: 10%;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  z-index: 0;
}
.process-step {
  text-align: center;
  padding: 20px 16px;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(230,126,34,.4);
}
.process-step h3 { color: var(--primary); font-size: 1rem; margin-bottom: 6px; }
.process-step p { font-size: .88rem; color: var(--muted); }

/* ── FAQ ── */
.faq-list { margin-top: 32px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  padding: 18px 22px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  user-select: none;
  transition: background .15s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question .faq-icon { font-size: 1.2rem; transition: transform .25s; color: var(--accent); flex-shrink: 0; }
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  font-size: .97rem;
  color: var(--text);
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 22px 18px; }

/* ── CTA SECTION ── */
.cta-section { background: var(--accent); padding: 60px 0; text-align: center; }
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 24px; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: #BDC3C7;
  padding: 56px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 36px;
  margin-bottom: 40px;
}
.footer-logo { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-logo .logo-we { background: var(--accent); padding: 2px 8px; border-radius: 5px; }
.footer-desc { font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; display: inline-block; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #BDC3C7; font-size: .92rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact p { font-size: .92rem; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
  color: #7F8C8D;
}

/* ── FIXED CTA BUTTON ── */
.fixed-cta {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fixed-cta a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .92rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.fixed-cta a:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(0,0,0,.3); }
.btn-call { background: var(--accent); color: var(--white) !important; }
.btn-whatsapp { background: #25D366; color: var(--white) !important; }
.fixed-cta-icon { font-size: 1.1rem; }

/* ── CONTENT TEXT ── */
.content-block { max-width: 860px; margin: 0 auto; }
.content-block p { margin-bottom: 18px; }
.content-block h2 { margin-top: 40px; margin-bottom: 14px; }
.content-block h3 { margin-top: 28px; margin-bottom: 10px; }
.text-cols {
  column-count: 2;
  column-gap: 40px;
}
.text-cols p { break-inside: avoid; margin-bottom: 16px; }

/* ── BADGES / CHIPS ── */
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.badge {
  background: var(--bg-alt);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 500;
  border: 1px solid #AED6F1;
}

/* ── MAP ── */
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 28px; }
.map-container iframe { width: 100%; height: 420px; border: 0; }

/* ── CONTACT BOXES ── */
.contact-boxes { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 24px; margin-top: 32px; }
.contact-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}
.contact-box .contact-icon { font-size: 2.4rem; margin-bottom: 12px; }
.contact-box h3 { color: var(--primary); margin-bottom: 8px; }
.contact-box a { color: var(--accent); font-weight: 600; }

/* ── PHASES ── */
.phases { margin-top: 32px; }
.phase {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-left: 5px solid var(--accent);
}
.phase-num {
  min-width: 48px; height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  flex-shrink: 0;
}
.phase-content h3 { margin-bottom: 6px; }
.phase-content p { font-size: .95rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 16px;
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { padding: 12px 16px; border-radius: 6px; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,.1);
    border-top: none;
    border-radius: 6px;
    display: none !important;
  }
  .dropdown.mobile-open .dropdown-menu { display: block !important; }
  .dropdown.mobile-open .dropdown-menu li a { color: #AED6F1; padding: 10px 28px; }
  .dropdown > a::after { float: right; }
  .pricing-card.featured { transform: scale(1); }
  .process-steps::before { display: none; }
  .text-cols { column-count: 1; }
  .hero { min-height: 85vh; }
  .hero h1 { font-size: 2rem; }
  .fixed-cta { bottom: 16px; left: 12px; }
  .fixed-cta a { font-size: .82rem; padding: 10px 14px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.pt-0 { padding-top: 0 !important; }
.separator { width: 64px; height: 4px; background: var(--accent); margin: 14px auto 28px; border-radius: 2px; }
.separator-left { margin-left: 0; }
