/* ============================================================
   TRANSVANS TURISMO VIP — Hoja de estilos global
   Sitio estático optimizado para SEO y rendimiento
   ============================================================ */

/* --- RESET BÁSICO --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

/* --- UTILIDADES --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- COLORES CORPORATIVOS --- */
:root {
  --color-primary: #0d0d0d;
  --color-accent: #ffb91c;
  --color-accent-hover: #e5a300;
  --color-text: #1a1a1a;
  --color-text-light: #555555;
  --color-white: #ffffff;
  --color-bg-light: #f7f7f7;
  --color-bg-dark: #0d0d0d;
  --color-border: #e0e0e0;
  --color-success: #25d366;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* --- TIPOGRAFÍA --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* --- BOTONES --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-primary);
}

.btn-whatsapp {
  background-color: var(--color-success);
  color: var(--color-white);
  border-color: var(--color-success);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background-color: #1ebe5b;
  border-color: #1ebe5b;
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar__brand {
  font-weight: 700;
}

.top-bar__brand strong {
  color: var(--color-accent);
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.top-bar__contact a {
  color: var(--color-white);
  font-weight: 600;
}

.top-bar__contact a:hover {
  color: var(--color-accent);
}

.top-bar__hours {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ============================================================
   HEADER / NAVEGACIÓN PRINCIPAL
   ============================================================ */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.site-header__logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* --- NAV --- */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}

.main-nav__list a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.main-nav__list a:hover,
.main-nav__list a:focus-visible,
.main-nav__list a.active {
  color: var(--color-accent);
  background-color: rgba(255, 185, 28, 0.08);
}

/* --- DROPDOWN --- */
.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: "▾";
  margin-left: 0.3rem;
  font-size: 0.7rem;
  vertical-align: middle;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0.25rem 0 0 0;
  z-index: 1001;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown li {
  margin: 0;
}

.dropdown a {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
  display: block;
}

.dropdown a:hover {
  background-color: rgba(255, 185, 28, 0.08);
}

/* --- BOTÓN HEADER --- */
.header-cta {
  margin-left: 1rem;
}

/* --- MENÚ MÓVIL --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all var(--transition-base);
  border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__content {
  flex: 1 1 400px;
}

.hero__content h1 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  margin-bottom: 1.5rem;
}

.hero__content h1 strong {
  color: var(--color-accent);
}

.hero__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 560px;
}

.hero__image {
  flex: 1 1 350px;
  text-align: center;
}

.hero__image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero__cta {
  margin-top: 1.5rem;
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section {
  padding: 3rem 0;
}

.section--light {
  background-color: var(--color-bg-light);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section__title {
  text-align: center;
  margin-bottom: 2rem;
}

.section__title strong {
  color: var(--color-accent);
}

.section__subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 640px;
  margin: -1rem auto 2rem auto;
}

/* --- GRID DE SERVICIOS --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 100%;
  height: 180px;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.service-card__link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- BENEFICIOS --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  text-align: center;
  padding: 1.25rem;
}

.benefit-item__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.benefit-item h3 {
  font-size: 1.1rem;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  cursor: default;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* --- CTA BANNER --- */
.cta-banner {
  background-color: var(--color-accent);
  padding: 2.5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-primary);
}

.cta-banner p {
  color: var(--color-primary);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 1.25rem auto;
}

/* --- PROCESO DE COTIZACIÓN --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: process;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 1.25rem;
}

.process-step::before {
  counter-increment: process;
  content: counter(process);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  margin: 0 auto 0.75rem auto;
}

.process-step h3 {
  font-size: 1rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* --- FLOTA --- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.fleet-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.fleet-card__capacity {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.fleet-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* --- BREADCRUMB --- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--color-border);
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb li:last-child {
  color: var(--color-primary);
  font-weight: 600;
}

/* --- PENDIENTE CONTENIDO --- */
.pending-content {
  background: #fffbe6;
  border: 2px dashed var(--color-accent);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.pending-content h2 {
  color: #8a6d00;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  background-color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--color-white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.site-footer h3 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.site-footer h3 strong {
  color: var(--color-accent);
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  fill: var(--color-accent);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.site-footer__bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ============================================================
   PÁGINA DE CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 185, 28, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #fffbe6;
  border-radius: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero__content p {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 2px solid var(--color-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem;
  }

  .main-nav__list a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav__list li:last-child > a {
    border-bottom: none;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    margin: 0;
    padding-left: 1rem;
    display: none;
  }

  .has-dropdown.open-mobile .dropdown {
    display: block;
  }

  .has-dropdown > a::after {
    float: right;
  }

  .header-cta {
    margin-left: 0;
  }

  .top-bar__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    padding: 0.4rem 0;
  }

  .site-header__logo img {
    height: 40px;
  }

  .hero {
    padding: 2rem 0;
  }

  .section {
    padding: 2rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   LIGHTBOX / MODAL DE IMAGEN
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.lightbox.open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox__close:hover {
  color: var(--color-accent);
}

/* --- FOCUS VISIBLE --- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
