/*
Theme Name:   Mobile Tinting Child
Theme URI:    https://mobile-tinting.com
Description:  Child theme Divi – Rediseño Mobile Tinting
Author:       Tu equipo
Template:     Divi
Version:      1.0.0
Text Domain:  mobile-tinting-child
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --mt-dark:        #0B0C10;
  --mt-dark-2:      #1F2833;
  --mt-accent:      #00C2FF;
  --mt-cta:         #FF6B35;
  --mt-cta-hover:   #E85A26;
  --mt-text:        #E5E7EB;
  --mt-text-muted:  #9CA3AF;
  --mt-white:       #FFFFFF;
  --mt-radius:      12px;
  --mt-shadow:      0 20px 50px rgba(0, 0, 0, 0.25);
  --mt-font-head:   'Barlow Condensed', system-ui, sans-serif;
  --mt-font-body:   'Inter', system-ui, sans-serif;
}

/* ============================================
   TIPOGRAFÍA GLOBAL
   ============================================ */
body, .et_pb_text, .et_pb_blurb_description {
  font-family: var(--mt-font-body);
  color: var(--mt-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--mt-font-head);
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--mt-white);
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }

/* ============================================
   BOTONES (clases reutilizables en Divi)
   ============================================ */
.et_pb_button.mt-btn,
.mt-btn {
  font-family: var(--mt-font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 32px !important;
  border-radius: var(--mt-radius) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  will-change: transform;
}

.mt-btn--primary {
  background: var(--mt-cta) !important;
  color: var(--mt-white) !important;
  border: 0 !important;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.35);
}
.mt-btn--primary:hover {
  background: var(--mt-cta-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.45);
}

.mt-btn--ghost {
  background: transparent !important;
  color: var(--mt-white) !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
}
.mt-btn--ghost:hover {
  border-color: var(--mt-accent) !important;
  color: var(--mt-accent) !important;
}

/* ============================================
   HERO
   ============================================ */
.mt-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 5rem;
  background:
    linear-gradient(135deg, rgba(11, 12, 16, 0.92) 0%, rgba(31, 40, 51, 0.72) 100%),
    url('/wp-content/uploads/hero-car.jpg') center / cover no-repeat;
  overflow: hidden;
}

.mt-hero__content { max-width: 820px; }
.mt-hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mt-accent);
  margin-bottom: 1rem;
}
.mt-hero__title { color: var(--mt-white); margin-bottom: 1.25rem; }
.mt-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--mt-text);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.mt-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.mt-hero__badges {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  font-size: 0.85rem; color: var(--mt-text-muted);
}
.mt-hero__badges span::before {
  content: '✓'; color: var(--mt-accent);
  font-weight: 700; margin-right: 0.4rem;
}

/* ============================================
   TRUST BAR
   ============================================ */
.mt-trust {
  background: var(--mt-dark-2);
  border-top: 1px solid rgba(0, 194, 255, 0.15);
  border-bottom: 1px solid rgba(0, 194, 255, 0.15);
  padding: 2.5rem 1.5rem;
}
.mt-trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 1200px; margin: 0 auto; text-align: center;
}
.mt-trust__num {
  font-family: var(--mt-font-head);
  font-size: 2.5rem; font-weight: 800;
  color: var(--mt-accent); line-height: 1; margin-bottom: 0.4rem;
}
.mt-trust__label {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--mt-text-muted);
}

/* ============================================
   SERVICES
   ============================================ */
.mt-services { padding: 6rem 1.5rem; background: var(--mt-dark); }
.mt-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; max-width: 1200px; margin: 3rem auto 0;
}
.mt-service-card {
  position: relative;
  background: var(--mt-dark-2);
  border-radius: var(--mt-radius);
  padding: 2.5rem 2rem;
  border-top: 3px solid var(--mt-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mt-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mt-shadow);
}
.mt-service-card h3 { color: var(--mt-white); margin-bottom: 0.75rem; }
.mt-service-card p { color: var(--mt-text-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.mt-service-card a { color: var(--mt-accent); font-weight: 600; text-decoration: none; }
.mt-service-card a:hover { text-decoration: underline; }

/* ============================================
   BEFORE / AFTER SLIDER
   ============================================ */
.mt-ba {
  position: relative;
  max-width: 900px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--mt-radius);
  overflow: hidden;
  box-shadow: var(--mt-shadow);
  user-select: none;
}
.mt-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mt-ba__after { clip-path: inset(0 50% 0 0); }
.mt-ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; z-index: 3; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.mt-ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: var(--mt-white);
  transform: translateX(-50%);
  pointer-events: none; z-index: 2;
}
.mt-ba__handle::after {
  content: '⇄';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mt-white); color: var(--mt-dark);
  border-radius: 50%; font-size: 1.1rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.mt-ba__label {
  position: absolute; bottom: 1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(11,12,16,0.75); color: var(--mt-white);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 4px; z-index: 2;
}
.mt-ba__label--before { left: 1rem; }
.mt-ba__label--after  { right: 1rem; }

/* ============================================
   QUOTE FORM
   ============================================ */
.mt-quote { background: var(--mt-cta); padding: 5rem 1.5rem; color: var(--mt-white); }
.mt-quote h2 { color: var(--mt-white); margin-bottom: 0.5rem; }
.mt-quote p  { color: rgba(255,255,255,0.9); margin-bottom: 2rem; }
.mt-form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; max-width: 700px; margin: 0 auto;
}
.mt-form__field { display: flex; flex-direction: column; }
.mt-form__field--full { grid-column: 1 / -1; }
.mt-form label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.mt-form input, .mt-form select, .mt-form textarea {
  padding: 14px 16px; border-radius: 8px; border: 0;
  font-family: var(--mt-font-body); font-size: 1rem;
  background: rgba(255,255,255,0.96); color: var(--mt-dark);
}
.mt-form input:focus, .mt-form select:focus, .mt-form textarea:focus {
  outline: 3px solid var(--mt-dark); outline-offset: 2px;
}
.mt-form button {
  grid-column: 1 / -1; cursor: pointer;
  font-family: var(--mt-font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 1rem;
  padding: 16px 32px; border-radius: 8px; border: 0;
  background: var(--mt-dark); color: var(--mt-white);
  transition: transform 0.2s ease, background 0.2s ease;
}
.mt-form button:hover { background: #000; transform: translateY(-2px); }
.mt-form__msg { grid-column: 1 / -1; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; }
.mt-form__msg--ok    { background: rgba(0,0,0,0.15); color: #fff; }
.mt-form__msg--error { background: #B91C1C; color: #fff; }

@media (max-width: 640px) {
  .mt-form { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ (acordeón nativo con <details>)
   ============================================ */
.mt-faq { background: var(--mt-dark-2); padding: 5rem 1.5rem; }
.mt-faq__list { max-width: 820px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 1rem; }
.mt-faq details {
  background: var(--mt-dark); border-radius: var(--mt-radius);
  border: 1px solid rgba(0, 194, 255, 0.15); overflow: hidden;
}
.mt-faq summary {
  padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600;
  color: var(--mt-white); list-style: none; position: relative; padding-right: 3rem;
}
.mt-faq summary::-webkit-details-marker { display: none; }
.mt-faq summary::after {
  content: '+'; position: absolute; right: 1.5rem; top: 50%;
  transform: translateY(-50%); color: var(--mt-accent);
  font-size: 1.4rem; font-weight: 300; transition: transform 0.2s ease;
}
.mt-faq details[open] summary::after { content: '−'; }
.mt-faq details p { padding: 0 1.5rem 1.25rem; color: var(--mt-text-muted); line-height: 1.7; margin: 0; }

/* ============================================
   UTILIDADES
   ============================================ */
.mt-section-title { text-align: center; max-width: 780px; margin: 0 auto; }
.mt-section-title p { color: var(--mt-text-muted); font-size: 1.05rem; margin-top: 0.75rem; }

/* ============================================
   MÓVIL: reducir padding vertical
   ============================================ */
@media (max-width: 768px) {
  .mt-services, .mt-quote, .mt-faq { padding: 4rem 1.25rem; }
  .mt-hero { min-height: auto; padding: 6rem 1.25rem 4rem; }
}

/* ============================================
   HEADER — Forzar fondo oscuro en contenedor externo de Divi
   ============================================ */

/* Contenedor externo (el que tenía fondo blanco) */
#main-header,
#main-header.et-fixed-header,
header#main-header {
  background-color: #0B0C10 !important;
  box-shadow: none !important;
}

/* Contenedor del Theme Builder (Divi 4+) */
.et-l--header,
.et-l--header .et_pb_section {
  background-color: #0B0C10 !important;
}

/* Sección del header que lleva la clase mt-header */
.mt-header {
  background: rgba(11, 12, 16, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 194, 255, 0.12);
}

/* Links del menú */
.mt-header .et_pb_menu__menu > nav > ul > li > a,
#main-header .et_pb_menu__menu > nav > ul > li > a {
  color: #E5E7EB !important;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.mt-header .et_pb_menu__menu > nav > ul > li > a:hover,
.mt-header .et_pb_menu__menu > nav > ul > li.current-menu-item > a,
#main-header .et_pb_menu__menu > nav > ul > li > a:hover {
  color: #00C2FF !important;
}

/* En móvil: ocultar menú horizontal */
@media (max-width: 980px) {
  .mt-header .et_pb_menu__menu { display: none; }
}