/* Estilos adicionales para el proyecto Mitigacion_2025 */
:root {
    --vigia-green: #0d3b36;
    --vigia-green-light: #60c56a;
    --vigia-blue: #2675ff;
    --vigia-sage: #dff5e1;
}

/* Estilos para la lista de usuarios en assign_producer */
.usuario-item {
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.usuario-item:hover {
    background-color: #f8f9fa;
    border-color: var(--azul-tech);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.usuario-item.active {
    background-color: var(--azul-tech) !important;
    color: #FFFFFF !important;
    font-weight: bold !important;
    border-color: #1547CC;
}

.usuario-item.active * {
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.usuario-item.active .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

.usuario-item.active .badge {
    background-color: rgba(255,255,255,0.2) !important;
    color: white !important;
}

/* Scrollbar personalizado para la lista de usuarios */
.usuario-list-container::-webkit-scrollbar {
    width: 6px;
}

.usuario-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.usuario-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.usuario-list-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Estilos base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Encabezados */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Login */
.login-container {
    background: transparent;
    border-radius: 24px;
    padding: 2.5rem 2rem;
}

/* License warning */
.license-warning-card {
    border-radius: 15px;
}

.license-warning-card-header {
    background: linear-gradient(90deg, #f5c542, #f8d667);
    color: #1f2a37;
    border-radius: 15px 15px 0 0 !important;
}

.license-warning-card-footer {
    border-radius: 0 0 15px 15px !important;
}

.license-warning-card .alert {
    border-radius: 10px;
}

.license-warning-icon {
    font-size: 4rem;
}

.license-warning-alert {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.license-actions .btn {
    border-radius: 8px;
}

.btn-dashboard-return {
    background-color: #0d3b36;
    color: #ffffff;
    font-weight: 600;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-dashboard-return:hover,
.btn-dashboard-return:focus {
    background-color: #0a2d2a;
    color: #ffffff;
    transform: translateY(-1px);
}

.login-logo-container {
    display: flex;
    justify-content: center;
}

.login-logo {
    width: clamp(160px, 95%, 280px);
    height: auto;
    display: inline-block;
}

.login-card {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid rgba(13, 59, 54, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.login-card-header {
    background: linear-gradient(120deg, var(--vigia-green), var(--vigia-blue));
    border-bottom: none;
    padding: 1.5rem;
}

.login-card .card-body {
    padding: 2rem;
}

.login-card .form-label {
    font-weight: 600;
    color: var(--vigia-green);
}

.login-card .form-control {
    border-radius: 10px;
    border: 1px solid #e1e5ed;
    padding: 0.75rem 1rem;
}

.login-card .form-control:focus {
    border-color: var(--vigia-blue);
    box-shadow: 0 0 0 0.2rem rgba(38, 117, 255, 0.25);
}

.login-card .input-group .btn {
    border-radius: 10px;
    border-left: none;
}

.login-btn {
    background: linear-gradient(120deg, var(--vigia-blue), var(--vigia-green-light));
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(38, 117, 255, 0.3);
}

.login-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(38, 117, 255, 0.35);
}

@media (max-width: 576px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .login-card .card-body {
        padding: 1.5rem;
    }

    .license-warning-icon {
        font-size: 3rem;
    }
    
    .license-actions .btn {
        width: 100%;
    }
}

/* Botones */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Mantener azul solo para el estilo primario */
.btn-primary {
    background-color: var(--azul-tech);
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.btn-primary * {
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.btn-primary:hover {
    background-color: #1547CC;
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.btn-success {
    background-color: var(--verde-bio);
}

.btn-success:hover {
    background-color: var(--verde-oscuro);
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--azul-tech);
    box-shadow: 0 0 5px rgba(28, 87, 255, 0.3);
}

/* Tarjetas */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Navegación */
.navbar {
    background-color: var(--verde-bio);
    padding: 15px 0;
    margin-bottom: 30px;
}

.navbar-brand {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

/* Alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ===== ESTILOS PARA TABLA DE LOTES KMZ ===== */

/* Tabla de lotes extraídos - Ocultar por defecto */
#lotes-table {
    display: none;
}

/* Estilos para la tabla de lotes extraídos */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th, .table td {
    white-space: nowrap;
    vertical-align: middle;
    padding: 8px 12px;
}

.table th {
    background-color: #0D3B36 !important;
    color: #FFFFFF !important;
    font-weight: bold !important;
    font-size: 0.875rem;
    text-align: center;
    border: none;
}

.table td {
    border-top: 1px solid #dee2e6;
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Estilos específicos para inputs en la tabla */
.table input[type="text"], 
.table input[type="number"] {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.table input[type="text"]:focus, 
.table input[type="number"]:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Ajustes para columnas específicas */
.table th:nth-child(1), .table td:nth-child(1) { width: 50px; text-align: center; }
.table th:nth-child(2), .table td:nth-child(2) { width: 150px; min-width: 150px; }
.table th:nth-child(3), .table td:nth-child(3) { width: 120px; min-width: 120px; }
.table th:nth-child(4), .table td:nth-child(4) { width: 100px; min-width: 100px; }
.table th:nth-child(5), .table td:nth-child(5) { width: 120px; min-width: 120px; }
.table th:nth-child(6), .table td:nth-child(6) { width: 150px; min-width: 150px; }
.table th:nth-child(7), .table td:nth-child(7) { width: 80px; min-width: 80px; }
.table th:nth-child(8), .table td:nth-child(8) { width: 100px; min-width: 100px; }
.table th:nth-child(9), .table td:nth-child(9) { width: 150px; min-width: 150px; }

/* Estilos para coordenadas */
.table td small {
    font-size: 0.75rem;
    line-height: 1.2;
    display: block;
}

/* Responsive adjustments para tabla de lotes */
@media (max-width: 1200px) {
    .table th, .table td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .table input[type="text"], 
    .table input[type="number"] {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {
    .table th, .table td {
        padding: 4px 6px;
        font-size: 0.75rem;
    }
    
    .table input[type="text"], 
    .table input[type="number"] {
        font-size: 0.75rem;
        padding: 2px 4px;
    }
}

/* ===== ESTILOS PARA GESTIÓN DE CLIMA ===== */

/* Contenedor principal de gestión de clima */
.clima-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

/* Selector de lote */
.lote-selector {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

/* Sección de datos de clima */
.datos-clima-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

/* Tabla de registro */
.tabla-registro {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tabla-registro table {
    width: 100%;
    margin: 0;
}

.tabla-registro th {
    background-color: #0D3B36 !important;
    color: #FFFFFF !important;
    padding: 15px;
    font-weight: bold !important;
    text-align: center;
}

.tabla-registro td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

/* Filas alternadas para tabla-registro */
.tabla-registro tbody tr:nth-child(even) {
    background-color: #EAEAEA !important;
    color: #000000 !important;
}

.tabla-registro tbody tr:nth-child(odd) {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

.tabla-registro tbody tr:hover {
    background-color: #D4D4D4 !important;
}

/* Botones de gestión de clima */
.btn-agregar-fila {
    background: var(--verde-bio);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.btn-agregar-fila:hover {
    background: var(--verde-oscuro);
}

.btn-eliminar-fila {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-eliminar-fila:hover {
    background: #c82333;
}

.btn-eliminar-fila:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-guardar {
    background: var(--azul-tech);
    color: #FFFFFF !important;
    font-weight: bold !important;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-guardar * {
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.btn-guardar:hover {
    background: #1547CC;
}

.btn-guardar:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Tabla de historial */
.tabla-historial {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tabla-historial th {
    background-color: #0D3B36 !important;
    color: #FFFFFF !important;
    padding: 15px;
    font-weight: bold !important;
    text-align: center;
}

.tabla-historial td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

/* Filas alternadas para tabla-historial */
.tabla-historial tbody tr:nth-child(even) {
    background-color: #EAEAEA !important;
    color: #000000 !important;
}

.tabla-historial tbody tr:nth-child(odd) {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

.tabla-historial tbody tr:hover {
    background-color: #D4D4D4 !important;
}

/* Mensaje cuando no hay datos */
.sin-datos {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

.sin-datos i {
    opacity: 0.5;
}

/* Alertas personalizadas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Focus mejorado para inputs */
.form-control:focus {
    border-color: var(--azul-tech);
    box-shadow: 0 0 0 0.2rem rgba(28, 87, 255, .25);
}

.form-select:focus {
    border-color: var(--azul-tech);
    box-shadow: 0 0 0 0.2rem rgba(28, 87, 255, .25);
}

/* Responsive para gestión de clima */
@media (max-width: 768px) {
    .clima-container {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .lote-selector,
    .datos-clima-section {
        padding: 15px;
    }
    
    .tabla-registro th,
    .tabla-registro td,
    .tabla-historial th,
    .tabla-historial td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .btn-agregar-fila,
    .btn-guardar {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-eliminar-fila {
        padding: 3px 6px;
        font-size: 0.8rem;
    }
}

/* ===== DASHBOARD: Tarjetas de últimos reportes ===== */
.rp-report-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(20, 20, 20, 0.06);
    transition: transform .15s ease, box-shadow .15s ease;
    background: var(--rp-card-bg, linear-gradient(135deg, #eef3ff, #f4f9ff));
}
.rp-report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(20, 20, 20, 0.12);
}
.rp-card-body {
    padding: 14px 14px 10px;
}
.rp-badge {
    background: rgba(255,255,255,0.7);
    color: #34495e;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
}
.rp-meta-label { font-size: 12px; color: #6c757d; }

/* Variantes de color suaves */
.rp-variant-1 { --rp-card-bg: linear-gradient(135deg, #e6f0ff, #f3f8ff); }
.rp-variant-2 { --rp-card-bg: linear-gradient(135deg, #eaf7ff, #f5fcff); }
.rp-variant-3 { --rp-card-bg: linear-gradient(135deg, #e8fff6, #f2fff9); }
.rp-variant-4 { --rp-card-bg: linear-gradient(135deg, #fff3e6, #fff8f0); }
.rp-variant-5 { --rp-card-bg: linear-gradient(135deg, #f7eaff, #fbf2ff); }
.rp-variant-6 { --rp-card-bg: linear-gradient(135deg, #e9f7ef, #f3fbf6); }
.rp-variant-7 { --rp-card-bg: linear-gradient(135deg, #e6fbff, #f0fdff); }
.rp-variant-8 { --rp-card-bg: linear-gradient(135deg, #fff0f2, #fff6f7); }

/* Contenedores mini chart */
.mini-gauge { width: 95px; height: 95px; }
.mini-dpv { width: 100%; height: 56px; }

/* Gauges dashboard */
.gauge-box { width: 100%; height: 96px; }
@media (min-width: 768px) {
    .gauge-box { height: 88px; }
}
.gauge-title { font-size: 11px; color: #6c757d; margin-bottom: 6px; }
.gauge-title strong { font-size: 12px; }

/* Tabla compacta para métricas Agua Útil / DPV */
.rp-mini-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.rp-mini-table thead th {
    background-color: #0D3B36 !important; /* Color requerido */
    color: #FFFFFF !important;
    font-weight: bold !important;
    padding: 6px 8px;
    text-align: center;
}
.rp-mini-table tbody tr:nth-child(even) td {
    background-color: #EAEAEA !important; /* Filas pares */
    color: #000000 !important;
    padding: 8px;
    text-align: center;
}
.rp-mini-table tbody tr:nth-child(odd) td {
    background-color: #FFFFFF !important; /* Filas impares */
    color: #000000 !important;
    padding: 8px;
    text-align: center;
}
.rp-mini-table tr { border: 0; }

/* Fondo suave para las fichas del dashboard de usuario (información de reportes) */
.dashboard-cards .card {
    background-color: #FFFDF0; /* amarillo más tenue */
}

/* Contenedor del logo en el sidebar */
.sidebar-logo-box {
    background: #ffffff;
    padding: 12px 12px;
    border-radius: 8px;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0 !important; /* Sin margen superior, sobrescribir mt-3 del template */
}
.sidebar-logo-box img { max-width: 100%; height: auto; display: inline-block; }

/* Fondo blanco para toda el área del header del sidebar */
.sidebar .sidebar-header {
    background: #ffffff;
    padding: 0.15rem 12px 12px 12px !important; /* Padding-top mínimo: 0.15rem para acercar logo al top */
    border-radius: 10px;
}

/* Color de fondo del sidebar (aplicado a todos los roles) */
.sidebar,
.sidebar.admin,
.sidebar.gerente,
.sidebar.usuario {
    background: var(--azul-tech) !important; /* Azul tech */
    background-color: var(--azul-tech) !important;
}

/* Color de fondo del Top Navigation (navbar-fixed) */
.navbar-fixed,
.navbar-fixed.bg-dark {
    background-color: var(--verde-bio) !important; /* Verde bio BioEstrés */
    background: var(--verde-bio) !important;
}


/* ===== ESTILOS GLOBALES PARA TODAS LAS TABLAS ===== */

/* Encabezados de tablas: fondo #0D3B36, texto blanco negrilla */
table thead th,
table thead tr th,
.table thead th,
.table thead tr th {
    background-color: #0D3B36 !important;
    color: #FFFFFF !important;
    font-weight: bold !important;
}

/* También aplicar a clases específicas que puedan tener en los templates */
table.table-dark thead th,
table.table-dark thead tr th {
    background-color: #0D3B36 !important;
    color: #FFFFFF !important;
    font-weight: bold !important;
}

/* Filas pares del cuerpo: fondo #EAEAEA, texto negro */
table tbody tr:nth-child(even),
table tbody tr:nth-child(even) td,
.table tbody tr:nth-child(even),
.table tbody tr:nth-child(even) td {
    background-color: #EAEAEA !important;
    color: #000000 !important;
}

/* Filas impares del cuerpo: fondo #FFFFFF, texto negro */
table tbody tr:nth-child(odd),
table tbody tr:nth-child(odd) td,
.table tbody tr:nth-child(odd),
.table tbody tr:nth-child(odd) td {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

/* Asegurar que los textos dentro de las celdas sean negros */
table tbody td,
.table tbody td {
    color: #000000 !important;
}

/* Mantener el hover effect pero con color más suave */
table tbody tr:hover,
.table tbody tr:hover {
    background-color: #D4D4D4 !important;
}

/* Asegurar que los encabezados mantengan el estilo incluso con clases de Bootstrap */
.table-striped thead th,
.table-hover thead th,
.table-bordered thead th {
    background-color: #0D3B36 !important;
    color: #FFFFFF !important;
    font-weight: bold !important;
}

/* Estilos para tablas con clases específicas como .lotes-table */
.lotes-table th,
.lotes-table thead th {
    background-color: #0D3B36 !important;
    background: #0D3B36 !important;
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.lotes-table tbody tr:nth-child(even),
.lotes-table tbody tr:nth-child(even) td {
    background-color: #EAEAEA !important;
    color: #000000 !important;
}

.lotes-table tbody tr:nth-child(odd),
.lotes-table tbody tr:nth-child(odd) td {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

.lotes-table tbody td {
    color: #000000 !important;
}

.lotes-table tbody tr:hover {
    background-color: #D4D4D4 !important;
}

/* ===== ESTILOS GLOBALES PARA SECCIONES DE FILTROS ===== */

/* Estilos para filter-card (sin 's') - usado en pronostico_climatico.html */
.filter-card {
    background: #0D3B36 !important;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filter-card .card-header {
    background: #0D3B36 !important;
    border: none;
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.filter-card .card-header h5,
.filter-card .card-header .mb-0,
.filter-card .card-header * {
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.filter-card .card-header i {
    color: #FFFFFF !important;
}

.filter-card .card-body {
    background: #0D3B36 !important;
}

.filter-card .form-label,
.filter-card label {
    color: #FFFFFF !important;
    font-weight: bold !important;
}

/* Estilos para cards genéricos con secciones de filtros */
/* Se aplicarán automáticamente cuando el card tenga un header con texto "Filtros" */
/* Nota: Los selectores :contains() y :has-text() no son estándar CSS, 
   por lo que se usan clases específicas o estilos inline en los templates */

/* Estilos para cards que contengan filtros - usando selectores más específicos */
/* Estos se aplicarán cuando se agregue la clase filters-section o filter-section */
.filters-section,
.filter-section {
    background: #0D3B36 !important;
}

.filters-section .card-header,
.filter-section .card-header {
    background: #0D3B36 !important;
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.filters-section .card-header h5,
.filter-section .card-header h5,
.filters-section .card-header .mb-0,
.filter-section .card-header .mb-0 {
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.filters-section .card-header i,
.filter-section .card-header i {
    color: #FFFFFF !important;
}

.filters-section .card-body,
.filter-section .card-body {
    background: #0D3B36 !important;
}

.filters-section .form-label,
.filter-section .form-label,
.filters-section label,
.filter-section label {
    color: #FFFFFF !important;
    font-weight: bold !important;
}

.services-hero__card {
    width: 100%;
}

.services-hero__media {
    margin-top: 0;
}

.services-hero__media-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-hero__message-box {
    position: relative;
    padding: 30px 36px;
    border-radius: 26px;
    background: linear-gradient(155deg, #ffffff 0%, #eff9f2 100%);
    box-shadow: 0 28px 52px rgba(19, 75, 54, 0.18);
    border: 2px solid rgba(31, 131, 86, 0.4);
    outline: 1px solid rgba(255, 255, 255, 0.45);
    outline-offset: -10px;
}

.services-hero__message-box::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px solid rgba(67, 166, 103, 0.35);
    box-shadow: inset 0 0 0 1px rgba(20, 103, 64, 0.1);
    pointer-events: none;
}

.services-hero__message-box::after {
    content: "";
    position: absolute;
    left: 32px;
    top: calc(100% - 18px);
    width: 34px;
    height: 34px;
    background: linear-gradient(155deg, #ffffff 0%, #eff9f2 100%);
    border-left: 2px solid rgba(31, 131, 86, 0.4);
    border-bottom: 2px solid rgba(31, 131, 86, 0.4);
    transform: rotate(45deg);
    box-shadow: 0 20px 30px rgba(19, 75, 54, 0.12);
}

.services-hero__message-box .services-hero__message {
    font-size: 1.16rem;
    color: #1f2f2a;
    line-height: 1.68;
    margin: 0;
}

.services-hero__message-strong {
    font-weight: 700;
    color: #0c3a2f;
}

.services-hero__message-highlight {
    font-weight: 700;
    color: #2f7b2d;
    background: rgba(74, 162, 52, 0.16);
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(74, 162, 52, 0.25), 0 12px 24px rgba(74, 162, 52, 0.18);
}

@media (min-width: 768px) {
    .services-hero__media-logo {
        justify-content: flex-end;
    }

    .services-hero__brand {
        margin-bottom: 0;
        max-width: 210px;
        width: 100%;
    }

    .services-hero__message-box::after {
        left: auto;
        right: calc(100% - 28px);
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
        box-shadow: -12px 18px 28px rgba(19, 75, 54, 0.12);
    }
}

@media (min-width: 992px) {
    .services-hero__media-logo {
        justify-content: center;
    }

    .services-hero__message-box::after {
        right: calc(100% - 40px);
    }
}

.services-hero__heading-band-container {
    max-width: 720px;
    padding: 18px 28px;
    border-radius: 24px;
    background: linear-gradient(120deg, rgba(28, 87, 255, 0.08), rgba(126, 194, 66, 0.12));
    border: 1px solid rgba(234, 234, 234, 0.9);
    box-shadow: 0 18px 36px rgba(19, 75, 54, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 40px;
}

.services-hero__heading-band {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1C57FF 0%, #7EC242 100%);
    border: 1px solid #EAEAEA;
    box-shadow: 0 16px 32px rgba(28, 87, 255, 0.2);
}

.services-hero__heading-band-text {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.services-hero__heading-band::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #EAEAEA;
    box-shadow: 0 0 0 4px rgba(234, 234, 234, 0.4);
}

@media (max-width: 576px) {
    .services-hero__heading-band-container {
        padding: 14px 20px;
        border-radius: 20px;
    }

    .services-hero__heading-band {
        padding: 10px 24px;
    }

    .services-hero__heading-band-text {
        letter-spacing: 0.12em;
        font-size: 0.85rem;
    }
}