/* =========================================================
   resellerlatinoamerica.co — Estilos
   ========================================================= */
:root {
  --primary: #063565;
  --primary-dark: #04264a;
  --primary-light: #1d4f91;
  --accent: #f26722;      /* naranja "Más vendido" / cPanel */
  --red: #d7192d;
  --text: #2b2b2b;
  --muted: #555;
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --border: #dfe3ea;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(6, 53, 101, .10);
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Rubik', sans-serif;
  --font-price: 'Oswald', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 12px 24px; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--primary); padding: 10px 22px; }
.btn--light:hover { background: #e7eef8; }
.btn--light i { transition: transform .25s; }
.btn--light:hover i { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem;
}
.logo__text { font-family: var(--font-title); font-size: 1.15rem; color: var(--primary); font-weight: 600; }
.logo__text strong { font-weight: 800; }
.logo__text small { color: var(--red); font-weight: 700; font-size: 1rem; }
.logo--light .logo__icon { background: #fff; color: var(--primary); }
.logo--light .logo__text { color: #fff; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-weight: 500; color: var(--primary); position: relative; padding: 6px 0; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--red); transition: width .25s;
}
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__login { padding: 10px 20px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--primary); margin: 5px 0; border-radius: 3px; transition: .3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 50px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.hero__title {
  font-family: var(--font-title); font-weight: 800; color: #2d2d2d;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.1;
}
.hero__subtitle {
  font-family: var(--font-title); font-weight: 700; color: var(--primary);
  font-size: clamp(1.4rem, 2.6vw, 2rem); display: inline-block; position: relative;
  padding-bottom: 8px; margin: 6px 0 26px 80px;
}
.hero__subtitle::after {
  content: ''; position: absolute; left: 15%; bottom: 0; width: 70%; height: 4px; background: var(--red); border-radius: 2px;
}
.hero__lead {
  font-family: var(--font-title); font-weight: 600; color: var(--primary);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; margin-bottom: 24px;
}
.hero__features li { display: flex; align-items: center; gap: 14px; font-family: var(--font-title); font-weight: 500; margin-bottom: 12px; }
.hero__features i { color: var(--primary); font-size: 1.4rem; width: 30px; text-align: center; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.hero__image svg { width: 100%; max-width: 560px; margin-left: auto; }
.hero__image .rocket { animation: float 3.5s ease-in-out infinite; }
.hero__image .leds circle { animation: blink 1.4s infinite; }
.hero__image .leds circle:nth-child(2) { animation-delay: .4s; }
.hero__image .leds circle:nth-child(3) { animation-delay: .8s; }

@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6px,-10px); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Dominio ---------- */
.domain { background: var(--bg-soft); padding: 26px 0; }
.domain__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.domain__text { text-align: center; flex: 1 1 400px; }
.domain__text h3 { font-family: var(--font-title); font-weight: 600; color: var(--primary); font-size: clamp(1.2rem, 2.3vw, 1.8rem); }
.domain__text h3 i { margin-right: 6px; }
.domain__text h3 strong { font-weight: 800; }
.domain__text p { font-size: 1.15rem; color: #333; }
.domain__form { display: flex; gap: 8px; flex: 0 1 auto; }
.domain__form input {
  padding: 12px 18px; border: 2px solid var(--border); border-radius: 50px;
  font: inherit; min-width: 0; width: 220px; outline: none; transition: border-color .2s;
}
.domain__form input:focus { border-color: var(--primary); }
.domain__result { width: 100%; text-align: center; font-weight: 500; color: var(--primary); min-height: 1em; }
.domain__result.is-error { color: var(--red); }

/* ---------- Intro ---------- */
.intro { padding: 50px 0 10px; text-align: center; }
.section-title {
  font-family: var(--font-title); font-weight: 700; color: var(--primary);
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; text-align: center;
}
.intro__text { max-width: 1250px; margin: 22px auto 0; color: #333; font-size: 1.02rem; }

.renew {
  margin: 40px auto 0; max-width: 1220px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; text-align: left;
  border: 1px solid var(--border); border-radius: 18px; padding: 22px 40px; box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.renew__left { display: flex; align-items: center; gap: 18px; }
.renew__icon {
  width: 62px; height: 62px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0;
}
.renew__left h3 { font-family: var(--font-title); font-weight: 800; color: var(--primary); font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.1; }
.renew__left p { font-size: .9rem; color: #444; }
.renew__left p strong { color: var(--primary); }
.renew__compare { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.renew__box { padding: 12px 26px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.renew__box small { font-size: .8rem; font-weight: 600; color: var(--primary); }
.renew__box strong { font-family: var(--font-title); font-weight: 700; color: var(--primary); font-size: 1.4rem; }
.renew__equal { background: #e7eef8; color: var(--primary); font-weight: 700; font-size: 1.6rem; display: grid; place-items: center; padding: 0 16px; }

/* ---------- Planes ---------- */
.plans { padding: 60px 0 40px; }
.plans__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.plan {
  position: relative; background: #fff; border: 1.5px solid var(--primary); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.plan__badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: .9rem; font-weight: 500; padding: 4px 12px; white-space: nowrap;
}
.plan__badge--orange { background: var(--accent); }
.plan__badge--blue { background: var(--primary); }

.plan__head { text-align: center; padding: 36px 16px 22px; }
.plan__name { font-family: var(--font-title); font-weight: 800; color: var(--primary); font-size: 3rem; line-height: 1; }
.plan__panel { font-family: var(--font-title); font-weight: 600; color: var(--primary); font-size: 1.25rem; margin-top: 10px; }
.plan__cpanel {
  font-family: var(--font-title); font-weight: 800; font-style: italic; color: var(--accent);
  font-size: 1.9rem; letter-spacing: -1px; line-height: 1;
}

.plan__price {
  background: var(--primary); color: #fff; text-align: center; padding: 20px 16px 22px;
}
.plan__amount { font-family: var(--font-price); display: flex; justify-content: center; align-items: baseline; gap: 4px; }
.plan__amount .cur { font-size: 1.9rem; }
.plan__amount .num { font-size: 3.6rem; line-height: 1; font-weight: 500; }
.plan__amount .per { font-size: 1.5rem; }
.plan__tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  background: #fff; color: var(--primary); font-weight: 600; font-size: .82rem;
  padding: 6px 18px; border-radius: 50px;
}

.plan__features { padding: 22px 26px 10px; flex: 1; }
.plan__features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 1.02rem; color: #333; }
.plan__features i { width: 22px; text-align: center; color: #222; font-size: 1.05rem; flex-shrink: 0; }
.plan__features b { color: #222; }
.plan__nvme { background: var(--primary); color: #fff; padding: 2px 7px; border-radius: 3px; font-weight: 500; font-size: .95rem; }

.plan__foot { padding: 14px 16px 28px; text-align: center; }
.plan__foot .btn { font-size: 1.2rem; padding: 12px 32px; }

/* ---------- Aviso ---------- */
.notice { padding: 10px 0 40px; }
.notice__box {
  display: flex; align-items: center; gap: 20px; background: #e9f0f8; border-radius: 14px;
  padding: 18px 26px; max-width: 1260px; margin: 0 auto;
}
.notice__box > i { color: var(--primary); font-size: 1.9rem; }
.notice__box div { flex: 1; text-align: center; }
.notice__box strong { color: var(--primary); }
.notice__box p { color: var(--primary); font-size: .98rem; }

/* ---------- Soluciones ---------- */
.solutions { background: var(--bg-soft); padding: 60px 0; }
.section-subtitle {
  text-align: center; margin: 14px 0 40px; font-family: var(--font-title); font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.6rem); color: #333; position: relative;
}
.section-subtitle span { position: relative; display: inline-block; padding: 0 50px 12px; }
.section-subtitle span::before, .section-subtitle span::after { content: ''; position: absolute; top: .7em; width: 36px; height: 1px; background: #333; }
.section-subtitle span::before { left: 0; }
.section-subtitle span::after { right: 0; }
.section-subtitle::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: min(440px, 70%); height: 4px; background: var(--red); border-radius: 2px;
}

.solutions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.solution {
  background: var(--primary); color: #fff; border-radius: var(--radius); text-align: center;
  padding: 22px 20px 26px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .3s, box-shadow .3s;
}
.solution:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(6,53,101,.3); }
.solution__icon {
  width: 110px; height: 110px; border-radius: 50%; background: #fff; border: 4px solid #fff;
  box-shadow: inset 0 0 0 4px var(--primary); color: var(--primary); display: grid; place-items: center; font-size: 2.8rem;
}
.solution h3 { font-family: var(--font-title); font-weight: 700; font-size: 1.6rem; margin-top: 6px; }
.solution__price { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; }
.solution p { font-size: .95rem; }
.solution__ideal { font-weight: 600; flex: 1; }
.solution .btn { margin-top: 8px; }

.tech {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 18px 34px; margin-top: 40px; max-width: 900px; margin-left: auto; margin-right: auto;
}
.tech li { font-family: var(--font-title); font-weight: 600; font-size: 1.25rem; color: #222; display: flex; align-items: center; gap: 6px; }
.tech__cpanel { font-style: italic; font-weight: 800 !important; letter-spacing: -1px; font-size: 1.6rem !important; }
.tech__script { font-family: 'Brush Script MT', cursive !important; font-weight: 400 !important; font-size: 1.7rem !important; }
.tech__italic { font-style: italic; font-weight: 800 !important; }

/* ---------- Por qué elegirnos ---------- */
.why { padding: 60px 0; }
.why__subtitle { text-align: center; font-family: var(--font-title); font-weight: 700; color: #333; font-size: 1.5rem; margin: 4px 0 34px; }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
.why__card {
  display: flex; gap: 22px; align-items: flex-start; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px;
  transition: transform .3s, box-shadow .3s;
}
.why__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why__icon {
  width: 112px; height: 112px; flex-shrink: 0; border-radius: 50%; background: #fff;
  display: grid; place-items: center; color: var(--primary); font-size: 3rem;
}
.why__card h3 { font-family: var(--font-title); font-weight: 700; color: var(--primary); font-size: 1.5rem; line-height: 1.2; }
.why__card h4 { font-family: var(--font-title); font-weight: 600; color: #222; font-size: 1.05rem; margin: 4px 0 6px; }
.why__card p { color: #333; font-size: 1rem; }

/* ---------- Líderes ---------- */
.leaders { background: var(--bg-soft); padding: 50px 0; }
.leaders__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; }
.leaders__content { text-align: center; }
.leaders__content h2 { font-family: var(--font-title); font-weight: 800; color: #333; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.leaders__content h2 span { color: var(--primary); display: inline-block; position: relative; padding-bottom: 8px; }
.leaders__content h2 span::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--red); border-radius: 2px; }
.leaders__lead { font-weight: 600; font-size: 1.2rem; color: #222; margin: 22px 0 18px; }
.leaders__content p { font-size: 1.05rem; }
.leaders__thanks { font-family: var(--font-title); font-weight: 700; color: var(--primary); font-size: 1.8rem !important; margin-top: 22px; }
.leaders__image svg { width: 100%; max-width: 460px; margin: 0 auto; }
.leaders__image .pin { animation: bounce 2.6s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Footer ---------- */
.footer { background: var(--primary-dark); color: #cfdcec; padding: 36px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.footer__nav a:hover { color: #fff; }
.footer__copy { font-size: .9rem; }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 0; cursor: pointer; font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1150px) {
  .plans__grid, .solutions__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 10px 16px 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__login { margin-top: 14px; width: 100%; justify-content: center; }

  .hero__grid, .leaders__grid { grid-template-columns: 1fr; }
  .hero__content { text-align: center; }
  .hero__subtitle { margin-left: 0; }
  .hero__features { display: inline-block; text-align: left; }
  .hero__actions { justify-content: center; }
  .hero__image svg { margin: 0 auto; max-width: 440px; }

  .why__grid { grid-template-columns: 1fr; }
  .renew { justify-content: center; padding: 22px; }
  .domain__form { width: 100%; justify-content: center; }
}

@media (max-width: 620px) {
  .plans__grid, .solutions__grid { grid-template-columns: 1fr; }
  .plan { max-width: 380px; margin: 0 auto; width: 100%; }
  .why__card { flex-direction: column; align-items: center; text-align: center; }
  .why__icon { width: 90px; height: 90px; font-size: 2.4rem; }
  .renew__left { flex-direction: column; text-align: center; }
  .renew__box { padding: 10px 14px; }
  .renew__box strong { font-size: 1.1rem; }
  .domain__form { flex-direction: column; }
  .domain__form input { width: 100%; }
  .domain__form .btn { justify-content: center; }
  .notice__box { flex-direction: column; text-align: center; }
  .logo__text { font-size: 1rem; }
}
