/* =========================================================
   ConsultoríaCRM.ec — Inicio
   Hoja de estilos independiente — base de maquetación: CSS Grid
   Ancho de referencia del diseño: 1440px
   ========================================================= */

:root{
  --page-max: 1440px;
  --gutter: 64px;

  --green: #1E9E4E;
  --green-dark: #17823E;
  --navy: #020d28;
  --navy-soft: #020714;
  --pipedrive-bg: #241C46;

  --text: #0c0c0c;
  --text-muted: #1a1e24;
  --text-soft: #8A8F96;

  --bg-white: #FFFFFF;
  --bg-light: #F5F6F7;
  --bg-footer: #F1F1F2;
  --border: #E6E7E9;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 6px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-white);
  font-size: 16px;
  line-height: 1.6;
}

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

a{ color: var(--green); text-decoration: none; }
a:hover{ color: var(--green-dark); text-decoration: underline; }

.visually-hidden{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Grid shell ---------- */
.wrap{
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3, h4, h5{
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.25;
}
h2{ font-size: 32px; font-weight: 700; }
h3{ font-size: 22px; font-weight: 600; }
h4{ font-size: 18px; font-weight: 600; }
h5{ font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); }

p{ margin: 0 0 16px; color: var(--text-muted); }

.center{ text-align: center; }
.center p{ margin-inline: auto; }

.section{ padding-block: 72px; }
.section + .section{ border-top: 1px solid var(--border); }

.lede{ max-width: 760px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover{ text-decoration: none; transform: translateY(-1px); }
.btn--green{ background: var(--green); color: #fff; }
.btn--green:hover{ background: var(--green-dark); color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header__inner{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 88px;
}
.logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.logo:hover{ text-decoration: none; }
.logo__icon{ width: 30px; height: 30px; }
.logo__text{
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .01em;
}
.logo__text strong{ color: var(--green); }

.main-nav ul{
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a{
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.main-nav a:hover{ color: var(--green); text-decoration: none; }
.main-nav a.is-active{ color: var(--green); }

.lang-select select{
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  background: var(--bg-light);
  cursor: pointer;
}

.lang-select select .es::after 
{ display: block; width:32px; height: 32px; background: red; 
  background-image: url("images/flag-ec.png"); 
}

/* Selector Flags*/
.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 100px; /* Ajusta según tu diseño */
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 20px; /* Bordes redondeados como tu captura */
  background-color: #f1f4f8;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
}

.flag-icon {
  width: 20px;
  height: 20px;
  object-fit: cover;
  margin-right: 6px;
  display: inline-block;
}

/* Lista de opciones oculta por defecto */
.custom-options {
  position: absolute;
  display: none;
  top: 110%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 10;
}

/* Mostrar la lista al activar */
.custom-select-wrapper.open .custom-options {
  display: block;
}

.custom-option {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.custom-option a {
  color: #000;
  font-size: 14px;
}

.custom-option:hover {
  background-color: #f0f0f0;
}

/* Nav */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span{
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  display: grid;
  min-height: 420px;
  overflow: hidden;
}
.hero__media{
  grid-area: 1 / 1;
  position: relative;
}
.hero__placeholder{
  width: 100%;
  height: 400px;
  background:
    repeating-linear-gradient(135deg, rgba(36,52,92,.06) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, #000102 0%, #C7D3D9 100%);
  display: flex;
  /*align-items: center;*/
  justify-content: flex-end;
  /*padding: 20px;*/
}
.hero__placeholder span{
  font-size: 12px;
  color: var(--text-soft);
  background: rgba(255,255,255,.85);
  padding: 6px 10px;
  border-radius: 4px;
  max-width: 220px;
  text-align: right;
}
.hero__scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 38%, rgba(255,255,255,.15) 68%, rgba(255,255,255,0) 100%);
}
.hero__inner{
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
}
.hero__copy{
  max-width: 460px;
  padding-block: 40px;
}
.hero__copy h1{
  color: var(--green);
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero__copy p{
  color: var(--text);
  font-size: 15px;
  margin: 0;
}

/* =========================================================
   INTRO
   ========================================================= */
.intro__grid{
  display: grid;
  gap: 4px;
  justify-items: center;
}
.intro__grid h2{ margin-top: 8px; }
.intro__grid h3{ margin-top: 24px; }

.fineprint{
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.fineprint-inline{ font-size: 13px; color: var(--text-muted); }

/* =========================================================
   PARTNER + STATS
   ========================================================= */
.partner{ background: var(--bg-light); }
.partner__grid{ display: grid; gap: 48px; }

.partner__badge{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  max-width: 760px;
}
.pipedrive-box{
  background: var(--pipedrive-bg);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  display: grid;
  gap: 6px;
  justify-items: start;
  min-width: 160px;
}
.pipedrive-box__brand{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.pipedrive-box__tag{
  font-size: 11px;
  background: var(--green);
  border-radius: 3px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.partner__copy p{ margin: 0; }

.stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 32px;
}
.stat{ display: grid; gap: 6px; justify-items: center; text-align: center; }
.stat__num{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--green);
}
.stat__label{ font-size: 14px; color: var(--text-muted); }

.partner__cta{
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.accent-text{ color: var(--navy-soft); }

/* =========================================================
   BENEFICIOS
   ========================================================= */
.benefits-card{
  background: var(--bg-light);
  border-radius: 12px;
  padding: 48px;
  margin-block: 40px;
}
.benefits-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.benefit h4{ text-align: center; }
.benefit p{ text-align: center; font-size: 14px; }

/* =========================================================
   PRUEBA GRATIS
   ========================================================= */
.trial{ background: var(--bg-light); }
.trial-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.trial-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.trial-card p{ font-size: 14px; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.services-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
  margin-top: 40px;
}
.service h4{ margin-bottom: 12px; }
.service p{ font-size: 14px; }
.service ul{
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}
.service ul li{ margin-bottom: 4px; }
.service__link a{ font-weight: 600; }

/* =========================================================
   ASISTENCIA
   ========================================================= */
.assistance-list{
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact{ background: var(--bg-light); }
.contact__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "cta info"
    "cta map";
  gap: 32px 64px;
}
.contact__cta{ grid-area: cta; align-self: center; }
.contact__info{ grid-area: info; }
.contact__info h3{ color: var(--navy); }
.contact__info p{ font-size: 14px; margin-bottom: 12px; }
.hours-label{ font-weight: 700; color: var(--navy); margin-bottom: 4px !important; }

.contact__map{
  grid-area: map;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 220px;
  background:
    linear-gradient(0deg, rgba(0,0,0,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #E3E7E9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.map-placeholder__icon{
  width: 36px; height: 36px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.25));
}
.map-placeholder__label{
  background: rgba(255,255,255,.9);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--bg-footer); padding-block: 56px; }
.footer__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer__col ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer__col a{ color: var(--text-muted); font-size: 14px; }
.footer__col a:hover{ color: var(--green); }
.footer__social{ display: flex; gap: 14px; margin: 20px 0 12px; }
.footer__social svg{ width: 18px; height: 18px; color: var(--text-soft); }
.footer__social a{ color: var(--text-soft); display: inline-flex; }
.footer__social a:hover{ color: var(--green); }
.footer__copy{ font-size: 12px; color: var(--text-soft); margin: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px){
  :root{ --gutter: 32px; }
  .main-nav ul{ gap: 18px; }
  .benefits-grid{ grid-template-columns: repeat(2, 1fr); }
  .services-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 780px){
  .header__inner{ grid-template-columns: 1fr auto auto; gap: 16px; }
  .nav-toggle{ display: flex; }

  .main-nav{
    grid-column: 1 / -1;
    order: 4;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open{ max-height: 320px; }
  .main-nav ul{
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-block: 8px 16px;
  }
  .main-nav li{ width: 100%; }
  .main-nav a{
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }

  .hero__scrim{ background: linear-gradient(180deg, rgba(255,255,255,.96) 30%, rgba(255,255,255,.55) 100%); }
  .hero{ min-height: 360px; }
  .partner__badge{ grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .stats{ grid-template-columns: 1fr; }
  .benefits-grid{ grid-template-columns: 1fr; }
  .benefits-card{ padding: 28px; }
  .trial-grid{ grid-template-columns: 1fr; }
  .contact__grid{
    grid-template-columns: 1fr;
    grid-template-areas: "cta" "info" "map";
  }
  .footer__grid{ grid-template-columns: 1fr; }
}
