:root {
  --bg: #eaf6ee;
  --card: #ffffff;
  --ink: #0f1c1a;
  --muted: #6a7b76;
  --brand: #1fb86d;
  --brand-ink: #0c6a3c;
  --chip: #e9f7f0;
  --ring: 0 10px 30px rgba(0, 0, 0, .06);
  --radius: 18px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6
}

.container {
  width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding: 24px
}

a {
  color: inherit;
  text-decoration: none
}

a.underline {
  text-decoration: underline
}

img,
video {
  max-width: 100%;
  display: block
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px;
  z-index: 9999
}

.skip-link:focus {
  top: 0
}

/* Header */
.header {
  background: color-mix(in oklab, var(--bg) 90%, white 10%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: wrap;
  position: relative
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700
}

.brand img {
  border-radius: 12px
}

.navlinks {
  display: flex;
  gap: 28px;
  align-items: center
}

.navlinks a {
  font-weight: 600;
  opacity: .85;
  transition: var(--transition)
}

.navlinks a:hover {
  opacity: 1;
  color: var(--brand)
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
  align-items: center
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px
}

/* Link secundario Hero (MEJORADO) */
.link-secundario {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: underline;
  transition: var(--transition);
  opacity: 0.9;
}

.link-secundario:hover {
  color: var(--brand);
  opacity: 1;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--ring);
  transition: var(--transition);
  font-size: .95rem
}

.btn:active {
  transform: translateY(1px)
}

.btn-primary {
  background: var(--brand);
  color: #fff
}

.btn-primary:hover {
  background: color-mix(in oklab, var(--brand), black 8%);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .12)
}

.btn-ghost {
  background: #fff;
  color: var(--ink)
}

.btn-ghost:hover {
  background: #f5f7f6;
  transform: translateY(-1px)
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 50px
}

.eyebrow {
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px
}

h1 {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
  margin: 12px 0 18px;
  font-weight: 800
}

.lead {
  color: var(--muted);
  font-size: 1.1rem
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px
}

.video-frame-hero {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--ring);
  aspect-ratio: 16/9;
  position: relative
}

.video-frame-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.overlay-tag {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: #fff;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 16px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  font-size: 0.9rem
}

/* Tarjetas (Flex para alineación) */
.grid {
  display: grid;
  gap: 20px
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--ring);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05)
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08)
}

.flex-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-btn-bottom {
  margin-top: auto;
}

.chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--chip);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px
}

.price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 8px
}

.list {
  padding-left: 20px;
  margin: 10px 0
}

.list li {
  margin: 6px 0
}

/* Rail de Planes */
.plans-rail {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 24px
}

/* Media Tabs y Video Centrado (FIX TAMAÑO ESTRICTO) */
.tabs {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 25px;
  flex-wrap: wrap
}

.tab {
  padding: 12px 24px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid transparent;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--ring);
  transition: var(--transition)
}

.tab:hover {
  transform: translateY(-2px)
}

.tab.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 184, 109, 0.3)
}

.media-panel {
  animation: fadeIn 0.3s ease-out
}

/* Estilo para encuadrar el video - MÁS PEQUEÑO Y CENTRADO */
.media-container-video {
  max-width: 380px;
  /* Tamaño estricto para video vertical */
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ring);
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid #fff;
}

.media-container-video video {
  width: 100%;
  height: auto;
  display: block;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.thumb {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ring);
  transition: var(--transition)
}

.thumb:hover {
  transform: translateY(-5px)
}

.thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover
}

.thumb .label {
  padding: 15px;
  text-align: center;
  font-weight: 700
}

/* Cotizador Inteligente */
.cotizador {
  max-width: 500px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #f4faf6 100%);
  border: 1px solid rgba(31, 184, 109, 0.15);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(31, 184, 109, 0.1);
  position: relative;
  overflow: hidden;
}

.cotizador::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(31, 184, 109, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Progress bar */
.cot-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.cot-progress-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8ece9;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cot-progress-step.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 15px rgba(31, 184, 109, 0.35);
  transform: scale(1.1);
}

.cot-progress-step.done {
  background: var(--brand);
  color: #fff;
}

.cot-progress-line {
  width: 60px;
  height: 3px;
  background: #e8ece9;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.cot-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cot-progress-fill.filled {
  width: 100%;
}

/* Steps */
.cot-step {
  display: none;
  animation: cotSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cot-step.active {
  display: block;
}

.cot-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}

.cot-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Step 1: Service options */
.cot-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cot-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  font-family: inherit;
  min-height: 72px;
  position: relative;
  overflow: hidden;
}

.cot-option::after {
  content: '→';
  position: absolute;
  right: 20px;
  font-size: 1.2rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
}

.cot-option:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 25px rgba(31, 184, 109, 0.12);
  transform: translateY(-2px);
}

.cot-option:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.cot-option:active {
  transform: scale(0.98);
  background: var(--chip);
  border-color: var(--brand);
}

.cot-option-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}

.cot-option strong {
  font-size: 1.05rem;
  display: block;
  color: var(--ink);
}

.cot-option-desc {
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.cot-option-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  display: block;
  margin-top: 4px;
}

/* Step 2: Form */
.cot-back {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  font-size: 0.95rem;
  transition: color 0.2s;
  font-family: inherit;
}

.cot-back:hover {
  color: var(--brand);
}

.cot-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cot-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cot-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.cot-field input {
  padding: 14px 16px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.cot-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(31, 184, 109, 0.1);
}

.cot-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  margin-top: 8px;
  border-radius: 14px;
}

.cot-privacy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.8;
}

/* Step 3: Success */
.cot-success {
  text-align: center;
  padding: 20px 0;
}

.cot-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  animation: cotCheckPop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cot-checkmark svg {
  width: 100%;
  height: 100%;
}

.cot-checkmark circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: cotCircleDraw 0.6s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cot-checkmark path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: cotCheckDraw 0.4s 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cot-wa-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  border-radius: 14px;
  margin-top: 16px;
}

.cot-alt-action {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.cot-alt-action a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
}

/* Toast notification */
.cot-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.cot-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cot-toast.error {
  background: #d32f2f;
}

.cot-toast.success {
  background: var(--brand);
}

/* Testimonios */
.review {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e6efe9;
  overflow: hidden
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.stars {
  color: #f2b01b
}

.card .quote {
  position: relative;
  margin-top: 12px;
  padding-left: 10px;
  font-style: italic;
  color: var(--muted)
}

.card .quote::before {
  content: '"';
  position: absolute;
  top: -15px;
  left: -10px;
  font-size: 3rem;
  color: var(--bg);
  font-weight: 900;
  line-height: 1
}

/* FAQ */
.faq-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 80px;
}

.faq-pair {
  display: contents;
}

.faq-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--ring);
  overflow: hidden;
  transition: var(--transition)
}

.faq-q {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.faq-a {
  display: none;
  padding: 0 20px 20px;
  color: var(--muted)
}

.faq-item.open .faq-a {
  display: block
}

.faq-item.open .faq-icon {
  transform: rotate(45deg)
}

/* Footer */
footer {
  margin-top: 60px;
  background: #fff;
  padding: 50px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05)
}

.credits {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05)
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(3px)
}

.sheet {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideUp 0.3s;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f0f0f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s
}

.close-modal:hover {
  background: #e0e0e0;
  transform: rotate(90deg)
}

.field {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px
}

input,
select,
textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit
}

textarea {
  resize: vertical;
  min-height: 80px
}

/* Grid-2 para formularios */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Mobile */
@media (max-width:900px) {

  .hero,
  .about,
  .grid-3,
  .faq-container,
  .thumbs,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .hero {
    text-align: center
  }

  .hero .video-frame-hero {
    order: -1
  }

  /* Ajuste de Nav para que no se pegue el botón */
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 18px 0 5px
  }

  .navlinks {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding-top: 10px
  }

  .navlinks.open {
    display: flex
  }

  .menu-toggle {
    display: flex
  }

  .header .container {
    flex-direction: column;
    align-items: center
  }

  .menu-toggle {
    position: absolute;
    right: 24px;
    top: 28px
  }

  .btn {
    width: 100%
  }

  .plans-rail {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  /* Cotizador en móvil */
  .cotizador {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .cot-title {
    font-size: 1.35rem;
  }

  .cot-option {
    padding: 16px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

@keyframes cotSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes cotCheckPop {
  0% {
    transform: scale(0)
  }

  50% {
    transform: scale(1.15)
  }

  100% {
    transform: scale(1)
  }
}

@keyframes cotCircleDraw {
  to {
    stroke-dashoffset: 0
  }
}

@keyframes cotCheckDraw {
  to {
    stroke-dashoffset: 0
  }
}