/* ===================================================
   SERVICIO TÃ‰CNICO GÃ“MEZ â€” style.css
   =================================================== */

/* ---- Variables ---- */
:root {
  /* Fondos */
  --bg:           #ffffff;
  --bg-surface:   #f4f7f5;
  --bg-card:      #ffffff;
  --bg-hover:     #eef5ee;
  --border:       #dde6dd;
  --border-light: #c8d8c8;

  /* Texto */
  --text:         #1e2d1e;
  --text-muted:   #4a5e4a;
  --text-subtle:  #8fa08f;

  /* Verde del logo */
  --accent:       #4db848;
  --accent-light: #6acf65;
  --accent-dark:  #389934;
  --accent-dim:   rgba(77, 184, 72, 0.1);

  /* Navy del logo */
  --navy:         #2d3b4e;
  --navy-light:   #3d5068;
  --navy-dim:     rgba(45, 59, 78, 0.08);

  /* WhatsApp */
  --wa:           #25D366;
  --wa-dark:      #1da851;

  --radius:       6px;
  --radius-lg:    10px;

  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-head:    'Barlow', system-ui, -apple-system, sans-serif;

  --max-w:        1200px;
  --nav-h:        68px;

  --shadow-card:  0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.07);
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.06);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn--sm  { font-size: 0.82rem; padding: 8px 14px; }
.btn--lg  { font-size: 0.95rem; padding: 14px 22px; }
.btn--xl  { font-size: 1.05rem; padding: 17px 28px; }

.btn--wa {
  background: var(--wa);
  color: #fff;
}
.btn--wa:hover { background: var(--wa-dark); }

.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover { background: var(--navy-light); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-light);
}
.btn--outline:hover {
  border-color: var(--navy);
  background: var(--navy-dim);
}

/* ===================================================
   NAV
   =================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 38px;
  width: auto;
}
.nav__logo-text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.nav__logo-text strong {
  color: var(--accent-dark);
  font-weight: 800;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link.active { color: var(--navy); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background-image: url('assets/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(22, 35, 50, 0.88) 0%,
    rgba(22, 35, 50, 0.75) 50%,
    rgba(22, 35, 50, 0.45) 100%
  );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-block: 80px;
}
.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.hero__support {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  line-height: 1.6;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
/* BotÃ³n outline dentro del hero (fondo oscuro) */
.hero .btn--outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.45);
}
.hero .btn--outline:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

/* ===================================================
   TRUST BAR
   =================================================== */
.trust {
  background: var(--navy);
  border-top: none;
  border-bottom: none;
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding-block: 0;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  flex: 1;
  min-width: 180px;
  justify-content: center;
}
.trust__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--accent);
}
.trust__sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ===================================================
   SECTIONS â€” base
   =================================================== */
.section {
  padding-block: 96px;
}
.section--dark    { background: var(--bg); }
.section--surface { background: var(--bg-surface); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 56px;
}
.section__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section__desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================================
   SERVICES
   =================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--accent-dark);
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
}
.service-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.service-card__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================
   NOSOTROS / ABOUT
   =================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 72px;
  align-items: center;
}
.about__photo-wrap {
  position: relative;
}
.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.about__photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(77,184,72,0.2);
  pointer-events: none;
}
.about__content .section__title {
  text-align: left;
  margin-bottom: 24px;
}
.about__text {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about__text:last-of-type { margin-bottom: 28px; }
.about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-dim);
  border: 1px solid rgba(77,184,72,0.3);
  border-radius: 4px;
  padding: 5px 12px;
  letter-spacing: 0.02em;
}

/* ===================================================
   DIFERENCIALES
   =================================================== */
.diferentials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.diferential {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.diferential__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--accent-dark);
  margin-top: 1px;
}
.diferential p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

/* ===================================================
   MARCAS
   =================================================== */
.brands__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.brand-item {
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  box-shadow: var(--shadow-sm);
}
.brand-item:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-dim);
}

/* ===================================================
   FAQ
   =================================================== */
.faq__list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: color 0.2s;
}
.faq__question:hover { color: var(--accent-dark); }
.faq__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--text-muted);
  transition: transform 0.3s;
}
.faq__item.open .faq__chevron {
  transform: rotate(180deg);
  stroke: var(--accent-dark);
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq__item.open .faq__answer {
  max-height: 300px;
}
.faq__answer > p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================================
   CTA FINAL
   =================================================== */
.cta-final {
  background: var(--navy);
  padding-block: 80px;
}
.cta-final__inner {
  text-align: center;
  max-width: 640px;
}
.cta-final__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.cta-final__text {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ===================================================
   CONTACTO
   =================================================== */
.contact__card {
  max-width: 860px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.contact__info {
  padding: 40px;
  border-right: 1px solid var(--border);
  background: var(--bg-surface);
}
.contact__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact__row:last-child { margin-bottom: 0; }
.contact__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--accent-dark);
  fill: none;
  margin-top: 3px;
}
.contact__icon[fill="currentColor"] {
  fill: var(--accent-dark);
  stroke: none;
}
.contact__label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 3px;
}
.contact__value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--navy);
}
.contact__value--link:hover { color: var(--accent-dark); }
.contact__note {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 3px;
}
.contact__cta {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.contact__cta-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--navy);
  padding-block: 36px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.footer__logo {
  height: 28px;
  width: auto;
}
.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer__copy--small { font-size: 0.73rem; }

/* ===================================================
   WHATSAPP FLOAT
   =================================================== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: background 0.2s, transform 0.2s;
}
.wa-float:hover {
  background: var(--wa-dark);
  transform: scale(1.07);
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--wa);
  opacity: 0;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.5); }
}

/* ===================================================
   RESPONSIVE â€” Tablet (max 1024px)
   =================================================== */
@media (max-width: 1024px) {
  .services__grid       { grid-template-columns: repeat(2, 1fr); }
  .diferentials__grid   { grid-template-columns: repeat(2, 1fr); }
  .about__grid          { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ===================================================
   RESPONSIVE â€” Mobile (max 768px)
   =================================================== */
@media (max-width: 768px) {

  /* Nav */
  .nav__links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 6px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav__links.open { display: flex; }
  .nav__link {
    font-size: 1.1rem;
    padding: 10px 0;
    width: 100%;
    color: var(--navy);
    border-bottom: 1px solid var(--border);
  }
  .nav__links .btn {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }
  .nav__toggle { display: flex; }

  /* Hero */
  .hero__inner { padding-block: 60px 48px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Trust */
  .trust__inner {
    flex-direction: column;
    padding-block: 4px;
  }
  .trust__sep { display: none; }
  .trust__item {
    width: 100%;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
  }
  .trust__item:last-child { border-bottom: none; }

  /* Sections */
  .section { padding-block: 64px; }
  .section__header { margin-bottom: 40px; }

  /* Services */
  .services__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { padding: 22px 18px; }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about__photo {
    aspect-ratio: 3 / 2;
    max-width: 420px;
    margin-inline: auto;
    object-position: center 20%;
  }
  .about__content .section__title { text-align: left; }

  /* Diferenciales */
  .diferentials__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .diferential { padding: 18px 14px; }

  /* Contact */
  .contact__card { grid-template-columns: 1fr; }
  .contact__info { border-right: none; border-bottom: 1px solid var(--border); }

  /* Float button */
  .wa-float { bottom: 20px; right: 16px; }
}

/* ===================================================
   RESPONSIVE â€” Small mobile (max 480px)
   =================================================== */
@media (max-width: 480px) {
  .services__grid     { grid-template-columns: 1fr; }
  .diferentials__grid { grid-template-columns: 1fr; }
  .brands__grid       { gap: 8px; }
  .brand-item         { padding: 11px 20px; font-size: 0.85rem; }
}
