: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;
}

header {
    background-color: #2f4576;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img {
    height: 40px;
}

main h2 {
    font-size: 34px;
    font-weight: 700;
}

main {
    text-align: center;
    padding: 0px 0px 20px 0px;
    /* NUEVAS PROPIEDADES */
    min-height: calc(100vh - 147px);
    /*display: flex;
    flex-direction: column;
    justify-content: center;*/
}

main h1,
main h2 {
    color: #2f4576;
    margin-bottom: 20px;
}

.text-azul-marino {
    color: #2f4576;
}

main p {
    color: #555;
    margin-bottom: 40px;
    font-size: 14px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.dashboard-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    width: 260px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    background-color: #2f4576;
    color: white;
    padding: 30px 20px;
    font-size: 12px;
    height: 185px !important;
}

.dashboard-card h3 {
    font-size: 15px;
    font-weight: normal;
}

.dashboard-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.card-icon {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.dashboard-card:hover .icon {
    color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
}

.card {
    background-color: #2f4576;
    color: white;
    width: 260px;
    padding: 30px 20px;
    border-radius: 8px;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.card h3 {
    margin-top: 15px;
    font-size: 15px;
    font-weight: normal;
}

.icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.info-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--secondary-color);
    margin: 30px 20px 0 20px;
}

@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 20px;
    }
}

/* ===== NUEVA SECCIÓN DE BIENVENIDA CON DOS DIVISIONES ===== */
.welcome-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 0px;
}

.info-block {
    background: white;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-left: 6px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.box-block {
    background: white;
    padding: 25px;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);*/
    transition: all 0.3s ease;
    margin: 30px 0px 0px 0px;
}

.box-pie {
    background: #e09c35;
    padding: 20px 30px 24px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/*.info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(47, 69, 118, 0.12);
}*/

/* Colores distintivos para cada bloque */
.welcome-block {
    border-left-color: #2f4576;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.reminder-block {
    border-left-color: #e67e22;
    background: linear-gradient(145deg, #ffffff, #fff9f0);
}

.manual-block {
    border-left-color: #27ae60;
    background: linear-gradient(145deg, #ffffff, #f0fff4);
}

.big-icon {
    font-size: 1.2rem;
    color: #2f4576;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/*.info-block:hover .big-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}*/

.big-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.big-subtitle {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.welcome-block .big-title,
.welcome-block .big-subtitle {
    color: #2f4576;
}

.reminder-block .big-title,
.reminder-block .big-subtitle {
    color: #e67e22;
}

.manual-block .big-title,
.manual-block .big-subtitle {
    color: #27ae60;
}

.lead-text {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0;
    line-height: 1.6;
}

.lead-text strong {
    font-weight: 600;
}

.manual-link {
    /*color: #27ae60;*/
    color: #ccc;
    font-weight: 500;
    text-decoration: none;
    /*border-bottom: 2px solid rgba(39, 174, 96, 0.3);*/
    /*border-bottom: 1px solid rgba(104, 104, 104, 0.3);*/
    /*padding-bottom: 2px;*/
    transition: all 0.3s ease;
    /*display: inline-block;*/
}

.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);
}

.infoButton {
    font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .big-title {
        font-size: 1.8rem;
    }

    .lead-text {
        font-size: 1rem;
    }

    .big-icon {
        font-size: 2.8rem;
    }

    .info-block {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .big-title {
        font-size: 1.5rem;
    }

    .big-icon {
        font-size: 2.2rem;
    }
}

/* Contenedor del icono */
.info-icon-container {
    position: relative;
    display: inline-block;
}

/* Botón solo icono */
.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, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 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;
}

/* TOOLTIP HOVER (derecha) */
.info-tooltip-right {
    position: absolute;
    top: 50%;
    left: 55px;
    transform: translateY(-50%) translateX(-10px);
    width: 580px;
    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-right {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.tooltip-arrow-right {
    position: absolute;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #2f4576;
    filter: drop-shadow(-2px 2px 4px rgba(0, 0, 0, 0.1));
    z-index: 1001;
}

/* Tooltip hacia ABAJO */
.info-tooltip-bottom {
    position: absolute;
    top: 100%;
    /* Se posiciona justo debajo del icono */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    /*width: 580px;*/
    width: 90%;
    /* 90% del ancho del contenedor padre */
    min-width: 350px;
    max-width: 400px;
    /* Límite para que no crezca demasiado */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    pointer-events: none;
    margin-top: 10px;
    /* Espacio adicional */
}

/* Flecha hacia arriba (apunta al icono) */
.tooltip-arrow-bottom {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #2e9bb1;
    /* Color de fondo del tooltip */
    filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.1));
    z-index: 1001;
}

/* Mostrar al hacer hover */
.info-icon-container:hover .info-tooltip-bottom {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(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;
}

.tooltip-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}