:root {
  /* === PALETA PRINCIPAL (basada en PaletaWeb.pdf) === */
  --color-bg: #D9D9D9;          /* Color de fondo general */
  --color-surface: #FFFFFF;     /* Superficie de tarjetas / secciones */
  --color-primary: #00476A;     /* Azul logo (color principal) */
  --color-primary-soft: #D6F6FF;/* Azul botón suave */
  --color-accent-green: #A7DA4E;/* Verde botón / acento positivo */
  --color-accent-yellow: #FFD966;/* Amarillo botón / resaltado */
  --color-danger: #FF5D5D;      /* Rojo botón / alerta */
  --color-alt-light1: #EEF6FF;  /* Treeview fondo claro */
  --color-alt-light2: #A1E1FF;  /* Treeview fondo alternado */
  --color-selection: #007710;   /* Selección (verde intenso) */

  --color-text: #222222;
  --color-text-soft: #555555;
  --color-border: #DDDDDD;

  --color-header-bg: #00476A;   /* Azul logo en header */
  --color-hero-bg: #EEF6FF;     /* Hero con leve tono azulado */
  --color-section-alt-bg: #F5F7FB;

  /* Tipografía */
  --font-family-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;

  /* Dimensiones / estilos */
  --container-width: 1100px;
  --radius-card: 14px;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* RESET SIMPLE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* CONTENEDOR GENERAL */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* HEADER / NAV */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-header-bg);
  background-image: url("../img/header-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 0.6rem 0;
  backdrop-filter: blur(6px);
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 71, 106, 0.9),
    rgba(0, 71, 106, 0.75)
  );
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
}

/* Menú */
.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-list a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-list a:hover {
  text-decoration: underline;
}

/* Menú móvil */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
}

/* SECCIONES GENERALES */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--color-section-alt-bg);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 650px;
  margin-bottom: 2rem;
  color: var(--color-text-soft);
}

/* HERO */
.hero {
  background: radial-gradient(circle at top left, var(--color-alt-light1), #ffffff);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 300px;
}

.hero-visual {
  flex: 1 1 280px;
}

.hero-placeholder {
  border-radius: var(--radius-card);
  border: 1px dashed var(--color-border);
  padding: 3rem 1rem;
  text-align: center;
  color: var(--color-text-soft);
  background-color: #ffffffa0;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  margin-bottom: 1.6rem;
  color: var(--color-text-soft);
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background-color: var(--color-accent-green);
  color: #1e3b00;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
}

/* CARDS GENÉRICAS */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

/* Card con fondo suave (beneficios) */
.card-soft {
  background: linear-gradient(
    135deg,
    var(--color-alt-light1),
    var(--color-surface)
  );
}

/* BENEFICIOS */
.benefits-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* FUNCIONALIDADES EN FILAS */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-row {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background-color: #fff;
}

/* Video DEMO */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

.video-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.yt-lite{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.yt-lite::before{
  content:"";
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  filter: none;
}

.yt-play{
  position:absolute;
  inset:0;
  margin:auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}


.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}

.video-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 240px;
  border-radius:16px;
  text-decoration:none;
  font-weight:600;
  background:#111;
  color:#fff;
}

.video-link:hover{
  opacity:0.92;
}


/* PLANES */
.pricing-cards{
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;           /* Mobile: 1 columna */
}

/* Tablet: 2 columnas */
@media (min-width: 768px){
  .pricing-cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop: 4 columnas (una sola línea si hay espacio) */
@media (min-width: 1200px){
  .pricing-cards{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tarjetas: misma “altura visual” */
.pricing-card{
  min-height: 360px;                    /* ajusta 340–420 según gusto */
  display: flex;
  flex-direction: column;
}

.pricing-card .price{
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.pricing-card ul{
  list-style: none;
  padding-left: 0;
}

.pricing-card li::before{
  content: "• ";
  color: var(--color-primary);
}

.pricing-card.highlight{
  border: 2px solid var(--color-accent-yellow);
  background: linear-gradient(135deg, #fffbe6, #ffffff);
}

/* DESCARGAS */
.downloads-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.download-card{
  display: flex;
  flex-direction: column;
}

.download-card .btn{
  margin-top: auto;
}


@media (min-width: 768px) {
  .downloads-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* CONTACTO */
.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

/* FOOTER */
.footer {
  background-color: #111;
  color: #eee;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  text-align: center;
}

/* MENÚ RESPONSIVO */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 71, 106, 0.97);
    flex-direction: column;
    padding: 0.5rem 1rem;
    display: none;
  }

  .nav-list.nav-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-inner {
    flex-direction: column;
  }
}
/* HERO: Logo sobre título */
.hero-logo{
  display: block;
  margin: 0 auto 14px auto;   /* centrado + separación con el título */
  height: auto;
  max-height: 150px;          /* destacado pero no invasivo */
  width: auto;
}

@media (max-width: 768px){
  .hero-logo{
    max-height: 90px;
    margin-bottom: 12px;
  }
}

/* HERO: Imagen conceptual + overlay degradado */
.hero-image-wrap{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-image{
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
}

/* Degradado: izquierda más “tapada”, derecha más visible */
.hero-image-wrap::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    rgba(217, 217, 217, 0.00) 0%,
    rgba(217, 217, 217, 0.00) 35%,
    rgba(217, 217, 217, 0.00) 70%
  );
  
}

.download-mockup{
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  margin: 14px 0;
}



