/*SECCIÓN HERO CONTACTO*/
/* ===== HERO DE CONTACTO ===== */
.contacto-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, #072727, #041313 80%);
  color: white;
  padding: 7rem 2rem;
}

/* Fondo cuadriculado animado */
.contacto-hero .tech-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
  z-index: 0;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

/* Brillo radial sutil */
.contacto-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,255,229,0.08), transparent 75%);
  z-index: 0;
}

/* === ENTRADA ANIMADA DEL CONTENIDO === */
.contacto-hero .container-lg {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(60px);
  animation: heroFadeUp 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === TEXTO PRINCIPAL === */
.contacto-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0,255,229,0.25);
  animation: floatHeroTitle 6s ease-in-out infinite;
}

.contacto-hero h1 span {
  color: #00ffe5;
  text-shadow: 0 0 10px #00ffe5, 0 0 25px #00bfa6, 0 0 40px rgba(0,255,229,0.35);
  animation: glowPulse 3s ease-in-out infinite;
}

/* Animaciones del título */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 10px #00ffe5, 0 0 20px #00bfa6; }
  50% { text-shadow: 0 0 25px #00ffe5, 0 0 45px #00bfa6; }
}

@keyframes floatHeroTitle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* === DESCRIPCIÓN === */
.contacto-hero p {
  color: #b9f1f1;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpText 1.8s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes fadeUpText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === BOTÓN PRINCIPAL === */
.contacto-hero .btn-codaini {
  position: relative;
  background-color: #00ffe5;
  border: none;
  color: #061818;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.9rem 1.6rem;
  box-shadow: 0 0 20px rgba(0,255,229,0.25);
  transition: all 0.3s ease;
  z-index: 2;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  animation: fadeUpButton 1.8s ease-out forwards;
  animation-delay: 0.9s;
}

.contacto-hero .btn-codaini:hover {
  background-color: #00d4c5;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,229,0.4);
}

@keyframes fadeUpButton {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Botón hero */
.contacto-hero .btn-codaini {
  position: relative;
  background-color: #00ffe5;
  border: none;
  color: #061818;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.9rem 1.8rem;
  box-shadow: 0 0 20px rgba(0,255,229,0.25);
  transition: all 0.3s ease;
  z-index: 2;
  overflow: hidden;
  cursor: pointer;
}

.contacto-hero .btn-codaini:hover {
  background-color: #00d4c5;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,229,0.4);
}

/* ==========================
   BLOQUE CONTACTO PRINCIPAL
   ========================== */
.contacto-section {
  position: relative;
  padding: 6rem 2rem;
  background: #0b2e2e;
  color: #fff;
  overflow: hidden;
}

.contacto-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,255,229,0.04), rgba(0,255,229,0.02));
  z-index: 0;
}

.contacto-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

/* --- LADO IZQUIERDO (INFORMACIÓN) --- */
.contact-info {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0,255,229,0.1);
  box-shadow: 0 0 25px rgba(0,255,229,0.1);
}

.contact-info h2 {
  font-weight: 700;
  color: #00ffe5;
  text-shadow: 0 0 8px #00bfa6;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #a4d7d7;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
  color: #e0f9f7;
  font-size: 1.05rem;
}

.info-list i {
  color: #00ffe5;
  font-size: 1.4rem;
}

.contact-data p {
  color: #b9f1f1;
  margin: 0.3rem 0;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  font-size: 1.6rem;
  margin-right: 0.6rem;
  color: #00ffe5;
  text-shadow: 0 0 10px rgba(0,255,229,0.3);
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-3px);
  text-shadow: 0 0 15px rgba(0,255,229,0.8);
}

.contact-img {
  width: 100%;
  margin-top: 1.8rem;
  border-radius: 12px;
  opacity: 0.9;
  filter: drop-shadow(0 0 15px rgba(0,255,229,0.2));
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* --- FORMULARIO (DERECHA) --- */
.contact-form {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid rgba(0,255,229,0.1);
  box-shadow: 0 0 30px rgba(0,255,229,0.08);
}

.contact-form h2 {
  color: #00ffe5;
  font-weight: 700;
  text-shadow: 0 0 8px #00bfa6;
  margin-bottom: 1rem;
}

.contact-form p {
  color: #b9f1f1;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: #00ffe5;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid rgba(0,255,229,0.25);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(0,0,0,0.3);
  color: #e8fefc;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(200,255,247,0.6);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00ffe5;
  background: rgba(0,0,0,0.6);
  box-shadow: 0 0 10px rgba(0,255,229,0.3);
}

/* Botón del formulario */
.contact-form .btn-codaini {
  margin-top: 1rem;
  background: linear-gradient(90deg, #00ffe5, #00bfa6);
  color: #061818;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(0,255,229,0.25);
  cursor: pointer;
}

.contact-form .btn-codaini:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(0,255,229,0.4);
  background: linear-gradient(90deg, #00d4c5, #00ffe5);
}

/* ==========================
   CTA FINAL
   ========================== */
.contacto-cta {
  background: linear-gradient(135deg, #00bfa6, #007a6e);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.contacto-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0,255,229,0.3);
}

.contacto-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.contacto-cta .btn-outline-codaini {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  transition: all 0.3s ease;
}

.contacto-cta .btn-outline-codaini:hover {
  background-color: #fff;
  color: #007a6e;
  transform: scale(1.05);
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 992px) {
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .contact-info, .contact-form {
    margin-bottom: 2rem;
  }

  .form-row {
    flex-direction: column;
  }

  .contacto-hero h1 {
    font-size: 2.4rem;
  }
}
