/* Estilos para el componente de Contacto */

/* Contenedor principal de la sección */
#contact-section {
  padding: 80px 30px;
  position: relative;
  background-color: var(--background-main);
  overflow: hidden;
}

/* Efecto de fondo con patrón de puntos */
#contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(0,0,0,0.03)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

/* Wrapper con borde pixel art */
.contact-wrapper {
  position: relative;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--text-light);
  border: 4px solid var(--primary-dark);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Clase para bordes con estilo pixel */
.pixel-border {
  position: relative;
  clip-path: polygon(
    0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) 100%,
    10px 100%, 0 calc(100% - 10px)
  );
}

/* Contenedor del contenido principal */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Contenedor de título de sección */
.section-title-container {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

/* Título principal */
.section-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
}

/* Efecto de subrayado para el título */
.title-underline {
  height: 4px;
  width: 100px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-secondary));
  margin: 0 auto;
  position: relative;
  border-radius: 2px;
}

/* Efecto de brillo en el subrayado */
.title-underline::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 30px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.6);
  filter: blur(4px);
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% { left: -30px; }
  100% { left: 130px; }
}

/* Contenedor de información de contacto */
.contact-info-container {
  background-color: var(--text-light);
  padding: 30px;
  border: 4px solid var(--primary-dark);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  
}

/* Grid para la información de contacto */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* Efecto de brillo al hover */
.glow-on-hover:hover {
  box-shadow: 0 0 15px var(--primary-color), 6px 6px 0 rgba(0, 0, 0, 0.15);
}

/* Efecto de fondo para el contenedor de info */
.contact-info-container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(126, 63, 242, 0.03) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: glitter 10s infinite linear;
  z-index: 0;
}

@keyframes glitter {
  0% { transform: rotate(45deg) translateY(0%); }
  100% { transform: rotate(45deg) translateY(100%); }
}

/* Subtítulo de contacto */
.contact-subtitle {
  font-family: 'Press Start 2P', cursive;
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

/* Texto introductorio */
.contact-intro {
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 15px;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

/* Elementos de información de contacto */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.contact-info-item:hover {
  transform: translateX(5px);
}

/* Contenedor de iconos */
.contact-icon-wrapper {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  border: 2px solid var(--primary-dark);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-info-item:hover .contact-icon-wrapper {
  background-color: var(--accent-color);
  transform: rotate(10deg);
}

/* Iconos de contacto */
.contact-icon {
  font-size: 18px;
  color: var(--text-light);
}

/* Texto de contacto */
.contact-text {
  flex: 1;
}

.contact-text strong {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  color: var(--primary-dark);
}

.contact-text p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

/* Contenedor de iconos sociales */
.contact-social {
  display: flex;
  margin-top: 10px;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

/* Botones de redes sociales */
.social-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border: 3px solid var(--primary-dark);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-icon-btn i {
  font-size: 18px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Efecto hover para iconos sociales */
.social-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.social-icon-btn:hover {
  transform: translateY(-5px);
  box-shadow: 3px 8px 0 rgba(0, 0, 0, 0.2);
}

.social-icon-btn:hover .social-hover-effect {
  transform: translateY(0);
}

.social-icon-btn:hover i {
  transform: scale(1.2);
}

/* Contenedor de tarjetas */
.contact-cards-container {
  width: 100%;
}

/* Tarjetas de contacto */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
}

/* Tarjeta individual */
.contact-card {
  height: 100%;
  background-color: var(--text-light);
  border: 4px solid var(--primary-dark);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.15);
  padding: 50px 20px 20px;
  position: relative;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

/* Efecto retro para tarjetas */
.retro-card {
  position: relative;
  overflow: hidden;
}

.retro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-secondary));
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 5px 13px 0 rgba(0, 0, 0, 0.15);
}

/* Icono de la tarjeta */
.contact-card-icon {
  position: absolute;
  margin-top: 35px;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-dark);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  background-color: var(--accent-color);
  transform: translateX(-50%) rotate(10deg);
}

.contact-card-icon i {
  font-size: 24px;
  color: var(--text-light);
}

/* Contenido de la tarjeta */
.card-content {
  text-align: center;
}

.card-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  color: var(--primary-color);
  margin-top: 15px;
  margin-bottom: 10px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.card-subtitle {
  font-size: 14px;
  color: var(--accent-secondary);
  margin-top: 5px;
  margin-bottom: 15px;
}

.card-content p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Contenedor del mapa de Google */
.google-map-container {
  background-color: var(--text-light);
  border: 4px solid var(--primary-dark);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
}

.google-map-container:hover {
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.15), 0 0 15px var(--primary-color);
}

/* Título del mapa */
.map-title-container {
  padding: 15px 20px;
  border-bottom: 3px solid var(--primary-dark);
  background-color: var(--text-light);
  position: relative;
}

.map-title-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-secondary));
}

/* Contenedor del iframe */
.google-map-wrapper {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* Iframe del mapa */
.google-map-iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
  transition: all 0.5s ease;
}

/* Overlay para efectos en el mapa */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(126, 63, 242, 0.1) 0%,
    transparent 50%,
    rgba(255, 94, 91, 0.1) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.google-map-container:hover .map-overlay {
  opacity: 1;
}

/* Información superpuesta en el mapa */
.map-overlay-info {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}

/* Caja de información del mapa */
.map-info-box {
  background-color: var(--text-light);
  border: 3px solid var(--primary-dark);
  padding: 15px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  transition: all 0.3s ease;
}

.map-info-box:hover {
  transform: translateY(-5px);
  box-shadow: 4px 9px 0 rgba(0, 0, 0, 0.2);
}

.map-info-box i {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.map-info-box span {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.5;
}

/* Botón del mapa */
.btn-map {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-dark);
  padding: 8px 12px;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-map::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-map:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 3px 6px 0 rgba(0, 0, 0, 0.2);
}

.btn-map:hover::after {
  animation: shine-button 1s forwards;
}

@keyframes shine-button {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* Botón pixel genérico */
.btn-pixel {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 3px solid var(--primary-dark);
  padding: 10px 18px;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-pixel:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 3px 6px 0 rgba(0, 0, 0, 0.2);
}

/* Esquinas con estilo pixel */
.pixel-corners {
  clip-path: polygon(
    0 5px, 5px 0, calc(100% - 5px) 0, 100% 5px,
    100% calc(100% - 5px), calc(100% - 5px) 100%,
    5px 100%, 0 calc(100% - 5px)
  );
}

/* Estilos para la animación de pulso del infobox */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  }
}

.map-info-box.pulse {
  animation: pulse 1.5s infinite;
}

/* Estilos para notificaciones */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 20px;
  background-color: var(--text-light);
  color: var(--text-dark);
  border: 3px solid var(--primary-dark);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  max-width: 350px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  line-height: 1.5;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  clip-path: polygon(
    0 5px, 5px 0, calc(100% - 5px) 0, 100% 5px,
    100% calc(100% - 5px), calc(100% - 5px) 100%,
    5px 100%, 0 calc(100% - 5px)
  );
}

.notification i {
  font-size: 20px;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-success {
  border-left: 8px solid var(--success);
}

.notification-success i {
  color: var(--success);
}

.notification-error {
  border-left: 8px solid var(--error);
}

.notification-error i {
  color: var(--error);
}

/* Animaciones para elementos */

/* Animación para el título */
@keyframes titleAppear {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-animated {
  animation: titleAppear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animación para elementos de información */
@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-right {
  animation: fadeInRight 0.6s ease forwards;
}

/* Animación para tarjetas */
@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-animated {
  animation: cardAppear 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animación para iconos sociales */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animación para el mapa */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 1200px) {
  .contact-wrapper {
    padding: 30px 15px;
  }
  
  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 992px) {
  #contact-section {
    padding: 60px 20px;
  }
  
  .contact-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .google-map-iframe {
    height: 400px;
  }
}

@media (max-width: 768px) {
  #contact-section {
    padding: 50px 15px;
  }
  
  .contact-wrapper {
    padding: 25px 10px;
  }
  
  .section-title-container {
    margin-bottom: 30px;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card-icon {
    top: -20px;
    width: 40px;
    height: 40px;
  }
  
  .contact-card-icon i {
    font-size: 18px;
  }
  
  .google-map-iframe {
    height: 350px;
  }
  
  .map-info-box {
    min-width: 180px;
  }
  
  .btn-map {
    font-size: 9px;
    padding: 6px 10px;
  }
  
  .contact-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  #contact-section {
    padding: 40px 10px;
  }
  
  .contact-wrapper {
    padding: 20px 10px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .contact-info-container {
    padding: 20px;
  }
  
  .contact-subtitle {
    font-size: 16px;
  }
  
  .contact-icon-wrapper {
    width: 35px;
    height: 35px;
  }
  
  .contact-icon {
    font-size: 16px;
  }
  
  .contact-text strong {
    font-size: 12px;
  }
  
  .contact-text p {
    font-size: 13px;
  }
  
  .social-icon-btn {
    width: 40px;
    height: 40px;
  }
  
  .notification {
    bottom: 15px;
    right: 15px;
    left: 15px;
    max-width: unset;
    font-size: 10px;
    padding: 10px 15px;
  }
  
  .notification i {
    font-size: 16px;
  }
  
  .map-info-box {
    min-width: 150px;
    bottom: 10px;
    right: 10px;
    padding: 10px;
  }
  
  .map-info-box i {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .map-info-box span {
    font-size: 10px;
    margin-bottom: 10px;
  }
  
  .google-map-iframe {
    height: 300px;
  }
  
  .btn-map {
    font-size: 8px;
    padding: 5px 8px;
  }
} 