:root {
    /* --- COLORES ORIGINALES (INTACTOS) --- */
    --palm-primary: #006837;
    --palm-dark: #004d29;
    --palm-accent: #ffd54f;
    --bg-section: #f4f7f5;
    --text-main: #333;
    
    /* Variables de estructura */
    --radius-card: 16px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 104, 55, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-section);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal no deseado */
}

/* =========================================
   ENCABEZADO Y TÍTULOS
========================================= */

.section-header {
    text-align: center;
    padding: 60px 20px 100px 20px; /* Mucho espacio abajo para el efecto de superposición */
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.main-title {
    color: var(--palm-primary);
    font-family: 'Roboto Slab', serif;
    font-weight: 800;
    font-size: 3.2rem;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Decoración sutil debajo del título */
.main-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background-color: var(--palm-accent);
    margin: 10px auto 0;
    border-radius: 3px;
}

/* =========================================
   CONTACT CARDS (FLOTANTES)
========================================= */

/* Contenedor de las tarjetas para que suban */
.container-cards {
    position: relative;
    z-index: 10;
    margin-top: -60px; /* Efecto visual: Las tarjetas suben */
}

.contact-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-card);
    border: 1px solid rgba(0,0,0,0.03); /* Borde casi invisible */
    text-align: center;
    transition: all 0.3s ease;
    height: 100%; /* IMPORTANTE: Todas las tarjetas del mismo alto */
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    transform: translateY(-10px); /* Se eleva al pasar el mouse */
    box-shadow: var(--shadow-hover);
    border-color: var(--palm-accent); /* Detalle de color al hover */
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 104, 55, 0.08);
    color: var(--palm-primary);
    border-radius: 50%; /* Círculo perfecto */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: 0.3s;
}

.contact-card:hover .contact-icon {
    background-color: var(--palm-primary);
    color: #fff;
    transform: scale(1.1);
}

.contact-card h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--palm-dark);
}

/* =========================================
   SECCIÓN FORMULARIO (CONTENEDOR PRINCIPAL)
========================================= */

.form-section-wrapper {
    background-color: #fff;
    padding-top: 80px; /* Espacio para compensar las tarjetas flotantes */
    padding-bottom: 80px;
    margin-top: 40px; 
    border-top: 1px solid #eee;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.02); /* Sombra superior sutil */
}

/* Tarjeta del Formulario (Izquierda) */
.card-white-shadow {
    background: #fff;
    padding: 0 20px; /* Limpiamos padding extra, usamos el grid */
    border: none;
    box-shadow: none;
}

.form-title {
    font-family: 'Roboto Slab', serif;
    color: var(--palm-primary);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

/* Estilos de Inputs */
.form-control, .form-select {
    padding: 14px 18px;
    border-radius: 10px;
    border: 2px solid #e0e0e0; /* CORREGIDO: Hexadecimal válido para gris suave */
    background-color: #fcfcfc;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--palm-primary);
    box-shadow: 0 0 0 4px rgba(0, 104, 55, 0.1);
    outline: none;
}

/* Grupos de inputs (Nombre, correo, etc) */
.bg-light.p-3.rounded.mb-4.border {
    background: transparent !important;
    border: 1px dashed #ddd !important; /* Borde punteado para separar secciones */
    padding: 25px !important;
}

/* Botón de Enviar */
.btn-primary-palm {
    background-color: var(--palm-primary);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
    border: none;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(0, 104, 55, 0.25);
}

.btn-primary-palm:hover { 
    background-color: var(--palm-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 104, 55, 0.35);
}

/* =========================================
   COLUMNA DERECHA (CONSULTA Y VIDEO)
========================================= */

.help-card {
    background: #fff;
    border-radius: var(--radius-card);
    border: 1px solid #eee;
    /* Sticky: Se queda fijo al hacer scroll */
    position: sticky;
    top: 120px; 
    z-index: 90;
    box-shadow: var(--shadow-card);
}

.help-header {
    background-color: var(--palm-primary);
    color: white;
    padding: 20px 25px;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.help-header h5 { margin: 0; font-weight: 700; display: flex; align-items: center; }

.help-body { padding: 30px; }

/* Buscador */
.input-group-consulta { 
    display: flex; 
    gap: 8px; 
}
.btn-consultar {
    background-color: var(--palm-accent);
    color: var(--palm-dark);
    font-weight: 700;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    transition: 0.3s;
}
.btn-consultar:hover { background-color: #e5c100; }

/* --- VIDEO (ARREGLADO) --- */
.video-container {
    margin-top: 30px;
    border-radius: 16px;
    overflow: hidden; /* Esto corta las esquinas del video */
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    background-color: #000; /* Fondo negro mientras carga */
    border: 4px solid #fff; /* Marco blanco tipo foto */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* Sombra para resaltar */
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* =========================================
   RESULTADOS (TRACKER)
========================================= */
.resultado-box {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-top: 25px;
    overflow: hidden;
}

.res-header {
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.res-radicado { color: var(--palm-primary); font-weight: 800; font-size: 1.1rem; }

/* Línea de tiempo limpia */
.status-tracker {
    display: flex;
    justify-content: space-between;
    padding: 30px 20px;
    position: relative;
}
/* Línea gris de fondo */
.status-tracker::before {
    content: '';
    position: absolute;
    top: 42px; left: 40px; right: 40px;
    height: 3px; background: #eee; z-index: 0;
}

.status-step { position: relative; z-index: 1; text-align: center; width: 33%; }

.status-dot {
    width: 28px; height: 28px;
    background: #eee;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.8rem;
    transition: 0.3s;
}

/* Estados Activos */
.status-step.active .status-dot { background: var(--palm-primary); transform: scale(1.2); box-shadow: 0 0 0 4px rgba(0,104,55,0.15); }
.status-step.active { color: var(--palm-primary); font-weight: 700; }
.status-step.completed .status-dot { background: var(--palm-primary); }

.res-body { padding: 25px; }
.res-response {
    background-color: #f1f8f3; /* Verde muy muy claro */
    border-left: 4px solid var(--palm-primary);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* =========================================
   SECCIÓN PROCESO (CIRCULOS)
========================================= */
.info-section { 
    padding: 80px 0; 
    background-color: var(--bg-section);
}

.step-card { text-align: center; padding: 15px; }

.step-circle {
    width: 65px; height: 65px;
    background: #fff;
    color: var(--palm-primary);
    border: 2px solid var(--palm-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.4rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.accordion-item {
    border: none;
    border-radius: 10px !important;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    background: #fff;
}
.accordion-button:not(.collapsed) {
    background-color: #fff;
    color: var(--palm-primary);
    box-shadow: inset 0 -2px 0 var(--palm-primary);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .container-cards { margin-top: 0; }
    .form-section-wrapper { padding-top: 50px; }
    .help-card { position: static; margin-top: 40px; }
}