/*
Theme Name: Templo de la Rosa y el Loto
Theme URI: https://templodelarosayelloto.com/
Description: Tema hijo de Hello Elementor. La portada es la onepage del Templo y la sección Cursos muestra los cursos publicados en Tutor LMS.
Author: La Rosa y el Loto
Template: hello-elementor
Version: 1.0.2
Requires PHP: 7.4
Text Domain: templo
*/

/* ===== Onepage (misma hoja que el index.html original) ===== */
@font-face { font-family: Lato; src: url("assets/fonts/Lato-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Lato; src: url("assets/fonts/Lato-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("assets/fonts/CinzelDecorative-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("assets/fonts/CinzelDecorative-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  /* Same palette as the app (lib/core/theme/app_colors.dart). */
  --paper: #F8F3EA;
  --surface: #FFFDF8;
  --ink: #4B4237;
  --ink-deep: #3A322A;
  --muted: #6E6457;
  --gold: #B08D57;
  --gold-deep: #8A6A3B;
  --gold-light: #DCC08C;
  --gold-pale: #F0E6D3;
  --line: #E4D9C4;
  --on-dark: #D8CFC2;
  --radius: 1.25rem;
  --space: clamp(1.25rem, 4vw, 4rem);
  --title: "Cinzel Decorative", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Lato, system-ui, sans-serif; font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-deep); text-underline-offset: .25em; }
:where(.templo-front, .site-header, footer) a { color: inherit; }
a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 6px; }
img { max-width: 100%; height: auto; }
:where(.templo-front, .site-header, footer) :where(img, svg) { display: block; max-width: 100%; }
:where(.templo-front, .site-header, footer) :where(h1, h2, h3, p) { margin: 0; }
h1, h2, h3 { font-family: var(--title); font-weight: 700; line-height: 1.15; color: var(--gold-deep); }
:where(.templo-front) h1 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); }
:where(.templo-front) h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
:where(.templo-front) h3 { font-size: 1.3rem; }
::selection { color: var(--ink); background: var(--gold-light); }
.wrap { width: min(100% - var(--space) * 2, 1248px); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.5rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: .5rem; height: .5rem; flex: 0 0 auto; background: var(--gold); transform: rotate(45deg); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 3.25rem; padding: .85rem 1.5rem; background: var(--gold-deep); color: #fff; border: 1px solid var(--gold-deep); border-radius: .75rem; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .2s, transform .2s; }
.button:hover { background: #765a31; transform: translateY(-2px); }
.button .arrow { font-size: 1.25rem; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; font-size: .875rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.skip { position: fixed; top: -6rem; left: 1rem; z-index: 10; padding: 1rem; background: var(--ink-deep); color: #fff; }
.skip:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--ink-deep); color: #fff; border-bottom: 1px solid #5a4f43; }
.site-header a:focus-visible, .site-header summary:focus-visible { outline-color: var(--gold-light); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 5.5rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; flex-shrink: 0; text-decoration: none; }
.brand svg { width: 2.6rem; height: 2.6rem; color: var(--gold-light); }
.brand-name { font-family: var(--title); font-weight: 700; font-size: 1.05rem; line-height: 1.15; color: #fff; }
.brand-name small { display: block; font-family: Lato, sans-serif; font-size: .625rem; font-weight: 700; letter-spacing: .2em; color: var(--gold-light); }
.desktop-nav { display: flex; align-items: center; gap: 1.75rem; }
.desktop-nav > a { padding-block: .75rem; font-size: .8125rem; text-decoration: none; }
.desktop-nav > a:hover { color: var(--gold-light); }
.desktop-nav .nav-cta { padding: .65rem 1rem; border: 1px solid var(--gold-light); border-radius: .5rem; font-weight: 700; }
.mobile-nav { display: none; }

.hero { padding-top: clamp(3rem, 6vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 span { position: relative; display: inline; background: linear-gradient(transparent 68%, var(--gold-pale) 68%, var(--gold-pale) 92%, transparent 92%); }
.hero-copy > p { max-width: 30rem; margin-top: 1.75rem; font-size: 1.0625rem; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-note { display: flex; align-items: center; gap: .5rem; margin-top: 1.75rem; font-size: .75rem; color: var(--muted); }
.hero-note svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
.app-stage { position: relative; min-height: 560px; border-radius: 1.5rem; background-color: var(--gold-pale); background-image: radial-gradient(#d8c6a3 .8px, transparent .8px); background-size: 20px 20px; isolation: isolate; overflow: hidden; }
.stage-caption { position: absolute; top: 1.75rem; left: 1.75rem; font-size: .6875rem; font-weight: 700; line-height: 1.5; letter-spacing: .15em; }
.stage-caption span { display: block; font-weight: 400; letter-spacing: .02em; color: var(--muted); }
.orbit { position: absolute; width: 24rem; height: 24rem; border: 1px solid #d6c19a; border-radius: 50%; top: 5.5rem; left: calc(50% - 12rem); z-index: -1; }
.orbit::after { content: ""; position: absolute; inset: 2.5rem; border: 1px solid #d6c19a; border-radius: 50%; }
.stage-card { position: absolute; height: auto; aspect-ratio: 1051 / 1500; border-radius: .9rem; box-shadow: 0 16px 36px #3a322a33; }
.stage-main { width: 250px; top: 6.5rem; left: calc(50% - 125px); z-index: 2; }
.stage-left { width: 170px; top: 11.5rem; left: calc(50% - 250px); transform: rotate(-12deg); }
.stage-right { width: 170px; top: 10.5rem; left: calc(50% + 80px); transform: rotate(11deg); }
.float-note { position: absolute; bottom: 1.75rem; right: 1.5rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; box-shadow: 0 8px 24px #3a322a0d; font-size: .6875rem; transform: rotate(3deg); }
.float-note strong { display: block; font-size: .8125rem; }
.float-note small { display: block; color: var(--muted); font-size: .625rem; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 2rem; margin-top: 3rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.platforms { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--ink); font-weight: 700; }

.intro-strip { background: var(--ink-deep); color: #fff; }
.intro-inner { display: grid; grid-template-columns: 1fr 1.35fr; align-items: center; gap: 4rem; padding-block: 3.5rem; }
.intro-inner h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.intro-inner h2 span { color: var(--gold-light); }
.intro-inner p { font-size: .9375rem; color: var(--on-dark); max-width: 36rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
.section-heading > p { max-width: 23rem; color: var(--muted); font-size: .9375rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { display: flex; flex-direction: column; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature-featured { background: var(--gold-pale); border-color: #e2d2b3; }
.feature-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 2.5rem; border: 1px solid var(--line); border-radius: .75rem; color: var(--gold-deep); background: var(--surface); }
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.feature h3 { margin-bottom: 1rem; }
.feature > p { color: var(--muted); font-size: .875rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; margin-top: auto; padding: 2rem 0 0; list-style: none; }
.tags li { padding: .3rem .65rem; border: 1px solid #ddcfb5; border-radius: .25rem; font-size: .6875rem; }


.courses { background: var(--gold-pale); }
.courses-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; padding: clamp(2rem, 4vw, 3.5rem); border: 1px solid #e2d2b3; border-radius: var(--radius); background: var(--surface); }
.courses-box h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.courses-box p { margin-top: 1rem; color: var(--muted); font-size: .9375rem; }
.soon { display: inline-block; margin-bottom: 1rem; padding: .3rem .7rem; border: 1px solid var(--gold); border-radius: 2rem; color: var(--gold-deep); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.oracle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.oracle-copy > p { margin-top: 1.5rem; color: var(--muted); }
.oracle-points { padding: 0; margin: 2rem 0 0; list-style: none; }
.oracle-points li { display: flex; gap: .75rem; padding-block: .75rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.oracle-points span { color: var(--gold-deep); font-weight: 700; }
.oracle-phone { width: min(100%, 250px); height: auto; aspect-ratio: 540 / 1200; margin-inline: auto; border: 9px solid var(--ink-deep); border-radius: 34px; object-fit: cover; object-position: top; box-shadow: 14px 20px 36px #3a322a26; transform: rotate(-3deg); }
.oracle .stores { margin-top: 2rem; }
.oracle .store { color: var(--ink); border-color: var(--line); background: var(--surface); }
.oracle .store small { color: var(--gold-deep); }
.social { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.social a { display: inline-flex; align-items: center; gap: .65rem; min-height: 3.25rem; padding: .6rem 1.1rem; border: 1px solid #6a5e50; border-radius: .75rem; color: #fff; font-weight: 700; font-size: .875rem; text-decoration: none; transition: border-color .2s, transform .2s; }
.social a:hover { border-color: var(--gold-light); transform: translateY(-2px); }
.social svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; color: var(--gold-light); }
.social-light { margin-top: 0; }
.social-light a { color: var(--ink); border-color: var(--line); background: var(--paper); }
.social-light a:hover { border-color: var(--gold); }
.social-light svg { color: var(--gold-deep); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--gold-light); }
.footer-social a:hover { background: #4a4035; }
.footer-social svg { width: 1.1rem; height: 1.1rem; }

.download { padding-block: 5rem; background: var(--ink-deep); color: #fff; border-radius: 1.5rem 1.5rem 0 0; }
.download .eyebrow { color: var(--on-dark); }
.download .eyebrow::before { background: var(--gold-light); }
.download-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 5rem; align-items: center; }
.download h2 { color: #fff; font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
.download h2 span { color: var(--gold-light); }
.download-copy { color: var(--on-dark); font-size: .9375rem; }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.store { display: inline-flex; align-items: center; gap: .75rem; min-height: 3.5rem; padding: .6rem 1.1rem; border: 1px solid #6a5e50; border-radius: .75rem; color: #fff; }
.store svg { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; }
.store small { display: block; font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); }
.store strong { display: block; font-size: 1rem; line-height: 1.2; }
.download-note { margin-top: 1.5rem; font-size: .6875rem; color: var(--on-dark); }

footer { background: var(--ink-deep); color: var(--on-dark); }
footer a:focus-visible, .download a:focus-visible { outline-color: var(--gold-light); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.75rem; border-top: 1px solid #5a4f43; font-size: .6875rem; }
.footer-brand { font-family: var(--title); font-weight: 700; font-size: .9375rem; color: #fff; text-decoration: none; }

@media (max-width: 1100px) {
  .desktop-nav { gap: 1rem; }
  .hero-grid { gap: 2rem; }
  .feature { padding: 1.5rem; }
  .oracle-grid, .download-grid { gap: 3rem; }
  }
@media (max-width: 860px) {
  .header-inner { min-height: 4.75rem; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { display: flex; gap: .75rem; align-items: center; padding: .65rem .75rem; border: 1px solid #7d7062; border-radius: .5rem; font-size: .8125rem; cursor: pointer; list-style: none; }
  .mobile-nav summary::after { content: "+"; font-size: 1rem; }
  .mobile-nav[open] summary::after { content: "−"; }
  .mobile-nav nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 1rem var(--space); background: var(--ink-deep); border-bottom: 1px solid #5a4f43; }
  .mobile-nav nav a { padding: .75rem; text-decoration: none; font-size: .9375rem; }
  .mobile-nav nav a:hover { color: var(--gold-light); }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy > p { max-width: 35rem; }
  .intro-inner { gap: 2rem; }
  .section-heading { align-items: start; gap: 2rem; }
  .feature-grid, .courses-box { grid-template-columns: 1fr; }
  .oracle-grid { grid-template-columns: 1fr; }
  .feature-icon { margin-bottom: 1.5rem; }
  .oracle-grid, .download-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 540px) {
  html { scroll-padding-top: 5.5rem; }
  .header-inner { gap: .5rem; }
  .brand { gap: .6rem; }
  .brand svg { width: 2.1rem; height: 2.1rem; }
  .brand-name { font-size: .875rem; }
  .brand-name small { font-size: .5625rem; letter-spacing: .14em; }
  .hero .eyebrow { font-size: .625rem; letter-spacing: .1em; }
  :where(.templo-front) h1 { font-size: clamp(2.1rem, 9.5vw, 2.75rem); }
  .hero-actions { gap: 1rem; }
  .hero-copy > p { font-size: 1rem; }
  .button { padding-inline: 1.25rem; gap: 1.25rem; }
  .app-stage { min-height: 420px; }
  .stage-caption { top: 1.25rem; left: 1.25rem; font-size: .5625rem; }
  .orbit { width: 17rem; height: 17rem; left: calc(50% - 8.5rem); top: 7rem; }
  .stage-main { width: 190px; left: calc(50% - 95px); top: 5rem; }
  .stage-left { width: 120px; left: calc(50% - 170px); top: 9rem; }
  .stage-right { width: 120px; left: calc(50% + 50px); top: 8.5rem; }
  .float-note { bottom: 1rem; right: .75rem; padding: .65rem; }
  .hero-bottom { flex-direction: column; align-items: start; gap: .75rem; margin-top: 2rem; padding-block: 1.5rem; }
  .platforms { gap: 1.25rem; }
  .intro-inner { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.5rem; }
  .section-heading { flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
  .section-heading > p { max-width: none; }
  .eyebrow { margin-bottom: 1rem; }
  .download { padding-block: 3.5rem; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 380px) {
  .brand-name small { display: none; }
  .brand svg { width: 1.9rem; height: 1.9rem; }
  .mobile-nav summary { padding: .55rem .6rem; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header { position: static; }
  .mobile-nav, .desktop-nav, .skip { display: none; }
  .section { padding-block: 2rem; }
  .feature { break-inside: avoid; }
}

/* ===== Ajustes de WordPress ===== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.desktop-nav .nav-account { opacity: .85; }

/* ===== Cursos en la portada (Tutor LMS) ===== */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.course-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e2d2b3; border-radius: var(--radius); background: var(--surface); transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #3a322a14; }
.course-media { display: block; aspect-ratio: 16 / 10; background: var(--gold-pale); color: var(--gold); overflow: hidden; }
.templo-front .course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.templo-front .course-placeholder svg { width: 4rem; height: 4rem; }
.course-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.templo-front .course-body h3 { font-size: 1.15rem; }
.course-body h3 a { text-decoration: none; }
.course-body h3 a:hover { text-decoration: underline; }
.templo-front .course-body p { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.5rem; }
.course-price { font-weight: 700; color: var(--gold-deep); }
.course-price del { margin-right: .35rem; font-weight: 400; color: var(--muted); }
.course-price ins { text-decoration: none; }
.courses-more { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ===== Páginas internas: cursos, carrito, pago, panel del alumno ===== */
body:not(.templo-front) .site-main { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
body:not(.templo-front) h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
body:not(.templo-front) h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
button, [type="button"], [type="submit"] { border-color: var(--gold-deep); color: var(--gold-deep); }
button:hover, button:focus, [type="button"]:hover, [type="button"]:focus, [type="submit"]:hover, [type="submit"]:focus { background-color: var(--gold-deep); color: #fff; }

/* Colores de Tutor LMS (se aplican aunque su configuración tenga otros) */
body {
  --tutor-color-primary: #8A6A3B;
  --tutor-color-primary-rgb: 138, 106, 59;
  --tutor-color-primary-hover: #765a31;
  --tutor-color-primary-light: #F0E6D3;
}

/* Botones de WooCommerce */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce-page a.button, .woocommerce-page button.button {
  background-color: var(--gold-deep); border: 1px solid var(--gold-deep); border-radius: .75rem; color: #fff;
  font-weight: 700; letter-spacing: .04em; text-decoration: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce-page a.button:hover, .woocommerce-page button.button:hover {
  background-color: #765a31; border-color: #765a31; color: #fff;
}
.woocommerce-message, .woocommerce-info { border-top-color: var(--gold); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--gold-deep); }

/* Hello Elementor limita el ancho de .site-header en las páginas internas: se anula */
body .site-header:not(.dynamic-header) { display: block; width: auto; max-width: none; margin-inline: 0; padding-block: 0; }
.site-header p, footer p { margin: 0; }
footer a, .site-header a { text-decoration: none; }

/* Aire entre la cabecera y el contenido de Tutor LMS */
.tutor-course-details-page, .tutor-dashboard, .tutor-courses-wrap, .tutor-course-archive-page { padding-top: clamp(2rem, 4vw, 3rem); }

/* Carrito en la cabecera */
.nav-cart { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding-block: .75rem; }
.nav-cart:hover { color: var(--gold-light); }
.site-header .nav-cart svg { width: 1.3rem; height: 1.3rem; }
.cart-count { display: grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding-inline: .3rem; border-radius: 999px; background: var(--gold-light); color: var(--ink-deep); font-size: .6875rem; font-weight: 700; line-height: 1; }

/* Botones de los bloques de carrito y pago de WooCommerce */
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wc-block-components-button:not(.is-link):not(.wc-block-components-panel__button) {
  background-color: var(--gold-deep); border-color: var(--gold-deep); border-radius: .75rem; color: #fff; text-decoration: none;
}
.wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover, .wc-block-components-button:not(.is-link):not(.wc-block-components-panel__button):hover {
  background-color: #765a31; border-color: #765a31; color: #fff;
}
.wc-block-components-button .wc-block-components-button__text { text-decoration: none; }
