/* ==========================================================================
   VECTISS RENTAL — RESPONSIVE MASTER
   Breakpoints: 1200 · 1024 · 900 · 768 · 640 · 580 · 480 · 430 · 375 · 320
   Cubre: cards · catálogo · destacados · single · wizard · datepicker
   ========================================================================== */

/* --------------------------------------------------------------------------
   Prevención de scroll horizontal en todos los contenedores del plugin
   -------------------------------------------------------------------------- */
body .vr-scope,
body .vr-destacados-wrap,
body .vr-sv-main,
body .vectiss-wizard {
	max-width: 100%;
	overflow-x: hidden;
}

/* Eliminar hover-lift en dispositivos táctiles (no tienen hover real) */
@media (hover: none) {
	body .vectiss-tarjeta-vehiculo:hover,
	body .vr-scope .vectiss-tarjeta-vehiculo:hover,
	body .vr-destacados-wrap .vectiss-tarjeta-vehiculo:hover {
		transform: none !important;
		box-shadow: var(--vr-sombra) !important;
	}
	body .vectiss-tarjeta-vehiculo:hover .vectiss-tarjeta-foto img,
	body .vr-scope .vectiss-tarjeta-vehiculo:hover .vectiss-tarjeta-foto img {
		transform: none !important;
	}
	body .vectiss-btn:hover { transform: none !important; }
}

/* ==========================================================================
   ≤ 1200 px — escritorio compacto / pantallas wide reducidas
   ========================================================================== */
@media (max-width: 1200px) {
	/* Grid general: baja a 3 columnas fluidas */
	body .vr-scope .vectiss-grid-vehiculos,
	body .vr-destacados-wrap .vectiss-grid-vehiculos,
	body .vectiss-grid-vehiculos {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
		gap: 28px !important;
	}

	body .vr-sv-main { padding: 40px 24px 80px !important; }
}

/* ==========================================================================
   ≤ 1024 px — iPad Pro / tablet landscape
   ========================================================================== */
@media (max-width: 1024px) {
	/* Grid: 2 columnas en wizard, 2-3 en catálogo */
	#vectiss-lista-vehiculos.vectiss-grid-vehiculos {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 20px !important;
	}
	body .vr-scope .vectiss-grid-vehiculos,
	body .vr-destacados-wrap .vectiss-grid-vehiculos {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
		gap: 24px !important;
	}

	/* Catálogo */
	.vr-filtros-barra { padding: 14px 18px; }
	.vr-filtro-grupo  { min-width: 160px; }
	.vr-buscar-grupo  { min-width: 200px; }

	/* Wizard */
	.vectiss-seccion-paso { padding: 36px; }
	.vr-hero              { margin: -36px -36px 30px; padding: 44px 36px 40px; }
	.vr-hero-titulo       { font-size: 32px; }
	.vectiss-titulo-paso  { font-size: 24px; }
	.vectiss-opciones-contenedor { grid-template-columns: 1fr 290px; }

	/* Single vehicle */
	body .vr-sv-main {
		padding: 32px 20px 72px !important;
	}
	body .vr-sv-main .vr-sv-hero {
		gap: 32px !important;
	}
	body .vr-sv-main .vr-sv-foto,
	body .vr-sv-main .vr-sv-foto-placeholder {
		height: 340px !important;
	}
}

/* ==========================================================================
   ≤ 900 px — tablet portrait / iPhone landscape
   ========================================================================== */
@media (max-width: 900px) {
	/* Wizard opciones */
	.vectiss-opciones-contenedor { grid-template-columns: 1fr 260px; }

	/* Cards: ajustar foto y padding para tablet */
	body .vr-scope .vectiss-tarjeta-foto,
	body .vr-destacados-wrap .vectiss-tarjeta-foto,
	body .vectiss-tarjeta-foto { height: 220px !important; }

	body .vr-scope .vectiss-tarjeta-cuerpo,
	body .vr-destacados-wrap .vectiss-tarjeta-cuerpo,
	body .vectiss-tarjeta-cuerpo { padding: 22px 22px 0 !important; }

	body .vr-scope .vr-card-footer,
	body .vr-destacados-wrap .vr-card-footer,
	body .vr-card-footer { padding: 14px 22px 20px !important; }

	/* Single vehicle: apilar hero */
	body .vr-sv-main .vr-sv-hero {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
	}
	body .vr-sv-main .vr-sv-foto,
	body .vr-sv-main .vr-sv-foto-placeholder { height: 280px !important; }
	body .vr-sv-main .vr-sv-titulo           { font-size: 26px !important; }
	body .vr-sv-main .vr-sv-precio-monto     { font-size: 32px !important; }
}

/* ==========================================================================
   ≤ 768 px — tablet retrato / teléfonos grandes
   ========================================================================== */
@media (max-width: 768px) {
	/* ── Catálogo: filtros apilados ── */
	.vr-catalogo-header   { flex-direction: column; align-items: flex-start; gap: 10px; }
	.vr-modo-toggle .vr-modo-label { display: none; }         /* ocultar texto, mantener icono */
	.vr-modo-toggle       { padding: 8px 12px; border-radius: 50%; }

	.vr-filtros-barra     { padding: 12px 14px; gap: 8px; flex-direction: column; }
	.vr-filtro-grupo      { min-width: unset; width: 100%; flex: none; }
	.vr-buscar-grupo      { min-width: unset; }
	.vr-btn-limpiar       { width: 100%; text-align: center; padding: 10px; }

	/* Filtros input/select: full-width y mayor touch target */
	body .vr-scope .vr-filtro-input,
	body .vr-scope .vr-filtro-select {
		font-size:  16px !important;   /* evitar zoom iOS */
		min-height: 46px !important;
		padding:    12px 14px !important;
	}

	/* Grid: 2 columnas en tablet portrait */
	body .vr-scope .vectiss-grid-vehiculos,
	body .vr-destacados-wrap .vectiss-grid-vehiculos,
	body .vectiss-grid-vehiculos {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 16px !important;
	}
	/* Destacados: 2 columnas */
	.vr-destacados-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

	/* Cards más compactas */
	body .vr-scope .vectiss-tarjeta-foto,
	body .vr-destacados-wrap .vectiss-tarjeta-foto,
	body .vectiss-tarjeta-foto { height: 200px !important; }

	body .vr-scope .vectiss-tarjeta-cuerpo,
	body .vr-destacados-wrap .vectiss-tarjeta-cuerpo,
	body .vectiss-tarjeta-cuerpo { padding: 18px 20px 0 !important; gap: 12px !important; }

	body .vr-scope .vectiss-tarjeta-nombre,
	body .vr-destacados-wrap .vectiss-tarjeta-nombre,
	body .vectiss-tarjeta-nombre { font-size: 17px !important; }

	body .vr-scope .vr-card-footer,
	body .vr-destacados-wrap .vr-card-footer,
	body .vr-card-footer { padding: 12px 20px 16px !important; gap: 8px !important; }

	/* Botones tarjeta: toque mínimo 44 px */
	body .vr-scope .vr-card-footer-btn,
	body .vr-destacados-wrap .vr-card-footer-btn,
	body .vr-card-footer-btn { min-height: 44px !important; }

	body .vr-scope .vr-card-footer-btn-ver,
	body .vr-destacados-wrap .vr-card-footer-btn-ver,
	body .vr-card-footer-btn-ver { min-height: 44px !important; padding: 10px 12px !important; }

	/* ── Wizard ── */
	.vectiss-paso-label          { display: none; }
	.vectiss-paso-num            { width: 36px; height: 36px; font-size: 12px; }
	.vectiss-pasos-lista::before { top: 17px; }
	.vectiss-pasos-nav           { margin-bottom: 28px; }

	.vectiss-seccion-paso { padding: 28px 24px; }
	.vectiss-titulo-paso  { font-size: 22px; margin-bottom: 24px; }
	.vr-hero              { margin: -28px -24px 28px; padding: 40px 24px 36px; }
	.vr-hero-titulo       { font-size: 28px; }
	.vr-hero-sub          { font-size: 14px; margin-bottom: 20px; }
	.vr-hero-stat strong  { font-size: 18px; }

	.vectiss-fila-dos-col        { grid-template-columns: 1fr; gap: 16px; }
	.vectiss-opciones-contenedor { grid-template-columns: 1fr; }
	.vectiss-caja-cotizacion     { position: static; margin-top: 20px; }
	.vectiss-preview-grid        { grid-template-columns: 1fr; }

	/* Evitar zoom iOS en inputs del wizard */
	.vectiss-input,
	.vectiss-select { font-size: 16px !important; min-height: 48px !important; }

	/* Touch targets */
	.vectiss-btn   { min-height: 48px; }
	.vr-dp-trigger { min-height: 48px; }

	/* Acciones */
	.vectiss-acciones-paso   { flex-direction: column-reverse; gap: 10px; }
	.vectiss-acciones-dobles { flex-direction: column-reverse; }
	.vectiss-btn             { width: 100%; justify-content: center; }
	.vectiss-btn-atras       { width: auto !important; }

	.vr-resumen-acciones { flex-direction: column; align-items: stretch; gap: 10px; }
	.vr-acciones-pago    { flex-direction: column; }
	.vr-btn-wsp,
	#vectiss-btn-confirmar-pagar { width: 100%; justify-content: center; }
	.vectiss-btn-cancelar        { align-self: flex-start; width: auto !important; }

	/* ── Single vehicle ── */
	body .vr-sv-main .vr-sv-seccion { padding: 24px 20px !important; }
	body .vr-sv-main .vr-sv-cta-footer {
		flex-direction: column !important;
		text-align: center !important;
		padding: 28px 24px !important;
	}
	body .vr-sv-main .vr-sv-cta-footer .vectiss-btn {
		width: 100% !important;
		justify-content: center !important;
	}
	body .vr-sv-main .vr-sv-cta-texto h3 { font-size: 22px !important; }
}

/* ==========================================================================
   ≤ 640 px — teléfonos medianos (Android promedio)
   ========================================================================== */
@media (max-width: 640px) {
	/* Grid: 1 columna desde aquí para todos los grids */
	body .vr-scope .vectiss-grid-vehiculos,
	body .vr-destacados-wrap .vectiss-grid-vehiculos,
	body .vectiss-grid-vehiculos {
		grid-template-columns: 1fr !important;
		gap: 14px !important;
	}
	.vr-destacados-grid { grid-template-columns: 1fr !important; gap: 14px !important; }

	/* Cards a full width: foto más alta para impacto visual */
	body .vr-scope .vectiss-tarjeta-foto,
	body .vr-destacados-wrap .vectiss-tarjeta-foto,
	body .vectiss-tarjeta-foto { height: 230px !important; }

	body .vr-scope .vectiss-tarjeta-cuerpo,
	body .vr-destacados-wrap .vectiss-tarjeta-cuerpo,
	body .vectiss-tarjeta-cuerpo { padding: 20px 20px 0 !important; }

	body .vr-scope .vr-card-footer,
	body .vr-destacados-wrap .vr-card-footer,
	body .vr-card-footer { padding: 14px 20px 18px !important; }

	/* Footer de tarjeta: si no caben los dos botones, apilar */
	body .vr-scope .vr-card-footer-btn-ver,
	body .vr-destacados-wrap .vr-card-footer-btn-ver,
	body .vr-card-footer-btn-ver {
		font-size: 12px !important;
		padding: 10px 10px !important;
	}

	/* Destacados footer */
	.vr-destacados-footer { margin-top: 24px; }

	/* Single vehicle */
	body .vr-sv-main { padding: 20px 16px 56px !important; }
	body .vr-sv-main .vr-sv-foto,
	body .vr-sv-main .vr-sv-foto-placeholder { height: 240px !important; }
	body .vr-sv-main .vr-sv-titulo  { font-size: 22px !important; }
	body .vr-sv-main .vr-sv-precio-monto { font-size: 28px !important; }
	body .vr-sv-main .vr-sv-specs-grid  { grid-template-columns: repeat(2, 1fr) !important; }
	body .vr-sv-main .vr-sv-tarifas-grid { grid-template-columns: repeat(2, 1fr) !important; }
	body .vr-sv-main .vr-sv-seccion     { padding: 20px 18px !important; border-radius: 14px !important; }
	body .vr-sv-main .vr-sv-seccion--faq { padding: 20px 14px !important; }
}

/* ==========================================================================
   ≤ 580 px — móvil estándar
   ========================================================================== */
@media (max-width: 580px) {
	/* Wizard */
	#vectiss-lista-vehiculos.vectiss-grid-vehiculos {
		grid-template-columns: 1fr !important;
		gap: 14px !important;
	}

	.vectiss-wizard        { padding: 12px 12px 44px; }
	.vectiss-seccion-paso  { padding: 20px 16px; border-radius: 16px; }
	.vectiss-confirmacion  { padding: 32px 16px; }

	.vectiss-paso-num            { width: 32px; height: 32px; font-size: 11px; }
	.vectiss-pasos-lista::before { top: 15px; }

	.vr-hero        { margin: -20px -16px 22px; padding: 30px 16px 26px; }
	.vr-hero-titulo { font-size: 22px; }
	.vr-hero-sub    { font-size: 13px; }
	.vr-hero-stats  { display: none; }
	.vr-hero-badge  { font-size: 11px; padding: 4px 12px; }

	.vr-chip, .vr-chip-fecha, .vr-chip-sep { font-size: 12px; padding: 4px 10px; }
	.vectiss-chip-busqueda { padding: 10px 12px; gap: 6px; }

	.vectiss-btn-buscar-wiz { min-width: unset; padding: 14px 24px; }

	/* Opciones */
	.vectiss-opcion-item label,
	.vectiss-check-extra     { padding: 14px 14px; gap: 10px; }
	.vr-opcion-icono         { width: 34px; height: 34px; }
	.vectiss-opcion-precio   { font-size: 14px; }

	/* Caja cotización */
	.vectiss-caja-cotizacion > .vectiss-subtitulo:first-child { padding: 14px 16px; }
	#vectiss-detalle-cotizacion { padding: 12px 16px 0; }
	#vectiss-total-cotizacion   { padding: 6px 16px 16px; }
	.vectiss-precio-total       { font-size: 24px; }

	/* Confirmación */
	.vectiss-icono-estado  { width: 64px; height: 64px; font-size: 28px; }
	.vectiss-caja-detalle  { padding: 18px 16px; }
	.vr-tabla-confirmacion th { width: 100px; font-size: 10px; }
	.vr-tabla-confirmacion td { font-size: 13px; }

	/* Preview */
	.vectiss-preview-seccion { padding: 14px 16px; }
	.vr-total-preview strong { font-size: 18px; }

	/* Banner preselección */
	.vr-banner-presel-cambiar { width: 100%; text-align: center; min-height: 44px; }
}

/* ==========================================================================
   ≤ 480 px — teléfonos medianos-pequeños
   ========================================================================== */
@media (max-width: 480px) {
	/* Cards: foto un poco menos alta para dejar cuerpo visible */
	body .vr-scope .vectiss-tarjeta-foto,
	body .vr-destacados-wrap .vectiss-tarjeta-foto,
	body .vectiss-tarjeta-foto { height: 200px !important; }

	body .vr-scope .vectiss-tarjeta-cuerpo,
	body .vr-destacados-wrap .vectiss-tarjeta-cuerpo,
	body .vectiss-tarjeta-cuerpo { padding: 16px 18px 0 !important; gap: 10px !important; }

	body .vr-scope .vectiss-tarjeta-nombre,
	body .vr-destacados-wrap .vectiss-tarjeta-nombre,
	body .vectiss-tarjeta-nombre { font-size: 17px !important; }

	/* Specs chips: más compactos */
	body .vr-scope .vectiss-tarjeta-specs li,
	body .vr-destacados-wrap .vectiss-tarjeta-specs li,
	body .vectiss-tarjeta-specs li { font-size: 11.5px !important; padding: 4px 10px !important; }

	/* Footer botones: apilar si la pantalla es estrecha */
	body .vr-scope .vr-card-footer,
	body .vr-destacados-wrap .vr-card-footer,
	body .vr-card-footer {
		flex-wrap: wrap !important;
		padding: 12px 16px 16px !important;
	}
	body .vr-scope .vr-card-footer-btn-ver,
	body .vr-destacados-wrap .vr-card-footer-btn-ver,
	body .vr-card-footer-btn-ver {
		flex: 1 !important;
		min-width: 110px !important;
	}

	/* Single vehicle */
	body .vr-sv-main .vr-sv-foto,
	body .vr-sv-main .vr-sv-foto-placeholder { height: 210px !important; }
	body .vr-sv-main .vr-sv-titulo  { font-size: 20px !important; }
	body .vr-sv-main .vr-sv-precio-monto { font-size: 26px !important; }
	body .vr-sv-main .vr-sv-seccion { padding: 18px 14px !important; border-radius: 12px !important; }
	body .vr-sv-main .vr-faq-btn { padding: 14px 14px !important; }
	body .vr-sv-main .vr-faq-respuesta-inner { padding: 14px 14px 16px 14px !important; }
}

/* ==========================================================================
   ≤ 430 px — iPhone 14 Pro Max / Android large
   ========================================================================== */
@media (max-width: 430px) {
	/* Wizard */
	.vectiss-wizard       { padding: 10px 10px 40px; }
	.vectiss-seccion-paso { padding: 18px 14px; border-radius: 14px; }
	.vectiss-titulo-paso  { font-size: 20px; margin-bottom: 20px; }

	.vectiss-paso-num            { width: 30px; height: 30px; font-size: 10px; }
	.vectiss-pasos-lista::before { top: 14px; }
	.vectiss-pasos-nav           { margin-bottom: 22px; }

	.vr-hero        { padding: 26px 14px 22px; }
	.vr-hero-titulo { font-size: 20px; }

	.vectiss-input,
	.vectiss-select      { padding: 14px 14px !important; }
	.vectiss-btn         { min-height: 50px; padding: 14px 20px; font-size: 14px; }
	.vectiss-btn-grande  { padding: 15px 24px; font-size: 15px; }
	.vectiss-form        { gap: 18px; }
	.vectiss-label       { font-size: 12px; }
	.vectiss-acciones-paso { margin-top: 24px; padding-top: 20px; }

	.vectiss-opcion-item label,
	.vectiss-check-extra   { padding: 12px 12px; gap: 8px; }
	.vr-opcion-precio-col  { min-width: 60px; }
	.vectiss-opcion-precio { font-size: 13px; }

	.vr-resumen-acciones { gap: 8px; }

	/* Cards */
	body .vr-scope .vectiss-tarjeta-foto,
	body .vr-destacados-wrap .vectiss-tarjeta-foto,
	body .vectiss-tarjeta-foto { height: 190px !important; }

	/* Catálogo header */
	.vr-catalogo-header { gap: 8px; }
}

/* ==========================================================================
   ≤ 375 px — iPhone SE / Android pequeño
   ========================================================================== */
@media (max-width: 375px) {
	/* Wizard */
	.vectiss-wizard       { padding: 8px 8px 36px; }
	.vectiss-seccion-paso { padding: 16px 12px; border-radius: 12px; }
	.vr-hero        { margin: -16px -12px 20px; padding: 24px 12px 20px; }
	.vr-hero-titulo { font-size: 19px; line-height: 1.2; }

	.vectiss-btn { padding: 13px 16px; font-size: 13.5px; }

	.vectiss-paso-num            { width: 28px; height: 28px; font-size: 10px; }
	.vectiss-pasos-lista::before { top: 13px; }

	.vectiss-caja-detalle { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.vr-tabla-confirmacion { font-size: 12px; }
	.vr-tabla-confirmacion th { width: 80px; }
	.vectiss-precio-total { font-size: 22px; }

	/* Cards: foto más compacta */
	body .vr-scope .vectiss-tarjeta-foto,
	body .vr-destacados-wrap .vectiss-tarjeta-foto,
	body .vectiss-tarjeta-foto { height: 175px !important; }

	body .vr-scope .vectiss-tarjeta-cuerpo,
	body .vr-destacados-wrap .vectiss-tarjeta-cuerpo,
	body .vectiss-tarjeta-cuerpo { padding: 14px 14px 0 !important; gap: 8px !important; }

	body .vr-scope .vectiss-tarjeta-nombre,
	body .vr-destacados-wrap .vectiss-tarjeta-nombre,
	body .vectiss-tarjeta-nombre { font-size: 15px !important; }

	body .vr-scope .vr-card-footer,
	body .vr-destacados-wrap .vr-card-footer,
	body .vr-card-footer { padding: 10px 14px 14px !important; }

	/* Single vehicle */
	body .vr-sv-main { padding: 16px 12px 48px !important; }
	body .vr-sv-main .vr-sv-specs-grid  { grid-template-columns: 1fr !important; }
	body .vr-sv-main .vr-sv-tarifas-grid { grid-template-columns: 1fr !important; }
	body .vr-sv-main .vr-sv-foto,
	body .vr-sv-main .vr-sv-foto-placeholder { height: 185px !important; }
}

/* ==========================================================================
   ≤ 320 px — teléfonos muy pequeños (Galaxy A02 / iPhone 4)
   ========================================================================== */
@media (max-width: 320px) {
	.vectiss-wizard       { padding: 6px 6px 32px; }
	.vectiss-seccion-paso { padding: 14px 10px; }

	.vectiss-btn { font-size: 13px; padding: 12px 14px; }

	body .vr-scope .vectiss-tarjeta-foto,
	body .vr-destacados-wrap .vectiss-tarjeta-foto,
	body .vectiss-tarjeta-foto { height: 160px !important; }

	body .vr-scope .vectiss-tarjeta-specs li,
	body .vr-destacados-wrap .vectiss-tarjeta-specs li,
	body .vectiss-tarjeta-specs li { font-size: 11px !important; padding: 3px 8px !important; }

	body .vr-sv-main { padding: 12px 10px 40px !important; }
}

/* ==========================================================================
   DATEPICKER — overrides móvil
   ========================================================================== */
@media (max-width: 560px) {
	.vr-dp-popup {
		border-radius: 20px !important;
		box-shadow: 0 24px 64px rgba(0,0,0,.28) !important;
	}
	.vr-dp-footer { padding: 12px 14px !important; }
	.vr-dp-ok     { min-height: 46px !important; font-size: 15px !important; }
	.vr-dp-d      { min-height: 38px !important; }
	.vr-dp-mi     { min-height: 38px !important; min-width: 38px !important; }
}
@media (max-width: 375px) {
	.vr-dp-d  { min-height: 34px !important; font-size: 12px !important; }
	.vr-dp-hr { font-size: 15px !important; }
	.vr-dp-mi { min-height: 34px !important; min-width: 34px !important; font-size: 13px !important; }
}
