:root {
    --faxvin-blue: #0056b3;
    --dark-blue: #003d7a;
    --light-gray: #f8f9fa;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: #333;
}

/* Hero con imagen de fondo LOCAL */
.hero {
    height: 80vh;
    /* Aplicamos el gradiente superior y la ruta a tu carpeta de imágenes local */
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
                url('../img/carro.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    width: 90%;
    justify-content: space-between;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #333;
    margin: 0;
}

.hero-text p {
    font-size: 1.8rem;
    color: #777;
    margin-top: 10px;
}

/* Caja de Búsqueda */
.search-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 400px;
    overflow: hidden;
}

.search-tabs {
    display: flex;
    background: #f8f9fa;
}

.tab {
    flex: 1;
    padding: 15px;
    color: var(--dark-blue);
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    background: #f8f9fa;
}

.tab.active {
    background: white;
    color: var(--dark-blue);
    border-bottom: 3px solid var(--faxvin-blue);
}

/* Pestaña de la derecha azul como la imagen */
.tab:first-child {
    background: var(--dark-blue);
    color: white;
}

.search-body {
    padding: 30px;
}

.input-group {
    display: flex;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

#vin-input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 1rem;
}

#btn-search {
    background: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
}

.help-link {
    display: block;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--faxvin-blue);
    text-decoration: none;
}

/* Estilos del Loader */
#loader-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--faxvin-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* REPORTE */
.report-container {
    max-width: 1000px;
    margin: -50px auto 40px; /* Sube un poco para solapar el hero */
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.report-header {
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.report-header h1 { font-size: 32px; color: #222; }

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Cards del Reporte */
.checklist-card, .specs-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 25px;
}

.checklist-card h2, .specs-card h2 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Lista de Seguridad con Círculo Verde */
#history-list { padding: 0; margin: 0; list-style: none; }
#history-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

#history-list li::before {
    content: "✓";
    display: inline-block;
    width: 22px; height: 22px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    margin-right: 15px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Tabla */
#specs-table { width: 100%; border-collapse: collapse; }
#specs-table td {
    padding: 12px 5px;
    border-bottom: 1px solid #f1f1f1;
}

.label { font-weight: bold; color: #666; width: 45%; }

.btn-back {
    margin-top: 30px;
    background: var(--dark-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* SECCIÓN INFO (Basada en imagen proporcionada) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.info-card {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    border-left: 5px solid var(--faxvin-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-card h3 { color: var(--dark-blue); font-size: 1.4rem; margin-top: 0; }
.info-card p { line-height: 1.6; color: #555; }
.text-link { color: var(--faxvin-blue); text-decoration: none; font-weight: bold; }

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 12px 25px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e; /* Verde más oscuro original de WhatsApp */
    animation: saltito 0.4s ease infinite alternate; /* Inicia la animación de salto */
}

@keyframes saltito {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes saltito {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px); /* El botón sube 10 píxeles */
    }
}

.whatsapp-float img { width: 25px; margin-right: 10px; }

/* Ocultar info al ver reporte */
#report-container:not([style*="display: none"]) ~ #info-section {
    display: none;
}

@media (max-width: 900px) {
    .hero-content, .grid-layout, .info-grid { grid-template-columns: 1fr; flex-direction: column; }
    .hero { height: auto; padding: 50px 0; }
    .hero-text h1 { font-size: 2.5rem; }
}

/* ESTILOS SECCIÓN PASOS */
.steps-section {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

.steps-container h2 {
    color: var(--dark-blue);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.steps-subtitle {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.step-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    flex: 1;
    text-align: left;
    min-height: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    color: #28a745; /* Verde de la imagen */
    font-weight: bold;
    font-size: 1.1rem;
}

.step-header i {
    color: #ccc;
    font-size: 1.2rem;
}

.step-card h3 {
    color: var(--dark-blue);
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.step-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-arrow {
    color: #ddd;
    font-size: 1.5rem;
}

.btn-start-search {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-start-search:hover {
    background-color: #0056b3;
}

/* Responsivo para móviles */
@media (max-width: 900px) {
    .steps-grid {
        flex-direction: column;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .step-card {
        width: 100%;
        min-height: auto;
    }
}

/* Ocultar pasos al ver el reporte (Igual que con la info) */
#report-container:not([style*="display: none"]) ~ #steps-section {
    display: none;
}

/* ESTILOS SECCIÓN ESTADÍSTICAS */
.support-stats-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.support-stats-section h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 10px;
}

.stats-subtitle {
    color: #555;
    margin-bottom: 40px;
}

.stats-blue-card {
    background-color: #e6f2ff; /* Azul muy claro de la imagen */
    border-radius: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 50px 20px;
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
}

.stat-item {
    flex: 1;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--faxvin-blue);
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .stats-blue-card {
        flex-direction: column;
        padding: 30px;
    }
    .stat-item {
        margin-bottom: 30px;
    }
    .stat-item:last-child {
        margin-bottom: 0;
    }
}

/* Ocultar al ver el reporte */
#report-container:not([style*="display: none"]) ~ #support-stats {
    display: none;
}

/* ESTILOS SECCIÓN RECURSOS */
.resources-section {
    padding: 60px 20px;
    background-color: #fcfcfc;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.resource-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-10px);
}

.card-image {
    position: relative;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-badge {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.icon-badge.orange { background-color: #0056b3; }
.icon-badge.brown { background-color: #0056b3; }

.card-body {
    padding: 40px 25px 25px;
}

.card-body h3 {
    font-size: 1.4rem;
    color: #111;
    margin-bottom: 15px;
}

.card-body p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Ocultar al ver reporte */
#report-container:not([style*="display: none"]) ~ #resources-section {
    display: none;
}

/* ESTILOS SECCIÓN LOGROS */
.achievements-section {
    background: url('https://www.faxvin.com/media/img/homepage/background_retina.webp') no-repeat center center;
    background-size: cover;
    position: relative;
    margin: 40px 0;
}

.achievements-overlay {
    background: linear-gradient(90deg, rgba(33, 121, 243, 0.85) 0%, rgba(0, 166, 255, 0.7) 100%);
    padding: 60px 20px;
}

.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.achievement-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px 20px;
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.achievement-card i {
    font-size: 2.5rem;
    color: #0056b3; /* Naranja corporativo */
}

.achievement-info {
    display: flex;
    flex-direction: column;
}

.ach-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: #111;
    line-height: 1;
}

.ach-text {
    font-size: 0.85rem;
    color: #555;
    margin-top: 5px;
    font-weight: 500;
}

/* Responsivo */
@media (max-width: 900px) {
    .achievements-container {
        justify-content: center;
    }
    .achievement-card {
        flex: none;
        width: 45%;
    }
}

@media (max-width: 600px) {
    .achievement-card {
        width: 100%;
    }
}

/* Ocultar al mostrar reporte */
#report-container:not([style*="display: none"]) ~ #achievements-section {
    display: none;
}

.btn-download {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    transition: background 0.3s;
}

.btn-download:hover {
    background-color: #218838;
}

/* ESTILOS SECCIÓN PARTNERS */
.partners-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
    border-top: 1px solid #eee;
}

.partners-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: #003366; /* Azul oscuro institucional */
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-logo {
    max-height: 40px;
    max-width: 150px;
    filter: grayscale(100%); /* Efecto blanco y negro de la imagen */
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .partners-logos {
        gap: 20px;
    }
    .partner-logo {
        max-height: 30px;
    }
}

/* Ocultar al ver reporte */
#report-container:not([style*="display: none"]) ~ #partners-section {
    display: none;
}

/* ESTILOS SECCIÓN QUÉ SON LAS PLACAS */
.about-plates-section {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.about-plates-section h2 {
    color: #334155; /* Color gris oscuro profesional */
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left; /* Alineación justificada o izquierda para lectura fluida */
}

.about-content p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-content strong {
    color: #1e293b;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 768px) {
    .about-plates-section h2 {
        font-size: 2rem;
    }
    .about-content p {
        font-size: 1rem;
    }
}

/* Ocultar al ver reporte */
#report-container:not([style*="display: none"]) ~ #about-plates {
    display: none;
}

/* ESTILOS SECCIÓN CONFIANZA */
.trust-section {
    padding: 80px 20px;
    background-color: #fff;
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
}

.trust-column {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.trust-column h3 {
    color: #1e293b;
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.trust-list {
    list-style: none; /* Quitamos las viñetas por defecto */
    padding: 0;
    text-align: left;
}

.trust-list li {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

/* Recreamos los puntos/viñetas personalizados */
.trust-list li::before {
    content: "•";
    color: #4b5563;
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .trust-grid {
        flex-direction: column;
        align-items: center;
    }
    .trust-column {
        width: 100%;
        margin-bottom: 50px;
    }
}

/* Ocultar al ver reporte */
#report-container:not([style*="display: none"]) ~ #trust-section {
    display: none;
}

.input-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espacio entre el input, el select y el botón */
}

.full-width-input, .full-width-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

.full-width-select {
    background-color: #fff;
    cursor: pointer;
}

.main-search-btn {
    background-color: #003366; /* Azul oscuro como el de tus secciones */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.main-search-btn:hover {
    background-color: #002244;
}

.info-section {
    padding: 60px 20px;
    background-color: #ffffff; /* O el color de fondo que uses */
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #334155;
    margin-bottom: 30px;
    font-weight: 700;
}

.info-text {
    max-width: 900px;
    margin: 0 auto 20px auto;
    line-height: 1.8;
    color: #475569;
    font-size: 1.1rem;
    text-align: justify;
}

.info-list {
    text-align: left;
    max-width: 800px;
    margin: 20px auto;
    list-style: none;
}

.info-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.info-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e; /* El verde de tus checkmarks */
    font-weight: bold;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 180px; /* Ajusta según tu diseño */
    object-fit: cover; /* Esto evita que la imagen se estire */
    display: block;
}