
/* ==================================== */
/* ESTILOS PARA LA SECCIÓN DE APOSTILLA (Información adicional de la última imagen) */
/* ==================================== */

.apostilla-details {
    margin: 10px 0;
    padding: 5px;
    border-radius: 10px;
    background-color: #f8f8f8;
}

.note-important-apostilla {
    font-size: 1.1em;
    padding: 10px 0;
    color: #333;
    text-align: center;
}

.apostilla-dark-block {
    background-color: #343a40; /* Fondo oscuro (similar al de la imagen) */
    color: white;
    padding: 5px;
    border-radius: 8px;
    margin-top: 20px;
}

.apostilla-dark-block hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

.location-info, .cost-info {
    font-size: 1.05em;
    line-height: 1.8;
}

.text-gold {
    color: #ffc107; /* Color dorado/amarillo para resaltar */
    font-weight: 700;
}
/* Colores y Variables */
:root {
--color-primary: #004d99; /* Azul FGE */
 --color-secondary: #f2a900; /* Dorado FGE */
--color-background-white: #ffffff; 
--color-table-header: #003366; /* Azul Oscuro para encabezados de tabla */
--color-text-dark: #1c2833; 
--color-success: #28a745; /* Color para las palomas (éxito) */
--color-text-gray: #555; 
}


.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 0; 
}
.section-bg-white {
background-color: var(--color-background-white);
padding: 10px 0;
}
.section-title {
font-size: 2.2em;
font-weight: 900;
margin-top: 0; 
margin-bottom: 30px;
color: var(--color-text-dark);
position: relative;
padding-bottom: 15px;
opacity: 0; 
}
.section-title::after {
content: '';
display: block;
width: 100px;
height: 4px;
background-color: var(--color-secondary);
position: absolute;
bottom: 0;
left: 0;
}
.section-subtitle {
font-size: 1.1em;
color: var(--color-text-gray); 
margin-bottom: 40px;
opacity: 0; 
}
.line-highlight {
border-radius: 8px;
background-color: var(--color-background-white);
border: 1px solid #e0e0e0;
transition: all 0.3s ease;
overflow: hidden; 
opacity: 0; 
}
.line-highlight:hover {
border-color: var(--color-primary);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
transform: translateY(-2px);
}
.line-highlight-bottom { border-radius: 0 0 8px 8px; }

/* ==================================== */
/* TABLAS DE REQUISITOS */
/* ==================================== */
.table-grid-container { 
display: flex; 
flex-wrap: wrap; 
justify-content: center; 
gap: 30px; 
margin-bottom: 10px; 
}

.table-wrapper {
flex: 1 1 45%; 
min-width: 350px; 
box-sizing: border-box; 
border-radius: 8px; 
overflow: hidden; 
}

.table-title {
background-color: var(--color-table-header); 
color: white;
padding: 18px 15px;
font-weight: 700;
text-align: center;
font-size: 1.2em;
border-bottom: 4px solid var(--color-secondary);
border-radius: 8px 8px 0 0;
margin-top: 0;
}

.data-table { 
width: 100%; 
border-collapse: collapse; 
background-color: var(--color-background-white); 
}
.data-table thead th {
background-color: var(--color-primary); 
color: white;
padding: 12px 10px;
font-size: 0.9em;
font-weight: 700;
text-align: center;
border: 1px solid var(--color-table-header); 
}
.data-table thead th:first-child { text-align: left; }

.data-table tr {
transition: background-color 0.2s ease;
}
.data-table tr:hover {
background-color: #f0f8ff; 
}
.data-table td { 
padding: 12px 10px; 
text-align: left; 
border: 1px solid #ddd; 
font-size: 0.95em;
vertical-align: middle; 
}
.data-table td:first-child { 
width: 65%; 
font-weight: 500;
color: var(--color-text-dark);
text-align: left;
}
/* Celdas de Original y Copia */
.data-table td:nth-child(2),
.data-table td:nth-child(3) {
width: 17.5%; 
text-align: center;
}

.data-table tr:nth-child(even) {
background-color: #f7f7f7; 
}

.icon-list { 
margin-right: 10px; 
color: var(--color-secondary); 
font-size: 1.2em; 
}

/* CLASE PARA LAS PALOMAS */
.text-success {
color: var(--color-success); /* Verde para la paloma */
font-size: 1.2em;
font-weight: 900;
}

.info-text {
padding: 15px;
background-color: #e6f7ff; 
font-weight: 400;
color: var(--color-primary);
border-top: 2px solid var(--color-primary); 
font-style: italic;
}


/* ==================================== */
/* ANIMACIONES */
/* ==================================== */
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Aplicación de Animación */
.slide-in-right { animation: slideInRight 0.8s ease-out forwards; }
.fade-in { animation: fadeIn 1s ease-out forwards; }

/* Retardos de animación */
.delay-2-6 { animation-delay: 2.6s; } 
.delay-2-8 { animation-delay: 2.8s; } 
.delay-3 { animation-delay: 3.0s; } 
.delay-3-2 { animation-delay: 3.2s; } 


/* ==================================== */
/* RESPONSIVE DESIGN (Móvil) */
/* ==================================== */
@media (max-width: 1024px) {
    .table-wrapper {
        flex: 1 1 100%; 
        max-width: 600px; 
    }
    .table-grid-container {
        justify-content: center; 
    }
}

@media (max-width: 480px) {
    .data-table thead { display: none; } 
    .data-table tr { 
        display: block; 
        margin-bottom: 10px; 
        border: 1px solid #ddd;
        border-radius: 5px;
    }
    .data-table td { 
        display: block; 
        width: 100% !important; 
        text-align: left !important;
        border-bottom: none;
    }
    /* Muestra la etiqueta (Original/Copia) antes del contenido */
    .data-table td:before { 
        content: attr(data-label) ": ";
        font-weight: 700;
        margin-right: 5px;
        color: var(--color-primary);
    }
    /* Oculta el ícono de paloma en móvil para evitar redundancia con la etiqueta */
    .data-table td .fa-check { display: none; } 
}

/* =====================================================
           ESTILOS DEL WARNING (ADVERTENCIA AMARILLA)
        ===================================================== */
        .warning-box {
            background-color: #ec2943ff; /* Fondo amarillo suave */
            color: #ffffffff; /* Texto amarillo oscuro */
            border: 1px solid #ff0000ff; /* Borde amarillo más oscuro */
            padding: 15px 20px;
            margin-bottom: 30px;
            border-radius: 5px;
            display: flex;
            align-items: center;
            font-size: 16px;
            font-weight: bold;
            
            /* Efecto de sombra sutil al cargar */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: box-shadow 0.3s ease;
        }

        /* Efecto al pasar el ratón */
        .warning-box:hover {
            box-shadow: 0 4px 8px rgba(252, 0, 0, 0.5); /* Sombra amarilla al pasar el ratón */
        }

        .warning-icon {
            margin-right: 15px;
            font-size: 24px;
        }

        .warning-text strong {
            color: #000; /* Texto importante en negro para contraste */
        }
     .btn-circular{
        background-color: #ff0000;
        color: #fff;
        padding: 15px 40px;
        font-size: 1.1em;
        font-weight: bold;
        text-decoration: none;
        border-radius: 50px;
        transition: transform 0.3s ease, background-color 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        position: relative; /* Asegura que el botón esté por encima del destello */
        z-index: 2;
    }

    .btn-circular:hover {
        background-color: #120f3cff;
        transform: translateY(-3px);
        color:#fff;
    }

    /* === HORARIOS Y RESTRICCIONES === */

    .horarios-section {
        text-align: center;
        padding: 20px 0;
        background-color: #fcfcfc;
        border-bottom: 3px solid #eee;
    }

    .horarios-section h2 {
        color: #0D47A1;
        font-size: 1.6em;
        margin-bottom: 5px;
    }

    .horarios-section p {
        font-size: 1.8em;
        font-weight: bold;
        color: #E60000;
        margin-top: 5px;
    }
    
    .restricciones-section {
        padding: 30px 0 20px 0;
        text-align: center;
    }

    .protocolo-salud {
        font-style: italic;
        color: #555;
        margin-top: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
    }

    .prohibited-items-grid {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-top: 20px;
    }

    .item-prohibido .icon {
        font-size: 4em;
        color: #202d4f;
        border: 5px solid #202d4f; 
        border-radius: 3%;
        width: 110px;
        height: 110px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 10px;
        transition: transform 0.3s ease;
    }
    
    .item-prohibido:hover .icon {
        transform: scale(1.1);
    }

    .item-prohibido p {
        font-size: 0.9em;
        color: #666;
        margin: 0;
    }

    /* --- Botón Principal de Trámite --- */
    .btn-tramitar {
        background-color: #202d4f;
        color: #fff;
        padding: 15px 40px;
        font-size: 1.1em;
        font-weight: bold;
        text-decoration: none;
        border-radius: 50px;
        transition: transform 0.3s ease, background-color 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        position: relative; /* Asegura que el botón esté por encima del destello */
        z-index: 2;
    }

    .btn-tramitar:hover {
        background-color: #120f3cff;
        transform: translateY(-3px);
        color:#fff;
    }

    .hero-section {
        background-color: #a6abb9;
        color: #202d4f;
        padding: 15px 0 25px 0;
        text-align: center;
        position: relative; /* Importante para el destello */
        overflow: hidden; /* Oculta el destello al salir del área */
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        animation: fadeIn 1s ease-out;
    }
    
    /* --- EFECTO DE DESTELLO EN HERO SECTION (Nuevo Código) --- */
    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        /* Degradado radial para simular un destello sutil */
        background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
                    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
        z-index: 1; /* Encima del fondo, debajo del texto */
        opacity: 0.8;
        animation: moveShine 30s linear infinite;
    }
    
    .hero-section h1 {
        color: white;
        font-size: 3.2em;
        margin-bottom: 10px;
        position: relative; /* Asegura que el texto esté por encima del destello */
        z-index: 2;
    }

    .hero-section p {
        font-size: 1.3em;
        opacity: 0.85;
        max-width: 800px;
        margin: 0 auto 30px;
        position: relative; /* Asegura que el texto esté por encima del destello */
        z-index: 2;
    }

 /* ================================================= */
/* 1. VARIABLES Y KEYFRAMES (ANIMACIÓN RESTAURADA) */
/* ================================================= */

:root {
    --color-primary-blue: #202d4f; /* Azul FGE */
    --color-accent-red: #d9534f; /* Rojo de acento para la tarjeta */
    --color-background-light: #f9f9f9; 
    --color-border-light: #eee;
    --color-text-dark: #333;
    --color-text-light: #666;
}

/* Animación de deslizamiento hacia arriba (Slide Up) */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================= */
/* 2. DISEÑO DE PASOS */
/* ================================================= */

.tramite-main-content {
    width: 100%; 
    padding: 30px 0;
    margin: 0;
    background-color: var(--color-background-light);
    box-sizing: border-box;
}

.tramite-main-content h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 25px;
    padding-left: 15px; 
}

.pasos-container {
    display: flex; 
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap; 
    
    position: relative; 
    padding-left: 20px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* La línea vertical del lado izquierdo */
.pasos-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0; 
    left: 8px;
    width: 3px; 
    background-color: var(--color-primary-blue); 
    border-radius: 5px;
}

/* Estilo de la Tarjeta de Paso */
.paso-card {
    background-color: white;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 20px;
    
    /* Mantenemos la alineación del texto a la izquierda para el H4 y P */
    text-align: left; 
    
    flex: 1 1 30%; 
    min-width: 250px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    
    border-left: 5px solid var(--color-accent-red); 
    transition: all 0.3s ease;
    
    /* PROPIEDADES INICIALES PARA LA ANIMACIÓN (RESTAURADAS) */
    opacity: 0; 
    transform: translateY(30px); 
    /* APLICACIÓN DE LA ANIMACIÓN (RESTAURADA) */
    animation: slideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; 
}

/* Retardos Secuenciales */
.pasos-container .paso-card:nth-child(1) { animation-delay: 0.8s; } 
.pasos-container .paso-card:nth-child(2) { animation-delay: 1.1s; } 
.pasos-container .paso-card:nth-child(3) { animation-delay: 1.4s; } 

/* Efecto Hover se mantiene igual */
.paso-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-left: 8px solid var(--color-accent-red); 
}

/* Contenido de la Tarjeta */
.paso-numero {
    /* CORRECCIÓN CLAVE 1: Usar Flexbox para el centrado perfecto del número */
    display: flex; 
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
    
    background-color: white; 
    color: var(--color-primary-blue); 
    font-size: 1.5em;
    font-weight: 700;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    
    /* CORRECCIÓN CLAVE 2: Centramos el círculo horizontalmente en la tarjeta */
    margin: 0 auto 15px auto; 
    
    border: 2px solid var(--color-primary-blue); 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.paso-card h4 {
    color: var(--color-primary-blue); 
    font-weight: 700;
    text-align: center; /* Alineamos el título al centro, justo debajo del número */
    margin-top: 5px; 
    margin-bottom: 10px;
    font-size: 1.3em;
}

.paso-card p {
    color: var(--color-text-light);
    font-size: 0.95em;
    margin: 0;
    text-align: center; /* Alineamos el párrafo al centro */
}

/* ================================================= */
/* 3. RESPONSIVE DESIGN (Alineación Centrada en Móvil) */
/* ================================================= */

@media (max-width: 650px) {
    .pasos-container {
        flex-direction: column;
        align-items: center;
        padding-left: 20px;
    }
    .paso-card {
        flex: 1 1 100%; 
        max-width: 90%;
        text-align: center; /* Aseguramos que el contenido de la tarjeta esté centrado */
    }
    .paso-card h4, .paso-card p {
        text-align: center; /* Aseguramos que el texto esté centrado en vista móvil */
    }
    /* La línea vertical se mantiene en su posición */
}

        /* Estilos generales y paleta de colores: Azul (#0d47a1) y Gris */

        .containerpasos {
            max-width: 100%;
            margin: 0 auto;
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        /* =====================================================
           ESTRUCTURA DE DOBLE COLUMNA CON CSS GRID (50/50)
        ===================================================== */
        .step-section {
            display: grid;
            grid-template-columns: 1fr 1fr; 
            align-items: center;
            /* CLAVE: Eliminamos el margin-bottom para compactar */
            margin-bottom: 0; 
            padding: 15px 0;
            cursor: default;
            opacity: 0; 
            animation: slideInUp 0.6s ease-out forwards;
        }

        #step-1 { animation-delay: 0.1s; }
        #step-2 { animation-delay: 0.3s; }
        #step-3 { animation-delay: 0.5s; }
        
        .left-column {
            display: flex;
            align-items: center;
            justify-content: flex-end; 
            gap: 10px;
            padding-right: 20px; 
            flex-direction: row-reverse; 
        }

        /* Contenedor del Número y la Palabra "Paso" */
        .step-number-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: -15px; 
        }

        /* Estilo para la palabra "Paso" */
        .step-label {
            font-size: 12px;
            font-weight: bold;
            color: #6c757d;
            margin-bottom: 5px;
            text-transform: uppercase;
        }

        /* Columna de descripción */
        .right-column {
            padding-left: 20px;
            border-left: 1px solid #dee2e6;
        }
        
        /* Media Query para Responsividad (Móvil) */
        @media (max-width: 768px) {
            .step-section {
                grid-template-columns: 1fr;
            }
            .right-column {
                padding-left: 0;
                padding-top: 15px;
                border-top: 1px dashed #ced4da; 
                border-left: none;
            }
            .step-section:hover .step-description {
                transform: none;
            }
            .left-column {
                justify-content: center;
                padding-right: 0;
            }
        }


        /* =====================================================
           FLECHA Y NÚMERO
        ===================================================== */
        @keyframes slideInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .step-number {
            font-size: 48px;
            font-weight: bold;
            color: #fff;
            background-color: #202d4f;
            padding: 15px 25px;
            border-radius: 0 8px 8px 0; 
            flex-shrink: 0;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
        }

        .step-arrow {
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }

        .arrow-text {
            color: #333; 
            width: 300px; 
            text-align: center;
            padding: 25px 0; 
            font-size: 18px;
            font-weight: bold;
            
            background-color: #e9ecef;
            border-radius: 8px 0 0 8px; 
            position: relative; 
            transition: all 0.3s ease-in-out; 
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            
            overflow: hidden; 
            white-space: normal;
        }

        .step-section:hover .arrow-text {
             transform: translateY(-2px) scale(1.02); 
             background-color: #dee2e6;
        }

        /* PUNTA DE LA FLECHA (TAMAÑO CONSISTENTE) */
        .arrow-text::after {
            content: ''; 
            position: absolute; 
            right: -40px; 
            top: 0;
            
            border-top: 40px solid transparent; 
            border-bottom: 40px solid transparent; 
            border-left: 40px solid #e9ecef;
            z-index: 1;
            transition: all 0.3s ease-in-out;
        }
        
        .step-section:hover .arrow-text::after {
            border-left: 40px solid #dee2e6;
        }

        /* =====================================================
           PROPUESTA: ESTILOS DE LA DESCRIPCIÓN CON EFECTO HOVER
           CLAVE: Añadimos padding-bottom y border-bottom aquí para la separación
        ===================================================== */
        .step-description {
            background-color: #fff;
            padding: 15px;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease-in-out; 
            line-height: 1.5;
            min-height: 100px;
            
            /* Separación inferior limpia */
            padding-bottom: 25px; 
            border-bottom: 1px solid #dee2e6; 
        }

        /* Aseguramos que el último paso no tenga un borde inferior extra */
        #step-3 .step-description {
            border-bottom: none;
        }

        .step-section:hover .step-description {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
            border-left: 5px solid #202d4f;
            background-color: #f1f3f5;
        }


        /* Contenido de detalles y botones (sin cambios) */
        .payment-info b { font-weight: bold; color: #202d4f; } 
        .payment-info .price { color: #dc3545; } 
        .step-description p { font-size: 15px; margin-bottom: 10px; color: #495057; }
        
        .btn {
            padding: 10px 20px; text-decoration: none; color: #fff; border: none; border-radius: 4px;
            font-weight: bold; text-align: center; cursor: pointer; display: inline-block;
            transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
            margin-top: 10px;
        }
        .btn:hover { transform: scale(1.05); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); background-color: #1565c0; }
        .btn-orange, .btn-blue { background-color: #202d4f; }
        
        .top-info {
            padding: 20px; background-color: #f1f3f5; border: 1px solid #ced4da;
            border-radius: 4px; margin-bottom: 30px; text-align: center; 
        }

    /* =====================================================
       ESTILOS GENERALES Y LAYOUT
    ===================================================== */
    /* Nuevo contenedor para simular el centrado de la página */
    .page-wrapper {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        /* Dimensiones mínimas para ocupar toda la vista */
        /*min-height: 100vh;*/
        width: 100%;
        /* Flexbox para centrar la caja .main-content */
        display: flex;
        justify-content: center; /* Centrado Horizontal CLAVE */
        align-items: flex-start; /* Alineación al inicio (arriba) */
    }

    .main-content {
        width: 100%;
        max-width: 900px;
        background-color: #fff;
        padding: 10px;
        margin-top: 5px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        /* Centra todo el contenido de texto e inline dentro de la caja */
        text-align: center; 
        
        /* Animación de entrada */
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInSlide 0.8s ease-out forwards;
    }
    
    @keyframes fadeInSlide {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Títulos y Subtítulos */
    .title {
        font-size: 26px;
        color: #0d47a1;
        font-weight: bold;
        margin-bottom: 5px;
    }
    .subtitle {
        font-size: 14px;
        color: #ff0000;
        margin-bottom: 30px;
    }

    /* Bloque de advertencia */
    .warning-block {
        background-color: #f8f8f8;
        border-radius: 6px;
        padding: 5px;
        margin: 30px auto; 
        line-height: 1.6;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        text-align: center;
    }
    
    /* Reducir el margen de los párrafos dentro del bloque de advertencia */
    .warning-block p {
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    .warning-block strong {
        color: #d32f2f;
        font-weight: bold;
    }

    .note {
        font-size: 14px;
        color: #202d4f;
        margin-top: 20px;
        display: block;
    }

    /* Encabezado de Documentos */
    .doc-header {
        font-size: 20px;
        color: #333;
        margin-top: 10px; 
        margin-bottom: 20px;
        border-bottom: 2px solid #0d47a1;
        display: inline-block; 
        padding-bottom: 5px;
    }

    /* Botón */
    .btn-blue {
        background-color: #202d4f;
        color: #fff;
        padding: 12px 25px;
        text-decoration: none;
        border-radius: 25px;
        font-weight: bold;
        display: inline-block;
        margin-top: 10px;
        margin-bottom: 25px;
        cursor: pointer;
        transition: all 0.3s ease-in-out; 
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
    }
    .btn-blue:hover {
        background-color: #1565c0;
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
        color:#fff;
    }
    
    .btn-blue:active {
        transform: translateY(1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    /* Pie de página/última línea de texto */
    .footer-text {
        font-size: 15px;
        color: #333;
        margin-top: 10px;
        border-top: 1px solid #eee;
        padding-top: 10px; 
        text-align: center; 
    }

    /* ==================================== */
/* TABLAS DE REQUISITOS (¡MEJORA CLAVE AQUÍ!) */
/* ==================================== */
.table-grid-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; 
    margin-bottom: 40px; 
}

.table-wrapper {
    flex: 1 1 45%; 
    min-width: 350px; 
    box-sizing: border-box; 
    border-radius: 8px; 
    overflow: hidden; 
}

.table-title {
    background-color: var(--color-table-header); 
    color: white;
    padding: 18px 15px;
    font-weight: 700;
    text-align: center;
    font-size: 1.2em;
    border-bottom: 4px solid var(--color-secondary);
    border-radius: 8px 8px 0 0;
    margin-top: 0;
}

/* ESTILO DE FILAS DE ALTO CONTRASTE Y TIPO LISTA */
.data-table { 
    width: 100%; 
    border-collapse: collapse; /* CAMBIO: A collapse para un mejor look de 3 columnas */
    background-color: var(--color-background-white); 
}
/* Encabezados de tabla */
.data-table thead th {
    background-color: var(--color-primary); 
    color: white;
    padding: 12px 10px;
    font-size: 0.9em;
    font-weight: 700;
    text-align: center;
}
.data-table thead th:first-child { text-align: left; }

.data-table tr {
    transition: background-color 0.2s ease;
}
.data-table tr:hover {
    background-color: #f0f8ff; 
}
/* Estilo de celdas de datos */
.data-table td { 
    padding: 12px 10px; 
    text-align: left; 
    border: 1px solid #ddd; /* Líneas para diferenciar celdas */
    font-size:12px;
    vertical-align: middle; 
}
/* Celda de Documento (la primera) */
.data-table td:first-child { 
    width: 85%; /* Más espacio para la descripción del documento */
    font-weight: 500;
    color: var(--color-text-dark);
    text-align: left;
}
/* Celdas de Palomas (Original/Copia) */
.data-table td:nth-child(2),
.data-table td:nth-child(3) {
    width: 15.5%; /* Distribuye el espacio restante */
    text-align: center;
}


/* Filas Pares (Striping más elegante) */
.data-table tr:nth-child(even) {
    background-color: #f7f7f7; 
}

.icon-list { 
    margin-right: 10px; 
    color: var(--color-secondary); 
    font-size: 1.2em; 
}

/* CLASE AÑADIDA PARA LAS PALOMAS */
.text-success {
    color: var(--color-success); /* Verde para la paloma */
    font-size: 1.2em;
    font-weight: 900;
}

.info-text {
    padding: 15px;
    background-color: #e6f7ff; 
    font-weight: 400;
    color: var(--color-primary);
    border-top: 2px solid var(--color-primary); 
    font-style: italic;
}
/* ==================================== */
/* RESPONSIVE DESIGN (CRUCIAL PARA TABLAS) */
/* ==================================== */
@media (max-width: 1024px) {
    .steps-grid-container {
        grid-template-columns: 1fr 1fr;
    }
    .table-wrapper {
        flex: 1 1 100%; 
        max-width: 600px; 
    }
    .table-grid-container {
        justify-content: center; 
    }
}

@media (max-width: 900px) {
    .header-content { flex-direction: column; text-align: center; }
    nav { margin-top: 10px; }
    
    .table-grid-container,
    .steps-grid-container, 
    .location-grid { flex-direction: column; gap: 20px; }
    
    .apostilla-details { flex-direction: column; }
    .apostilla-image { min-width: unset; width: 100%; height: 250px; } 
    .apostilla-content { padding-left: 0; }
    
    h1 { font-size: 2.8em; }
    .section-title { font-size: 2em; }
    .section-bg-light, .section-bg-white { padding: 50px 0; }
}

@media (max-width: 600px) {
    .steps-grid-container {
        grid-template-columns: 1fr;
    }
    .prohibition-icons-grid {
        grid-template-columns: 1fr 1fr; 
    }
    .step-card-with-img { flex-direction: column; text-align: center; }
    .step-content { padding-right: 0; }
    .step-image { margin-top: 20px; width: 100%; height: 150px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    .section-title { font-size: 1.6em; }
    .prohibition-icons-grid {
        grid-template-columns: 1fr; 
    }
    /* Estilo de tabla en móvil */
    .data-table thead { display: none; } /* Ocultamos el encabezado */
    .data-table tr { 
        display: block; 
        margin-bottom: 10px; 
        border: 1px solid #ddd;
        border-radius: 5px;
    }
    .data-table td { 
        display: block; 
        width: 100% !important; 
        text-align: left !important;
        border-bottom: none;
    }
    .data-table td:before { /* Agregamos etiquetas con pseudo-elemento */
        content: attr(data-label);
        font-weight: 700;
        margin-right: 10px;
        color: var(--color-primary);
    }
    /* Ocultamos las palomas en el móvil, dejamos el texto para que se entienda la tabla de una sola columna */
    .data-table td .fa-check { display: none; } 
}
