/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --white: #ffffff;
  --bg: #f4f8fc;
  --dark: #0a0a14;
  --dark2: #1a1a2e;
  --gray: #6b7280;
  --gray-light: #e5e7eb;

  /* Azul pleno del logo Intermedia */
  --blue: #1a7bbf;
  --blue-dark: #155f96;
  --blue-light: #2596e0;
  --blue-xlight: #dbeafe;

  /* Gradiente solo para planes (se mantiene) */
  --gradient: linear-gradient(135deg, #1a7bbf 0%, #7c3aed 100%);
  --gradient-soft: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);

  /* WhatsApp */
  --wa-green: #25d366;
  --wa-green-dark: #1ebe5d;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
  --shadow-blue: 0 8px 30px rgba(26,123,191,.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   UTILITIES
   ============================================ */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-xlight); border: 1px solid #bfdbfe;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; line-height: 1.2; color: var(--dark);
}
.section-sub {
  font-size: 1.05rem; color: var(--gray);
  margin-top: 12px; max-width: 540px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600;
  padding: 13px 26px; border-radius: 50px; border: none; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}

/* Azul pleno — color principal */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(26,123,191,.4);
}

/* Verde WhatsApp */
.btn-whatsapp {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37,211,102,.3);
}
.btn-whatsapp:hover {
  background: var(--wa-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,.4);
}

.btn-ghost {
  background: transparent; color: var(--dark);
  border: 1.5px solid var(--gray-light);
}
.btn-ghost:hover {
  background: var(--bg); border-color: var(--blue); color: var(--blue);
}

.btn-white {
  background: var(--white); color: var(--blue-dark); font-weight: 700;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }

/* ============================================
   NAVBAR
   ============================================ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.nav-logo img { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--gray);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: all var(--transition);
}

/* Mobile nav */
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--white); border-top: 1px solid var(--gray-light);
  padding: 16px 24px 24px;
}
.mobile-menu a {
  padding: 12px 0; font-weight: 500; color: var(--gray);
  border-bottom: 1px solid var(--gray-light);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 8px; }

#menu-toggle { display: none; }
#menu-toggle:checked ~ .mobile-menu { display: flex; }
#menu-toggle:checked ~ .nav-inner .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle:checked ~ .nav-inner .hamburger span:nth-child(2) { opacity: 0; }
#menu-toggle:checked ~ .nav-inner .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  padding: 90px 0 80px;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, #dbeafe 0%, transparent 70%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  color: var(--blue); background: var(--blue-xlight);
  border: 1px solid #bfdbfe;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 20px;
}
.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -.03em; color: var(--dark); margin-bottom: 20px;
}
.hero-h1 span {
  color: var(--blue);
}
.hero-sub {
  font-size: 1.1rem; color: var(--gray);
  margin-bottom: 36px; max-width: 460px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: var(--dark2);
  background: var(--white); border: 1px solid var(--gray-light);
  padding: 6px 12px; border-radius: 50px;
  box-shadow: var(--shadow-sm);
}
.badge svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--blue); }

/* Hero mockup */
.hero-visual { position: relative; }
.mockup-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
}
.mockup-bar {
  background: #f3f4f6; padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.mockup-url {
  flex: 1; background: var(--white); border-radius: 6px;
  font-size: .7rem; color: var(--gray); padding: 4px 10px; margin-left: 6px;
}
.mockup-hero-block {
  background: #1F2937; padding: 28px 24px; text-align: center;
}
.mockup-hero-block h3 { color: white; font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.mockup-hero-block p { color: rgba(255,255,255,.75); font-size: .72rem; margin-bottom: 16px; }
.mockup-btn {
  background: white; color: var(--blue-dark);
  font-size: .65rem; font-weight: 700;
  padding: 7px 18px; border-radius: 50px; display: inline-block;
}
.mockup-content { padding: 20px 24px; }
.mockup-row { display: flex; gap: 10px; margin-bottom: 10px; }
.mockup-block { border-radius: 8px; background: #F3F4F6; flex: 1; height: 36px; }
.mockup-block.tall { height: 56px; }
.mockup-block.accent { background: #D6E4FF; }

/* Floating bades */
.floating-badge {
  position: absolute;
  background: var(--white); border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  padding: 8px 14px; font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(0,0,0,.05);
  animation: float 4s ease-in-out infinite;
}
.fb1 { top: -16px; right: 24px; animation-delay: 0s; }
.fb2 { bottom: 40px; left: -20px; animation-delay: 1s; }
.fb3 { top: 50%; right: -20px; animation: float2 4s ease-in-out infinite 2s; }
.fb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes float2 { 0%,100%{transform:translateY(-50%)} 50%{transform:translateY(calc(-50% - 8px))} }

/* ============================================
   DOMAIN CHECKER SECTION
   ============================================ */
#dominio {
  padding: 80px 0;
  background: var(--bg);
}
.domain-box {
  max-width: 680px; margin: 48px auto 0;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-light);
  text-align: center;
}
.domain-form {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 16px;
}
.domain-input-wrap {
  display: flex; align-items: center;
  background: var(--bg); border: 1.5px solid var(--gray-light);
  border-radius: 50px; overflow: hidden;
  flex: 1; min-width: 220px;
  transition: border-color var(--transition);
}
.domain-input-wrap:focus-within { border-color: var(--blue); }
.domain-prefix {
  padding: 0 12px; font-size: .85rem;
  color: var(--gray); font-weight: 500; white-space: nowrap;
}
.domain-input {
  flex: 1; border: none; background: transparent;
  font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 600;
  color: var(--dark); padding: 13px 0; outline: none;
}
.domain-input::placeholder { color: #9ca3af; font-weight: 400; }
.domain-ext {
  border: none; background: transparent;
  font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 600;
  color: var(--blue); padding: 0 14px 0 6px; cursor: pointer; outline: none;
}
.domain-btn { flex-shrink: 0; }

.domain-result {
  min-height: 28px; font-size: .9rem;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.dr-loading { color: var(--gray); }
.dr-warn { color: #dc2626; font-weight: 600; }
.dr-info { color: var(--dark); font-weight: 500; }
.dr-link { margin-top: 4px; }

.domain-result {
  min-height: 24px; font-size: .9rem;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
#how { padding: 96px 0; background: var(--white); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; margin-top: 56px; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute;
  top: 38px; left: calc(16.66% + 20px); right: calc(16.66% + 20px);
  height: 2px; background: var(--blue); z-index: 0;
}
.step { text-align: center; padding: 0 24px; position: relative; z-index: 1; }
.step-number {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: white;
  box-shadow: 0 8px 24px rgba(26,123,191,.3);
  border: 4px solid var(--white);
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: .875rem; color: var(--gray); }

/* ============================================
   PRICING SECTION
   ============================================ */
#pricing { padding: 96px 0; background: var(--bg); }
.pricing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 24px 0 48px; font-size: .9rem; font-weight: 500;
}
.toggle-switch {
  position: relative; width: 52px; height: 28px;
  background: var(--gradient); border-radius: 50px; cursor: pointer; flex-shrink: 0;
}
.toggle-switch::after {
  content: ''; position: absolute; top: 4px; left: 4px;
  width: 20px; height: 20px; border-radius: 50%; background: white;
  transition: transform var(--transition);
}
.toggle-label-annual { color: var(--blue); font-weight: 700; }
.save-badge {
  font-size: .7rem; font-weight: 700; color: white;
  background: var(--gradient); padding: 3px 10px; border-radius: 50px;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; align-items: start;
}
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 30px; border: 1.5px solid var(--gray-light);
  transition: all var(--transition); position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  background: var(--dark2); color: white;
  border-color: var(--dark2);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: white;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 5px 16px; border-radius: 50px; white-space: nowrap;
}
.plan-name {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.featured .plan-name { color: #93c5fd; }
.plan-price {
  font-size: 2.2rem; font-weight: 900; line-height: 1; margin-bottom: 4px;
}
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--gray); }
.featured .plan-price span { color: rgba(255,255,255,.5); }
.plan-annual { font-size: .8rem; color: var(--gray); margin-bottom: 6px; }
.featured .plan-annual { color: rgba(255,255,255,.5); }
.plan-annual strong { color: #22c55e; }
.plan-divider { height: 1px; background: var(--gray-light); margin: 24px 0; }
.featured .plan-divider { background: rgba(255,255,255,.12); }
.plan-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.plan-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem; color: var(--gray);
}
.featured .plan-feature { color: rgba(255,255,255,.8); }
.check-icon {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.check-icon svg { width: 10px; height: 10px; color: white; }
.plan-btn { width: 100%; justify-content: center; border-radius: 12px; padding: 14px; }
.featured-btn {
  background: var(--gradient); color: white;
  box-shadow: 0 4px 20px rgba(26,123,191,.4);
  font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer;
}
.featured-btn:hover { box-shadow: 0 8px 30px rgba(26,123,191,.5); transform: translateY(-1px); }

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
#portfolio { padding: 96px 0; background: var(--white); }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 56px;
}
.portfolio-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: all var(--transition); background: var(--white);
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Imagen de portfolio — reemplazá con tus capturas reales */
.portfolio-img {
  width: 100%; height: 200px;
  object-fit: cover; object-position: top;
  display: block;
  background: var(--bg); /* fallback si no carga la imagen */
}

.portfolio-tag {
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.portfolio-tag h3 { font-size: .95rem; font-weight: 700; }
.portfolio-tag p { font-size: .8rem; color: var(--gray); }
.portfolio-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-xlight); border: 1px solid #bfdbfe;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1rem; transition: all var(--transition);
}
.portfolio-card:hover .portfolio-arrow { background: var(--blue); color: white; }

/* ============================================
   FAQ SECTION
   ============================================ */
#faq { padding: 96px 0; background: var(--bg); }
.faq-list {
  max-width: 720px; margin: 56px auto 0;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  border-radius: var(--radius); border: 1.5px solid var(--gray-light); overflow: hidden;
}
.faq-toggle { display: none; }
.faq-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: .95rem;
  transition: background var(--transition); user-select: none;
}
.faq-label:hover { background: var(--white); }
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-xlight); border: 1px solid #bfdbfe;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--blue); flex-shrink: 0;
  transition: all var(--transition);
}
.faq-toggle:checked ~ .faq-label .faq-icon {
  background: var(--blue); color: white; transform: rotate(45deg);
}
.faq-toggle:checked ~ .faq-label { color: var(--blue); }
.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
}
.faq-toggle:checked ~ .faq-body { max-height: 200px; padding: 0 24px 20px; }
.faq-body p { font-size: .9rem; color: var(--gray); line-height: 1.7; }
.faq-item:has(.faq-toggle:checked) { border-color: var(--blue); }

/* ============================================
   FINAL CTA SECTION
   ============================================ */
#cta {
  padding: 96px 0;
  background: var(--blue);
  position: relative; overflow: hidden;
}
#cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,255,255,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(255,255,255,.05) 0%, transparent 70%);
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 20px;
}
#cta h2 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900; color: white; line-height: 1.15; margin-bottom: 16px;
}
#cta p { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 36px; }
.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.btn-outline-white {
  background: transparent; color: white; font-weight: 600; font-size: .9rem;
  border: 1.5px solid rgba(255,255,255,.5); padding: 13px 26px; border-radius: 50px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all var(--transition); cursor: pointer; font-family: 'Inter', sans-serif;
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: white; }

/* ============================================
   FOOTER
   ============================================ */
footer {
background: var(--dark); color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 32px; filter: brightness(0) invert(1); }
.footer-desc { font-size: .875rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: white; margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .875rem; color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: white; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: rgba(255,255,255,.6);
}
.social-btn:hover { background: var(--blue); border-color: transparent; color: white; }
.social-btn svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: .8rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-links a:hover { color: white; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .pricing-grid { gap: 16px; }
  .pricing-card { padding: 28px 22px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .floating-badge { display: none; }

  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-4px); }

  .portfolio-grid { grid-template-columns: 1fr; }

  .domain-form { flex-direction: column; }
  .domain-input-wrap { min-width: unset; width: 100%; }
  .domain-btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn,
  .btn-outline-white { width: 100%; justify-content: center; }
}
