:root {
    --primary-color: #2f4576;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2f4576;
    --success-color: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Myriad Pro", "Myriad", "Segoe UI", Arial, sans-serif;
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.header-container {
    background-color: #2f4576;
    color: white;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.header-container img {
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-apci-header {
    height: 50px !important;
    width: auto;
    max-width: 100%;
}

.logo-cti-main {
    height: 95px;
    width: auto;
    max-width: 100%;
    margin: 2px 0 2px 0;
}

main {
    text-align: center;
    padding: 8px 0px 8px 0px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
}

main h1,
main h2 {
    color: #2f4576;
    margin-bottom: 8px;
}

.box-block {
    background: white;
    padding: 8px 12px;
    transition: all 0.3s ease;
    margin: 3px 0px 0px 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.box-pie {
    background: #e09c35;
    padding: 12px 20px 14px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    width: 100%;
}


.big-title {
    font-size: 1.80rem;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.1;
    color: #2d3061;
}

.big-icon {
    font-size: 1.2rem;
    color: #2f4576;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.lead-text {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0;
    line-height: 1.4;
}

.lead-text strong {
    font-weight: 600;
}

.manual-link {
    color: #ccc;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.manual-link:hover {
    color: #2f4576;
    border-bottom-color: #2f4576;
    transform: translateX(5px);
    text-decoration: underline;
}

.manual-link i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.manual-link:hover i {
    transform: translate(3px, -3px);
}

.info-icon-container {
    align-items: center;
    position: relative;
    display: inline-grid;
    vertical-align: middle;
    margin-left: 10px;
    
}

.btn-icon-info {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #12869e;
    color: #cff4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.5rem;
    padding: 0;
    position: relative;
    z-index: 10;
}

.btn-icon-info:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 18px rgba(47, 69, 118, 0.4);
    background: linear-gradient(135deg, #3a5090 0%, #2f4576 100%);
}

.btn-icon-info.active {
    background: linear-gradient(135deg, #3a5090 50%, #2f4576 50%);
    box-shadow: 0 6px 15px rgba(31, 61, 167, 0.4);
}

.btn-icon-info i {
    transition: all 0.3s ease;
}

.btn-icon-info:hover i {
    transform: rotate(5deg) scale(1.1);
}

.btn-icon-info.active i {
    color: white;
}

.info-tooltip-bottom {
    position: absolute;
    top: 50%;
    right: calc(100% - 15px);
    transform: translateY(-50%);
    width: 90%;
    min-width: 350px;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    pointer-events: none;
}

.info-icon-container:hover .info-tooltip-bottom {
    opacity: 1;
    visibility: visible;
    transform: translateY(-60%) translateX(0);
}

.tooltip-content {
    padding: 6px 9px;
    border-radius: 16px;
    font-size: 0.95rem;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeInRight 0.4s ease;
    border-color: #56c4da;
    word-wrap: break-word;
}

.tooltip-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.themes-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 70px auto;
}

.theme-card {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    display: flex;
}

.theme-btn {
    width: 100%;
    padding: 20px 25px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-family: inherit;
    color: white;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background-color: rgb(255, 255, 255);
    display: flex;
    text-decoration: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 200px;
    justify-content: center;
}


/* Botón 2 */
.theme-btn-2 {
    background-color: white;
    border: 3px solid #2f4576;
    color: #2f4576;
}

.theme-btn-2 h3 {
    color: #2f4576;
    font-weight: 700;
}

.theme-btn-2:hover {
    transform: translateY(-8px) translateX(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(61, 90, 150, 0.3);
    background-color: #f5f7fa;
}


.theme-btn-2 .theme-icon {
    font-size: 36px;
    transition: all 0.4s ease;
}

.theme-btn-2:hover .theme-icon {
    transform: translateX(5px) scale(1.15);
}


.theme-btn.active {
    background-color: #2f4576;
    box-shadow: 0 15px 40px rgba(77, 107, 143, 0.35);
    color: white;
}

.theme-btn h3 {
    font-size: 15px;
    margin: 0;
}

.theme-btn.active h3 {
    color: white;
}

.theme-btn.active .theme-description {
    color: white;
}

.theme-btn.active:hover {
    background: linear-gradient(135deg, #7c93c4 0%, #2a4268 100%);
}

.theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 32px;
}


.theme-description {
    font-size: 11px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
    color: #000000;
}

.theme-info-container {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.theme-info-container.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-info-content {
    background-color: #e9f1f7;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(47, 69, 118, 0.12);
    backdrop-filter: blur(8px);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    border: 3px solid rgba(243, 215, 215, 0.1);
}

.theme-info-content h3 {
    color: #2f4576;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.theme-info-content p {
    color: #555;
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.theme-info-badge:empty {
    display: none;
}

.theme-info-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2f4576 0%, #1a2e4a 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@keyframes slideInLeftFade {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-sub-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background-color: white;
    color: rgba(50, 50, 50, 0.875);
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid #7c93c4a0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 15px;
    font-weight: 500;
    animation: slideInLeftFade 0.5s ease-out forwards;
}

.info-sub-button:nth-child(1) {
    animation-delay: 0s;
}

.info-sub-button:nth-child(2) {
    animation-delay: 0.1s;
}

.info-sub-button:nth-child(3) {
    animation-delay: 0.2s;
}

.info-sub-button:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    background-color: #7c93c4a0;
}

.sub-btn-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes rotateOnHover {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .big-title {
        font-size: 1.3rem;
    }

    .lead-text {
        font-size: 0.9rem;
    }

    .big-icon {
        font-size: 2.2rem;
    }

    .themes-container {
        gap: 12px;
        margin: 8px 12px;
        overflow: visible;
    }

    .theme-card {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .theme-btn {
        padding: 22px 18px;
        min-height: 130px;
        font-size: 13px;
    }

    .theme-icon {
        width: 50px;
        height: 50px;
        font-size: 36px;
    }

    .theme-btn h3 {
        font-size: 14px;
    }

    .theme-description {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .big-title {
        font-size: 1.1rem;
    }

    .big-icon {
        font-size: 1.8rem;
    }

    .themes-container {
        display: flex;
        gap: 20px;
        align-items: stretch;
    }

    .theme-card {
        flex: 1;
    display: flex;
    overflow: visible;
    }

    .theme-btn {
        width: 100%;
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    }

    .theme-icon {
        width: 55px;
        height: 55px;
        font-size: 38px;
    }

    .theme-btn h3 {
        font-size: 14px;
    }

    .theme-description {
        font-size: 12px;
    }

    .info-icon-container {
        display: block;
    }

    .box-block {
        padding: 15px;
    }

    .header-container {
        padding: 10px 15px;
    }

    .header-container img {
        height: 35px;
    }

    .info-tooltip-bottom {
        left: 50%;
        transform: translateX(-80%) translateY(-10px);
        min-width: unset;
        width: 260px;
        z-index: 9999 !important;
        pointer-events: none;
    }

    .info-icon-container:hover .info-tooltip-bottom {
        transform: translateX(-80%) translateY(0);
    }

    main h2 {
        font-size: 20px;
        padding: 0 10px;
    }

    .lead-text {
        font-size: 0.95rem;
    }
}


/* Contenedor de texto */
.sub-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Título */
.sub-btn-title {
    font-size: 15px;
    font-weight: 600;
}

/* Subtítulo */
.sub-btn-subtitle {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.2;
}


.theme-info-container.active {
    animation: highlightFade 0.6s ease;
}

@keyframes highlightFade {
    from { background-color: rgba(47, 69, 118, 0.1); }
    to { background-color: transparent; }
}

/* Oculto por defecto (desktop) */
.theme-info-header {
    display: none;
}

/* Visible solo en móvil */
@media (max-width: 768px) {
    .theme-info-header {
        display: block;
    }
}

