/*
Theme Name: ExpoMobile White Label
Theme URI: https://expomobile.co
Author: ExpoMobile
Author URI: https://expomobile.co
Description: Theme base marca blanca para vender servicio de boletería digital con Expomobile Passes.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: expomobile-white-label
*/

:root {
  --bg: #f3f6ff;
  --surface: #ffffff;
  --ink: #0b1242;
  --muted: #4f5f8e;
  --line: #d7e1ff;
  --blue: #0f56f5;
  --violet: #6b2bff;
  --deep: #09103a;
  --deep-2: #121a52;
  --ok: #128a62;
  --max: 1160px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(90deg, rgba(4, 10, 44, 0.95), rgba(15, 27, 89, 0.92));
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.25px;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 68px;
  height: 68px;
  padding: 7px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.85rem;
}

.top-nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.top-nav-menu li {
  margin: 0;
  padding: 0;
  position: relative;
}

.top-nav-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  min-width: 240px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(120deg, rgba(8, 16, 61, 0.98), rgba(18, 34, 106, 0.96));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 70;
}

.top-nav-menu .sub-menu li {
  margin: 0;
}

.top-nav-menu .sub-menu a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.top-nav-menu .sub-menu a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
}

.top-nav-menu li:hover > .sub-menu,
.top-nav-menu li:focus-within > .sub-menu {
  display: block;
}

.top-nav-actions {
  display: flex;
  align-items: center;
}

.top-nav a {
  color: #edf2ff;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.64rem 1.05rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--blue), #2440ff);
  box-shadow: 0 10px 24px rgba(33, 71, 249, 0.3);
}

.btn-secondary {
  color: #fff;
  background: linear-gradient(100deg, var(--violet), #2f3cff);
  box-shadow: 0 10px 24px rgba(88, 46, 255, 0.3);
}

.btn-ghost {
  color: var(--ink);
  background: #f3f6ff;
  border-color: var(--line);
}

.btn-whatsapp {
  color: #fff;
  background: linear-gradient(100deg, #15ab74, #0d7f56);
  box-shadow: 0 12px 24px rgba(15, 141, 98, 0.3);
}

.btn-login {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.wl-home {
  overflow-x: clip;
}

.hero {
  position: relative;
}

.hero-cover {
  background-image: url('./assets/cover.jpg');
  background-size: cover;
  background-position: center;
  padding: 5.2rem 0 4rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6, 16, 57, 0.9), rgba(26, 18, 88, 0.75));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.1rem;
}

.hero-copy,
.hero-panel {
  background: rgba(7, 16, 59, 0.66);
  border: 1px solid rgba(173, 194, 255, 0.34);
  color: #eef3ff;
  border-radius: var(--radius);
  padding: 1.35rem;
  backdrop-filter: blur(2px);
}

.hero-panel {
  background: rgba(12, 23, 74, 0.72);
}

.hero-copy h1 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

.hero-copy .lead,
.hero-panel p,
.hero-panel li {
  color: #d8e3ff;
}

.kicker {
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 999px;
  color: #f4f7ff;
  background: linear-gradient(90deg, rgba(16, 95, 255, 0.9), rgba(116, 43, 255, 0.9));
  padding: 0.28rem 0.72rem;
}

.hero-logo {
  width: min(280px, 78%);
  display: block;
  margin: 0 auto 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(191, 206, 255, 0.45);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.1rem 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badges span {
  border-radius: 999px;
  border: 1px solid rgba(194, 211, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #edf2ff;
  font-size: 0.8rem;
  padding: 0.26rem 0.62rem;
}

.sandbox-badge {
  margin-top: 0.8rem;
  display: inline-block;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #eef3ff;
  padding: 0.4rem 0.62rem;
  font-size: 0.86rem;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: #edf2ff;
  border-top: 1px solid #dee7ff;
  border-bottom: 1px solid #deebff;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

h3 {
  margin: 0 0 0.45rem;
}

.lead {
  margin: 0 0 1rem;
  color: var(--muted);
}

.sales-grid,
.form-entry-grid,
.pricing-grid,
.contact-grid {
  display: grid;
  gap: 0.95rem;
}

.sales-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-entry-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.entry-card,
.price-card,
.contact-cta,
.ewl-login-wrap,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(14, 36, 105, 0.08);
}

.feature-card p,
.entry-card p,
.price-card li,
.contact-cta p {
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.tag-free {
  color: #0b7153;
  background: #dff8ee;
}

.tag-paid {
  color: #5b2bc2;
  background: #ebe3ff;
}

.price {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  margin: 0.45rem 0 0.7rem;
  font-weight: 900;
  color: var(--deep-2);
}

.price small {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.price-card.featured {
  border-color: #9eb4ff;
  background: linear-gradient(180deg, #f3f6ff, #edf2ff);
}

.clean-list {
  margin: 0;
  padding-left: 1rem;
}

.clean-list li + li {
  margin-top: 0.38rem;
}

.section-contact {
  background: linear-gradient(180deg, #f6f8ff, #eff3ff);
}

.contact-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.contact-header h2 {
  margin-bottom: 0.5rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 6px 22px rgba(14, 36, 105, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  box-shadow: 0 10px 28px rgba(14, 36, 105, 0.13);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
}

.contact-card a,
.contact-card > span:last-child {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.97rem;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--blue);
  text-decoration: none;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.form-page-wrap {
  background:
    radial-gradient(circle at 10% 10%, rgba(24, 92, 255, 0.12), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(30, 110, 143, 0.12), transparent 42%),
    #f3f7ff;
}

.form-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid #d5e5ff;
  background: linear-gradient(125deg, #ffffff, #edf4ff);
  box-shadow: 0 10px 30px rgba(19, 49, 132, 0.09);
}

.form-page-kicker {
  margin: 0;
  color: #27416c;
  font-size: 0.95rem;
  font-weight: 700;
}

.form-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.form-page-shell {
  border-radius: var(--radius);
  border: 1px solid #d9e7ff;
  background: linear-gradient(180deg, #f8fbff, #f1f6ff);
  padding: 0.55rem;
  box-shadow: 0 14px 30px rgba(15, 36, 102, 0.08);
}

.form-page-shell .expo-form {
  margin: 18px auto;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: center;
}

.note {
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 1rem;
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.ewl-login-wrap {
  width: min(100%, 560px);
  margin: 1.2rem auto;
}

.ewl-login-wrap h2 {
  margin-top: 0;
}

.ewl-login-form {
  display: grid;
  gap: 0.55rem;
}

.ewl-login-form label {
  font-weight: 700;
  font-size: 0.9rem;
}

.ewl-login-form input[type="text"],
.ewl-login-form input[type="password"] {
  width: 100%;
  border: 1px solid #c9d8ff;
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  font: inherit;
}

.ewl-login-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--muted);
}

.ewl-login-error {
  border-radius: 12px;
  border: 1px solid #f3b0b0;
  background: #fff0f0;
  color: #8d1c1c;
  padding: 0.55rem 0.72rem;
  margin-bottom: 0.7rem;
}

/* Override de look Expomobile en formularios de registro (gratis y pago). */
body.page-template-template-registro-gratis .expo-form:not([data-efc-colors]),
body.page-template-template-registro-pago .expo-form:not([data-efc-colors]) {
  background-image: linear-gradient(160deg, #0c2742 0%, #11456e 55%, #1e6e8f 100%) !important;
  border: 1px solid rgba(194, 223, 255, 0.34);
}

body.page-template-template-registro-gratis .expo-form .expo-day-tab,
body.page-template-template-registro-pago .expo-form .expo-day-tab,
body.page-template-template-registro-gratis .expo-form .expo-provider-trigger,
body.page-template-template-registro-pago .expo-form .expo-provider-trigger {
  background: rgba(240, 250, 255, 0.14);
  border-color: rgba(214, 239, 255, 0.48);
}

@media (max-width: 1040px) {
  .sales-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header .container {
    flex-direction: row;
    align-items: center;
  }

  .top-nav-wrap {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .top-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 60;
    min-width: 270px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(120deg, rgba(4, 10, 44, 0.98), rgba(18, 34, 106, 0.96));
    box-shadow: 0 20px 34px rgba(3, 8, 33, 0.45);
  }

  .site-header.menu-open .top-nav {
    display: flex;
  }

  .top-nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .top-nav-menu a {
    display: block;
    width: 100%;
    padding: 0.42rem 0.2rem;
  }

  .top-nav-menu .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    margin-top: 0.2rem;
    padding: 0.2rem 0 0.2rem 0.8rem;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .top-nav-menu .sub-menu a {
    padding: 0.34rem 0.2rem;
    color: #cfe1ff;
  }

  .top-nav-actions {
    width: 100%;
  }

  .top-nav-actions .btn {
    width: 100%;
  }

  .hero-cover {
    padding-top: 4.2rem;
  }

  .hero-grid,
  .form-entry-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-page-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-page-links {
    width: 100%;
  }

  .form-page-links .btn {
    width: 100%;
  }

  .pricing-grid-four {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
    padding: 6px;
  }
}

@media (max-width: 640px) {
  .sales-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }
}
