/* ==========================================================================
   HOJA DE ESTILOS: LANDING DE VENTAS (EMBUDO)
   Descripción: Estilos principales para la página de aterrizaje y 
   flujo de publicación de anuncios (SPA).
========================================================================== */

/* ==========================================================================
   1. ESTILOS BASE
   ==========================================================================
   Configuración global del contenedor principal y clases de utilidad 
   utilizadas en todo el embudo de ventas.
========================================================================== */
.landing-vendedores {
    background-color: #f9fafb;
    padding-bottom: 60px;
}

.container {
    max-width: 1125px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }

/* ==========================================================================
   2. HERO SECTION
   ==========================================================================
   Estilos para el banner de impacto inicial. Incluye el manejo de la imagen 
   de fondo, superposiciones de legibilidad (overlay), tipografía principal 
   e insignias de confianza (trust badges) para reducir la fricción.
========================================================================== */
.hero-image {
    position: relative;
    padding: 80px 20px 60px 20px;
    color: white;
    margin-bottom: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 450px;
    border-top: 30px solid var(--mr-red);  
}

.hero-picture-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-picture-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    color: white;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 400;
}

.trust-badges {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.trust-item .icon {
    font-size: 1.2rem;
}

/* ==========================================================================
   3. BARRA DE PROGRESO (WIZARD)
   ==========================================================================
   Indicador visual multi-pasos que guía al usuario a través del embudo. 
   Las clases activas son manipuladas dinámicamente mediante JavaScript.
========================================================================== */
.wizard-progress {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-step {
    flex: 1;
    text-align: center;
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 10px;
    border-bottom: 4px solid #f3f4f6;
    transition: all 0.3s ease;
}

.progress-step.active {
    color: var(--mr-red);
    border-bottom: 4px solid var(--mr-red);
}

/* ==========================================================================
   4. TARJETAS DE PLANES (PASO 1)
   ========================================================================== 
   Descripción: Define la cuadrícula principal de 3 columnas y estructura 
   las tarjetas con Flexbox para mantener los botones alineados al fondo 
   y eliminar las líneas divisorias.
========================================================================== */

.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card.premium {
    border: 2px solid var(--mr-red);
    transform: scale(1.03);
}

.plan-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mr-red);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.plan-card h3 {
    color: var(--mr-text-dark);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.plan-card .precio {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--mr-text-dark);
    margin-bottom: 20px;
}

.plan-card .precio span {
    font-size: 1rem;
    font-weight: normal;
    color: #6b7280;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    flex-grow: 1;
}

.features-list li {
    padding: 8px 0;
    color: #4b5563;
    font-size: 0.95rem;
    border-bottom: none;
}

/* ==========================================================================
   5. BOTONES Y FORMULARIOS GLOBALES
   ==========================================================================
   Estilos base compartidos para elementos de entrada, etiquetas y llamadas 
   a la acción en todas las vistas de la aplicación de una sola página (SPA).
========================================================================== */
.btn-primary, 
.btn-secondary {
    box-sizing: border-box;
    width: 100%;
    max-width: 250px;
    margin: 2px auto;
    padding: 14px 24px;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}

.btn-primary {
    font-size: 1rem;
    color: white;
    background-color: var(--mr-red);
    border: none;
    transition: background 0.2s;
}

.btn-primary:hover { 
    background-color: var(--mr-red-hover);
    color: #ffffff;
}

.btn-secondary {
    color: var(--mr-text-dark);
    background-color: #ffffff;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: var(--mr-red);
    color: #ffffff;
}

.btn-back {
    background: none;
    border: none;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 0;
    transition: color 0.2s;
}

.btn-back:hover { 
    color: var(--mr-text-dark); 
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.mr-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.mr-input {
    width: 100%;
    padding: 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    margin-bottom: 20px;
    font-family: inherit;
    box-sizing: border-box;
    background-color: white !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.3s;
}

.step {
    height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.step.active {
    height: auto;
    overflow: visible;
    visibility: visible;
    opacity: 1;
}

/* ==========================================================================
   6. DISEÑO DE PESTAÑAS (LOGIN Y REGISTRO)
   ==========================================================================
   Control visual de las pestañas de autenticación. Gestiona la visibilidad 
   de los paneles de contenido y los separadores de "Opciones Sociales".
========================================================================== */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none !important;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.05rem;
}

.auth-tab.active {
    color: #ffffff;
    background-color: var(--mr-red);
}

.auth-tab:hover {
    color: #ffffff;
    background-color: var(--mr-red);
}

.auth-content { 
    display: none; 
}

.auth-content.active { 
    display: block; 
}

#mr-login-form p { 
    margin-bottom: 20px; 
}

#mr-login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

#mr-login-form input[type="text"], 
#mr-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
}

#mr-login-form .login-submit input {
    width: 100%;
    background: var(--mr-red);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

#mr-login-form .login-submit input:hover { 
    background-color: var(--mr-red-hover); 
}

#mr-login-form .login-remember { 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
}

#mr-login-form .login-remember input { 
    margin-right: 8px; 
}

.form-row { 
    display: flex; 
    gap: 15px; 
}

.form-col { 
    flex: 1; 
}

.form-col .mr-input { 
    width: 100%; 
}

.mr-social-login { 
    margin-bottom: 20px; 
    width: 100%; 
}

.mr-social-login:empty { 
    display: none; 
}

.mr-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #6b7280;
}

.mr-divider::before, 
.mr-divider::after { 
    content: ''; 
    flex: 1; 
    border-bottom: 1px solid #e5e7eb; 
}

.mr-divider span { 
    padding: 0 15px; 
    font-size: 0.9rem; 
    font-weight: 500; 
}

/* ==========================================================================
   7. ESTILIZACIÓN DEL FORMULARIO NATIVO (PASO 3)
   ==========================================================================
   Sobrescribe el contenedor del shortcode del plugin Classified Listing 
   para integrarlo perfectamente al diseño de la Landing Page.
========================================================================== */
.form-container.anuncio-container {
    max-width: 850px !important; 
    padding: 50px 40px;
}

#native-styled-form .rtcl-post-listing-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

#native-styled-form .rtcl-fb-section-title {
    font-size: 1.2rem;
    color: var(--mr-red);
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

#native-styled-form .rtcl-field-label,
#native-styled-form .rtcl-fb-field-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    color: #374151;
    align-items: baseline !important; /* Centra los elementos verticalmente */
    gap: 6px; /* Añade una separación limpia entre el icono, el texto y el asterisco */
}

#native-styled-form .section-title {
    border-bottom: none;
    margin: 1px 0;
    padding: 0;
    text-align: left
}
/* ==========================================================================
   8. COMPONENTES REACT Y FORMULARIO
   ==========================================================================
   Forzado de estilos para unificar los selectores, inputs numéricos y áreas 
   de carga de archivos (Drag & Drop) generados por React en el plugin.
========================================================================== */
#native-styled-form .ant-input-affix-wrapper,
#native-styled-form .ant-select-selector,
#native-styled-form .ant-input-number,
#native-styled-form textarea.rtcl_wp_editor {
    width: 100%;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    background-color: white !important;
    padding: 0 !important;
}

#native-styled-form textarea.rtcl_wp_editor {
    padding: 12px !important;
    align-items: flex-start;
}

#native-styled-form .ant-input-affix-wrapper input,
#native-styled-form .ant-input-number input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100%;
    height: 100%;
    padding: 10px 12px !important;
    outline: none !important;
}

#native-styled-form .ant-select-selector {
    padding: 4px 12px !important;
}

#native-styled-form .ant-select-selection-search-input {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#native-styled-form .ant-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#native-styled-form .ant-upload.ant-upload-drag {
    border-radius: 12px !important;
    border: 2px dashed #9ca3af !important;
    background-color: #f9fafb !important;
    transition: border-color 0.3s;
}

#native-styled-form .ant-upload.ant-upload-drag:hover {
    border-color: var(--mr-green) !important;
}

#native-styled-form .rtcl-fb-help {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
}

#native-styled-form .rtcl-fb-btn {
    width: 100%;
    background-color: var(--mr-red) !important;
    color: white !important;
    border: none !important;
    padding: 14px 24px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 30px;
    height: auto !important;
}

#native-styled-form .rtcl-fb-btn:hover {
    background-color: var(--mr-red-hover) !important;
}


/* ==========================================================================
   9. REVELACIÓN PROGRESIVA (ESTILO TYPEFORM)
   ==========================================================================
   Oculta los campos del formulario por defecto y define la clase activa para 
   mostrar paso a paso (Controlado por JavaScript externo).
========================================================================== */
#native-styled-form .rtcl-fb-section {
    height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    margin: 0;
    padding: 0;
    border: none;
}

#native-styled-form .rtcl-fb-section.is-active-step {
    height: auto;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    margin-bottom: 30px;
}

#native-styled-form .section-header {
    margin-bottom: 25px;
    text-align: center;
}


#native-styled-form .rtcl-fb-section-title {
    font-size: 1.6rem !important;
    color: var(--mr-text-dark) !important;
    border-bottom: 2px solid var(--mr-red) !important;
    padding-bottom: 15px !important;
    margin: 0 !important;
    display: inline-block;
}

/* ==========================================================================
   10. CONTROLES DE NAVEGACIÓN (VOLVER Y CONTINUAR)
   ==========================================================================
   Botones de interacción inyectados dinámicamente para moverse entre las   
   diferentes secciones reveladas del formulario de anuncios.
========================================================================== */
.mr-btn-back {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: block;
    text-align: left;
    margin-bottom: 5px;
    margin-top: 15px;
    padding: 0;
    transition: color 0.2s;
}

.mr-btn-back:hover { 
    color: var(--mr-red) !important;
    background: transparent !important;
}

.mr-btn-next-wrap {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    width: 100%;
    display: block; 
    clear: both;
}

.mr-btn-next {
    background-color: var(--mr-red) !important;
    color: white !important;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.mr-btn-next:disabled {
    background-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}

/* ==========================================================================
   11. CABECERA MINIMALISTA (AISLAMIENTO DE EMBUDO)
   ==========================================================================
   Barra superior sin menús de navegación. Diseñada específicamente para 
   eliminar distracciones y aumentar las tasas de conversión.
========================================================================== */
.mr-minimal-header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.mr-minimal-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}

.mr-minimal-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.mr-minimal-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mr-red);
    text-decoration: none;
}

.mr-minimal-cancelar {
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.mr-minimal-cancelar:hover {
    color: var(--mr-red);
}

/* ==========================================================================
   12. PREGUNTAS FRECUENTES (FAQ)
   ==========================================================================
   Sección informativa estructurada en rejilla al final del embudo para 
   resolver dudas de última hora de los usuarios.
========================================================================== */
.faq-section { 
    margin-top: 60px; 
    padding-top: 60px; 
    border-top: 1px solid #e5e7eb; 
    margin-bottom: 60px;
}

.faq-section h2 { 
    margin-bottom: 40px; 
    font-size: 2.2rem; 
    color: var(--mr-text-dark); 
    font-weight: 800;
}

.faq-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    max-width: 950px;
    margin: 0 auto;
}

.faq-item h4 { 
    font-size: 1.15rem; 
    color: var(--mr-green); 
    margin-bottom: 10px; 
    font-weight: 700;
}

.faq-item p { 
    color: #4b5563; 
    font-size: 1rem; 
    line-height: 1.6; 
    margin: 0;
}

.mr-lost-password-link {
    display: inline-block;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.mr-lost-password-link:hover {
    color: var(--mr-red-hover);
}

/* ==========================================================================
   13. CONFIRMACIÓN DE SESIÓN (DISPOSITIVOS COMPARTIDOS)
   ==========================================================================
   Vista alternativa para usuarios ya autenticados que evita que publiquen 
   en la cuenta equivocada.
========================================================================== */
.mr-confirm-account {
    text-align: center;
    padding: 20px 0;
}

.mr-confirm-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.mr-confirm-account h2 {
    margin-bottom: 10px;
    color: var(--mr-text-dark);
}

.mr-confirm-account p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.mr-confirm-account strong {
    color: #333;
}

.mr-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
}

.mr-logout-link {
    color: var(--mr-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
    transition: color 0.2s ease;
}

.mr-logout-link:hover {
    color: var(--mr-red-hover);
}

/* ==========================================================================
   14. BOTÓN GLOBAL DE CAMBIO DE PLAN (MACRO-NAVEGACIÓN)
   ==========================================================================
   Botón estilo cápsula recurrente que permite al usuario retroceder 
   seguramente al paso 1 sin perder datos.
========================================================================== */
.btn-volver-paso-1 {
    background-color: white;
    border: 1px solid #d1d5db;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.btn-volver-paso-1:hover {
    border-color: var(--mr-red);
    background-color: var(--mr-red);
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.1);
}

/* ==========================================================================
   15. ESCUDO ANTI-COLAPSO DE LAYOUT (FIX MAPA REACT)
   ========================================================================== 
   Descripción: Garantiza una altura mínima persistente en el formulario para 
   evitar que la página se encoja y provoque saltos visuales cuando los 
   componentes dinámicos desaparecen momentáneamente al redibujarse.
   ========================================================================== */
#native-styled-form {
    min-height: 1000px; 
    overflow-anchor: none;
}

#native-styled-form .rtcl-osm-map .rtcl-fb-field-content {
    min-height: 400px;

}

/* ==========================================================================
   16. PROTECCIÓN DE FOCO (SCROLL MARGIN)
   ========================================================================== 
   Descripción: Establece un margen de compensación superior para el foco de 
   elementos y desactiva el scroll suave para neutralizar los tirones 
   automáticos del navegador hacia el encabezado fijo.
   ========================================================================== */
.leaflet-container, 
.leaflet-marker-icon,
#native-styled-form {
    scroll-margin-top: 200px !important; 
    outline: none !important;
}

html {
    scroll-behavior: auto !important;
}

/* ==========================================================================
   AJUSTES PARA DISPOSITIVOS MÓVILES (RESPONSIVE)
   ==========================================================================
   Ajustes en tipografía, relleno y flexbox para garantizar una experiencia 
   fluida en resoluciones de pantalla menores a 768px.
========================================================================== */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
    }
    
    .mr-minimal-header-inner {
        height: 60px;
    }

    .mr-minimal-logo img {
        max-height: 45px;
    }

    .mr-minimal-cancelar {
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .trust-badges { 
        flex-direction: column; 
        gap: 10px; 
        align-items: center; 
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-container.anuncio-container {
        padding: 25px 15px !important;
    }

    #native-styled-form .rtcl-fb-section-columns {
        padding: 10px !important;
    }

    #native-styled-form .rtcl-fb-section-title {
        font-size: 1.3rem !important;
        margin-bottom: 5px !important;
    }

    #native-styled-form .ant-input-affix-wrapper,
    #native-styled-form .ant-select-selector,
    #native-styled-form .ant-input-number,
    #native-styled-form textarea.rtcl_wp_editor {
        min-height: 48px;
    }

    .mr-btn-next {
        font-size: 1rem !important;
        padding: 16px 20px !important;
    }

    .progress-step {
        font-size: 0.8rem;
        padding: 12px 5px;
    }
    
}