/* El Toque de Warnes — Estilos compartidos entre landings
   (webinar-marketing-digital.html, casas-de-repuestos.html, index.html)
   Las reglas que difieren entre landings se aíslan con una clase en <body>:
   body.page-webinar / body.page-fabricantes. */

:root {
  --color-brand-red: #e01b1b;
  --color-brand-red-dark: #b01212;
  --color-dark: #111111;
  --color-gray-bg: #e4e4e4;
  --color-gray-light: #f1f1f1;
  --font-base: "Ubuntu", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  font-family: var(--font-base);
  color: #111;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .fw-title {
  font-family: var(--font-base);
  font-weight: 700;
}

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

a:hover {
  color: var(--color-brand-red-dark);
  text-decoration: underline;
}

.section-title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 17px;
  color: #555;
  max-width: 56ch;
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--color-brand-red);
  padding: 12px clamp(14px, 5vw, 72px);
}

.brand-logo {
  width: 250px;
  height: auto;
}

.btn-outline-header {
  border: 1.5px solid #fff;
  border-radius: 999px;
  padding: 8px 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-outline-header:hover {
  background: #fff;
  color: var(--color-brand-red);
  text-decoration: none;
}

.btn-dark-header {
  background: var(--color-dark);
  border-radius: 999px;
  padding: 9px 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
}

.btn-dark-header:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero-section {
  background: var(--color-gray-bg);
  padding: clamp(40px, 6vw, 88px) clamp(16px, 5vw, 72px);
}

.hero-demo-gif {
  display: block;
}

body.page-webinar .hero-demo-gif {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

body.page-fabricantes .hero-demo-gif {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-badge {
  display: inline-block;
  background: var(--color-brand-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 18px;
}

.hero-title {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero-subtitle-col {
  display: flex;
  align-items: center;
}

.hero-subtitle {
  font-size: clamp(14px, 1.3vw, 19px);
  line-height: 1.55;
  color: #2b2b2b;
}

.hero-divider {
  height: 1px;
  background: #111;
  opacity: 1;
  margin: 0 0 25px;
}

.hero-fact-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-size: 36px;
}

.hero-fact-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.hero-fact-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: -5px;
}

.hero-fact-label {
  font-size: 16px;
  color: #444;
}

.register-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: clamp(26px, 3vw, 38px);
}

.register-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.register-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-align: center;
}

.register-card-meta i {
  color: var(--color-brand-red);
  margin-right: 4px;
}

.register-card .form-control {
  border: 1.5px solid #cfcfcf;
  border-radius: 0;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
}

.register-card .form-control:focus {
  border-color: var(--color-brand-red);
  box-shadow: none;
}

.btn-brand {
  background: var(--color-brand-red);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
}

.btn-brand:hover {
  background: var(--color-brand-red-dark);
  color: #fff;
}

/* ---------- Beneficios ---------- */

.benefit-card {
  border: 2px solid #111;
  border-radius: 20px;
  padding: 28px;
  height: 100%;
  background: #fff;
  transition: box-shadow 0.18s;
}

.benefit-card:hover {
  box-shadow: 8px 8px 0 var(--color-brand-red);
}

.benefit-card:hover .benefit-icon {
  background: var(--color-brand-red);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
}

/* ---------- Cómo funciona ---------- */

.como-funciona-section {
  background: var(--color-gray-bg);
}

.pasos-card {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: clamp(26px, 3.1vw, 70px);
  height: 100%;
}

.pasos-card > div {
  padding: 14px 0;
}

.pasos-card > div:first-child {
  padding-top: 0;
}

.paso-divider {
  height: 1px;
  background: #e2e2e2;
  opacity: 1;
  margin: 25px 0;
}

.paso-numero {
  min-width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-brand-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 26px;
  flex: 0 0 auto;
}

.paso-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}

.buscador-preview {
  position: relative;
  min-height: 340px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.buscador-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Estadísticas ---------- */

.stats-section {
  position: relative;
  background: var(--color-dark) url("../img/manos.jpg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.stats-section.local {
  position: relative;
  background: var(--color-dark) url("../img/local.jpg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.webinar-info-container {
  max-width: 70%;
}

@media (max-width: 640px) {
  .webinar-info-container {
    max-width: 90%;
  }
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.8;
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stats-title {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
}

.stats-lead {
  line-height: 1.5;
  font-weight: 500;
}

body.page-webinar .stats-lead {
  font-size: clamp(17px, 1.8vw, 22px);
}

body.page-fabricantes .stats-lead {
  font-size: clamp(18px, 2vw, 28px);
}

.stats-sub {
  font-size: 18px;
  line-height: 1.65;
  color: #c9c9c9;
}

body.page-webinar .stats-sub {
  max-width: 61ch;
  background-color: slategray;
  border-radius: 50px;
  padding: 5px 10px;
}

body.page-fabricantes .stats-sub {
  max-width: 82ch;
}

.stat-value {
  font-weight: 700;
  color: var(--color-brand-red);
  line-height: 1;
}

body.page-webinar .stat-value {
  font-size: clamp(45px, 5vw, 90px);
}

body.page-fabricantes .stat-value {
  font-size: clamp(45px, 7vw, 92px);
}

.stat-label {
  font-size: 19px;
  font-weight: 500;
  color: #e4e4e4;
  margin-top: 10px;
}

/* ---------- Testimonios (casas-de-repuestos.html) ---------- */

.testimonio-card {
  border: 2px solid #111;
  border-radius: 20px;
  padding: 28px;
  height: 100%;
  background: #fff;
}

.testimonio-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-brand-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.testimonio-name {
  font-weight: 700;
  font-size: 15px;
}

.testimonio-place {
  color: #666;
  font-size: 14px;
}

.testimonio-text {
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

.carousel-control-custom {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #d2d2d2;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.18s;
  flex: 0 0 auto;
}

.carousel-control-custom:hover {
  border-color: var(--color-brand-red);
  color: var(--color-brand-red);
}

/* ---------- FAQ ---------- */

.faq-section {
  background: var(--color-gray-light);
}

.accordion-item {
  border: none;
  margin-bottom: 10px;
}

.accordion-button {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  border-radius: 0 !important;
}

.accordion-button:not(.collapsed) {
  color: var(--color-brand-red);
  background: #fff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button::after {
  display: none;
}

.accordion-icon {
  color: var(--color-brand-red);
  font-size: 15px;
  transition: transform 0.2s;
  flex: 0 0 auto;
}

.accordion-button:not(.collapsed) .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* ---------- CTA final ---------- */

.cta-section {
  background: var(--color-dark);
  color: #fff;
}

.cta-title {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.35;
}

.cta-visual {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto;
}

.btn-cta {
  display: inline-block;
  background: var(--color-brand-red);
  color: #fff;
  border-radius: 999px;
  padding: 17px 52px;
  font-weight: 700;
}

body.page-webinar .btn-cta {
  font-size: 20px;
}

body.page-fabricantes .btn-cta {
  font-size: 17px;
}

.btn-cta:hover {
  background: #fff;
  color: var(--color-brand-red);
  text-decoration: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #000;
  color: #8b8b8b;
  padding: 28px clamp(16px, 5vw, 72px);
  font-size: 13px;
}

.site-footer .footer-logo {
  width: 220px;
  height: auto;
}

.site-footer a {
  color: #cfcfcf;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 20px;
  }

  .brand-logo {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav .nav-btn {
    flex: 1 1 100%;
    text-align: center;
    white-space: normal;
  }
}

/* ---------- Formulario de registro/contacto: validación y toast ---------- */

.register-card .form-control.is-invalid {
  border-color: var(--color-brand-red);
  background-image: none;
}

.register-card .form-control.is-valid {
  border-color: #2e9e4f;
  background-image: none;
}

.register-card .invalid-feedback {
  color: var(--color-brand-red);
  font-weight: 500;
  font-size: 13px;
}

.form-toast {
  border-radius: 10px;
  overflow: hidden;
  border: none;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-toast .toast-header {
  border: none;
  font-weight: 600;
  color: #fff;
  background-color: #666;
}

.form-toast.toast-success .toast-header {
  background-color: #1f8f43;
}

.form-toast.toast-error .toast-header {
  background-color: var(--color-brand-red);
}

.form-toast .toast-body {
  background-color: #fff;
  color: #111;
}

.form-toast .btn-close {
  filter: brightness(0) invert(1);
}

.grecaptcha-badge {
  display: none !important;
}

/* ---------- Hub de landings (index.html) ---------- */

html:has(body.split-page),
body.split-page {
  height: 100%;
}

.split-layout {
  display: flex;
  min-height: 100vh;
}

.split-col {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px);
}

.split-col-brand {
  background: var(--color-brand-red);
}

.split-col-form {
  background: #fff;
}

.hub-logo {
  width: clamp(160px, 22vw, 320px);
  height: auto;
}

.hub-contact-card {
  width: 100%;
  max-width: 440px;
}

.hub-contact-sub {
  font-size: 15px;
  color: #555;
  text-align: center;
}

.hub-menu {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1000;
}

.hub-menu-toggle {
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.hub-menu-bar {
  width: 20px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
}

.hub-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.hub-menu:hover .hub-menu-dropdown,
.hub-menu:focus-within .hub-menu-dropdown,
.hub-menu.is-open .hub-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hub-menu-link {
  text-align: center;
}

@media (max-width: 768px) {
  .split-layout {
    flex-direction: column;
  }

  .split-col {
    flex: none;
    padding: clamp(28px, 8vw, 48px) 24px;
  }

  .split-col-brand {
    padding-top: 88px;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.whatsapp-float:hover {
  background: #25d366;
  color: #fff;
  text-decoration: none;
  transform: scale(1.08);
}
