
/* --- ESTILOS PLUGIN SEARCH-PATENTES --- */
.spc-search-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.spc-search-container h3 {
    display: none; /* Lo ocultamos porque ya usamos el título del Hero */
}

#spc-search-form {
    display: flex;
    flex-direction: row; /* Siempre en fila */
    gap: 0; /* Quitamos el gap para que parezcan unidos */
    align-items: center;
    justify-content: center;
    width: 100%;
}

.spc-form-group {
    width: 100%;
}

/* Ocultar label visualmente pero mantenerlo para accesibilidad */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

#spc-search-form input[type="text"] {
    width: 100%;
    padding: 14px 15px; /* Más compacto en móvil */
    font-size: 16px;
    font-weight: 600;
    color: inherit;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 50px 0 0 50px; /* Bordes rectos a la derecha para empalmar */
    border-right: none;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    font-family: inherit;
}

#spc-search-form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: none;
    font-weight: 400;
}

#spc-search-form input[type="text"]:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(216, 200, 94, 0.2);
}

.spc-submit-btn {
    background-color: var(--color-primary);
    color: var(--color-black); /* Contraste fuerte */
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    border: 2px solid var(--color-primary);
    border-radius: 0 50px 50px 0; /* Bordes rectos a la izquierda para empalmar */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    font-family: inherit;
    white-space: nowrap;
}

/* En móviles mostramos el ícono y ocultamos el texto */
@media (max-width: 599px) {
    .spc-btn-text { display: none !important; }
    .spc-btn-icon { display: block !important; }
    .spc-submit-btn { padding: 14px 25px; } /* Más ancho para el ícono */
}

/* En escritorio mostramos el texto y ocultamos el ícono */
@media (min-width: 600px) {
    #spc-search-form input[type="text"] {
        padding: 18px 25px;
        font-size: 18px;
    }
    .spc-submit-btn {
        padding: 18px 40px;
    }
}

.spc-submit-btn:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.spc-submit-btn:disabled {
    background-color: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- RESULTADOS DE BÚSQUEDA (TARJETAS DE PRODUCTOS) --- */
#spc-search-results {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.spc-results-title {
    color: var(--color-primary);
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(216, 200, 94, 0.3);
    padding-bottom: 10px;
}

/* Tabla del Vehículo */
.spc-vehicle-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.spc-table-label {
    padding: 12px 0;
    color: inherit;
    font-weight: 700;
    width: 30%;
    border-bottom: 1px solid var(--color-primary);
}

.spc-table-value {
    padding: 12px 0;
    color: inherit;
    border-bottom: 1px solid var(--color-primary);
}

/* Cuadrícula de Productos */
.spc-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Tarjeta Individual */
.spc-product-card {
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spc-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.spc-product-img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 6px;
    background: #000000;
    padding: 10px;
}

.spc-product-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.4;
}

.spc-product-title a {
    color: inherit;
    text-decoration: none;
}

.spc-product-title a:hover {
    color: var(--color-primary);
}

.spc-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.spc-product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0; /* Quitamos margin-bottom porque ahora va al lado del botón */
}

.spc-product-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.spc-product-btn:hover {
    background: var(--color-primary);
    color: var(--color-black);
}

/* Mensajes */
.spc-error-msg {
    color: #ff4a4a;
    background: rgba(255, 74, 74, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 74, 74, 0.3);
}

.spc-notice-msg {
    color: var(--color-primary);
    background: rgba(216, 200, 94, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(216, 200, 94, 0.3);
}

