
/* ====================================================
   Web Económica Parla — Main Stylesheet
   ==================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #1a6b3a;
  --green2:  #145530;
  --orange:  #e8621a;
  --orange2: #c44e10;
  --dark:    #1a1a1a;
  --light:   #f5f5f2;
  --mid:     #ececec;
  --white:   #ffffff;
  --text:    #222222;
  --text2:   #444444;
  --radius:  8px;
  --shadow:  0 4px 18px rgba(0,0,0,.12);
  --fs-base:  1.12rem;
  --fs-lead:  1.22rem;
  --fs-h1:    2.6rem;
  --fs-h2:    2.0rem;
  --fs-h3:    1.4rem;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: var(--fs-base);
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }
strong, b { font-weight: 700; color: var(--dark); }
p { margin-bottom: 1.1rem; }

/* ─── HEADER / NAV ─── */
header {
  position: sticky; top: 0; z-index: 900;
  background: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1.2rem;
}
.logo {
  display: flex; align-items: center; gap: .45rem;
  text-decoration: none;
}
.logo-badge {
  background: var(--orange);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .04em;
  padding: .3rem .6rem;
  border-radius: 6px;
  line-height: 1;
}
.logo-text {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* Main nav */
nav.main-nav { display: flex; align-items: center; gap: .2rem; }
nav.main-nav ul { list-style: none; display: flex; gap: 0; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav > ul > li > a {
  display: block; padding: .7rem 1rem;
  color: #fff; font-weight: 600; font-size: .97rem;
  white-space: nowrap; transition: color var(--transition);
  text-decoration: none;
}
nav.main-nav > ul > li > a:hover { color: var(--orange); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 1000;
  padding: .4rem 0;
}
.dropdown.wide { min-width: 640px; display: flex; flex-wrap: wrap; }
.dropdown.wide a { width: 50%; }

nav.main-nav > ul > li:hover .dropdown,
nav.main-nav > ul > li:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateY(0);
}

.dropdown a {
  display: block; padding: .55rem 1.1rem;
  color: var(--text); font-size: .93rem;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.dropdown a:hover { background: var(--orange); color: #fff; text-decoration: none; }

/* Burger */
.burger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.burger span {
  display: block; width: 24px; height: 2px; background: #fff;
  margin: 5px 0; transition: .3s;
}

/* ─── HERO ─── */
.hero {
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.72)),
              url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920&q=80')
              center/cover no-repeat fixed;
}
.hero.green-hero {
  background: linear-gradient(135deg, #0d3d20 0%, #1a6b3a 60%, #0d3d20 100%);
}
.hero.amber-hero {
  background: linear-gradient(135deg, #4a2000 0%, #b45309 60%, #4a2000 100%);
}
.hero.purple-hero {
  background: linear-gradient(135deg, #2d0b4e 0%, #6b21a8 60%, #2d0b4e 100%);
}
.hero.teal-hero {
  background: linear-gradient(135deg, #04404d 0%, #0e7490 60%, #04404d 100%);
}
.hero.slate-hero {
  background: linear-gradient(135deg, #1e293b 0%, #475569 60%, #1e293b 100%);
}
.hero.burg-hero {
  background: linear-gradient(135deg, #3b0a0a 0%, #7f1d1d 60%, #3b0a0a 100%);
}
.hero.dark-hero {
  background: linear-gradient(135deg, #111 0%, #333 60%, #111 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 900px; padding: 2rem 1.5rem;
  color: #fff;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, var(--fs-h1));
  font-weight: 900; line-height: 1.15;
  margin-bottom: .6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-content .subtitle {
  font-size: clamp(1.05rem, 2.5vw, var(--fs-lead));
  margin-bottom: 1.8rem;
  opacity: .93;
}
.hero-content .cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block; padding: .75rem 1.8rem;
  border-radius: var(--radius); font-weight: 700;
  font-size: 1rem; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.22); text-decoration: none !important; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange2); color: #fff; }
.btn-green  { background: var(--green);  color: #fff; }
.btn-green:hover  { background: var(--green2);  color: #fff; }
.btn-white  { background: #fff; color: var(--dark); }
.btn-white:hover  { background: var(--light); color: var(--dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--dark); }

/* ─── SECTIONS ─── */
section { padding: 5rem 1.2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-alt  { background: var(--light); }
.section-green{ background: #ecf7ef; }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p  { color: #ddd; }

.section-title {
  font-size: var(--fs-h2); font-weight: 800;
  text-align: center; margin-bottom: 1rem; color: var(--green);
  line-height: 1.25;
}
.section-lead {
  text-align: center; max-width: 700px; margin: 0 auto 2.5rem;
  color: var(--text2); font-size: var(--fs-lead);
}

/* ─── PRICING CARDS ─── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 2rem; align-items: start;
}
.price-card {
  border: 2px solid #ddd; border-radius: 12px;
  padding: 2rem 1.6rem; background: #fff;
  box-shadow: var(--shadow); position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.16); }
.price-card.featured { border-color: var(--orange); }
.badge-recommended {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: .78rem; font-weight: 800;
  padding: .25rem .9rem; border-radius: 20px; letter-spacing: .05em;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; color: var(--green); margin-bottom: .4rem; }
.price-amount {
  font-size: 2.6rem; font-weight: 900; color: var(--dark); line-height: 1;
  margin: .6rem 0 .3rem;
}
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--text2); }
.price-desc { font-size: .9rem; color: var(--text2); margin-bottom: 1rem; }
.price-features { list-style: none; margin: 1rem 0 1.5rem; }
.price-features li { padding: .35rem 0; font-size: .95rem; display: flex; gap: .5rem; align-items: flex-start; }
.price-features li::before { content: "✓"; color: var(--orange); font-weight: 800; flex-shrink: 0; margin-top: .1rem; }

/* ─── STATS / CIFRAS ─── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.stat-card {
  background: var(--white); border-left: 5px solid var(--orange);
  padding: 1.5rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat-number {
  font-size: 2.8rem; font-weight: 900; color: var(--orange); line-height: 1;
  margin-bottom: .3rem;
}
.stat-label { font-size: .95rem; color: var(--text2); font-weight: 600; }

/* ─── FEATURES GRID ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.feature-card {
  background: var(--white); padding: 1.6rem 1.2rem;
  border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
}
.feature-icon { font-size: 2.2rem; margin-bottom: .7rem; }
.feature-card h3 { font-size: 1.1rem; color: var(--green); margin-bottom: .4rem; }
.feature-card p  { font-size: .93rem; color: var(--text2); }

/* ─── SPECIALTIES / SERVICES CARDS ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem; margin-top: 2rem;
}
.service-card {
  background: var(--white); border-top: 4px solid var(--green);
  padding: 1.4rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color var(--transition);
}
.service-card:hover { border-color: var(--orange); }
.service-card h3 { color: var(--green); font-size: 1.05rem; margin-bottom: .4rem; }
.service-card p  { font-size: .92rem; color: var(--text2); margin-bottom: .7rem; }
.service-card a  { font-size: .9rem; font-weight: 700; color: var(--orange); }

/* ─── SECTOR GRID ─── */
.sector-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .9rem; margin-top: 2rem;
}
.sector-item {
  background: var(--white); border: 1.5px solid #ddd;
  border-radius: var(--radius); padding: .9rem .7rem;
  text-align: center; font-weight: 700; color: var(--dark);
  font-size: .93rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none !important;
  display: block;
}
.sector-item:hover { background: var(--green); color: #fff !important; border-color: var(--green); text-decoration: none !important; }

/* ─── ZONE CARDS ─── */
.zone-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem; margin-top: 2rem;
}
.zone-card {
  background: linear-gradient(135deg, var(--green) 0%, var(--green2) 100%);
  color: #fff; border-radius: var(--radius); padding: 1.5rem 1.2rem;
  text-align: center; box-shadow: var(--shadow);
  transition: transform var(--transition);
  text-decoration: none !important; display: block;
}
.zone-card:hover { transform: translateY(-3px); color: #fff !important; text-decoration: none !important; }
.zone-card .zone-name { font-size: 1.1rem; font-weight: 800; margin-bottom: .3rem; }
.zone-card .zone-desc { font-size: .88rem; opacity: .9; }

/* ─── TESTIMONIALS ─── */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.testimonial-card {
  background: var(--white); padding: 1.6rem 1.4rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border-left: 5px solid var(--orange);
}
.testimonial-header { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.testimonial-header img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--orange);
}
.testimonial-header strong { display: block; color: var(--dark); }
.testimonial-header span { font-size: .85rem; color: var(--text2); }
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: .4rem; }
.testimonial-text { font-style: italic; color: var(--text2); font-size: .96rem; }

/* ─── PROCESS ─── */
.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.3rem; margin-top: 2rem; counter-reset: process;
}
.process-step {
  background: var(--white); padding: 1.4rem 1rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 1.2rem; font-weight: 900;
  margin-bottom: .8rem;
}
.process-step h3 { font-size: 1rem; color: var(--green); margin-bottom: .3rem; }
.process-step p  { font-size: .9rem; color: var(--text2); }

/* ─── FAQ ─── */
.faq-list { margin-top: 1.8rem; }
.faq-item {
  border: 1px solid #e0e0e0; border-radius: var(--radius);
  margin-bottom: .8rem; overflow: hidden;
}
.faq-q {
  width: 100%; background: var(--white); border: none; cursor: pointer;
  padding: 1.1rem 1.3rem; text-align: left; font-size: 1.01rem; font-weight: 700;
  color: var(--dark); display: flex; justify-content: space-between; align-items: center;
  gap: .5rem;
}
.faq-q:hover { background: var(--light); }
.faq-icon { flex-shrink: 0; font-size: 1.2rem; transition: transform .25s; color: var(--orange); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  padding: 0 1.3rem;
}
.faq-a.open { max-height: 800px; padding: .8rem 1.3rem 1.1rem; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* ─── CONTENT TEXT ─── */
.content-prose { max-width: 820px; margin: 0 auto; }
.content-prose h2 { font-size: 1.7rem; color: var(--green); margin: 2rem 0 .9rem; }
.content-prose h3 { font-size: 1.3rem; color: var(--dark); margin: 1.5rem 0 .6rem; }
.content-prose ul  { margin: .5rem 0 1rem 1.2rem; }
.content-prose ul li { margin-bottom: .4rem; }

/* ─── MAP ─── */
.map-wrapper { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin-top: 1.5rem; }
.map-wrapper iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ─── CONTACT INFO ─── */
.contact-info { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.contact-item {
  flex: 1 1 220px; background: var(--white);
  padding: 1.3rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: .9rem;
}
.contact-icon { font-size: 1.7rem; flex-shrink: 0; color: var(--orange); }
.contact-item h3 { font-size: 1rem; color: var(--dark); margin-bottom: .2rem; }
.contact-item p  { font-size: .93rem; color: var(--text2); margin: 0; }

/* ─── FLOATING BUTTON ─── */
.float-group {
  position: fixed; bottom: 1.5rem; left: 1.5rem;
  display: flex; flex-direction: column; gap: .6rem; z-index: 9999;
}
.float-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1.1rem; border-radius: 50px;
  font-weight: 800; font-size: .92rem; color: #fff;
  text-decoration: none !important; box-shadow: 0 4px 16px rgba(0,0,0,.28);
  transition: transform .15s, box-shadow .15s;
}
.float-btn:hover { transform: scale(1.05); box-shadow: 0 6px 22px rgba(0,0,0,.35); color:#fff !important; text-decoration:none!important; }
.float-call { background: var(--orange); }
.float-wa   { background: #25d366; }

/* ─── FOOTER ─── */
footer {
  background: #111; color: #ccc;
  padding: 3rem 1.2rem 1.5rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
footer h4 { color: #fff; margin-bottom: .9rem; font-size: 1rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .5rem; }
footer ul li a { color: #aaa; font-size: .9rem; }
footer ul li a:hover { color: var(--orange); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #333; padding-top: 1.2rem;
  text-align: center; font-size: .85rem; color: #666;
}

/* ─── CTA SECTION ─── */
.cta-section {
  text-align: center; padding: 3.5rem 1.2rem;
  background: linear-gradient(135deg, var(--green) 0%, var(--green2) 100%);
  color: #fff;
}
.cta-section h2 { font-size: 1.9rem; color: #fff; margin-bottom: .7rem; }
.cta-section p  { font-size: 1.08rem; opacity: .92; margin-bottom: 1.5rem; }
.cta-section .cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── PROCESS PHASES ─── */
.phases { margin-top: 1.5rem; }
.phase {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--white); padding: 1.2rem 1.3rem;
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem;
}
.phase-num {
  min-width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; flex-shrink: 0;
}
.phase-content h3 { color: var(--green); font-size: 1.05rem; margin-bottom: .25rem; }
.phase-content p  { font-size: .93rem; color: var(--text2); margin: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  :root { --fs-h1: 2rem; --fs-h2: 1.6rem; --fs-h3: 1.2rem; }
  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark); padding: .5rem 0;
  }
  nav.main-nav.open ul { flex-direction: column; }
  nav.main-nav.open .dropdown {
    position: static; opacity: 1; visibility: visible; pointer-events: all;
    transform: none; box-shadow: none; border: none;
    border-left: 3px solid var(--orange); margin-left: 1rem;
    background: rgba(255,255,255,.05);
  }
  nav.main-nav.open .dropdown a { color: #ddd; }
  .burger { display: block; }
  .hero { min-height: 70vh; background-attachment: scroll; }
  .float-btn span.label { display: none; }
}
