:root {
    --card-width: 255px;
    --card-height: 380px;
    --info-height: 60px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
}

.header {
    width: 100%;
    height: 120px;
    background-color: #00277D;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .logo {
    max-width: 330px;
    height: auto;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: var(--card-height);
    width: var(--card-width);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    flex: 1 1 auto;
    width: 100%;
    height: calc(var(--card-height) - var(--info-height));
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.1);
}

.card .info {
    height: var(--info-height);
    padding: 10px;
    color: white;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color, #333);
    position: relative;
    z-index: 10;
    font-size: 16px;
    line-height: 1.2em;
    box-sizing: border-box;
}

.info .service-name {
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
}

.info .btn-ingresar {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 5px 10px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
}

.info .btn-ingresar:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Ajuste de fondo a semi-transparente */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.card:hover .overlay {
    opacity: 1;
}

.overlay .service-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.overlay .btn-ingresar {
    background-color: transparent;
    border: 2px solid white;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
}

.overlay .btn-ingresar:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.family-section {
    text-align: center;
    padding: 20px 0;
    background-color: transparent;
    margin-top: 20px;
}

.family-section p {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-secondary {
    background-color: #666666;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-secondary:hover {
    background-color: #444444;
}

.footer {
    width: 100%;
    background-color:  #00277D;
    padding: 10px 0;
    text-align: center;
    color: #ffffff;
    position: fixed;
    bottom: 0;
    left: 0;
}
