/* Contenedor general */
#perseo-app {
    max-width: 900px;
    margin: 0 auto;
}

/* Formulario */
#perseo-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#vehicle-input {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 16px;
}

#perseo-form button {
    padding: 12px 20px;
    border: none;
    background: #3995f0;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;	
}

#perseo-form button:hover {
    background: #333;
}

/* Estado */
#perseo-status {
    margin-bottom: 10px;
    font-weight: 500;
}

/* Resultados */
#perseo-results {
    display: grid;
    gap: 20px;
    margin-top: 10px;
}

/* Tarjeta */
.perseo-card {
    background: #ffffff;
    padding: 18px 22px;
    border-radius: 6px;	
    border: 1px solid #e2e2e2;
}

/* Layout interno con imagen + contenido */
.perseo-card-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Layout principal tarjeta */
.perseo-card-inner {
    display: flex;
    align-items: center;   /* ← centrado vertical */
}

/* Imagen */
/* Separación manual compatible con Divi */
.perseo-image {
    flex: 0 0 260px; /* ancho fijo elegante */
}

.perseo-image img {
    width: 100%;
    height: auto;     /* mantiene proporción real */
    display: block;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Contenido */
.perseo-content h3 {
    margin: 0 0 6px;
}

.perseo-content p {
    letter-spacing: 0.05em;
}

/* Bloque central */
.perseo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.perseo-description {
    font-size: 15px;
    color: #0073e6;
    margin-bottom: 12px;
    line-height: 1.4;
}

.perseo-technical {
    font-size: 12px;
    color: #232323;
    margin-top: 4px;
    margin-bottom: 30px;
    line-height: 1.2;
}

/* Precio alineado a la derecha */
.perseo-price {
    margin-left: auto;
    font-size: 28px;
    font-weight: 700;
}

/* Botones + precio en la parte inferior */
.perseo-buttons {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.perseo-btn-primary {
    background: #3995f0;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.perseo-btn-secondary {
    background: #FFCD00;
    color: #333;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

/* ============================= */
/* Wrapper opciones modelo       */
/* ============================= */

.perseo-model-options-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .perseo-model-options-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .perseo-model-options-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ============================= */
/* Botones visuales              */
/* ============================= */

.perseo-model-option {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: #ffffff;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    font-weight: 500;
}

.perseo-model-option:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

   /* Loading overlay */

#perseo-app {
    position: relative;
}

.perseo-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(2px);
}

.perseo-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e5e5;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: perseo-spin 0.8s linear infinite;
}

@keyframes perseo-spin {
    to { transform: rotate(360deg); }
}

/* Responsive: en móvil imagen arriba y texto debajo */
@media (max-width: 768px) {
    #perseo-form {
        flex-direction: column;
    }

    .perseo-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .perseo-card-inner > *:not(:last-child) {
        margin-right: 0;
        margin-bottom: 15px;
    }

}

/* ============================= */
/* Buscador Multi Level  */
/* ============================= */

/* === WRAPPER === */
#ml-wrapper {
  position: relative;
}

/* === SELECTORES === */
.ml-selectors {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.ml-selectors select,
.ml-selectors button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: all 0.2s ease;
}

#ml-search {
  background: #111;
  color: white;
  border: none;
}

#ml-search:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#ml-reset {
  background: #eee;
}

/* === LOADER OVERLAY === */
.ml-loader {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: opacity 0.3s ease;
}

.ml-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* === SPINNER === */
.ml-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #eee;
  border-top: 4px solid #111;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === RESULTS GRID === */
.ml-results {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.ml-results.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === CARD === */
.ml-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ml-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.ml-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.ml-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.ml-card p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #555;
}

.ml-card strong {
  display: block;
  margin-bottom: 10px;
}

.ml-card a {
  display: inline-block;
  padding: 8px 14px;
  background: #111;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}