:root {
    --primary-blue: #004b8d;
    --primary-blue-dark: #00386a;
    --bg-light: #ffffff;
    --box-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #002c53;
    --text-muted: #8e99a3;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-pill: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header / Logo */
.header {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    max-width: 320px;
    height: auto;
}

/* =============================================
   BOTÓN PQRS GLOBAL
   ============================================= */
.pqrs-global-btn {
    position: fixed;
    top: 30px;
    right: 35px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #ffffff;
    border: 1.5px solid #dde2ea;
    border-radius: 50px;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    animation: pulse-sugerencias 2s infinite;
}

@keyframes pulse-sugerencias {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 75, 141, 0.3);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 75, 141, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 75, 141, 0);
    }
}

.pqrs-global-btn:hover {
    background: #f0f7ff;
    border-color: var(--primary-blue);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 75, 141, 0.15);
    animation: none;
}

.pqrs-global-btn i,
.pqrs-global-btn svg {
    width: 20px;
    height: 20px;
}

/* Main Heading */
.main-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* Selection Box */
.selection-box {
    background-color: #f5f7f9;
    border-radius: 12px;
    padding: 60px 40px 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.icon-wrapper i,
.icon-wrapper svg {
    width: 70px;
    height: 70px;
    stroke-width: 2px;
    display: block;
}

.card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    border: 3px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 75, 141, 0.1);
}

.card.active {
    border-color: #007bff;
    background-color: #f0f7ff;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.15);
}

.card.active .icon-wrapper,
.card.active span {
    color: #007bff;
}

.icon-wrapper {
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.card span {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 14px;
    margin-top: 5px;
}

/* Info Box Dinámica */
.info-box {
    margin-top: 30px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 120px;
    /* Altura mínima mayor para evitar saltos al cambiar texto */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.info-content.changing {
    opacity: 0;
}

.info-icon {
    color: #007bff;
}

.info-icon svg {
    width: 32px;
    height: 32px;
}

.small-text {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    max-width: 550px;
    margin: 0 auto;
    font-weight: 400;
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--text-dark);
}

.btn-back i {
    width: 18px;
    height: 18px;
}

.btn-continue {
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 50px;
    border-radius: var(--radius-pill);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 75, 141, 0.2);
}

.btn-continue:hover {
    background-color: var(--primary-blue-dark);
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 75, 141, 0.3);
}

.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .pqrs-text {
        display: none;
    }

    .pqrs-global-btn {
        top: auto;
        bottom: 90px;
        right: 15px;
        width: 54px;
        height: 54px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0, 75, 141, 0.2);
    }

    /* Etiqueta flotante (Tooltip) al hacer Hover / Touch en celular */
    .pqrs-global-btn::before {
        content: "Buzón de Sugerencias";
        position: absolute;
        right: calc(100% + 14px);
        background-color: var(--primary-blue-dark);
        color: #ffffff;
        padding: 8px 14px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform: translateX(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        pointer-events: none;
    }

    .pqrs-global-btn:hover::before,
    .pqrs-global-btn:active::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .pqrs-global-btn i,
    .pqrs-global-btn svg {
        width: 26px;
        height: 26px;
        margin: 0;
    }

    .header {
        margin-bottom: 30px;
    }

    .main-logo {
        max-width: 250px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .selection-box {
        padding: 30px 20px 20px;
    }

    .main-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .pqrs-global-btn {
        bottom: 85px; 
        right: 15px;
        width: 48px;
        height: 48px;
    }

    .pqrs-global-btn i,
    .pqrs-global-btn svg {
        width: 24px;
        height: 24px;
    }

    .main-logo {
        max-width: 200px;
    }

    .main-title {
        font-size: 21px;
    }

    .selection-box {
        padding: 25px 15px;
    }

    .actions {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .btn-continue {
        width: 100%;
        margin-bottom: 5px;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}