/**
 * Estilos consolidados para la aplicación de servicios pendientes de jettyBot.
 */

/* ===========================================
   1. VARIABLES DE COLOR
   =========================================== */
:root {
    --brand: #fe4d01;
    --brand-dark: #d94300;
    --accent: #28a745; /* Verde para el botón de tomar servicio */
    --danger: #dc3545; /* Rojo para precios y estado inactivo */
    --info-bg: #e6f7ff;
    --info-color: #096dd9; /* Azul para botones de mapa y etiquetas de ubicación */
    --border-light: #e0e0e0; /* Gris claro para líneas de la barra inferior */
    --text-menu: #6c757d; /* Gris para iconos del menú inferior */
}

/* ===========================================
   2. LAYOUT GENERAL Y ENCABEZADO
   =========================================== */
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: var(--brand);
    color: #222;
    min-height: 100vh;
    padding-bottom: 0; /* Controlado por .app ahora */
    position: relative;
}

#logoapp {
    text-align: left;
    margin: 10px 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.txtversion {
    color: #fff;
    font-size: 0.7em;
    text-align: left;
    padding: 0 20px 10px;
    margin: 0;
}

/* Contenedor principal de la aplicación */
.app {
    width: 95%;
    max-width: 600px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    margin: 0 auto;
    /* Espacio inferior reservado para el sticky footer (60px de alto + 10px de margen) */
    padding-bottom: 70px;
}

/* Cabecera del App (Título) */
.header-container {
    padding: 15px 20px;
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--brand);
}

/* Área de Contenido Scrollable (donde van las tarjetas) */
.form-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 20px 10px 20px;
}
.service-area-scroll {
    height: auto;
}


/* ===========================================
   3. ESTILOS DE LAS TARJETAS DE SERVICIO (Cuadros Internos)
   =========================================== */

.service-card {
    background: #ffffff;
    border: 1px solid #e0eeef;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
    padding-top: 30px;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.service-type {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--brand);
    color: #fff;
    padding: 5px 15px;
    border-radius: 0 15px 0 15px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block; /* Ocupa solo el ancho necesario */
    margin-bottom: 10px; /* Espacio debajo del título */
}

.service-detail-group {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    margin-bottom: 5px;
}

.service-detail-group:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

.detail-label {
    font-weight: 500;
    color: var(--text-menu);
}

.detail-value {
    font-weight: 700;
    color: #222;
    text-align: right;
}

.detail-value.price {
    color: var(--danger);
    font-size: 1.1em;
}

/* Sección de Origen y Destino */
.location-section {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* Sección de Cliente */
.cliente-section {
    margin: 15px 0;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 10px;
    border: 1px solid #f74813;
}

.cliente-label {
    display: block;
    font-weight: 700;
    color: var(--info-color);
    margin-top: 8px;
    margin-bottom: 2px;
    font-size: 0.9em;
}

.cliente-label:first-child {
    margin-top: 0;
}

.cliente-value {
    display: block;
    font-weight: 400;
    font-size: 0.95em;
    color: #0a0a0a;
}

.location-label {
    display: block;
    font-weight: 700;
    color: var(--info-color);
    margin-top: 8px;
    margin-bottom: 2px;
    font-size: 0.9em;
}

.location-label:first-child {
    margin-top: 0;
}

.location-value {
    display: block;
    font-weight: 400;
    font-size: 0.95em;
    color: #495057;
}


/* Grupo de Botones de Acción (Tomar y Mapa) */
.cta-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cta-tomar, .cta-map {
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s, box-shadow 0.2s;
    color: #fff; /* Color de texto blanco para ambos CTAs */
}

.cta-tomar {
    flex: 2; /* Más grande para la acción principal */
    background: var(--accent);
}

.cta-tomar:hover {
    background: #218838;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.cta-map {
    flex: 1; /* Más pequeño para la acción secundaria */
    background: var(--info-color);
}

.cta-map:hover {
    background: #004d80; 
}

/* Estilo para el mensaje de no servicios */
.no-services {
    text-align: center;
    padding: 30px 10px;
    color: #888;
    font-style: italic;
    font-weight: 600;
}

/* Loader simple */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--brand);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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


/* ===========================================
   4. ESTILOS DE BARRA INFERIOR STICKY (FOOTER MENU)
   =========================================== */

.footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    
    display: flex;
    justify-content: space-around;
    align-items: center;
    
    /* Limita el ancho y centra el menú debajo del contenedor principal */
    max-width: 600px; 
    margin: 0 auto; 
    border-radius: 0 0 18px 18px; 
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-menu);
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 0.7em;
    font-weight: 600;
    line-height: 1.2;
}

.menu-item:hover, .menu-item:focus {
    color: var(--brand);
    outline: none;
}

.menu-item i {
    font-size: 1.4em;
    margin-bottom: 3px;
}

.menu-item .label {
    display: block;
}

/* Estilo para el botón de Audio Activo/Inactivo */
.menu-item.audio-toggle.active {
    color: var(--accent);
}

.menu-item.audio-toggle:not(.active) {
    color: var(--danger);
}

/* Asegura que los controles de audio antiguos estén ocultos */
.audio-controls, .close-panel-btn {
    display: none !important;
}

        :root {
            --brand: #fe4d01;
            --brand-dark: #d94300;
            --accent: #28a745;
            --danger: #dc3545;
            --info-bg: #e6f7ff;
            --info-color: #096dd9;
        }

        body {
            margin: 0;
            font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
            background: var(--brand);
            color: #222;
            min-height: 100vh; 
            padding-bottom: 20px; 
        }

        #logoapp {
            text-align: center;
            margin: 10px 0;
            padding: 0 20px;
            width: 100%;
            box-sizing: border-box;
        }

        #logoapp img {
            width: 50%; 
            max-width: 70%; 
            height: auto;
        }

        .txtversion {
            color: #fff;
            font-size: 12px;
            margin-top: -2.5em; 
            text-align: right;
            padding-right: 20px;
            width: 100%;
            box-sizing: border-box;
        }

        .app {
            width: 95%; 
            max-width: 600px; 
            background: #fff;
            border-radius: 18px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
            margin: 0 auto 10px auto;
        }
        
        .screen {
            display: flex;
            flex-direction: column;
            background: #fff;
            flex-grow: 1;
        }

        .header {
            position: sticky;
            top: 0;
            z-index: 10;
            background: #fff;
            padding: 14px 18px;
            text-align: center;
            font-weight: 700;
            border-bottom: 1px solid #eee;
            font-size: 1.1em;
        }

        .form-area {
            padding: 18px 20px;
            background: #fff;
        }
        
        /* Nuevo estilo para separar cada bloque de contenido (Goal 2) */
        .content-card-box {
            background-color: #e9e9e9ff; /* Asegurar fondo blanco dentro de la tarjeta */
            border: 1px solid #eee;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        label {
            display: block;
            font-size: 14px;
            font-weight: 700;
            color: #333;
            margin-bottom: 6px;
        }

        input[type="text"], input[type="password"] {
            width: 100%;
            padding: 14px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 12px;
            outline: none;
            box-sizing: border-box;
            transition: border-color 0.3s;
        }
        
        input[type="text"]:focus, input[type="password"]:focus {
            border-color: var(--brand);
        }

        .cta {
            width: 100%;
            padding: 14px;
            background: var(--brand);
            color: #fff;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 800;
            cursor: pointer;
            margin-top: 20px;
            transition: background 0.3s;
        }
        
        .cta:hover {
            background: var(--brand-dark);
        }

        .cta:disabled {
            background: #ccc;
            cursor: not-allowed;
            opacity: 0.6;
        }
        
        .btn-row {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }

        .error-message {
            font-weight: bold;
            text-align: center;
            margin-top: 0; 
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 15px; 
        }
        
        .error-message.success {
            color: var(--accent);
            background-color: #e6ffe6; 
            border: 1px solid #28a74530;
            line-height: 1.6; 
        }
        
        .error-message.error {
            color: var(--danger);
            background-color: #ffe8e9;
            border: 1px solid #dc354530;
        }

        .info-card {
            margin-top: 0; 
            margin-bottom: 20px;
            padding: 15px;
            border: 1px solid #fe4d0130;
            border-radius: 12px;
            background-color: #fff5f0; 
        }
        
        .info-card p {
            margin: 5px 0;
            line-height: 1.4;
            color: #333;
        }
        
        .info-card strong {
            color: var(--brand);
            font-weight: 800;
        }
        
        .env-switch {
            text-align: center;
            padding: 10px;
            border-radius: 12px;
            background-color: var(--info-bg);
            border: 1px solid var(--info-color);
            margin-bottom: 20px; 
            display: block !important; 
        }

        .env-switch-btn {
            background-color: var(--info-color);
            color: white;
            padding: 8px 15px;
            border: none;
            border-radius: 9999px;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
            transition: background 0.3s;
        }
        .env-switch-btn:hover {
            background-color: #064c91;
        }

        .info-cliente{
            display:none;
        }

        /* --- NUEVOS ESTILOS PARA BARRA FIJA DE CONTACTO --- */
        #bottom-contact-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            padding: 15px 20px 20px;
            box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            box-sizing: border-box;
            display: flex;
            gap: 10px;
            justify-content: space-between;
        }

        #bottom-contact-bar a {
            display: block;
            flex-grow: 1;
            text-align: center;
            padding: 10px 5px;
            border-radius: 8px;
            font-weight: 700;
            text-decoration: none;
            font-size: 14px;
            white-space: nowrap; /* Evita que el texto del botón se rompa */
        }

        #bottom-contact-bar .btn-whatsapp {
            background-color: #25D366;
            color: white;
        }

        #bottom-contact-bar .btn-call {
            background-color: #007bff;
            color: white;
        }

        #bottom-contact-bar .btn-sms {
            background-color: #f7931e;
            color: white;
        }

        /* Espacio inferior para evitar que el contenido sea cubierto por la barra fija */
        .form-area.padding-for-bar {
            padding-bottom: 85px; /* Altura de la barra + margen */
        }

        .tips-generales{
            font-size: 1.2em !important;
        }

        .env-switch.content-card-box {
            display: none !important;
        }

          #options-menu {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 20px;
        }

#options-menu a {
  background-color: #000;
  text-align: center;
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
  text-decoration: navajowhite;
  padding-top: 12px;
  padding-bottom: 12px;
  width: 100% !important;
}      