/*
Theme Name:   Roy García Child
Theme URI:    https://roygarcia.lat
Description:  Child theme personalizado para roygarcia.lat — sin dependencia de Elementor.
Author:       Roy García
Author URI:   https://roygarcia.lat
Template:     twentytwentythree
Version:      1.0.0
Text Domain:  roygarcia-child
*/

/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root {
  --color-primary:    #E85D04;
  --color-primary-dk: #C94A00;
  --color-gold:       #FFB703;
  --color-red:        #FF3131;
  --color-turquoise:  #0CC0DF;
  --color-dark:       #1A1A2E;
  --color-dark-mid:   #16213E;
  --color-surface:    #FFFDF9;
  --color-surface-alt:#F7F2EC;
  --color-light:      #F8F9FA;
  --color-white:      #FFFFFF;
  --color-text:       #333333;
  --color-text-muted: #666666;
  --color-border:     #E0E0E0;

  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body:    'Open Sans', 'Segoe UI', sans-serif;

  --max-width:    1200px;
  --radius:       8px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.18);

  --transition:   .25s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dk); }

/* =========================================================
   TIPOGRAFÍA
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
  margin: 0 0 .75em;

/* Módulos personalizados de Avance Empresarial (fondos oscuros) */
.rtf-hero,
.rtf-contraste,
.rtf-escala,
.rtf-humanizar,
.rtf-trilogia,
.rtf-inscripcion {
  color: #f0f0f0;
}

.rtf-hero h1,
.rtf-hero h2,
.rtf-hero h3,
.rtf-hero h4,
.rtf-hero h5,
.rtf-hero h6,
.rtf-contraste h1,
.rtf-contraste h2,
.rtf-contraste h3,
.rtf-contraste h4,
.rtf-contraste h5,
.rtf-contraste h6,
.rtf-escala h1,
.rtf-escala h2,
.rtf-escala h3,
.rtf-escala h4,
.rtf-escala h5,
.rtf-escala h6,
.rtf-humanizar h1,
.rtf-humanizar h2,
.rtf-humanizar h3,
.rtf-humanizar h4,
.rtf-humanizar h5,
.rtf-humanizar h6,
.rtf-trilogia h1,
.rtf-trilogia h2,
.rtf-trilogia h3,
.rtf-trilogia h4,
.rtf-trilogia h5,
.rtf-trilogia h6,
.rtf-inscripcion h1,
.rtf-inscripcion h2,
.rtf-inscripcion h3,
.rtf-inscripcion h4,
.rtf-inscripcion h5,
.rtf-inscripcion h6 {
  color: inherit;
}
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p  { margin: 0 0 1.25em; }

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}
.section--sm { padding: 3rem 0; }
.section--dark {
  background: var(--color-white);
  color: var(--color-text);
  border-top: 1px solid rgba(26, 26, 46, .06);
  border-bottom: 1px solid rgba(26, 26, 46, .06);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--color-dark); }
.section--gray { background: var(--color-light); }
.section--fire {
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-white) 100%);
  color: var(--color-text);
  border-top: 1px solid rgba(232, 93, 4, .10);
  border-bottom: 1px solid rgba(232, 93, 4, .10);
}
.section--fire h1,
.section--fire h2,
.section--fire h3 { color: var(--color-dark); }

.text-center { text-align: center; }
.text-white  { color: var(--color-white) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-gold    { color: var(--color-gold) !important; }

/* ── Accent helpers: úsalos en <em> o <span> dentro de títulos/párrafos ── */
em.accent-yellow, span.accent-yellow, .accent-yellow { color: var(--color-gold)       !important; font-style: normal; }
em.accent-orange, span.accent-orange, .accent-orange { color: var(--color-primary)    !important; font-style: normal; }
em.accent-red,    span.accent-red,    .accent-red    { color: var(--color-red)        !important; font-style: normal; }
em.accent-blue,   span.accent-blue,   .accent-blue   { color: var(--color-turquoise)  !important; font-style: normal; }

/* Grid genérico de 2 y 3 columnas */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-block;
  padding: .85em 2em;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dk);
  border-color: var(--color-primary-dk);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--color-gold);
  color: var(--color-dark);
  border-color: var(--color-gold);
}
.btn-gold:hover {
  background: #e6a500;
  border-color: #e6a500;
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
}
.btn-lg { padding: 1em 2.5em; font-size: 1.05rem; }

/* =========================================================
   HEADER / NAVEGACIÓN
   ========================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100000;
  isolation: isolate;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  padding: .9rem clamp(1rem, 2.5vw, 2rem);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.site-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-logo img,
.site-logo .custom-logo {
  height: 49px;
  width: auto;
  max-width: 204px;
}
.site-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-dark);
  line-height: 1.15;
}
.site-logo-text span { color: var(--color-primary); display: block; font-size: .75rem; font-weight: 600; }

/* Nav principal */
#main-nav {
  justify-self: center;
  position: relative;
  z-index: 100001;
}
#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.15rem;
  align-items: center;
}
#main-nav ul li a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .72rem;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color var(--transition);
  padding: .25em 0;
  border-bottom: 2px solid transparent;
}
#main-nav ul li a:hover,
#main-nav ul li.current-menu-item a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
#main-nav .nav-cta:not(.menu-register) a {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: .5em 1.2em;
  border-radius: var(--radius);
  border-bottom: none !important;
}
#main-nav .nav-cta:not(.menu-register) a:hover {
  background: var(--color-primary-dk);
}

/* Dropdown desktop */
#main-nav ul li {
  position: relative;
}

#main-nav ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: .5rem .35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 100001;
}

/* Puente invisible para que no se pierda el hover entre padre y submenú */
#main-nav ul.sub-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

#main-nav ul.sub-menu li {
  width: 100%;
}

#main-nav ul.sub-menu li a {
  display: block;
  width: 100%;
  padding: .58rem .72rem;
  border-radius: 8px;
  border-bottom: none;
  text-transform: none;
  letter-spacing: .01em;
  font-size: .82rem;
}

#main-nav ul li:hover > ul.sub-menu,
#main-nav ul li:focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

#main-nav ul li:hover,
#main-nav ul li:focus-within {
  z-index: 100002;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}

.header-login,
.header-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 12rem;
  max-width: 100%;
  padding: .58rem .8rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.header-login {
  color: var(--color-dark);
  border: 1px solid rgba(26, 26, 46, .12);
  background: var(--color-white);
}

.header-login:hover {
  color: var(--color-primary);
  border-color: rgba(232, 93, 4, .28);
}

.header-alert {
  color: var(--color-primary-dk);
  background: rgba(255, 183, 3, .16);
  border: 1px solid rgba(255, 183, 3, .32);
}

.header-alert:hover {
  color: var(--color-primary-dk);
  background: rgba(255, 183, 3, .24);
}

#main-nav .menu-login a,
#main-nav .menu-register a,
#main-nav ul li a[href*='wp-login.php'],
#main-nav ul li a[href*='/mi-cuenta/'] {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .2em 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  border-bottom-color: transparent;
  box-shadow: none;
}

#main-nav .menu-login a,
#main-nav ul li a[href*='wp-login.php'] {
  color: #FFB703;
}

#main-nav .menu-register a,
#main-nav ul li a[href*='/mi-cuenta/'] {
  color: #E85D04;
}

#main-nav .menu-login a::before,
#main-nav .menu-register a::before,
#main-nav ul li a[href*='wp-login.php']::before,
#main-nav ul li a[href*='/mi-cuenta/']::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
}

#main-nav .menu-login a::before,
#main-nav ul li a[href*='wp-login.php']::before {
  content: '↪';
}

#main-nav .menu-register a::before,
#main-nav ul li a[href*='/mi-cuenta/']::before {
  content: '+';
}

#main-nav .menu-login a:hover,
#main-nav .menu-login.current-menu-item a,
#main-nav ul li a[href*='wp-login.php']:hover,
#main-nav ul li.current-menu-item a[href*='wp-login.php'] {
  color: #CC8E00;
}

#main-nav .menu-register a:hover,
#main-nav .menu-register.current-menu-item a,
#main-nav ul li a[href*='/mi-cuenta/']:hover,
#main-nav ul li.current-menu-item a[href*='/mi-cuenta/'] {
  color: #C94A00;
}

.header-register {
  min-height: 42px;
  padding-inline: 1.3rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
  transition: all var(--transition);
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto auto;
    gap: 1rem;
  }
  .header-tools { display: none; }
  .nav-toggle { display: block; }
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    justify-self: stretch;
  }
  #main-nav.is-open { display: block; }
  #main-nav ul { flex-direction: column; gap: .5rem; }
  #main-nav ul li a { font-size: .95rem; padding: .6em 0; display: block; }

  /* Dropdown móvil: submenús en flujo normal */
  #main-nav ul.sub-menu {
    position: static;
    min-width: 0;
    margin: .2rem 0 .45rem;
    padding: .25rem 0 0 .9rem;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: transparent;
  }

  #main-nav ul.sub-menu li a {
    padding: .46rem 0;
    font-size: .88rem;
    text-transform: none;
    letter-spacing: .01em;
    border-bottom: none;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: var(--color-white);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .site-logo-text { color: var(--color-dark); }
.footer-brand .site-logo-text span { color: var(--color-primary); }
.footer-brand p { margin-top: .75rem; font-size: .9rem; line-height: 1.7; color: var(--color-text-muted); }
.footer-logo-link {
  display: inline-block;
}
.footer-logo {
  display: block;
  width: min(182px, 55vw);
  max-width: 100%;
  height: auto;
}

.footer-col h4 {
  color: var(--color-dark);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: .6rem;
  display: inline-block;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
}
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a {
  color: var(--color-text-muted);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-primary); }

.footer-social { display: flex; gap: .8rem; margin-top: .75rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-light);
  color: var(--color-dark);
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
/* Colores oficiales de cada red */
.footer-social a[aria-label="TikTok"]:hover  { background: #000;    color: #fff; }
.footer-social a[aria-label="YouTube"]:hover { background: #FF0000; color: #fff; }
.footer-social a[aria-label="LinkedIn"]:hover { background: #0A66C2; color: #fff; }
.footer-social a[aria-label="Instagram"]:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
/* Tono por defecto de cada icono (sin hover) */
.footer-social a[aria-label="YouTube"]  { color: #FF0000; }
.footer-social a[aria-label="LinkedIn"] { color: #0A66C2; }
.footer-social a[aria-label="Instagram"] { color: #d6249f; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
  color: var(--color-text-muted);
}
.footer-bottom a { color: var(--color-text-muted); }
.footer-bottom a:hover { color: var(--color-primary); }

/* Fallback: evita galeria invisible cuando Woo no inicializa el JS a tiempo. */
.single-product div.product .woocommerce-product-gallery {
  opacity: 1 !important;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-white) 0%, #FFF6ED 58%, #FCECDD 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 30%, rgba(232,93,4,.12) 0%, transparent 58%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(232,93,4,.08);
  color: var(--color-primary-dk);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .4em 1em;
  border-radius: 999px;
  border: 1px solid rgba(232,93,4,.18);
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--color-dark); margin-bottom: 1.25rem; }
.hero h1 em { color: var(--color-primary); font-style: normal; }
.hero p { color: var(--color-text-muted); font-size: 1.15rem; margin-bottom: 2rem; max-width: 580px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero estándar reutilizable: imagen + overlay + contenido centrado */
.hero-standard {
  min-height: clamp(430px, 74vh, 740px);
  justify-content: center;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(10, 14, 23, .60) 0%, rgba(10, 14, 23, .73) 100%),
    var(--hero-bg-image, url('/wp-content/uploads/2026/01/IMG_5448-scaled.jpeg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-standard::before {
  background: radial-gradient(circle at 50% 25%, rgba(232, 93, 4, .22) 0%, rgba(232, 93, 4, 0) 58%);
}

.hero-standard .hero-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 0;
}

.hero-standard .hero-eyebrow {
  background: rgba(255, 255, 255, .12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, .34);
}

.hero-standard h1 {
  color: #FFFFFF;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-standard h1 em {
  color: var(--color-gold);
}

.hero-standard p {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  max-width: 760px;
  margin: 0 auto 2rem;
}

.hero-actions--center {
  justify-content: center;
}

.hero-standard .hero-actions .btn {
  min-width: 210px;
}

/* =========================================================
   TARJETAS (cards)
   ========================================================= */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-img img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card-body p { font-size: .92rem; color: var(--color-text-muted); margin-bottom: 1rem; }

/* Card de testimonio */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
}
.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text);
}
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: .9rem; color: var(--color-dark); }
.testimonial-author span { font-size: .8rem; color: var(--color-text-muted); }

/* Card de programa/servicio */
.program-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-primary);
  transition: box-shadow var(--transition), transform var(--transition);
}
.program-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.program-card .icon {
  width: 56px; height: 56px;
  background: rgba(232,93,4,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.program-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.program-card p { font-size: .9rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }

/* =========================================================
   SECCIÓN DE ESTADÍSTICAS / NÚMEROS
   ========================================================= */
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.stat-label {
  font-size: .9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .4rem;
}

/* =========================================================
   PÁGINA INTERIOR GENÉRICA
   ========================================================= */
.page-hero {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-surface-alt) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(26, 26, 46, .08);
}
.page-hero h1 { color: var(--color-dark); margin-bottom: .75rem; }
.page-hero .breadcrumb {
  display: flex; justify-content: center; gap: .5rem;
  font-size: .85rem; color: var(--color-text-muted);
}
.page-hero .breadcrumb a { color: var(--color-primary); }
.page-hero .breadcrumb span { color: #999999; }

.page-content { padding: 4rem 0; }
.page-content .container { max-width: 860px; }

/* =========================================================
   FORMULARIO DE CONTACTO
   ========================================================= */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  font-size: .9rem;
  color: var(--color-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232,93,4,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* =========================================================
   SECCIÓN CTA BANNER
   ========================================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dk) 100%);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--color-white); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-banner .btn-outline {
  color: var(--color-white);
  border-color: var(--color-white);
}
.cta-banner .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary-dk);
}

/* =========================================================
   ACCORDION / FAQ
   ========================================================= */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  background: var(--color-white);
  border: none;
  width: 100%;
  text-align: left;
  color: var(--color-dark);
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--color-light); }
.accordion-header .icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--color-primary);
}
.accordion-item.is-open .accordion-header .icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: .95rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}
.accordion-item.is-open .accordion-body { display: block; }

/* =========================================================
   UTILIDADES RESPONSIVAS
   ========================================================= */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: 70vh; }
  .hero-standard {
    min-height: 60vh;
    background-position: center 25%;
  }
  .hero-standard .hero-content {
    padding: 1rem 0;
  }
  .hero-standard p {
    margin-bottom: 1.5rem;
  }
  .hero-standard .hero-actions .btn {
    min-width: 0;
    width: 100%;
  }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}

/* =========================================================
   SECCIÓN REDUCTION – fondo negro, textos blancos
   ========================================================= */
.section--reduction {
  background: #0D0D0D;
  color: var(--color-white);
}
.section--reduction h1,
.section--reduction h2,
.section--reduction h3,
.section--reduction h4,
.section--reduction h5,
.section--reduction h6 {
  color: var(--color-white);
}
.section--reduction p,
.section--reduction ul,
.section--reduction ol {
  color: rgba(255, 255, 255, .82);
}
.section--reduction .section-eyebrow {
  color: rgba(255, 255, 255, .55);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  display: block;
  margin-bottom: .75rem;
}
.section--reduction .section-title { margin-bottom: .6rem; }
.section--reduction .section-subtitle {
  color: rgba(255, 255, 255, .65);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 3rem;
}

/* Contenido del editor (the_content) dentro de sección Reduction */
.section--reduction .entry-content,
.section--reduction .entry-content p,
.section--reduction .entry-content li,
.section--reduction .entry-content span:not([class*="has-"]),
.section--reduction .wp-block-paragraph,
.section--reduction .wp-block-list,
.section--reduction .wp-block-list li {
  color: rgba(255, 255, 255, .82);
}
.section--reduction .entry-content h1,
.section--reduction .entry-content h2,
.section--reduction .entry-content h3,
.section--reduction .entry-content h4,
.section--reduction .entry-content h5,
.section--reduction .entry-content h6,
.section--reduction .wp-block-heading {
  color: var(--color-white);
}
.section--reduction .entry-content a {
  color: var(--color-primary);
}
.section--reduction .entry-content a:hover {
  color: var(--color-gold);
}

/* ─────────────────────────────────────────────
   REDUCTION CARD – SISTEMA DE CAJAS ESTÁNDAR
   ─────────────────────────────────────────────
   Uso: <div class="rc-card rc--orange"> ... </div>
   Variantes de color: rc--orange | rc--yellow | rc--blue | rc--red
*/

/* Grilla responsiva automática: 1→2→3→4 columnas */
.rc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* Caja base */
.rc-card {
  background: #161616;
  border-radius: 15%;            /* esquinas muy redondeadas */
  border-radius: clamp(12px, 3.5vw, 20px); /* alternativa más controlada en píxeles */
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  /* Borde superior e inferior en color de variante via custom property */
  border-top:    3px solid var(--rc-color, var(--color-primary));
  border-bottom: 3px solid var(--rc-color, var(--color-primary));
  box-shadow: 0 4px 24px rgba(0,0,0,.40);
}
.rc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}

/* Variantes de color */
.rc--orange { --rc-color: var(--color-primary);    --rc-color-dk: var(--color-primary-dk); --rc-color-lt: rgba(232,93,4,.18);   }
.rc--yellow { --rc-color: var(--color-gold);        --rc-color-dk: #CC8E00;                --rc-color-lt: rgba(255,183,3,.18);  }
.rc--blue   { --rc-color: var(--color-turquoise);   --rc-color-dk: #0899B2;                --rc-color-lt: rgba(12,192,223,.18); }
.rc--red    { --rc-color: var(--color-red);         --rc-color-dk: #CC0000;                --rc-color-lt: rgba(255,49,49,.18);  }

/* Ícono */
.rc-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rc-color-lt, rgba(232,93,4,.18));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

/* Título */
.rc-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 .75rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}

/* Descripción */
.rc-card p {
  font-size: .92rem;
  color: rgba(255,255,255,.72);
  text-align: left;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  flex: 1;           /* empuja el botón hacia abajo */
}

/* Lista opcional dentro de la card */
.rc-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  text-align: left;
}
.rc-card ul li {
  padding: .22rem 0 .22rem 1.2em;
  position: relative;
}
.rc-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rc-color, var(--color-primary));
}

/* ─── Botón de CTA – degradado claro → oscuro, 80% ancho, centrado ─── */
.rc-btn {
  display: block;
  width: 80%;
  margin: 0 auto;
  padding: .78em 1.2em;
  border-radius: 15%;
  border-radius: clamp(8px, 2.5vw, 14px);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .88rem;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  /* degradado izquierda (claro) → derecha (oscuro) */
  background: linear-gradient(90deg, var(--rc-color, var(--color-primary)) 0%, var(--rc-color-dk, var(--color-primary-dk)) 100%);
  color: var(--color-white);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 3px 14px rgba(0,0,0,.30);
}
.rc-btn:hover {
  opacity: .88;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.40);
  color: var(--color-white);
}

/* Botón amarillo: texto oscuro para contraste */
.rc--yellow .rc-btn { color: var(--color-dark); }

/* ─────────────────────────────────────────────
   REDUCTION IMAGE-TEXT – bloque imagen + texto
   ─────────────────────────────────────────────
   Uso: <div class="rit-block rit--img-left"> o rit--img-right
*/
.rit-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}
.rit-block:last-child { margin-bottom: 0; }

.rit--img-left  { }
.rit--img-right { direction: rtl; }
.rit--img-right > * { direction: ltr; }

.rit-image {
  border-radius: clamp(10px, 3vw, 18px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.rit-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.rit-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--color-white);
  text-align: left;
  margin: 0 0 .9rem;
}
.rit-body p {
  font-size: .96rem;
  color: rgba(255,255,255,.75);
  text-align: left;
  line-height: 1.75;
  margin: 0 0 1.5rem;
}
.rit-body .rc-btn {
  margin: 0;            /* alineado a la izquierda, no centrado */
  width: auto;
  display: inline-block;
  padding: .78em 2em;

/* Lista de items en rit-body con bullet de color variable */
.rit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.rit-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .35rem 0;
  font-size: .97rem;
  color: rgba(255,255,255,.82);
  font-family: var(--font-body);
}
.rit-bullet {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bc, var(--color-primary));
  display: inline-block;
}
}

/* Responsive: apila imagen encima del texto */
@media (max-width: 860px) {
  .rit-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr !important;
  }
  .rit--img-right > * { direction: ltr; }
  /* La imagen siempre aparece primero en mobile */
  .rit-image  { order: 0; }
  .rit-body   { order: 1; }
}

/* Ajuste de rc-grid en pantallas pequeñas */
@media (max-width: 600px) {
  .rc-grid {
    grid-template-columns: 1fr;
  }
  .rc-btn {
    width: 90%;

  /* ─── Badge de evento dentro de .hero-standard ─── */
  .hero-event-badge {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto 2rem;
  }
  .hero-event-badge span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.28);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .45em 1.1em;
    border-radius: 999px;
  }
  .hero-event-badge--fire span {
    background: rgba(232,93,4,.18);
    border-color: rgba(232,93,4,.42);
    color: var(--color-gold);
  }
  @media (max-width: 600px) {
    .hero-event-badge { gap: .6rem; }
    .hero-event-badge span { font-size: .75rem; }
  }
  }
}

/* Override final para módulos oscuros de Avance Empresarial */
body .elementor .rtf-hero,
body .elementor .rtf-contraste,
body .elementor .rtf-escala,
body .elementor .rtf-humanizar,
body .elementor .rtf-trilogia,
body .elementor .rtf-inscripcion {
  color: #f0f0f0 !important;
}

body .elementor .rtf-hero h1,
body .elementor .rtf-hero h2,
body .elementor .rtf-hero h3,
body .elementor .rtf-hero h4,
body .elementor .rtf-hero h5,
body .elementor .rtf-hero h6,
body .elementor .rtf-contraste h1,
body .elementor .rtf-contraste h2,
body .elementor .rtf-contraste h3,
body .elementor .rtf-contraste h4,
body .elementor .rtf-contraste h5,
body .elementor .rtf-contraste h6,
body .elementor .rtf-escala h1,
body .elementor .rtf-escala h2,
body .elementor .rtf-escala h3,
body .elementor .rtf-escala h4,
body .elementor .rtf-escala h5,
body .elementor .rtf-escala h6,
body .elementor .rtf-humanizar h1,
body .elementor .rtf-humanizar h2,
body .elementor .rtf-humanizar h3,
body .elementor .rtf-humanizar h4,
body .elementor .rtf-humanizar h5,
body .elementor .rtf-humanizar h6,
body .elementor .rtf-trilogia h1,
body .elementor .rtf-trilogia h2,
body .elementor .rtf-trilogia h3,
body .elementor .rtf-trilogia h4,
body .elementor .rtf-trilogia h5,
body .elementor .rtf-trilogia h6,
body .elementor .rtf-inscripcion h1,
body .elementor .rtf-inscripcion h2,
body .elementor .rtf-inscripcion h3,
body .elementor .rtf-inscripcion h4,
body .elementor .rtf-inscripcion h5,
body .elementor .rtf-inscripcion h6,
body .elementor .rtf-hero p,
body .elementor .rtf-contraste p,

/* Home: widgets HTML con fondo oscuro deben mantener headings claros. */
.home .elementor-widget-html section[style*="background-color: #0a0a0a"][style*="color: #ffffff"] h1,
.home .elementor-widget-html section[style*="background-color: #0a0a0a"][style*="color: #ffffff"] h2,
.home .elementor-widget-html section[style*="background-color: #0a0a0a"][style*="color: #ffffff"] h3,
.home .elementor-widget-html section[style*="background-color: #0a0a0a"][style*="color: #ffffff"] h4,
.home .elementor-widget-html section[style*="background-color: #0a0a0a"][style*="color: #ffffff"] h5,
.home .elementor-widget-html section[style*="background-color: #0a0a0a"][style*="color: #ffffff"] h6 {
  color: #FFFFFF !important;
}

/* Home: seccion Sobre Roy usa fondo oscuro y requiere headings claros. */
.home .about-roy-section h1,
.home .about-roy-section h2,
.home .about-roy-section h3,
.home .about-roy-section h4,
.home .about-roy-section h5,
.home .about-roy-section h6 {
  color: #FFFFFF !important;
}
body .elementor .rtf-escala p,
body .elementor .rtf-humanizar p,
body .elementor .rtf-trilogia p,
body .elementor .rtf-inscripcion p,
body .elementor .rtf-hero li,
body .elementor .rtf-contraste li,
body .elementor .rtf-escala li,
body .elementor .rtf-humanizar li,
body .elementor .rtf-trilogia li,
body .elementor .rtf-inscripcion li {
  color: inherit !important;
}

/* ── /corporativo (page-id-3619) fixes ── */

/* 1. The embedded CSS widget has unscoped "section { padding: 80px 0 }" which applies
      to Elementor's own <section class="elementor-section"> wrappers → black gap.
      Reset padding only on Elementor structural wrappers. */
body.page-id-3619 .elementor-section,
body.page-id-3619 .elementor-top-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 2. The embedded CSS sets "header { height: 80px }" globally.
      Restore our site header's natural height. */
body.page-id-3619 #site-header {
  height: auto !important;
}

/* 3. HERO section – dark gradient background → all text must be white.
      Global h1-h6 { color: #1A1A2E } and body { color: #333333 } override
      the page's own .hero { color: var(--white) } inheritance. */
body.page-id-3619 .hero h1,
body.page-id-3619 .hero h2,
body.page-id-3619 .hero h3,
body.page-id-3619 .hero h4,
body.page-id-3619 .hero h5,
body.page-id-3619 .hero h6,
body.page-id-3619 .hero p {
  color: #FFFFFF !important;
}

/* 4. WHY-ROY section – background-color: #0a0a0a → all text/headings must be white.
      The .highlight span keeps its gradient via -webkit-text-fill-color: transparent. */
body.page-id-3619 .why-roy-section h1,
body.page-id-3619 .why-roy-section h2,
body.page-id-3619 .why-roy-section h3,
body.page-id-3619 .why-roy-section h4,
body.page-id-3619 .why-roy-section h5,
body.page-id-3619 .why-roy-section h6,
body.page-id-3619 .why-roy-section p,
body.page-id-3619 .why-roy-section li {
  color: #FFFFFF !important;
}

/* 5. SERVICIOS section – white background → headings should be dark navy, not our
      theme's #1A1A2E override. Restore the page's intended --secondary-color. */
body.page-id-3619 .elementor-widget-html .section-title h2 {
  color: #2C3E50 !important;
}
body.page-id-3619 .elementor-widget-html .section-title p {
  color: #4a5568 !important;
}

/* 6. TESTIMONIOS – Elementor heading (eb6a6bb) is set to #464444 (dark gray on white).
      Override to a proper dark colour so it's clearly readable. */
.elementor-3619 .elementor-element.elementor-element-eb6a6bb .elementor-heading-title {
  color: #2C3E50 !important;
}
/* Testimonios text (90b2871) is set to #84848B – darken for readability. */
.elementor-3619 .elementor-element.elementor-element-90b2871 {
  color: #333333 !important;
}
.elementor-3619 .elementor-element.elementor-element-90b2871 p {
  color: #333333 !important;
}
