/* Estilos del footer */
#footer-secundario {
  font-size: 14px;
  background: #000000;
  color: #fff;
}

#footer-secundario .footer-bottom {
  padding: 2px 0;
  background: #37517e;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer-secundario .footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footer-secundario .copyright,
#footer-secundario .credits {
  color: #fff;
  font-size: 14px;
}

#footer-secundario .credits a {
  color: #47b2e4;
  transition: 0.3s;
}

#footer-secundario .credits a:hover {
  color: #209dd8;
}

#footer-secundario .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer-secundario .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

#footer-secundario .footer-links ul li:hover {
  color: #fff;
  transform: translateX(5px);
}

#footer-secundario .footer-links ul li:first-child {
  padding-top: 0;
}

#footer-secundario .footer-top {
  padding: 10px 0 0px;
  background: #000000;
}

#footer-secundario .footer-contact,
#footer-secundario .footer-links,
#footer-secundario .footer-social {
  margin-bottom: 5px;
}

#footer-secundario .footer-links h4,
#footer-secundario .footer-social h4 {
  padding: 5px 0 0px;
  font-size: 16px; 
  font-weight: bold;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 10px;
}

#footer-secundario .footer-links h4::after,
#footer-secundario .footer-social h4::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 2px;
  background: #47b2e4;
  bottom: 0;
  left: 0;
}

#footer-secundario .footer-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

#footer-secundario .footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 15px;
}

#footer-secundario .logo-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 30px 0;
}

#footer-secundario .logo-wrapper img {
  max-width: 250px;
  height: auto;
  display: block;
}

/* Estilos de los botones de la app */
.app-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 5px 0;
}

.app-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.app-btn i {
  font-size: 1.5rem;
  margin-right: 10px;
}

/* Estilos de los enlaces sociales */
#footer-secundario .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

#footer-secundario .social-link {
  font-size: 18px;
  display: inline-block;
  background: #47b2e4;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  text-decoration: none;
}

#footer-secundario .social-link:hover {
  background: #209dd8;
  color: #fff;
  text-decoration: none;
}

/* Estilos de la página de contacto */
#header {
  background: #37517e;
}
/* Estilos del título en el header */
.mytitle-nakz {
  font-family: 'Segoe Print', sans-serif;
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
  margin-right: 5px;
}

.mytitle-corp {
  font-family: 'Mistral', cursive;
  color: #15232d;
  font-size: 25px;
}

@media (max-width: 768px) {
  .mytitle-nakz,
  .mytitle-corp {
    display: none;
  }
}
.title-section {
  padding-top: 325px;
  padding-bottom: 100px;
  position: relative;
  background: linear-gradient(135deg, #37517e 0%, #47b2e4 100%);
  overflow: hidden;
}

.title-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/services/bpm2.webp") center/cover;
  opacity: 0.1;
  animation: pulse 4s ease-in-out infinite;
}

.title-section .section-title {
  position: relative;
  z-index: 2;
  transform: translateY(75px);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  margin-top: 2cm;
}

.map-section {
  position: relative;
  width: 100%;
  height:450px;
  overflow: hidden;
  background: #37517e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -1px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.map-section iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
  filter: contrast(1.1) saturate(1.2);
  margin: 0;
  padding: 0;
}

#contact {
  padding-top: 100px;
  background: linear-gradient(rgba(40, 58, 90, 0.9), rgba(40, 58, 90, 0.9)), url("../img/services/bpm2.webp") fixed center center;
  background-size: cover;
  padding: 80px 0;
  position: relative;
}


.title-section .section-title h2 {
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.title-section .section-title h2:hover {
  transform: scale(1.02);
  text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.title-section .section-title p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeIn 1s ease-out 0.4s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#contact .section-title h2 {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

#contact .section-title p {
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.info {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.contact-info-item {
  padding: 25px;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(55, 81, 126, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(71, 178, 228, 0.15), rgba(55, 81, 126, 0.15));
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.5s ease;
}

.contact-info-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(71, 178, 228, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-info-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(55, 81, 126, 0.2);
  border-color: rgba(71, 178, 228, 0.4);
  background: rgba(255, 255, 255, 0.95);
}

.contact-info-item:hover::before {
  transform: translateX(0) skewX(-15deg);
}

.contact-info-item:hover::after {
  opacity: 1;
}

.contact-info-item i {
  font-size: 32px;
  color: #47b2e4;
  margin-right: 25px;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(71, 178, 228, 0.1);
  border-radius: 12px;
}

.contact-info-item:hover i {
  transform: rotate(15deg) scale(1.15);
  color: #37517e;
  text-shadow: 2px 2px 8px rgba(71, 178, 228, 0.4);
  background: rgba(71, 178, 228, 0.2);
  animation: iconPulse 1s infinite;
}

@keyframes iconPulse {
  0% { transform: rotate(15deg) scale(1.15); }
  50% { transform: rotate(15deg) scale(1.25); }
  100% { transform: rotate(15deg) scale(1.15); }
}

.contact-info-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #37517e;
  margin-bottom: 8px;
}

.contact-info-item p {
  color: #6c757d;
  margin: 0;
  font-size: 1rem;
}


.form-group {
  margin-bottom: 25px;
}

.form-group label {
  font-size: 1rem;
  font-weight: 600;
  color: #37517e;
  margin-bottom: 10px;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: stretch;
}

.input-group-text {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(71, 178, 228, 0.2);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 0 18px;
  color: #47b2e4;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px 0 0 12px;
  padding: 0 18px;
  color: #47b2e4;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 48px; /* Misma altura que el input */
}
.input-group-text2 {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(71, 178, 228, 0.2);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 0 18px;
  color: #47b2e4;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px 0 0 12px;
  padding: 0 18px;
  color: #47b2e4;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: px; /* Misma altura que el input */
}
/* Ajuste especial para el área de texto */
.input-group textarea.form-control {
  height: 240px;
  padding: 15px 20px;
  line-height: 1.5;
  border: 2px solid rgba(71, 178, 228, 0.2);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 12px 12px 0;
  resize: none;
}

.input-group:hover .input-group-text2 {
  background: rgba(71, 178, 228, 0.1);
  border-color: rgba(71, 178, 228, 0.5);
  color: #37517e;
  transform: translateX(-2px);
}

.input-group:hover .input-group-text2 i {
  animation: iconWave 1s ease-in-out infinite;
  color: #37517e;
  text-shadow: 0 0 5px rgba(71, 178, 228, 0.3);
}

@keyframes iconWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.input-group:focus-within .input-group-text2 {
  background: rgba(71, 178, 228, 0.15);
  border-color: #47b2e4;
  box-shadow: -4px 0 15px rgba(71, 178, 228, 0.2);
  color: #37517e;
  transform: translateX(-3px);
}

.input-group-text2::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(71, 178, 228, 0.2), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text2::after {
  width: 150%;
  height: 150%;
  opacity: 1;
}

.input-group:focus-within .input-group-text2 i {
  animation: iconFloat 1.5s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) scale(1.2); }
  50% { transform: translateY(-5px) scale(1.3); }
}
.input-group .form-control {
  border-radius: 0 12px 12px 0;
  border-left: none;
  padding: 12px 20px;
  border: 2px solid rgba(71, 178, 228, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  flex: 1;
  height: auto;
  line-height: 1.5;
}

/* Ajustes específicos para inputs de texto */
.input-group input.form-control {
  height: 48px;
  padding: 0 20px;
  line-height: 48px;
}

/* Ajuste especial para el área de texto */
.input-group textarea.form-control {
  height: 240px;
  padding: 15px 20px;
  line-height: 1.5;
  border: 2px solid rgba(71, 178, 228, 0.2);
  
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0 12px 12px 0;
  resize: none;
}

/* Ajuste para el icono del área de texto */
.input-group textarea.form-control + .input-group-text {
  position: relative;
  height: 240px;
  width: 50px;
  border: 2px solid rgba(71, 178, 228, 0.2);
  border-right: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px 0 0 12px;
}

.input-group textarea.form-control + .input-group-text i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
}

/* Ajuste para los iconos de los inputs de texto */
.input-group input.form-control + .input-group-text {
  height: 48px;
  padding: 0 18px;
  align-items: center;
}

.input-group i {
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 2;
}

.input-group:hover .input-group-text {
  background: rgba(71, 178, 228, 0.1);
  border-color: rgba(71, 178, 228, 0.5);
  color: #37517e;
  transform: translateX(-2px);
}

.input-group:hover .form-control {
  border-color: rgba(71, 178, 228, 0.5);
  background: rgba(255, 255, 255, 1);
  transform: translateX(-2px);
}

.input-group:hover i {
  transform: scale(1.1) rotate(5deg);
  color: #37517e;
}

.input-group:focus-within .input-group-text {
  background: rgba(71, 178, 228, 0.15);
  border-color: #47b2e4;
  box-shadow: -4px 0 15px rgba(71, 178, 228, 0.2);
  color: #37517e;
  transform: translateX(-3px);
}

.input-group:focus-within .form-control {
  border-color: #47b2e4;
  box-shadow: 4px 0 15px rgba(71, 178, 228, 0.2);
  background: #fff;
  transform: translateX(-3px);
}

.input-group:focus-within i {
  transform: scale(1.2) rotate(10deg);
  color: #37517e;
  text-shadow: 0 0 10px rgba(71, 178, 228, 0.5);
}

.input-group i {
  transition: all 0.3s ease;
}

.input-group:focus-within i {
  transform: scale(1.1);
  animation: iconGlow 0.5s ease forwards;
}

@keyframes iconGlow {
  0% {
    filter: drop-shadow(0 0 0 rgba(71, 178, 228, 0));
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(71, 178, 228, 0.5));
  }
}

.input-group-text::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(71, 178, 228, 0.2), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text::after {
  width: 150%;
  height: 150%;
  opacity: 1;
}

.form-control::placeholder {
  color: #a0aec0;
  transition: all 0.3s ease;
}

.form-control:hover::placeholder {
  color: #718096;
}

.form-control:focus::placeholder {
  opacity: 0.7;
  transform: translateX(5px);
}

.submit-btn {
  background: linear-gradient(135deg, #47b2e4, #37517e);
  color: #fff;
  padding: 15px 45px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(71, 178, 228, 0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-btn span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #37517e, #47b2e4);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1;
}

.submit-btn:hover span {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(71, 178, 228, 0.3);
}

.submit-btn:hover::before {
  opacity: 1;
}

.submit-btn:active {
  transform: translateY(1px) scale(0.98);
}

.submit-btn i {
  margin-left: 8px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 2;
}

.submit-btn:hover i {
  transform: translateX(8px) rotate(15deg);
}

/* Estilos del formulario de contacto */
.contact .php-email-form {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(71, 178, 228, 0.1);
  transition: all 0.3s ease;
}

.contact .php-email-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(71, 178, 228, 0.2);
}

/* Estados del formulario */
.loading, .error-message, .sent-message {
  display: none;
  padding: 15px 25px;
  margin-bottom: 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.loading {
  background: rgba(71, 178, 228, 0.1);
  color: #37517e;
  border: 2px solid rgba(71, 178, 228, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 3px solid #47b2e4;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 2px solid rgba(220, 53, 69, 0.2);
}

.sent-message {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 2px solid rgba(40, 167, 69, 0.2);
}

.loading.show, .error-message.show, .sent-message.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-message.show {
  animation: slideIn 0.3s ease forwards, shake 0.5s ease 0.1s;
}

.sent-message.show {
  animation: slideIn 0.3s ease forwards, pulse 1s ease 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
    margin-top: 30px;
  }
}

/* Estilos del footer */
@media (max-width: 768px) {
  #footer-secundario .footer-contact {
    align-items: center;
  }
  
  #footer-secundario .logo-wrapper {
    justify-content: center;
  }
  
  #footer-secundario .logo-wrapper img {
    margin: 0 auto;
  }

  #footer-secundario .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #footer-secundario .footer-links ul li {
    justify-content: center;
  }

  #footer-secundario .app-buttons {
    display: flex;
    justify-content: center;
  }

  #footer-secundario .app-btn {
    width: 200px;
    justify-content: center;
  }

  #footer-secundario .social-links {
    justify-content: center;
    margin: 20px auto 0;
  }

  #footer-secundario .footer-bottom .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 15px 0;
  }

  #footer-secundario .copyright,
  #footer-secundario .credits {
    text-align: center;
    width: 100%;
    padding: 5px 0;
  }

  #footer-secundario .footer-links h4,
  #footer-secundario .footer-social h4 {
    text-align: center;
  }

  #footer-secundario .footer-links h4::after,
  #footer-secundario .footer-social h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
