:root {
  /* ===== Base de marca (solo cambias estos y el sitio muta de estilo) ===== */
  --brand-h: 207;           /* tono (azul actual aprox) */
  --brand-s: 70%;
  --brand-l: 55%;
  --accent-h: 35;           /* tono acento cálido */
  --accent-s: 90%;
  --accent-l: 62%;
  /* ===== Superficies dark ===== */
  --bg-canvas: #0f172a;     /* fondo general */
  --bg-page: #111827;       /* fondo de página */
  --bg-section: #1f2937;    /* bloques/secciones */
  --bg-elevated: #2b3c52;   /* modales/dropdowns */

  /* ===== Marca derivada ===== */
  --color-primary: hsl(var(--brand-h) var(--brand-s) var(--brand-l));
  --color-primary-hover: hsl(var(--brand-h) var(--brand-s) calc(var(--brand-l) - 8%));
  --color-primary-soft: hsl(var(--brand-h) 65% 78%);
  /* ===== Acento derivado ===== */
  --color-accent: hsl(var(--accent-h) var(--accent-s) var(--accent-l));
  --color-accent-hover: hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) - 8%));
  --color-accent-soft: hsl(var(--accent-h) 80% 84%);

  /* ===== Texto ===== */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-accent: #db3b0e;
  --text-brand-1: #603a88;
  --text-brand-2: #4a2c71;


  --text-on-primary: #ffffff;
  --text-on-accent: #111827;


  /* ===== UI ===== */
  --border-subtle: #334155;
  --border-strong: #475569;
  --focus-ring: hsl(var(--brand-h) 90% 70% / 0.45);

  /* ===== Estados ===== */
  --state-success: #22c55e;
  --state-warning: #f59e0b;
  --state-danger: #ef4444;
  --state-info: hsl(var(--brand-h) 80% 62%);
}



/* ********** *** ESTILOS GLOBALES *** ********** */
:root {
  color-scheme: light dark;
  background-color: var(--bg-canvas);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary) !important;
  background-color: var(--bg-canvas) !important;
}

/* .container {
  max-width: 1280px;
  margin: 0 auto;
} */

/* TEXTOS GENERALES*/
h1 {
  font-size: clamp(2rem, 8vw, 3.3rem);
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(1.45rem, 5.25vw, 2.35rem);
  margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
  text-align: center;
  color: var(--text-primary);
}

h3 {
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  margin-bottom: clamp(0.4rem, 1vw, 0.5rem);
  color: var(--text-secondary);
}

h4 {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  margin-bottom: clamp(0.2rem, 0.8vw, 0.3rem);
  color: var(--text-secondary);
}

p {
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}


/* COLOR DE TEXTOS CON CLASES */
.text_color_primary {  color: var(--text-primary) !important;}
.text_color_secondary { color: var(--text-secondary) !important;}
.text_color_muted { color: var(--text-muted) !important;}
.text_color_accent { color: var(--text-accent) !important;}
.text_color_brand_1 { color: var(--text-brand-1) !important;}
.text_color_brand_2 { color: var(--text-brand-2) !important;}


/* ALIGN DE TEXTOS CON CLASES*/
.text_align_center { text-align: center;}
.text_align_left { text-align: left;}
.text_align_right { text-align: right;}
.text_align_justify { text-align: justify;}


/* HERO SECTION */
/* HERO — base */
.hero {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}
.hero.primaria {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-on-primary, #fff);
}
/* Secundaria — bloque sobrio sobre superficie */
.hero.secundaria {
  background: var(--bg-section, #1f2937);
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle, #334155);
  border-bottom: 1px solid var(--border-subtle, #334155);
}
/* Terciaria — acento suave / gradiente con marca */
.hero.terciaria {
  background: linear-gradient(
    160deg,
    var(--bg-elevated, #6a7e97) 0%,
    hsl(var(--brand-h, 207) 35% 22%) 100%
  );
  color: var(--text-primary);
}

/* ********** *** IMAGETEXT *** ********** */
.imagetext {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
}

.imagetext.primaria {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-on-primary, #fff);
}

.imagetext.primaria .imagetext__title,
.imagetext.primaria .imagetext__subtitle,
.imagetext.primaria .imagetext__text,
.imagetext.primaria .imagetext__longtext {
  color: inherit;
}

.imagetext.primaria .imagetext__media--emphasis {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.imagetext.primaria .imagetext__subtitle {
  opacity: 0.92;
}

.imagetext.secundaria {
  background: var(--bg-section, #1f2937);
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle, #334155);
  border-bottom: 1px solid var(--border-subtle, #334155);
}

.imagetext.secundaria .imagetext__media--framed {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle, #334155);
}

.imagetext.secundaria .imagetext__content--panel {
  background: var(--bg-elevated, #2b3c52);
  border: 1px solid var(--border-subtle, #334155);
}

.imagetext.secundaria .imagetext__subtitle {
  color: var(--text-secondary);
}

.imagetext.terciaria {
  background: linear-gradient(
    160deg,
    var(--bg-elevated, #6a7e97) 0%,
    hsl(var(--brand-h, 207) 35% 22%) 100%
  );
  color: var(--text-primary);
}

.imagetext.terciaria .imagetext__media--accent {
  border: 2px solid hsl(var(--brand-h, 207) 55% 55% / 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

.imagetext.terciaria .imagetext__subtitle {
  color: var(--color-primary-soft);
}

.imagetext__title {
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
}

.imagetext__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
}

.imagetext__text,
.imagetext__longtext {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.6;
  color: inherit;
  opacity: 0.95;
}

/* FOOTER marketing — mismas variantes que hero (clase desde landingconfig.footer.claseEstilo) */
.mkt-footer.mkt-footer--primaria {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-on-primary, #fff);
}
.mkt-footer.mkt-footer--secundaria {
  background: var(--bg-section, #1f2937);
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle, #334155);
}
.mkt-footer.mkt-footer--terciaria {
  background: linear-gradient(
    160deg,
    var(--bg-elevated, #6a7e97) 0%,
    hsl(var(--brand-h, 207) 35% 22%) 100%
  );
  color: var(--text-primary);
}

/* Footer al pie de la ventana cuando el contenido es corto */
.page-editor-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-editor-layout > *:not(script):not(style),
.browser-simulator:has(.mkt-footer) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.page-editor-layout > * > div:has(> .mkt-footer),
.browser-simulator:has(> .mkt-footer) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mkt-footer {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem);
}

.page-editor-layout > .navbar {
  flex: 0 0 auto;
}

.page-editor-layout > main {
  flex: 1;
}

.mkt-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.mkt-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.mkt-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mkt-footer__contacto,
.mkt-footer__direccion,
.mkt-footer__column-text,
.mkt-footer__copyright {
  margin: 0;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  line-height: 1.55;
  color: inherit;
}

.mkt-footer--secundaria .mkt-footer__contacto,
.mkt-footer--secundaria .mkt-footer__direccion,
.mkt-footer--secundaria .mkt-footer__column-text,
.mkt-footer--secundaria .mkt-footer__copyright,
.mkt-footer--terciaria .mkt-footer__contacto,
.mkt-footer--terciaria .mkt-footer__direccion,
.mkt-footer--terciaria .mkt-footer__column-text,
.mkt-footer--terciaria .mkt-footer__copyright {
  color: var(--text-secondary);
}

.mkt-footer--primaria .mkt-footer__contacto,
.mkt-footer--primaria .mkt-footer__direccion,
.mkt-footer--primaria .mkt-footer__column-text,
.mkt-footer--primaria .mkt-footer__copyright {
  color: rgba(255, 255, 255, 0.9);
}

.mkt-footer__column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mkt-footer__column-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  text-align: left;
  color: inherit;
}

.mkt-footer--secundaria .mkt-footer__column-title,
.mkt-footer--terciaria .mkt-footer__column-title {
  color: var(--text-primary);
}

.mkt-footer--primaria .mkt-footer__column-title {
  color: var(--text-on-primary);
}

.mkt-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mkt-footer__link {
  color: inherit;
  text-decoration: none;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.mkt-footer--secundaria .mkt-footer__link:hover,
.mkt-footer--terciaria .mkt-footer__link:hover {
  color: var(--color-primary-soft);
  opacity: 1;
}

.mkt-footer--primaria .mkt-footer__link:hover {
  color: #fff;
  opacity: 1;
}

.mkt-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mkt-footer--secundaria .mkt-footer__bottom,
.mkt-footer--terciaria .mkt-footer__bottom {
  border-top-color: var(--border-subtle);
}

.mkt-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mkt-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.mkt-footer--secundaria .mkt-footer__social-link,
.mkt-footer--terciaria .mkt-footer__social-link {
  background: var(--bg-elevated);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.mkt-footer__social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.mkt-footer__social-link:hover {
  transform: translateY(-2px);
}

.mkt-footer--secundaria .mkt-footer__social-link:hover,
.mkt-footer--terciaria .mkt-footer__social-link:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: hsl(var(--brand-h) 35% 22%);
}

.mkt-footer--primaria .mkt-footer__social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

@media (max-width: 640px) {
  .mkt-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


  /* ********** *** CARDS *** ********** */
.cards {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
}

.cards.primaria {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-on-primary, #fff);
}

.cards.primaria .cards__item {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.cards.primaria .cards__item-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.cards.secundaria {
  background: var(--bg-section);
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cards.terciaria {
  background: linear-gradient(
    160deg,
    var(--bg-elevated) 0%,
    hsl(var(--brand-h) 35% 22%) 100%
  );
  color: var(--text-primary);
}

.cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.cards__item {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cards__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.cards__media {
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.cards__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cards__item:hover .cards__img {
  transform: scale(1.04);
}

.cards__body {
  padding: 1rem 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}



/* NAVBAR — colores y tema (estructura en landing/partials/navbar.blade.php) */
.navbar {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.navbar-toggle {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.navbar-toggle:hover {
  background: hsl(var(--brand-h) 35% 22%);
  border-color: var(--border-strong);
}

.navbar-toggle:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.navbar-toggle__dot {
  background: currentColor;
}

.navbar-link {
  color: var(--text-primary) !important;
}

.navbar-link:hover {
  color: var(--text-brand-1) !important;
}

.navbar-link:focus-visible {
  color: var(--text-primary);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.navbar-link:active {
  color: var(--color-accent-soft) !important;
}

.navbar-link--active {
  color: var(--color-primary-soft) !important;
}

.navbar-link--sub {
  color: var(--text-muted);
}

.navbar-link--sub:hover,
.navbar-link--sub:focus-visible {
  color: var(--text-primary);
  background: transparent;
  box-shadow: none;
}

.navbar-link--sub:active {
  color: var(--color-primary-soft);
  background: transparent;
  box-shadow: none;
}

.navbar-submenu {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.navbar-submenu > li:hover,
.navbar-submenu > li:focus-within {
  background: hsl(var(--brand-h) 35% 22%);
}

@media (max-width: 992px) {
  .navbar-menu {
    border-top: 1px solid var(--border-subtle);
  }

  .navbar-submenu {
    background: transparent;
    border: none;
    border-right: 2px solid var(--border-subtle);
    box-shadow: none;
  }

  .navbar-submenu > li:hover,
  .navbar-submenu > li:focus-within {
    background: transparent;
  }
}

/* Compatibilidad con markup alternativo */
.navbar-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

.navbar-brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
}






/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background: #7f8c8d;
}






/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  

}