@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   PANTALLA DE CARGA
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
}

.page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    animation: loaderFadeIn 0.5s ease-out both;
}

@keyframes loaderFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo + anillo giratorio */
.loader-logo-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 18px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.45));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.06); }
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    border-top-color: #facc15;
    border-right-color: #facc15;
    animation: spinRing 1s linear infinite;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

/* Nombre de marca */
.loader-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.5px;
    line-height: 1;
}

.loader-movi   { color: #F5C518; }
.loader-seguro { color: #1A6EBD; }

/* Tagline */
.loader-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #94a3b8;
    letter-spacing: 0.04em;
    margin: 0;
}

/* Barra de progreso */
.loader-bar-wrap {
    width: 180px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #facc15, #fbbf24);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
    transition: width 0.12s linear;
}


:root {
    --primary: #facc15;
    --primary-dark: #eab308;
    --primary-light: #fef08a;
    --secondary: #1e293b;
    --accent: #2563eb;
    --background: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgba(234, 179, 8, 0.1), 0 2px 4px -2px rgba(234, 179, 8, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(234, 179, 8, 0.2), 0 4px 6px -4px rgba(234, 179, 8, 0.1);
    --shadow-yellow: 0 8px 24px rgba(250, 204, 21, 0.3);
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: var(--text-main);
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
}

.menu-toggle i {
    width: 28px;
    height: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.logo img {
    height: 95px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.logo-text {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-movi {
    color: #F5C518;
}

.logo-seguro {
    color: #1A6EBD;
}

.navegacion ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.navegacion a {
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

.navegacion a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.navegacion a:hover {
    color: var(--primary);
}

.navegacion a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.1) 100%), url('img/newhero.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 40px;
    color: var(--white);
    overflow: visible;
    
    /* Espacio a los lados y bordes redondeados */
    max-width: none;
    width: calc(100% - 32px);
    margin: 16px auto;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
    max-width: 650px;
    text-align: left;
}

.hero-left h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--white);
    text-shadow: none;
    text-transform: uppercase;
}

.hero-left h1 .highlight {
    color: #facc15;
}

.hero-left h1 .taxi-badge {
    background: #facc15;
    color: #000;
    font-size: 1.2rem;
    padding: 4px 12px;
    border-radius: 8px;
    vertical-align: middle;
    margin-left: 10px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 1px;
    display: inline-block;
    transform: skewX(-10deg);
}

.hero-left p {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    max-width: 500px;
    font-weight: 400;
}

.hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    padding: 4px 4px 4px 18px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-search-form:focus-within {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.hero-search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-weight: 400;
    color: #1e293b;
    background: transparent;
    padding: 7px 8px 7px 0;
    letter-spacing: 0.01em;
}

.hero-search-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.hero-search-form button {
    background: #1e293b;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-search-form button:hover {
    background: #334155;
    transform: scale(1.08);
}

.hero-search-form button:active {
    transform: scale(0.95);
    background: #0f172a;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    padding: 10px 18px 10px 10px;
    margin-bottom: 2rem;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-badge .badge-icon {
    background: #facc15;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(250, 204, 21, 0.4);
}

.hero-badge p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    font-weight: 400;
}

.hero-badge .highlight-text {
    color: #fde047;
    font-weight: 700;
}

.hero-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    transition: background 0.2s ease;
}

.hero-features .feature:hover {
    background: rgba(255, 255, 255, 0.17);
}

.hero-features .f-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(250, 204, 21, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #facc15;
    flex-shrink: 0;
}

.hero-features .f-text {
    display: flex;
    flex-direction: column;
}

.hero-features .f-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.hero-features .f-text span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 1px;
}

.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.phone-img {
    max-width: 350px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    position: relative;
    z-index: 2;
}

.floating-badges {
    position: absolute;
    left: 40px;
    top: 22%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 1;
}

.floating-badges::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    border-left: 2px dashed rgba(255,255,255,0.3);
    z-index: -1;
}

.f-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.f-badge::after {
    content: '';
    position: absolute;
    right: -60px;
    top: 50%;
    width: 50px;
    height: 2px;
    border-top: 2px dashed rgba(255,255,255,0.3);
    z-index: -1;
}

.f-badge .fb-icon {
    width: 50px;
    height: 50px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.f-badge .fb-text {
    font-size: 0.85rem;
    color: var(--white);
    line-height: 1.2;
    text-align: left;
}

.hero-bottom-banner {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    background: var(--white);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    width: calc(100% - 48px);
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10;
    box-sizing: border-box;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    position: relative;
}

.banner-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 1px;
    background: #e2e8f0;
}

.banner-item .b-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.banner-item .b-text strong {
    color: var(--text-main);
    font-size: 0.95rem;
}

.banner-item .b-text span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        padding-left: 32px;
        padding-right: 32px;
    }
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-right {
        margin-top: 40px;
        justify-content: center;
    }
    .floating-badges {
        display: none;
    }
    .hero-bottom-banner {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
        justify-content: center;
        position: relative;
        transform: none;
        bottom: auto;
        left: auto;
        width: 100%;
        margin-top: 60px;
        border-radius: 0;
    }
    .banner-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        width: calc(100% - 12px);
        margin: 6px auto;
        border-radius: 12px;
    }
    .hero-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-left h1 {
        font-size: 2.5rem;
    }
    .hero-search-form {
        flex-direction: column;
        padding: 10px;
        border-radius: 20px;
        gap: 10px;
        width: 100%;
    }
    .hero-search-form input {
        text-align: center;
        padding: 10px;
        width: 100%;
    }
    .hero-search-form button {
        width: 100%;
    }
}

/* Secciones con fondo diferenciado */
.bg-light {
    background-color: #f8fafc;
}

/* Sección: ¿Cómo usar? — fondo blanco puro */
#como-usar {
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

/* Sección: Aliados — fondo azul muy suave */
#servicios {
    background-color: #f0f6ff;
    border-top: 1px solid #dbeafe;
    border-bottom: 1px solid #dbeafe;
    padding: 80px 0;
}

/* Sección: FAQs — fondo gris cálido */
#faqs {
    background-color: #fafaf9;
    border-top: 1px solid #f1f0ee;
    border-bottom: 1px solid #f1f0ee;
}

/* Quita max-width de container para que los fondos lleguen a los bordes */
#como-usar,
#servicios,
#faqs {
    max-width: 100%;
    width: 100%;
}

/* Carrusel de Logos (Aliados) */
.logo-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background: transparent;
}

.logo-carousel-wrapper::before,
.logo-carousel-wrapper::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
    top: 0;
}

.logo-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f0f6ff 0%, transparent 100%);
}

.logo-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f0f6ff 0%, transparent 100%);
}

.logo-carousel-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
    align-items: center;
}


.logo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px; /* Ancho adecuado de cada slide */
    padding: 0 40px;
}

.logo-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo-slide img {
    max-height: 55px;
    max-width: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
}

.logo-slide img:hover {
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-240px * var(--logo-count, 5)));
    }
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 2rem;
}

.step-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #007AFF, #5AC8FA);
    transform: scaleY(0);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #c7d2fe;
}

.step-card:hover::before {
    transform: scaleY(1);
}

.step-number,
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 28px auto;
    transition: var(--transition);
    color: #fff;
}

/* Iconos individuales */
.step-card:nth-child(1) .service-icon {
    background: linear-gradient(145deg, #007AFF, #5856D6);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

.step-card:nth-child(2) .service-icon {
    background: linear-gradient(145deg, #34C759, #30D158);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.3);
}

.step-card:nth-child(3) .service-icon {
    background: linear-gradient(145deg, #FF9500, #FF6B00);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.3);
}

.step-card:nth-child(4) .service-icon {
    background: linear-gradient(145deg, #AF52DE, #5856D6);
    box-shadow: 0 6px 20px rgba(175, 82, 222, 0.3);
}

.service-icon i {
    width: 30px;
    height: 30px;
    stroke-width: 1.8;
}

.step-card:hover .service-icon {
    transform: scale(1.1);
}

.step-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-card p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Footer */
.footer-site {
    background-color: #0f172a;
    color: var(--white);
    padding: 100px 0 40px 0;
    margin-top: 100px;
    position: relative;
}

.footer-site .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 48px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column .logo img {
    height: 80px;
    width: auto;
}

.footer-column .logo-text {
    color: var(--white);
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-column p {
    color: #94a3b8;
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    font-size: 0.875rem;
    color: #64748b;
}

/* Resultados */
.search-results-container {
    padding-top: 120px;
    min-height: 80vh;
}

table {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
}

th {
    background: var(--primary);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f8fafc;
}

.no-results {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 4rem auto;
    color: var(--text-muted);
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 120px auto;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    text-align: left;
}

.form-container h3 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    text-align: center;
    width: 100%;
}

.form-container h3::after {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-container input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Alertas */
.alert {
    padding: 15px;
    margin: 20px auto;
    max-width: 500px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    animation: fadeInUp 0.5s ease-out;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Cómo funciona */
.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 3rem auto 0 auto;
    text-align: left;
}

.how-step {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--white);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.how-step:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.step-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--secondary);
    min-width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.step-info h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.step-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Preguntas frecuentes */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    user-select: none;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--accent);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background-color: #fff;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px 24px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Tablas (Desktop) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

th {
    background: #f8fafc;
    color: var(--text-main);
    font-weight: 600;
}

.conductor-foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.qr-foto {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.no-foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.simur-info {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.simur-info a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.simur-info a:hover {
    text-decoration: underline;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Diseño responsivo general */
@media (max-width: 768px) {
    .header {
        padding: 0 16px;
        height: 70px;
    }

    .logo img {
        height: 55px;
    }

    .logo-text {
        font-size: 1.35rem;
    }

    .menu-toggle {
        display: block;
    }

    .navegacion {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: block !important;
    }

    .navegacion.active {
        transform: translateY(0);
    }

    .navegacion ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
        margin: 10px auto;
        width: calc(100% - 16px);
        border-radius: 10px;
    }

    .hero-container {
        padding: 0 16px;
    }

    .hero-left h1 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .hero-left p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-radius: 16px;
        padding: 16px;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-badge .badge-icon {
        margin-right: 0;
    }

    .hero-features {
        flex-direction: column;
        gap: 8px;
    }

    .hero-features .feature {
        width: 100%;
        box-sizing: border-box;
    }

    .hero-search-form {
        width: 100%;
        box-sizing: border-box;
    }

    .container {
        padding: 40px 16px;
    }

    .footer-site {
        padding: 60px 0 30px 0;
        margin-top: 60px;
    }

    .footer-site .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 16px;
    }

    .footer-column {
        min-width: unset;
        width: 100%;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column a:hover {
        padding-left: 0;
    }

    .how-step {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px 16px;
    }

    .how-it-works {
        padding: 0;
    }

    h3 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .form-container {
        padding: 24px 16px;
        margin-top: 80px;
        margin-left: 12px;
        margin-right: 12px;
        width: calc(100% - 24px);
        box-sizing: border-box;
    }
    
    .search-results-container {
        padding-top: 90px;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .faq-grid {
        padding: 0 4px;
    }

    .faq-question {
        padding: 18px 16px;
        gap: 12px;
    }

    .faq-question span {
        font-size: 0.95rem;
        line-height: 1.4;
        text-align: left;
    }

    .faq-answer {
        padding: 0 16px;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 18px 16px;
    }

    /* Tablas en Móviles */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    table {
        min-width: 100%;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 0;
        background: var(--white);
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    td {
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        position: relative;
        padding: 1rem 1rem 1rem 40% !important;
        text-align: right !important;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        min-height: 50px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    td:last-child {
        border-bottom: 0 !important;
    }
    td:before {
        position: absolute;
        top: 50%;
        left: 1rem;
        transform: translateY(-50%);
        width: 35%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.85rem;
        text-align: left;
    }
    
    /* Etiquetas de Buscar */
    td:nth-of-type(1):before { content: "Foto"; }
    td:nth-of-type(2):before { content: "Nombre"; }
    td:nth-of-type(3):before { content: "Correo"; }
    td:nth-of-type(4):before { content: "Placa"; }
    td:nth-of-type(5):before { content: "Teléfono"; }
    td:nth-of-type(6):before { content: "Código QR"; }
    
    /* Etiquetas de Admin */
    .form-container td:nth-of-type(1):before { content: "Nombre"; }
    .form-container td:nth-of-type(2):before { content: "Placa"; }
    .form-container td:nth-of-type(3):before { content: "Teléfono"; }
    .form-container td:nth-of-type(4):before { content: "Acciones"; }

    /* Aliados */
    .aliados-inner {
        padding: 0 16px;
    }

    .aliados-header h3 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   COOKIE BANNER (GLASSMORPHISM STYLE)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    width: calc(100% - 48px);
    background: rgba(30, 41, 59, 0.95); /* Slate 900 con transparencia */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 99999;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner--hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.15); /* Tono amarillo primario */
    color: var(--primary); /* #facc15 */
}

.cookie-icon-wrapper svg {
    width: 22px;
    height: 22px;
    animation: cookie-rotate 6s ease-in-out infinite;
}

.cookie-banner-header h4 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.cookie-banner-header h4::after {
    display: none !important; /* Desactivar cualquier línea inferior por defecto */
}

.cookie-banner-text {
    color: #94a3b8; /* slate-400 */
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.btn-cookie-accept {
    flex: 1;
    padding: 11px 16px;
    background: var(--primary); /* #facc15 */
    color: var(--secondary); /* #1e293b */
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-cookie-accept:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.35);
}

.btn-cookie-accept:active {
    transform: translateY(-1px);
}

.btn-cookie-decline {
    flex: 1;
    padding: 11px 16px;
    background: transparent;
    color: #cbd5e1; /* slate-300 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Animaciones */
@keyframes cookie-rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(12deg); }
}

/* Responsivo para móviles */
@media (max-width: 480px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        padding: 20px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .btn-cookie-accept, .btn-cookie-decline {
        width: 100%;
    }
}

/* ============================
   Sección ¿Cómo usar? (Howdo)
   ============================ */
#como-usar {
    padding: 80px 0;
}

.howdo-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    width: 100%;
}

.howdo-header {
    text-align: center;
    margin-bottom: 56px;
}

.howdo-header h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}

.howdo-brand {
    color: #facc15;
}

.howdo-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin-bottom: 20px;
}

.howdo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.howdo-dots .dot {
    width: 28px;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}

.howdo-dots .dot.active {
    background: #facc15;
}

/* Grid de pasos + flechas */
.howdo-steps {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Tarjeta individual */
.howdo-card {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 22px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 380px;
}

.howdo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Número */
.howdo-card-num {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #facc15;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 800;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.5px;
}

/* Ilustración */
.howdo-card-img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    margin-top: 10px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    padding: 12px;
}

.howdo-card-img img {
    max-height: 170px;
    max-width: 100%;
    object-fit: contain;
}

/* Ícono pequeño */
.howdo-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fef9c3;
    color: #eab308;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.howdo-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.howdo-card p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.howdo-card p strong {
    color: #1e293b;
}

/* Flecha entre tarjetas */
.howdo-arrow {
    flex-shrink: 0;
    color: #facc15;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .howdo-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .howdo-arrow {
        display: none;
    }

    .howdo-card {
        flex: 0 0 calc(50% - 20px);
        min-height: 340px;
    }
}

@media (max-width: 680px) {
    .howdo-card {
        flex: 0 0 100%;
        min-height: auto;
    }

    .howdo-header h3 {
        font-size: 1.8rem;
    }

    .howdo-inner {
        padding: 0 16px;
    }
}

/* ============================
   Sección Nuestros Aliados
   ============================ */

.aliados-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    width: 100%;
}

.aliados-header {
    text-align: center;
    margin-bottom: 48px;
}

/* Ícono con rayos */
.aliados-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #fffbeb;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(250, 204, 21, 0.2);
}

.aliados-icon-ray {
    position: absolute;
    display: block;
    width: 4px;
    height: 10px;
    background: #facc15;
    border-radius: 2px;
}

.aliados-header h3 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 14px;
}

.aliados-subtitle {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   IMAGE PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* 1. Skeleton shimmer — solo para imágenes de contenido, NUNCA el logo */
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

/* Skeleton solo en imágenes de pasos, carrusel, fotos y QRs */
.howdo-card-img img:not(.img-loaded),
.logo-slide img:not(.img-loaded),
.conductor-foto:not(.img-loaded),
.qr-foto:not(.img-loaded) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

/* Smooth reveal once loaded — avoids abrupt pop-in */
.howdo-card-img img,
.logo-slide img,
.conductor-foto,
.qr-foto {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.howdo-card-img img.img-loaded,
.logo-slide img.img-loaded,
.conductor-foto.img-loaded,
.qr-foto.img-loaded {
    opacity: 1;
}

/* 2. GPU compositing for the infinite scroll carousel */
.logo-carousel-track {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 3. content-visibility: defer rendering of below-fold sections */
#como-usar,
#servicios,
#faqs,
.footer-site {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px; /* estimated height to reserve layout space */
}

/* 4. Keep logo images from stretching while skeleton is active */
.howdo-card-img img {
    min-height: 100px;
    background: #f8fafc;
}

.logo-slide img {
    min-height: 40px;
    background: transparent;
}