:root {
    --color-1: #76d7c4;
    --color-2: #7fb3d5;
    --color-3: #8e8cd8;
    --bg-body: #f4f7f6;
    --text-color: #777;
}

body {
    background-image: url("assets/montanas.jpg"); /* tu imagen */
    background-size: cover;       /* ocupa toda la pantalla */
    background-position: center;  /* centrada */
    background-repeat: no-repeat; /* no se repite */
    background-attachment: fixed; /* efecto pro (queda fija) */

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4); /* oscuridad */
    z-index: -1;
}
/* ================= CARDS ================= */

.container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.card {
    position: relative;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.circle {
    width: 160px;
    height: 100px;
    border-radius: 100px 100px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.c1 { background-color: var(--color-1); }
.c2 { background-color: var(--color-2); }
.c3 { background-color: var(--color-3); }

.content {
    background-color: white;
    padding: 60px 30px 40px;
    border-radius: 20px 20px 150px 150px;
    text-align: center;
    margin-top: -30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
}

.content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card:nth-child(1) h3 { color: var(--color-1); }
.card:nth-child(2) h3 { color: var(--color-2); }
.card:nth-child(3) h3 { color: var(--color-3); }

.content p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* BOTONES */
.card-button {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.btn-1 { background-color: var(--color-1); color: white; }
.btn-2 { background-color: var(--color-2); color: white; }
.btn-3 { background-color: var(--color-3); color: white; }

.card-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
/* ================= MODAL ================= */
.modal {
    display: none; /* 🔥 IMPORTANTE: oculto por defecto */
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
}

/* SOLO cuando está activo */
.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-top: 60px;
    padding-bottom: 40px;

    overflow-y: auto; /* scroll */
}

/* CONTENIDO */
.modal-content {
    background: #fff;
    width: 95%;
    max-width: 1000px;

    border-radius: 12px;
    padding: 30px;
    position: relative;

    margin: 0 auto; /* centrado horizontal */

    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
}
/* BOTÓN CERRAR */
.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 25px;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* SCROLL */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ANIMACIÓN */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= FORM ================= */

.modal-image {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.modal-image img {
  width: 100%;
  max-width: 600px; /* tamaño controlado */
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-content img {
    display: block;
    margin: 20px auto; /* 🔥 centra horizontal */
    max-width: 100%;   /* no se rompe en pantallas chicas */
    height: auto;

    border-radius: 10px; /* opcional, queda más pro */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); /* opcional */
}
/* ================= CONTACTO ================= */

.contact-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

/* WHATSAPP */
.whatsapp-btn {
    background: #25D366;
}

/* EMAIL */
.email-btn {
    background: #2c3e50;
}

/* HOVER */
.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.contact-btn i {
    font-size: 18px;
}


/* ================= RESPONSIVE ================= */

/* 📱 CELULARES */
@media (max-width: 576px) {

    .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .card {
        width: 90%;
        margin-top: 30px;
    }

    .content {
        padding: 50px 20px 30px;
        min-height: auto;
    }

    .content h3 {
        font-size: 1.3rem;
    }

    .content p {
        font-size: 0.9rem;
    }

    .card-button {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-image img {
        max-width: 100%;
    }
}

/* 📲 TABLETS */
@media (min-width: 577px) and (max-width: 992px) {

    .container {
        justify-content: center;
    }

    .card {
        width: 45%;
    }

    .modal-content {
        max-width: 700px;
    }
}

/* 💻 NOTEBOOK */
@media (min-width: 993px) and (max-width: 1200px) {

    .card {
        width: 280px;
    }

    .modal-content {
        max-width: 900px;
    }
}

/* 🖥️ PANTALLAS GRANDES */
@media (min-width: 1201px) {

    .container {
        max-width: 1200px;
        margin: auto;
    }

    .modal-content {
        max-width: 1100px;
    }
}