/* ============================================================
   ToledoTaxi El Hamdi — styles.css
   Fuente: Inter (body) + Syne (headings) via Google Fonts
   Paleta: oscura noche con acento amarillo taxi
   ============================================================ */

/* --- Variables semánticas --- */
:root {
  /* Acento amarillo taxi */
  --primary:        #f5b800;
  --primary-dark:   #d79f00;

  /* Superficies (navy oscuro) */
  --bg-base:        #0b1224;
  --bg-panel:       rgba(15, 23, 42, 0.50);
  --bg-panel-dark:  rgba(15, 23, 42, 0.75);
  --bg-tab-btn:     rgba(15, 23, 42, 0.35);
  --bg-tab-active:  rgba(15, 23, 42, 0.75);
  --bg-ruta-card:   rgba(15, 23, 42, 0.35);
  --bg-nav-btn:     rgba(255, 255, 255, 0.10);
  --bg-contact-btn: rgba(255, 255, 255, 0.15);
  --bg-body-text:   #0f172a;

  /* Bordes */
  --panel-border:   rgba(255, 255, 255, 0.20);
  --border-light:   rgba(255, 255, 255, 0.15);
  --border-btn:     rgba(255, 255, 255, 0.30);
  --border-lang:    rgba(249, 250, 251, 0.60);

  /* Texto */
  --text-light:     #f9fafb;
  --text-white:     #ffffff;
  --text-soft:      #f3f4f6;
  --text-muted:     #e5e7eb;
  --text-subtle:    #cbd5e1;
  --text-faint:     #94a3b8;

  /* Misc */
  --radius:         12px;
  --shadow:         0 16px 40px rgba(10, 14, 28, 0.30);

  /* Tipografía */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  /* --font-display: 'Syne', system-ui, sans-serif; */
  --font-display: 'Barlow', system-ui, sans-serif;
}

/* --- Reset base --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--bg-body-text);
}

/* ============================================================
   HERO — fondo imagen completo
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-base) url('toledotaxi-bg.png') center 28% / cover no-repeat;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
}

/* --- Language switch --- */
.lang-switch {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.lang-switch button {
  border: 1px solid var(--border-lang);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #111827;
}
.lang-switch button:hover {
  background: rgba(245, 184, 0, 0.85);
  color: #111827;
}
.lang-switch button:focus-visible {
  outline: 3px solid rgba(245, 184, 0, 0.6);
  outline-offset: 2px;
}

/* --- Hero content --- */
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: center;
}

/* ============================================================
   PANELES con overlay glass
   ============================================================ */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.badge-panel {
  text-align: center;
  padding: 0.6rem 1.2rem;
}
.badge-panel p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* --- Título sin panel --- */
.hero-title {
  margin: 0.8rem 1rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-white);
  text-align: center;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   PANEL INFO (servicios / tarifas)
   ============================================================ */
.info-panel h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
}
.info-panel p {
  margin: 0 0 0.6rem;
  line-height: 1.55;
  font-size: 1.02rem;
}
.info-panel ul {
  margin: 0.6rem 0 0;
  padding-left: 1.3rem;
  line-height: 1.6;
}
.info-panel li { margin-bottom: 0.4rem; }
.info-panel li strong { color: var(--primary); }
.info-panel li em  { color: var(--text-subtle); font-size: 0.95rem; }

/* Altura mínima del panel de pestañas */
.tab-panel { min-height: 380px; }
@media (max-width: 768px) { .tab-panel { min-height: 420px; } }
@media (max-width: 480px) { .tab-panel { min-height: 460px; } }

/* ============================================================
   PANEL CONTACTO
   ============================================================ */
.contact-panel h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
}
.contact-panel p {
  margin: 0 0 0.8rem;
  line-height: 1.5;
}
.contact-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--bg-contact-btn);
  border: 1px solid var(--border-btn);
  color: var(--text-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.contact-btn:hover {
  background: rgba(245, 184, 0, 0.9);
  color: #111827;
  transform: translateY(-1px);
}
.contact-btn:focus-visible {
  outline: 3px solid rgba(245, 184, 0, 0.6);
  outline-offset: 2px;
}
.micro {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   PANEL PAGO
   ============================================================ */
.payment-panel { text-align: center; }
.payment-panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
}
.payment-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.payment-item img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  object-fit: contain;
  background: white;
  padding: 4px;
}
.payment-item span      { font-size: 0.9rem; font-weight: 600; color: var(--text-soft); }
.payment-item-locked    { opacity: 0.35; filter: grayscale(1); }
.payment-item-locked span { color: var(--text-faint); }
.payment-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-subtle);
  font-style: italic;
  text-align: center;
}

/* ============================================================
   FOOTER semitransparente dentro del hero
   ============================================================ */
.footer {
  text-align: center;
  font-size: 1rem;
  color: var(--text-soft);
  padding: 1.8rem 1rem 2rem;
  background: var(--bg-panel-dark);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}
.footer-item {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}
.footer-icon          { flex-shrink: 0; user-select: none; }
.footer-item strong   { color: var(--text-white); font-weight: 700; font-size: 1.1rem; user-select: text; cursor: text; }
.footer-item.footer-link { text-decoration: none; transition: color 0.15s ease; }
.footer-item.footer-link:hover { color: var(--primary); }
.footer a:focus-visible,
.footer-item.footer-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.footer p { margin: 0.8rem 0 0; color: var(--text-subtle); font-size: 0.9rem; }

/* ============================================================
   IDIOMA — ocultar contenido del otro idioma
   ============================================================ */
body.lang-es .en { display: none; }
body.lang-en .es { display: none; }

/* ============================================================
   RESPONSIVE — móviles
   ============================================================ */
@media (max-width: 768px) {
  .hero { background-position: 60% center; }
  .hero-content { padding: 5rem 1.2rem 1.5rem; gap: 1rem; }
  .hero-title   { font-size: 2rem; margin: 0.6rem 0.5rem; }
  .contact-buttons { grid-template-columns: 1fr; }
  .footer       { padding: 1.5rem 1rem; }
  .footer-links { gap: 1rem; flex-direction: column; align-items: center; }
  .footer-item  { font-size: 1rem; }
  .footer-item strong { font-size: 1.05rem; }
  .payment-methods { gap: 1rem; }
  .payment-item img  { width: 40px; height: 27px; }
  .payment-item span { font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .lang-switch  { top: 1rem; right: 1rem; }
  .hero         { background-position: 65% 35%; }
  .hero-title   { font-size: 1.75rem; }
  .panel        { padding: 1.2rem; }
  .hero-content { padding: 4.5rem 1rem 1rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content { max-width: 800px; }
  .contact-buttons { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   RUTAS — carrusel
   ============================================================ */
.ruta-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-ruta-card);
  border: 1px solid var(--panel-border);
}
.ruta-img {
  position: relative;
  width: 100%;
  height: 280px;
  flex-shrink: 0;
}
.ruta-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,10,20,0.82) 0%, rgba(5,10,20,0.25) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.2rem;
}
.ruta-titulo {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.ruta-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.ruta-extras {
  padding: 0.8rem 1.2rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ruta-credito {
  font-size: 0.66rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.28);
  margin: 0.1rem 0 0;
}
.ruta-credito a {
  color: rgba(255, 255, 255, 0.36);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.ruta-tag   { display: inline-block; font-size: 0.88rem; color: var(--text-subtle); margin-right: 0.6rem; }
.ruta-extra { font-size: 0.88rem; color: var(--text-subtle); line-height: 1.4; }
.ruta-nota  { color: var(--primary); font-style: italic; }
.ruta-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
}
.ruta-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 1.2rem 0.9rem;
  border-top: 1px solid var(--panel-border);
}
.ruta-nav-btn {
  background: var(--bg-nav-btn);
  border: 1px solid var(--panel-border);
  color: var(--text-white);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.ruta-nav-btn:hover {
  background: var(--primary);
  color: #111827;
  border-color: var(--primary);
}
.ruta-counter      { font-size: 0.88rem; color: var(--text-subtle); min-width: 40px; text-align: center; }
.ruta-nav-pause    { opacity: 0.75; transform: scale(0.9); }
.ruta-nav-pause:hover { opacity: 1; transform: scale(1); }

@media (max-width: 480px) {
  .ruta-img  { height: 220px; }
  .ruta-btns { grid-template-columns: 1fr; }
  .ruta-titulo { font-size: 1.1rem; }
}

/* ============================================================
   TABS
   ============================================================ */
.tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-bottom: none;
}
.tab-btn {
  padding: 0.75rem 0.5rem;
  background: var(--bg-tab-btn);
  border: none;
  border-right: 1px solid var(--panel-border);
  color: rgba(249, 250, 251, 0.6);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
  text-align: center;
}
.tab-btn:last-child { border-right: none; }
.tab-btn:hover:not([aria-selected="true"]) {
  background: rgba(245, 184, 0, 0.15);
  color: var(--primary);
}
.tab-btn[aria-selected="true"] {
  background: var(--bg-tab-active);
  color: var(--text-white);
  cursor: default;
  pointer-events: none;
}
.tab-panel {
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: none !important;
}

.mobile-break { display: none; }
@media (max-width: 480px) { .mobile-break { display: block; } }