/*
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 Y UTILIDADES
   ============================================ */
.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;
  display: inline-flex; /* ⬅️ Cambiado de inline-block a inline-flex */
  align-items: center; /* ⬅️ Centra verticalmente el ícono y el texto */
  justify-content: center; /* ⬅️ Centra horizontalmente */
  gap: 10px; /* ⬅️ Espacio entre el ícono y el texto */
  text-decoration: none;
}

.mt-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.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;
}

.mt-section-title { text-align: center; max-width: 780px; margin: 0 auto; }
.mt-section-title h2 { margin-bottom: 0.5rem; }
.mt-section-title p { color: var(--mt-text-muted); font-size: 1.05rem; margin-top: 0.75rem; line-height: 1.6; }


/* ============================================
   HEADER — Forzar fondo oscuro en contenedor externo de Divi
   ============================================ */
#main-header,
#main-header.et-fixed-header,
header#main-header {
  background-color: #0B0C10 !important;
  box-shadow: none !important;
}
.et-l--header,
.et-l--header .et_pb_section {
  background-color: #0B0C10 !important;
}
.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);
}
.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;
}
@media (max-width: 980px) {
  .mt-header .et_pb_menu__menu { display: none; }
}


/* ============================================
   HERO
   ============================================ */
.mt-hero {
  position: relative !important;
  min-height: 85vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8rem 1.5rem 5rem !important;
  background:
    linear-gradient(135deg, rgba(11, 12, 16, 0.88) 0%, rgba(31, 40, 51, 0.72) 100%),
    var(--mt-hero-image, none) center / cover no-repeat;
  overflow: hidden;
}
.mt-hero > .et_pb_row {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.mt-hero .et_pb_column {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}
.mt-hero__content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.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: 0 auto 2rem;
  line-height: 1.6;
}
.mt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.mt-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  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; font-size: 1.5rem;}
.mt-service-card p { color: var(--mt-text-muted); line-height: 1.6; margin-bottom: 1.25rem; font-size: 1rem;}
.mt-service-card a { color: var(--mt-accent); font-weight: 600; text-decoration: none; }
.mt-service-card a:hover { text-decoration: underline; }


/* ============================================
   WHY CHOOSE US
   ============================================ */
.mt-why { padding: 6rem 1.5rem; background: var(--mt-dark-2); }
.mt-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}
.mt-why__image {
  position: relative;
  height: 100%; /
  min-height: 350px; 
  border-radius: var(--mt-radius);
  overflow: hidden;
  box-shadow: var(--mt-shadow);
  background: var(--mt-dark-2); 
}
.mt-why__image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.mt-why__image video {
  position: absolute;
  inset: 0; 
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mt-why__title {
  font-family: var(--mt-font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700; text-transform: uppercase;
  color: var(--mt-white); margin: 0 0 2rem; line-height: 1.05;
}
.mt-why__features { display: flex; flex-direction: column; gap: 1.5rem; }
.mt-why__feature { display: flex; gap: 1rem; align-items: flex-start; }
.mt-why__feature-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 194, 255, 0.1); border-radius: 10px; color: var(--mt-accent);
}
.mt-why__feature-icon svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.mt-why__feature h4 {
  font-family: var(--mt-font-body); font-size: 1.05rem; font-weight: 700;
  color: var(--mt-white); margin: 0 0 0.25rem;
}
.mt-why__feature p { color: var(--mt-text-muted); font-size: 0.95rem; line-height: 1.5; margin: 0; }


/* ============================================
   HOW IT WORKS
   ============================================ */
.mt-how { padding: 6rem 1.5rem; background: var(--mt-dark); }
.mt-how__steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  max-width: 1200px; margin: 0 auto;
}
.mt-how__step { text-align: left; }
.mt-how__step-num {
  font-family: var(--mt-font-head); font-size: 3rem; font-weight: 800;
  color: var(--mt-accent); line-height: 1; margin-bottom: 1rem; letter-spacing: 0.02em;
}
.mt-how__step-title {
  font-family: var(--mt-font-head); font-size: 1.15rem; font-weight: 700;
  text-transform: uppercase; color: var(--mt-white); margin: 0 0 0.5rem; letter-spacing: 0.02em;
}
.mt-how__step-text { color: var(--mt-text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }


/* ============================================
   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; }


/* ============================================
   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; }


/* ============================================
   RESPONSIVE GENERAL (Tablets y Móviles)
   ============================================ */
@media (max-width: 980px) {
  .mt-why__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mt-how__steps { grid-template-columns: repeat(2, 1fr); }
  .mt-hero { min-height: auto !important; padding: 6rem 1.25rem 4rem !important; }
  .mt-hero__subtitle { max-width: 100%; }
}

@media (max-width: 768px) {
  .mt-services, .mt-why, .mt-how, .mt-quote, .mt-faq { padding: 4rem 1.25rem; }
}

@media (max-width: 640px) {
  .mt-form { grid-template-columns: 1fr; }
  .mt-how__steps { grid-template-columns: 1fr; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.mt-testimonials { padding: 6rem 1.5rem; background: var(--mt-dark); }
.mt-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}
.mt-testimonial-card {
  background: var(--mt-dark-2);
  border-radius: var(--mt-radius);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(0, 194, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mt-testimonial-card__stars { color: #FFB800; font-size: 1.25rem; margin-bottom: 1rem; letter-spacing: 2px;}
.mt-testimonial-card__text { color: var(--mt-text); font-style: italic; line-height: 1.6; margin-bottom: 1.5rem; font-size: 1rem; }
.mt-testimonial-card__author { font-weight: 700; color: var(--mt-white); font-size: 0.95rem; font-family: var(--mt-font-body);}

/* Ajuste responsive para móvil */
@media (max-width: 768px) {
  .mt-testimonials { padding: 4rem 1.25rem; }
}

/* ============================================
   PHYSICAL SHOP (Cali Tint)
   ============================================ */
.mt-shop { padding: 6rem 1.5rem; background: var(--mt-dark); }
.mt-shop__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.mt-shop__title {
  font-family: var(--mt-font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mt-white);
  margin: 0 0 1rem;
  line-height: 1.05;
}
.mt-shop__title span { color: var(--mt-accent); } /* Para resaltar "Cali Tint" */
.mt-shop__text {
  color: var(--mt-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.mt-shop__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.mt-shop__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--mt-text);
}
.mt-shop__info-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--mt-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}
.mt-shop__info-item strong {
  display: block;
  color: var(--mt-white);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.mt-shop__map {
  border-radius: var(--mt-radius);
  overflow: hidden;
  box-shadow: var(--mt-shadow);
  aspect-ratio: 4 / 3;
  background: var(--mt-dark-2);
}
.mt-shop__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: invert(90%) hue-rotate(180deg) contrast(1.2); /* Modo oscuro */
}

@media (max-width: 980px) {
  .mt-shop__grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .mt-shop { padding: 4rem 1.25rem; }
}

/* ============================================
   PAGE HERO (Encabezado para páginas internas)
   ============================================ */
.mt-page-hero {
  padding: 10rem 1.5rem 5rem; /* Top padding para compensar el header sticky */
  background: var(--mt-dark);
  text-align: center;
  border-bottom: 1px solid rgba(0, 194, 255, 0.15);
}
.mt-page-hero__title {
  font-family: var(--mt-font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mt-white);
  margin: 0 0 1rem;
}
.mt-page-hero__subtitle {
  color: var(--mt-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   SERVICE DETAIL SECTION (Filas alternas)
   ============================================ */
.mt-service-detail {
  padding: 5rem 1.5rem;
  background: var(--mt-dark);
}
.mt-service-detail--alt {
  background: var(--mt-dark-2); /* Fondo gris oscuro para alternar */
}
.mt-service-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
/* Invertir el orden visual en las filas pares */
.mt-service-detail__grid--reverse .mt-service-detail__image {
  order: 2;
}
.mt-service-detail__grid--reverse .mt-service-detail__content {
  order: 1;
}
.mt-service-detail__image {
  border-radius: var(--mt-radius);
  overflow: hidden;
  box-shadow: var(--mt-shadow);
  aspect-ratio: 4 / 3;
}
.mt-service-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mt-service-detail__title {
  font-family: var(--mt-font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mt-white);
  margin: 0 0 1rem;
}
.mt-service-detail__text {
  color: var(--mt-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.mt-service-detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.mt-service-detail__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--mt-text);
  font-size: 0.95rem;
}
.mt-service-detail__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mt-accent);
  font-weight: bold;
}

/* Responsive para móvil */
@media (max-width: 980px) {
  .mt-service-detail__grid,
  .mt-service-detail__grid--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mt-service-detail__grid--reverse .mt-service-detail__image { order: 1; }
  .mt-service-detail__grid--reverse .mt-service-detail__content { order: 2; }
}
@media (max-width: 768px) {
  .mt-page-hero { padding: 8rem 1.25rem 4rem; }
  .mt-service-detail { padding: 4rem 1.25rem; }
}

/* ============================================
   GALLERY PAGE (Efecto Masonry real)
   ============================================ */
.mt-gallery-section {
  padding: 5rem 1.5rem;
  background: var(--mt-dark);
}

.mt-gallery {
  /* Cambiamos de Grid a Columnas */
  column-count: 3;
  column-gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mt-gallery__item {
  position: relative;
  border-radius: var(--mt-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--mt-shadow);
  background-color: #000; /* Fondo por si la imagen tarda en cargar */
  
  /* Evita que un elemento se corte entre dos columnas */
  break-inside: avoid;
  margin-bottom: 1.5rem;
  width: 100%;
  
  /* Animación inicial */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Las fotos mantienen su proporción natural o rectangular */
.mt-gallery__item:not(.mt-gallery__item--video) {
  aspect-ratio: 4 / 3;
}

/* Los videos mantienen su proporción vertical */
.mt-gallery__item--video {
  aspect-ratio: 9 / 16; 
}

.mt-gallery__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mt-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

/* Efecto Hover Foto */
.mt-gallery__item:hover img {
  transform: scale(1.08);
}

.mt-gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 16, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mt-gallery__item:hover .mt-gallery__overlay {
  opacity: 1;
}
.mt-gallery__overlay svg {
  width: 40px;
  height: 40px;
  stroke: var(--mt-white);
  stroke-width: 2;
  fill: none;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}
.mt-gallery__item:hover .mt-gallery__overlay svg {
  transform: translateY(0);
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA VIDEOS
   ============================================ */
.mt-gallery__item--video img {
  filter: brightness(0.8); 
  transition: filter 0.3s ease;
}
.mt-gallery__item--video:hover img {
  filter: brightness(1);
}
.mt-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 53, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: transform 0.2s ease;
  z-index: 2;
}
.mt-gallery__item--video:hover .mt-video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}
.mt-video-play-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 4px;
}
.mt-gallery__item--video.is-playing img,
.mt-gallery__item--video.is-playing .mt-video-play-btn {
  display: none;
}
.mt-gallery__item--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .mt-gallery { column-count: 2; }
}
@media (max-width: 640px) {
  .mt-gallery { column-count: 1; }
  .mt-gallery-section { padding: 4rem 1.25rem; }
}

/* ============================================
   LIGHTBOX (Modal para ver foto completa)
   ============================================ */
.mt-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 16, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}
.mt-lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}
.mt-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.mt-lightbox.is-active img {
  transform: scale(1);
}
.mt-lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: 0;
  color: var(--mt-white);
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s;
}
.mt-lightbox__close:hover { transform: scale(1.1); }
.mt-lightbox__close svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 2; }


/* ============================================
   CONTACT PAGE
   ============================================ */
.mt-contact-section {
  padding: 6rem 1.5rem;
  background: var(--mt-dark);
}

.mt-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr; /* Info / Form / Mapa */
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

/* --- Bloque de Información --- */
.mt-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mt-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.mt-contact-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--mt-accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 4px;
}

.mt-contact-item__content strong {
  display: block;
  color: var(--mt-white);
  font-family: var(--mt-font-body);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.mt-contact-item__content a,
.mt-contact-item__content p {
  color: var(--mt-text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  margin: 0;
  line-height: 1.5;
}
.mt-contact-item__content a:hover {
  color: var(--mt-accent);
}

/* --- Formulario (Reutiliza los estilos de .mt-quote) --- */
.mt-contact-form-wrapper {
  background: var(--mt-dark-2);
  padding: 2.5rem;
  border-radius: var(--mt-radius);
  border: 1px solid rgba(0, 194, 255, 0.15);
}

.mt-contact-form-wrapper .mt-form {
  margin: 0; /* Quitar margen auto del formulario original */
}

.mt-contact-form-wrapper .mt-form label {
  color: var(--mt-white);
}

/* --- Mapa --- */
.mt-contact-map {
  border-radius: var(--mt-radius);
  overflow: hidden;
  box-shadow: var(--mt-shadow);
  aspect-ratio: 4 / 5; /* Más vertical para acompañar las columnas */
  background: var(--mt-dark-2);
}
.mt-contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) contrast(1.2);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .mt-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mt-contact-map {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .mt-contact-section { padding: 4rem 1.25rem; }
  .mt-contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .mt-contact-form-wrapper { padding: 1.5rem; }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.mt-about-story {
  padding: 6rem 1.5rem;
  background: var(--mt-dark);
}
.mt-about-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.mt-about-story__image {
  border-radius: var(--mt-radius);
  overflow: hidden;
  box-shadow: var(--mt-shadow);
  aspect-ratio: 4 / 3;
}
.mt-about-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mt-about-story__content h2 {
  font-family: var(--mt-font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mt-white);
  margin: 0 0 1.5rem;
  line-height: 1.05;
}
.mt-about-story__content h2 span { color: var(--mt-accent); }
.mt-about-story__content p {
  color: var(--mt-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Valores / Pilares */
.mt-about-values {
  padding: 6rem 1.5rem;
  background: var(--mt-dark-2);
}
.mt-about-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}
.mt-value-card {
  background: var(--mt-dark);
  padding: 2.5rem 2rem;
  border-radius: var(--mt-radius);
  border-bottom: 3px solid var(--mt-accent);
  text-align: center;
}
.mt-value-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 255, 0.1);
  border-radius: 50%;
  color: var(--mt-accent);
}
.mt-value-card__icon svg {
  width: 28px; height: 28px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.mt-value-card h3 {
  font-family: var(--mt-font-head);
  font-size: 1.3rem;
  color: var(--mt-white);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.mt-value-card p {
  color: var(--mt-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Banner Final */
.mt-about-cta {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, rgba(11, 12, 16, 0.9) 0%, rgba(31, 40, 51, 0.9) 100%), url('https://nuevo.mobile-tinting.com/wp-content/uploads/2026/10/calitint8.jpg') center / cover no-repeat;
  text-align: center;
}
.mt-about-cta h2 {
  font-family: var(--mt-font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--mt-white);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.mt-about-cta p {
  color: var(--mt-text);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 980px) {
  .mt-about-story__grid { grid-template-columns: 1fr; gap: 3rem; }
  .mt-about-values__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .mt-about-story, .mt-about-values, .mt-about-cta { padding: 4rem 1.25rem; }
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.mt-brands {
  padding: 4rem 1.5rem;
  background: var(--mt-dark); /* Fondo oscuro */
  border-top: 1px solid rgba(0, 194, 255, 0.1);
  border-bottom: 1px solid rgba(0, 194, 255, 0.1);
}

.mt-brands__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem 5rem; /* Espaciado entre logos */
  max-width: 1000px;
  margin: 2rem auto 0;
}

.mt-brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mt-brand-item img {
  max-width: 160px; /* Tamaño máximo del logo */
  max-height: 60px;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Filtro para que todos se vean uniformes y elegantes */
  filter: grayscale(100%) brightness(200%) opacity(0.6);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Efecto al pasar el mouse */
.mt-brand-item:hover img {
  filter: grayscale(0%) brightness(100%) opacity(1);
  transform: scale(1.05);
}

/* En móvil, ajustamos un poco los tamaños */
@media (max-width: 768px) {
  .mt-brands { padding: 3rem 1.25rem; }
  .mt-brands__grid { gap: 2rem 3rem; }
  .mt-brand-item img { max-width: 120px; max-height: 45px; }
}

/* ============================================
   VIDEO SHORTS - GALERÍA
   ============================================ */
.mt-gallery__item--video {
  position: relative;
  aspect-ratio: 9 / 16; /* Proporción vertical para Shorts */
  background-color: #000;
}

.mt-gallery__item--video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Las miniaturas de YouTube suelen ser de baja calidad, este filtro las suaviza un poco */
  filter: brightness(0.8); 
  transition: filter 0.3s ease;
}

.mt-gallery__item--video:hover img {
  filter: brightness(1);
}

.mt-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 53, 0.9); /* Color CTA naranja */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: none; /* El clic lo maneja el contenedor padre */
  transition: transform 0.2s ease;
}

.mt-gallery__item--video:hover .mt-video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.mt-video-play-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 4px; /* Centrado óptico del triángulo */
}

/* Si el iframe ya se ha cargado, ocultamos la miniatura y el botón */
.mt-gallery__item--video.is-playing img,
.mt-gallery__item--video.is-playing .mt-video-play-btn {
  display: none;
}

.mt-gallery__item--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   BOTONES DEL HERO: WHATSAPP Y LLAMADA
   ============================================ */

/* Botón de WhatsApp (Verde oficial) */
.mt-btn--whatsapp {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border: 0 !important;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}
.mt-btn--whatsapp:hover {
  background: #1EBE57 !important;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

/* Botón de Llamada (Blanco sólido) */
.mt-btn--call {
  background: #FFFFFF !important;
  color: #0B0C10 !important;
  border: 0 !important;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}
.mt-btn--call:hover {
  background: #E5E7EB !important; /* Gris muy claro al pasar el mouse */
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.25);
}

/* Ajustes específicos para Móvil */
@media (max-width: 768px) {
  .mt-hero__actions {
    flex-direction: column; /* Apila los botones uno encima del otro */
    width: 100%;
    gap: 0.75rem;
  }
  
  .mt-hero__actions .mt-btn {
    padding: 12px 20px !important; /* Hace el botón más delgado */
    font-size: 0.85rem; /* Letra un poco más pequeña */
    width: 100%; /* Ocupa todo el ancho disponible */
    justify-content: center;
  }

  .mt-hero__actions .mt-btn svg {
    width: 18px; /* Ícono un poco más pequeño en móvil */
    height: 18px;
  }
}