body {
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  font-family: "Open Sans", sans-serif;
  color: #7a7e9a;
}

/* Fondo del modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  padding: 15px;
}

/* Contenido del modal */
.modal-content {
  background-color: #fff;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  padding: 20px;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Imagen m谩s grande y responsive */
.modal-img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Texto */
.modal-text {
  margin: 10px 0;
  color: #555;
  font-size: 1rem;
}

/* Bot贸n de descarga */
.download-btn {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(90deg, #007bff, #00b4d8);
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.3s ease;
}
.download-btn:hover {
  background: linear-gradient(90deg, #0056b3, #0077b6);
}

/* Bot贸n de cierre */
.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}
.close:hover {
  color: #000;
}

/* Animaci贸n */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsivo */
@media (max-width: 480px) {
  .modal-content {
    padding: 15px;
  }
  .modal-img {
    max-height: 250px;
  }
  .modal-text {
    font-size: 0.9rem;
  }
}
/* ========= MODAL RESPONSIVE ========= */

.modal-at{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.78);
    backdrop-filter:blur(8px);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999999;
    padding:15px;
}

.modal-card{
    background:#fff;
    width:100%;
    max-width:950px;
    max-height:90vh;
    overflow-y:auto;
    border-radius:25px;
    padding:35px;
    position:relative;
    text-align:center;
    box-shadow:0 15px 50px rgba(0,0,0,.25);
    animation:modalUp .4s ease;
}

/* botón cerrar */
.cerrar-modal{
    position:absolute;
    top:15px;
    right:20px;
    font-size:35px;
    cursor:pointer;
    color:#777;
    z-index:2;
}

/* etiqueta */
.tag-modal{
    background:#0F2744;
    color:#fff;
    padding:8px 18px;
    border-radius:50px;
    display:inline-block;
    font-size:14px;
    margin-bottom:15px;
}

.modal-card h2{
    color:#0F2744;
    font-size:38px;
    margin-bottom:10px;
    line-height:1.2;
}

.modal-card p{
    color:#666;
    margin-bottom:30px;
}

/* GRID RESPONSIVE */
.cards-proyectos{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

/* CARD */
.card-proyecto{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    text-decoration:none;
    box-shadow:0 8px 25px rgba(0,0,0,.10);
    transition:.3s;
}

.card-proyecto:hover{
    transform:translateY(-5px);
}

.card-proyecto img{
    width:100%;
    height:180px;
    object-fit:cover;
    display:block;
}

.info-card{
    padding:18px;
    text-align:left;
}

.info-card h4{
    color:#222;
    font-size:18px;
    margin-bottom:8px;
}

.info-card span{
    color:#0F2744;
    font-weight:600;
}

/* animación */
@keyframes modalUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ===== TABLET ===== */
@media (max-width: 991px){

    .modal-card{
        max-width:700px;
        padding:30px;
    }

    .cards-proyectos{
        grid-template-columns:repeat(2,1fr);
    }

    .modal-card h2{
        font-size:30px;
    }
}

/* ===== MÓVIL ===== */
@media (max-width: 768px){

    .modal-at{
        align-items:flex-start;
        padding:12px;
    }

    .modal-card{
        width:100%;
        margin-top:20px;
        border-radius:22px;
        padding:22px;
        max-height:92vh;
    }

    .modal-card h2{
        font-size:24px;
        line-height:1.3;
    }

    .modal-card p{
        font-size:14px;
    }

    /* UNA CARD POR FILA */
    .cards-proyectos{
        grid-template-columns:1fr;
        gap:15px;
    }

    .card-proyecto{
        width:100%;
    }

    .card-proyecto img{
        height:190px;
    }

    .info-card{
        padding:16px;
    }

    .info-card h4{
        font-size:17px;
    }

    .cerrar-modal{
        top:10px;
        right:15px;
        font-size:30px;
    }
}