:root {
    --azul: #0071b7;
    --blanco: #FFF;
    --naranja: #ff4f1e;
    --agujero: #000000;

}

html {
    box-sizing: border-box;
    font-size:62.5%;    /* 1 rem = 10px */
 }
 
 *, *:before , *:after {
    box-sizing : inherit;
 }
 
 body {
   margin: 0;
   padding: 0;
   font-family: 'UNAL Ancizar Sans', sans-serif;
   font-size: 1.6rem;
   line-height: 1.5;
   background-image: url('../img/fondo-pc.jpg');
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   background-attachment: fixed;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
 }
 
 /* Efecto blur en el fondo */
 body::before {
   content: '';
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: url('../img/fondo-pc.jpg');
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   filter: blur(8px);
   z-index: -1;
 }

 /* Textura de puntos superpuesta */
 body::after {
   content: '';
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: 
     radial-gradient(circle, rgba(0,0,0,0.3) 1px, transparent 1px);
   background-size: 4px 4px;
   background-repeat: repeat;
   z-index: 0;
   pointer-events: none;
 }
 
 /* globales */
 h1,
 h2,
 h3 {
   font-family : 'UNAL Ancizar Sans', sans-serif;
   font-weight: 700; /* Usar un peso más audaz para los encabezados */
 }
 
 a {
   text-decoration: none;
   color: #000;
 }
 
 .contenedor {
  background-color: var(--agujero);
  max-width:120rem;
  margin:0 auto;
  text-align: center;
 }
 
 img {
  max-width:100%;
  display: block;
 } 

.nosotros {
    display: grid;
    grid-template-rows: repeat(2,1fr);
    grid-template-columns: repeat(3,1fr);
    background-image: url(/img/nosotros.jpg);
    background-repeat: no-repeat;
    background-position: bottom center;

}

.contenido {
    grid-column: 2/4;
    background-color: #FFF;
    padding: 5rem;
}

.titulo {
    padding: 2rem;
    color: black;
}

.texto {
    color: #000;
}

/* Logo principal */
.logo-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.main-logo {
  max-width: 240px;
  height: auto;
  transition: transform 0.3s ease;
}

.main-logo:hover {
  transform: scale(1.05);
}

/* Iconos sociales */
.social-icons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.social-icon {
  font-size: 2.4rem;
  color: #ffffff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 12px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Colores específicos para cada red social */
.fab.fa-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.fab.fa-whatsapp:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

/* Contenido principal */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.text-container {
  text-align: center;
  background: rgba(255, 255, 255, 0.9); /* Aumenté la transparencia */
  padding: 60px 80px;
  border: 3px solid #00D4AA;
  border-radius: 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* Sombra más suave */
  backdrop-filter: blur(10px);
  max-width: 600px;
  transform: rotate(-5deg);
  margin: 0 auto -50px auto;
  z-index: 2;
  transition: transform 0.3s ease, margin 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-text {
  color: #000;
  font-size: 4.2rem; /* Aumentado para efecto escalonado */
  margin-bottom: 40px;
  line-height: 1.2; /* Ligeramente ajustado para el nuevo tamaño */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Sombra añadida */
}

.cta-button {
  background: rgba(0, 212, 170, 0.1);
  color: #00D4AA;
  border: 3px solid #00D4AA;
  padding: 15px 35px;
  font-size: 1.6rem;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  font-weight: normal;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-height: 75px;
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.2);
  margin: 20px auto 0 auto;
}

.cta-button:hover {
  background: #00D4AA;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

/* Estilos para las dos líneas del botón */
.cta-main {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.cta-sub {
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.95;
  letter-spacing: 0.3px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  /* Allow scrolling when content is taller than the viewport */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 0;
  border: 3px solid #00D4AA;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  /* Make internal content scroll instead of overflowing the viewport */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: #00D4AA;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 7px 7px 0 0;
  /* Keep the header visible while scrolling */
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-header h2 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: bold;
}

.close {
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close:hover {
  color: #f0f0f0;
}

.modal-form {
  /* Let the form area scroll if needed */
  padding: 30px;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0; /* required for flex children to allow overflow */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: bold;
  font-size: 1.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1.4rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00D4AA;
  box-shadow: 0 0 5px rgba(0, 212, 170, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  /* Keep action buttons visible at the bottom */
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid #eee;
}

.btn-cancel,
.btn-accept {
  padding: 14px 28px;
  border: none;
  border-radius: 5px;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.btn-cancel {
  background: #6c757d;
  color: white;
}

.btn-cancel:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.btn-accept {
  background: #00D4AA;
  color: white;
}

.btn-accept:hover {
  background: #00b894;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 1.4rem;
}

.footer p {
  margin: 0;
}

/* Tecnologías Section */
.tecnologias {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.tecnologias h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00D4AA;
}

.tecnologias p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.6rem;
  line-height: 1.6;
}

.tecnologias ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tecnologias li {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 5px;
  border: 1px solid #00D4AA;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.tecnologias li:hover {
  background: #00D4AA;
  color: black;
  transform: translateY(-5px);
}

.tecnologias li strong {
    color: #fff;
}

.tecnologias li:hover strong {
    color: black;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-container {
    position: static;           /* deja de ser fijo en móvil */
    top: auto;
    left: auto;
    display: flex;
    justify-content: flex-start;/* alinea a la izquierda, opuesto a iconos */
    margin: 10px 0 8px 12px;    /* separa del borde e iguala padding visual */
    z-index: auto;
  }
  
  .main-logo {
    max-width: 110px;           /* más pequeño en móvil */
  }
  
  /* Evitar superposición del logo con la tarjeta en móvil */
  .main-content {
    padding-top: 12px;  /* ya no es fijo, reducimos el espacio extra */
  }
  
  /* Quita la rotación para ganar espacio y legibilidad en pantallas chicas */
  .text-container {
    transform: none;
    margin: 12px auto 20px auto;
  }
  
  .text-container {
    padding: 40px 30px;
    margin: 0 20px;
  }
  
  .main-text {
    font-size: 2.2rem;
  }
  
  .cta-button {
    font-size: 1.4rem;
    padding: 10px 25px;
  }
  
  .social-icons {
    top: 10px;
    right: 10px;
    gap: 10px;
  }
  
  .social-icon {
    font-size: 2rem;
    width: 40px;
    height: 40px;
    padding: 8px;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
  
  .modal-form {
    padding: 20px;
  }
  
  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-cancel,
  .btn-accept {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .main-logo {
    max-width: 120px;
  }
  
  .text-container {
    padding: 30px 20px;
  }
  
  .main-text {
    font-size: 1.8rem;
  }
}

/* Desktop wide */
@media (min-width: 1200px) {
  .main-logo {
    max-width: 280px;
  }
}