/* ===========================================================
   TRANSPORTES J E.I.R.L. - DISEÑO PROFESIONAL
   MODO CLARO / OSCURO 2025
=========================================================== */

/* ---------- VARIABLES DE TEMA ---------- */
:root[data-theme="light"] {
  --rojo: #93191b;
  --rojo-oscuro: #700e10;
  --gris: #f7f7f7;
  --oscuro: #222;
  --blanco: #fff;
  --texto: #222;
  --texto-suave: #555;
  --sombra: 0 4px 12px rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] {
  --rojo: #c62828;
  --rojo-oscuro: #9e1b1b;
  --gris: #2b2b2b;
  --oscuro: #111;
  --blanco: #fff;
  --texto: #f5f5f5;
  --texto-suave: #bdbdbd;
  --sombra: 0 4px 15px rgba(0, 0, 0, 0.4);
  background-color: var(--oscuro);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  background: var(--blanco);
  color: var(--texto);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* ---------- CONTENEDOR ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--texto);
}

p {
  line-height: 1.6;
  color: var(--texto-suave);
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ===========================================================
   HEADER / NAVBAR
=========================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--blanco);
  box-shadow: var(--sombra);
  z-index: 100;
  transition: background 0.4s ease;
}

[data-theme="dark"] .navbar {
  background: var(--oscuro);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo img {
  height: 55px;
  border-radius: 6px;
}

.menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.menu a {
  color: var(--texto);
  font-weight: 600;
  font-size: 1.6rem;
  position: relative;
  padding: 4px 0;
}

.menu a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--rojo);
  transition: width 0.3s ease;
}

.menu a:hover {
  color: var(--rojo);
}

.menu a:hover::after {
  width: 100%;
}

.btn-ws {
  background: #25d366;
  color: var(--blanco);
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.4rem;
}

.btn-ws:hover {
  transform: scale(1.05);
}

/* ---------- BOTÓN DE MODO OSCURO ---------- */
#theme-toggle {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 1000;
  background: var(--gris);
  color: var(--texto);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

#theme-toggle:hover {
  transform: scale(1.1);
  background: var(--rojo);
  color: var(--blanco);
}

.icon-moon, .icon-sun { display: none; }

[data-theme="dark"] .icon-sun { display: inline; }
[data-theme="light"] .icon-moon { display: inline; }

/* ===========================================================
   HERO
=========================================================== */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 90vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--blanco);
  background: rgba(0, 0, 0, 0.5);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  width: 85%;
  max-width: 700px;
}

.hero-overlay h1 {
  font-size: 3.6rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero-overlay p {
  font-size: 1.8rem;
  color: #e0e0e0;
}

.swiper-pagination-bullet {
  background: var(--texto);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--rojo);
  opacity: 1;
}

/* ===========================================================
   NOSOTROS
=========================================================== */
.nosotros {
  padding: 8rem 0;
  background: var(--gris);
  transition: background 0.4s ease;
}

[data-theme="dark"] .nosotros {
  background: #1c1c1c;
}

.nosotros-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
}

.nosotros-texto {
  flex: 1 1 400px;
}

.nosotros-texto h2 {
  color: var(--rojo);
  text-align: left;
  margin-bottom: 1.5rem;
}

.nosotros-img {
  flex: 1 1 400px;
}

.nosotros-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--sombra);
}

/* ===========================================================
   SERVICIOS
=========================================================== */
.servicios {
  padding: 8rem 0;
  text-align: center;
  background: var(--blanco);
  transition: background 0.4s ease;
}

[data-theme="dark"] .servicios {
  background: var(--oscuro);
}

.subtitulo {
  color: var(--texto-suave);
  font-size: 1.7rem;
  margin-bottom: 4rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.card {
  background: var(--blanco);
  border-radius: 14px;
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: all 0.3s ease;
}

[data-theme="dark"] .card {
  background: #2b2b2b;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.card h3 {
  color: var(--rojo);
  margin: 2rem 0 1rem;
  font-size: 1.9rem;
}

.card p {
  color: var(--texto-suave);
  max-width: 90%;
  margin: auto;
  padding-bottom: 2rem;
}

/* ===========================================================
   DOCUMENTOS
=========================================================== */
.documentos {
  background: var(--gris);
  padding: 8rem 0;
  text-align: center;
}

[data-theme="dark"] .documentos {
  background: #1e1e1e;
}

.documentos h2 {
  color: var(--rojo);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.documentos-subtitulo {
  color: var(--texto-suave);
  font-size: 1.7rem;
  margin-bottom: 4rem;
}

.mySwiperDocs {
  width: 100%;
  padding-bottom: 6rem;
}

.doc-card {
  background: var(--blanco);
  border-radius: 14px;
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .doc-card {
  background: #2b2b2b;
}

.doc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.pdf-frame {
  height: 320px;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
}

[data-theme="dark"] .pdf-frame {
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pdf-frame embed {
  width: 100%;
  height: 100%;
  border: none;
}

.doc-content {
  padding: 2rem;
}

.doc-content h3 {
  font-size: 1.6rem;
  color: var(--texto);
  min-height: 60px;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.btn-doc {
  background: var(--rojo);
  color: var(--blanco);
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-doc:hover {
  background: var(--rojo-oscuro);
  transform: translateY(-2px);
}

/* ===========================================================
   CONTACTO
=========================================================== */
.contacto {
  padding: 8rem 0;
  background: var(--gris);
  text-align: center;
}

[data-theme="dark"] .contacto {
  background: #0f0f0f;
}

.contacto h2 {
  color: var(--rojo);
  margin-bottom: 1rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-links a {
  background: var(--rojo);
  color: var(--blanco);
  padding: 1.2rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
}

.contact-links a:hover {
  background: var(--rojo-oscuro);
}

/* ===========================================================
   FOOTER
=========================================================== */
footer {
  background: var(--oscuro);
  color: var(--texto-suave);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1.4rem;
}

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    gap: 1rem;
  }
  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero, .hero img {
    height: 75vh;
  }
  .pdf-frame {
    height: 250px;
  }
}

/* =======================================================
   CONTADORES
======================================================= */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat .count {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--rojo);
}
.stat p {
  margin-top: 0.5rem;
  color: var(--texto-suave);
}

/* =======================================================
   GALERÍA
======================================================= */
.galeria {
  background: var(--gris);
  padding: 8rem 0;
  text-align: center;
}
.galeria img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--sombra);
  transition: transform 0.3s ease;
}
.galeria img:hover {
  transform: scale(1.05);
}

/* =======================================================
   MAPA
======================================================= */
.mapa {
  background: var(--blanco);
  padding: 8rem 0;
  text-align: center;
}
.mapa h2 {
  color: var(--rojo);
  margin-bottom: 2rem;
}
.mapa iframe {
  border-radius: 10px;
  box-shadow: var(--sombra);
}

/* =======================================================
   BOTÓN WHATSAPP
======================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 28px; }

/* =======================================================
   NAVBAR SHRINK
======================================================= */
.nav-shrink {
  background: var(--oscuro);
  padding: 0.4rem 0 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* =======================================================
   FOOTER CON LIBRO DE RECLAMACIONES
======================================================= */
footer {
  background: var(--oscuro);
  color: var(--texto-suave);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.libro-reclamaciones {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--rojo);
  color: var(--blanco);
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.libro-reclamaciones:hover {
  background: var(--rojo-oscuro);
  transform: translateY(-2px);
}

.libro-reclamaciones img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

/* =======================================================
   FORMULARIO LIBRO DE RECLAMACIONES
======================================================= */
body.reclamaciones-body {
  font-family: "Montserrat", sans-serif;
  background: var(--gris);
  color: var(--texto);
  padding: 4rem 1rem;
}

.form-reclamaciones {
  max-width: 800px;
  margin: auto;
  background: var(--blanco);
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: var(--sombra);
  transition: background 0.3s ease;
}

[data-theme="dark"] .form-reclamaciones {
  background: #2b2b2b;
}

.form-reclamaciones h1 {
  text-align: center;
  color: var(--rojo);
  margin-bottom: 1rem;
}

.form-reclamaciones p.intro {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--texto-suave);
}

form fieldset {
  border: 2px solid var(--rojo);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  transition: border-color 0.3s ease;
}

form fieldset legend {
  color: var(--rojo);
  font-weight: 700;
  padding: 0 1rem;
  font-size: 1.6rem;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--texto);
}

input,
select,
textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: var(--gris);
  color: var(--texto);
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #1b1b1b;
  border: 1px solid #444;
  color: var(--blanco);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--rojo);
  box-shadow: 0 0 5px rgba(147, 25, 27, 0.3);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background: var(--rojo);
  color: var(--blanco);
  padding: 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  width: 100%;
}

.btn-submit:hover {
  background: var(--rojo-oscuro);
  transform: translateY(-2px);
}

.nota {
  font-size: 1.4rem;
  color: var(--texto-suave);
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .form-reclamaciones {
    padding: 2rem 1.5rem;
  }
  form fieldset {
    padding: 1.5rem;
  }
}
