:root {
    --primary: #82CFF5;
    /* Color sugerido para exclusividad */
    --oscuro: #1a1a1a;
    --blanco: #ffffff;
    --gris-claro: #f4f4f4;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--oscuro);
    background: var(--blanco);
}

.hero {
    background: linear-gradient(rgba(0, 59, 101, 0.7), rgba(0, 59, 101, 0.7)), 
                url(../img/7528.jpg) no-repeat center;
    background-size: cover;
    color: var(--blanco);
    padding: 120px 20px;
    text-align: center;
}

.hero h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 3.5rem;
    font-weight: 100;
    margin-bottom: 0px;
    color: var(--primary);
}
.hero p {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
}

.thumb {
    max-width: 7em;
    height: auto;
}
.logotipo {
    max-width: 300px;
    height: auto;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
}

.beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.card {
    background: var(--gris-claro);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border-bottom: 3px solid var(--dorado);
}

.card h3 {
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: 2em;
    color: #003B65;
    margin-bottom: 0;
}
.card p {
    font-family: 'Montserrat';
    font-weight: 200;
    font-size: 1.2em;
    color: #222;
    margin-top: 0;
}

h2 {
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: 2em;
    color: #003B65;
    margin-bottom: 0;
    text-transform: uppercase;
    text-align: center;
}

.tratamientos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}


/* Contenedor principal de la tarjeta */
.tratamiento-card {
    position: relative;
    overflow: hidden; /* Corta la imagen cuando crece en el zoom */
    border-radius: 15px;
    height: 350px; /* Altura fija para uniformidad */
    cursor: pointer;
}

/* La imagen de fondo */
.tratamiento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; /* Suavidad del zoom */
}

/* El efecto de zoom al pasar el mouse */
.tratamiento-card:hover img {
    transform: scale(1.1);
}

/* Capa oscura y contenedor de texto */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 10%, rgba(0,0,0,0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja el texto hacia abajo */
    padding: 20px;
    color: white;
    box-sizing: border-box;
}

.card-overlay h3 {
    margin: 0 0 5px 0;
    font-family: 'Montserrat';
    color: var(--primary); /* Tu color corporativo */
    font-size: 1.6rem;
    font-weight: 400;
}

.card-overlay p {
    font-family: 'Montserrat';
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.9;
}

.foto-placeholder {
    background: #ddd;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: cover;
}

.category-title {
    border-left: 5px solid var(--dorado);
    padding-left: 15px;
    margin: 40px 0 20px;
}

.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}

.main-footer {
    background-color: #ffffff;
    color: #003B65;
    padding: 60px 20px 20px;
    border-top: 1px solid #f0f0f0;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-info i {
    margin-right: 10px;
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 25px;
}

.footer-social a {
    color: #003B65;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

/* Efecto Elegante al pasar el mouse */
.footer-social a:hover {
    color: #c5a059; /* Usando el dorado de la marca para el hover */
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #f8f8f8;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.6;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

.img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ccc;
}