/* ==========================================================
   WEBTICE — Hoja de estilos
   1. Variables y reset
   2. Base y utilidades
   3. Botones
   4. Navegación
   5. Hero
   6. Ticker
   7. Secciones (servicios, nosotros, proceso)
   8. CTA
   9. Contacto y formulario
   10. Footer
   11. Accesibilidad / movimiento reducido
   12. Responsive
   ========================================================== */

/* 1. Variables y reset */
:root {
  --ink: #0b211c;
  --panel: #12332b;
  --cream: #eee9d3;
  --green: #19a362;
  --muted: #a9b9ae;
  --line: #204239;
  --max: 1096px;
}

* { box-sizing: border-box; }

/* 2. Base y utilidades */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.brand img {
    max-width: 150px;
    height: auto;
}


.wrap { width: min(var(--max), calc(100% - 48px)); margin: auto; }
.accent { color: var(--green); }

.eyebrow {
  color: #32c27f;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 900;
  font-size: 11px;
  margin: 0 0 19px;
}

/* 3. Botones */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: 13px 21px;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, filter .22s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .24) 48%, transparent 70%);
  transition: transform .55s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(25, 163, 98, .24);
  filter: brightness(1.08);
}

.btn:hover::after { transform: translateX(130%); }

.btn:active {
  transform: translateY(-1px) scale(.98);
  box-shadow: 0 3px 9px rgba(25, 163, 98, .18);
}

.btn:focus-visible,
.footer a:focus-visible {
  outline: 3px solid #7ce5ae;
  outline-offset: 4px;
}

.btn.ghost { background: transparent; color: var(--cream); border: 1px solid #c7c6b4; }
.btn.dark { background: var(--ink); color: var(--cream); white-space: nowrap; }

/* 4. Navegación */
.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(238, 233, 211, .08);
}

.nav .btn { padding: 10px 23px; }

.brand { font-size: 22px; font-weight: 950; letter-spacing: -1px; }
.brand span { color: var(--green); }

.navlinks { display: flex; align-items: center; gap: 30px; font-size: 13px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #426157;
  color: var(--cream);
  border-radius: 8px;
  padding: 8px 11px;
  font: inherit;
  font-weight: 800;
}

/* 5. Hero */
.hero {
  padding: 76px 0 82px;
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(48px, 6.1vw, 78px);
  line-height: .99;
  letter-spacing: -3.8px;
  text-transform: uppercase;
  margin: 0 0 25px;
  font-weight: 950;
}

.hero h1 em { font-style: normal; color: var(--green); }

.intro { color: var(--muted); font-size: 16px; max-width: 510px; margin: 0 0 27px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.micro { font-size: 12px; color: #81968a; margin-top: 20px; }

/* Mockup */
.mockup { position: relative; min-height: 365px; display: grid; place-items: center; }

.browser {
  width: 100%;
  max-width: 400px;
  background: #173b32;
  border: 1px solid #284d42;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 28px 60px #06151088;
  transform: translate(-10px, -15px);
}

.dots { display: flex; gap: 6px; margin: 0 0 10px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #52766b; }

.screen { background: var(--cream); color: var(--ink); border-radius: 10px; padding: 24px 25px; min-height: 245px; }
.screenbar { display: flex; justify-content: space-between; font-size: 9px; color: #57675b; }
.screenbar b { color: #12894e; }
.screen h3 { font-size: 27px; line-height: 1.03; margin: 32px 0 8px; }
.screen h3 span { color: var(--green); }
.screen p { font-size: 10px; color: #607066; margin: 0 0 12px; }
.screen .btn { padding: 8px 13px; font-size: 10px; border-radius: 6px; }

.tiles { display: flex; gap: 8px; margin-top: 17px; }
.tiles span { background: white; border-radius: 6px; padding: 9px; font-size: 9px; font-weight: 800; flex: 1; }

.phone {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 128px;
  height: 270px;
  border: 5px solid var(--cream);
  border-radius: 27px;
  background: var(--ink);
  padding: 12px 8px;
  box-shadow: 0 15px 30px #06151099;
}

.phonein { height: 100%; border-radius: 15px; background: var(--cream); color: var(--ink); padding: 25px 10px; }
.phonein small { font-size: 8px; color: #158a51; }
.phonein h4 { font-size: 16px; line-height: 1.02; margin: 18px 0 70px; }
.phonein .btn { padding: 7px 9px; font-size: 9px; }

.badge {
  position: absolute;
  left: 0;
  bottom: 22px;
  border-radius: 10px;
  background: var(--green);
  color: var(--ink);
  padding: 12px 17px;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 8px 20px #06151066;
}

/* 6. Ticker */
.ticker { background: var(--cream); color: var(--ink); padding: 22px 0; }
.ticker .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 13px; }
.ticker strong { font-size: 13px; text-transform: uppercase; }

/* 7. Secciones */
.section { padding: 82px 0; }

.section h2 {
  font-size: clamp(34px, 4.3vw, 48px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 950;
}

.section-lead { color: var(--muted); max-width: 660px; margin: 0 0 35px; font-size: 14px; }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card { background: var(--panel); border: 1px solid #1b4036; border-radius: 15px; padding: 25px 23px; min-height: 245px; }
.card h3 { font-size: 19px; line-height: 1.1; text-transform: uppercase; margin: 0 0 10px; }
.card p { font-size: 13px; color: var(--muted); margin: 0 0 15px; }

.icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--green);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 900;
  margin-bottom: 17px;
}

.textlink { color: #33c681; font-size: 12px; font-weight: 850; }

/* Nosotros */
.cream { background: var(--cream); color: var(--ink); }
.cream .eyebrow { color: #138850; }
.cream .section-lead { color: #52665b; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.points { display: grid; gap: 10px; }
.point { background: var(--ink); color: var(--cream); padding: 17px 20px; border-radius: 12px; font-weight: 800; font-size: 14px; }
.point:last-child { background: var(--green); color: var(--ink); }

/* Proceso */
.process { background: #0e2922; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 37px; }
.step { border-top: 2px solid var(--green); padding-top: 14px; }
.num { font-size: 54px; line-height: 1; color: var(--green); font-weight: 950; letter-spacing: -3px; }
.step h3 { font-size: 16px; text-transform: uppercase; margin: 8px 0; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }

/* 8. CTA */
.cta { padding: 54px 0; }

.cta-box {
  border-radius: 20px;
  background: var(--green);
  padding: 42px 48px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-box h2 { font-size: 34px; line-height: 1.05; text-transform: uppercase; max-width: 620px; margin: 0 0 10px; letter-spacing: -1.3px; }
.cta-box p { margin: 0; font-size: 13px; }

/* 9. Contacto y formulario */
.contact { background: #0e2922; }
.contact h2 { max-width: 390px; }
.contactgrid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.whatsapp { margin-top: 18px; }

.form {
  background: var(--panel);
  border: 1px solid #204239;
  border-radius: 15px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form button { justify-self: start; }

.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 800; }

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid #315349;
  border-radius: 8px;
  padding: 12px;
}

.field textarea { min-height: 100px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #75877c; }

/* 10. Footer */
.footer { position: relative; overflow: hidden; padding: 48px 0 0; background: #0d2b24; }

.footer-panel {
  position: relative;
  z-index: 1;
  width: min(1375px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 6% 30px;
  border: 1px solid #24493f;
  border-radius: 20px;
  background: #10332b;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s ease;
}

.footer.motion-ready .footer-panel { opacity: 0; transform: translateY(28px); }
.footer.is-visible .footer-panel { opacity: 1; transform: translateY(0); }

.footer-main { display: grid; grid-template-columns: 2.2fr repeat(4, 1fr); gap: 38px; }

.footer-about .brand { display: inline-block; font-size: 34px; margin-bottom: 15px; color: var(--cream); }
.footer-about p { max-width: 420px; color: #c0cec4; font-size: 16px; margin: 0 0 20px; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #245044;
  border-radius: 999px;
  padding: 9px 15px;
  color: #d2ded5;
  font-size: 13px;
}

.availability i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

.footer-col h3 { font-size: 15px; margin: 7px 0 19px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: #c0cec4; }
.footer-col a { display: inline-block; transition: color .2s ease, transform .2s ease; }
.footer-col a:hover { color: #39c982; transform: translateX(4px); }

.footer-legal { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; color: #c0cec4; font-size: 13px; }

.footer-wordmark {
  position: relative;
  z-index: 0;
  margin: -8px auto -90px;
  text-align: center;
  font-size: clamp(120px, 24vw, 320px);
  font-weight: 950;
  line-height: .8;
  letter-spacing: -.09em;
  color: #11a17c;
  opacity: .82;
  white-space: nowrap;
  pointer-events: none;
  transition: letter-spacing .5s ease, color .5s ease, opacity .5s ease;
}

.footer.is-visible .footer-wordmark { animation: wordmark-rise .9s cubic-bezier(.2, .7, .2, 1) both; }

.footer-wordmark-reflection {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  transform: scaleY(-1);
  opacity: .08;
  mask-image: linear-gradient(transparent 20%, #000 100%);
}

@keyframes wordmark-rise {
  from { opacity: .2; transform: translateY(18px); }
  to   { opacity: .82; transform: translateY(0); }
}

/* 11. Accesibilidad: movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* 12. Responsive */
@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, var(--max)); }

  /* Navegación */
  .menu-toggle { display: block; }

  .navlinks {
    display: none;
    position: absolute;
    z-index: 5;
    top: 68px;
    left: 18px;
    right: 18px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .navlinks.open { display: flex; }
  .navlinks a { padding: 10px 12px; }
  .navlinks a:not(.btn) { display: block; }
  .navlinks .btn { margin-top: 4px; }

  /* Hero */
  .hero { grid-template-columns: 1fr; padding: 62px 0 55px; gap: 25px; min-height: unset; }
  .hero h1 { font-size: clamp(48px, 12vw, 70px); letter-spacing: -2.5px; }
  .intro { font-size: 15px; }
  .mockup { min-height: 340px; max-width: 500px; width: 100%; margin: auto; }
  .browser { max-width: 390px; }
  .phone { right: 3%; }

  /* Ticker */
  .ticker .wrap { justify-content: center; flex-wrap: wrap; text-align: center; }
  .ticker span { width: 100%; }
  .ticker strong { font-size: 11px; }

  /* Secciones */
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: unset; }
  .split, .contactgrid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 25px; }
  .step { padding-top: 12px; }
  .num { font-size: 46px; }

  /* CTA y formulario */
  .cta-box { padding: 30px 25px; align-items: flex-start; flex-direction: column; }
  .cta-box h2 { font-size: 29px; }
  .form { padding: 18px; }

  /* Footer */
  .footer-panel { width: calc(100% - 36px); padding: 34px 25px 25px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-about .brand { font-size: 29px; }
  .footer-about p { font-size: 14px; }
  .footer-legal { margin-top: 35px; flex-direction: column; }
  .footer-wordmark { font-size: 24vw; margin: 0 auto -18px; }
}

@media (max-width: 420px) {
  .nav .btn { padding: 9px 13px; }
  .brand { font-size: 19px; }

  .hero h1 { font-size: 46px; }
  .mockup { min-height: 300px; }
  .screen { padding: 18px; min-height: 220px; }
  .screen h3 { font-size: 23px; margin-top: 24px; }
  .phone { width: 108px; height: 230px; right: 0; }
  .phonein { padding: 19px 8px; }
  .phonein h4 { font-size: 14px; margin: 15px 0 55px; }
  .badge { font-size: 10px; padding: 10px 12px; }

  .form { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 25px 15px; }
  .footer-col h3 { font-size: 14px; }
  .footer-col ul { font-size: 13px; gap: 10px; }
  .footer-legal { font-size: 12px; }
}
