:root {
    --color-primary: #5e35b1; /* Violeta principal */
    --color-secondary: #82bd47; /* Naranja/Acento */
    --color-accent: #82bd47; /* Verde para acentos, inspirado en posibles colores del sitio */
    --color-dark: #121212; /* Fondo oscuro */
    --color-light: #ffffff;
    --color-card-bg: #f8faff; /* Fondo de tarjeta muy claro */
    --color-text: #333; /* Texto principal */
    --color-bg: #ffffff; /* Fondo general */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--color-text);
    margin: 0;
}

/* --- Estilos de Layout General --- */
.main-header {
    background-color: var(--color-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--color-text);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.main-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px; /* Logo más visible */
    content: url("https://placehold.co/120x30/5e35b1/ffffff?text=TRACKER+GPS");
    background-color: transparent;
}

.separator {
    width: 1px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.1); /* Ajustado para mejor visibilidad en fondo claro */
    margin: 0 1rem;
}

.title span {
    font-size: 1.2rem;
    font-weight: 500;
    margin-right: 2rem;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    transform: translateY(-1px);
}

/* --- Hero Section (Nueva, inspirada en la página del producto) --- */
.hero-section {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    color: var(--color-light);
    text-align: center;
    padding: 6rem 1rem 4rem;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- Contenido Principal --- */
.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.section {
    max-width: 1200px;
    width: 100%;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    justify-content: flex-start;
    width: 100%;
    padding: 0 1rem;
}

.feature-item {
    background-color: var(--color-card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    min-width: 250px;
    flex: 0 0 auto;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.feature-text {
    font-size: 1rem;
}

/* --- Formularios e Inputs (Mejorados para responsividad) --- */
.search-section, .payment-register {
    background-color: var(--color-bg);
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 5px rgba(94, 53, 177, 0.1);
    width: 100%;
    max-width: 650px;
    transition: all 0.3s ease;
    margin: 0 auto; /* Asegura centrado adicional */
}

.search-form-row {
    margin-bottom: 1.5rem;
}

.search-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #444;
}

.search-form-input, input[type="text"], select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
}

.search-form-input:focus, input[type="text"]:focus, select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(94, 53, 177, 0.2);
}

/* --- Botones (Mejorados) --- */
.btn {
    padding: 12px 30px;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: var(--color-light);
    box-shadow: 0 4px 15px rgba(94, 53, 177, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 53, 177, 0.6);
}

/* --- Layout de Datos de Pago --- */
.payment-data-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.payment-col label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 4px;
    display: block;
}

.payment-col input[readonly] {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    font-weight: 700;
    color: var(--color-text);
    padding: 12px;
    border-radius: 0.5rem;
}

/* --- Footer (Mejorado para no achicarse en móviles) --- */
.main-footer {
    padding: 1.5rem 0;
    background-color: #f0f0f0;
    color: var(--color-text);
    font-size: 1rem;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Floating Elements (Ajustados para no superponerse en móviles) --- */
.floating-social-bar {
    position: fixed;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
}

.social-button {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: transform 0.2s, opacity 0.2s;
    color: white;
    font-size: 1.5rem;
}

.social-button:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Colores específicos */
.whatsapp { background-color: #25D366; }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #405dee 90%); }
.facebook { background-color: #4267B2; }
.twitter { background-color: #000000; }
.email { background-color: var(--color-secondary); }

/* Pestaña lateral izquierda */
.payment-methods-tab {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(calc(-100% + 40px));
    z-index: 999;
    display: flex;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.payment-methods-tab.expanded {
    transform: translateY(-50%) translateX(0);
}

.payment-tab-content {
    background-color: #f0f0f0;
    padding: 1.5rem 1rem;
    border: 1px solid #ddd;
    border-top-right-radius: 0.10rem;
    border-bottom-right-radius: 0.10rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    width: 280px;
    max-height: 80vh;
    overflow-y: auto;
}

.payment-tab-handle {
    width: 40px;
    background-color: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 1rem 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    transition: background-color 0.3s;
}

.payment-tab-handle:hover {
    background-color: var(--color-primary);
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 0.1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    border-radius: 0.25rem;
}

.payment-method:hover {
    background-color: #e0e0e0;
}

.method-icon {
    font-size: 1.6rem;
    color: var(--color-secondary);
    margin-right: 0.75rem;
    width: 25px;
    text-align: center;
}

.method-info .bank-name {
    font-weight: 700;
    color: var(--color-primary);
}

.method-info .details {
    font-size: 0.85rem;
    color: #666;
}

/* --- Modal (Mejorado) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--color-card-bg);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-alert-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-alert-close:hover {
    color: var(--color-text);
}

/* --- Logo Centered --- */
.logo-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-centered img {
    height: 15px;
    width: auto;
}

/* ================================================================= */
/* --- SECCIÓN RESPONSIVE PARA MÓVILES --- */
/* ================================================================= */

@media (max-width: 768px) {
    /* --- AJUSTES DEL HEADER --- */
    .header-nav {
        display: none; /* Oculta la navegación en móviles para simplicidad */
    }
    .title,
    .separator {
        display: none; /* Oculta el título y el separador para centrar solo el logo */
    }
    .main-header .container {
        justify-content: center; /* Centra el contenido restante (el logo) */
    }

    /* --- AJUSTES DEL HERO SECTION --- */
    .hero-section {
        padding: 5rem 1rem 3rem;
    }
    .hero-title {
        font-size: 2rem;
    }

    /* --- AJUSTES DE FORMULARIOS --- */
    .search-section, .payment-register {
        padding: 2rem;
    }

    /* --- AJUSTES DE VENTANAS FLOTANTES --- */
    .floating-social-bar {
        display: none; /* Oculta la barra de redes sociales */
    }