/* Layout Principal */
.contact-main {
  position: relative;
  min-height: 85vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 200px;

  z-index: 1;
}
/* --- HERO ASIMÉTRICO --- */
.contact-hero {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 70vh;
}

/* Título */
.hero-title {
  position: absolute;
  top: 10%;
  left: 5%;
  z-index: 2;
}

.hero-title h1 {
  font-family: "Casper-M", sans-serif;
  font-size: 10vw;
  line-height: 0.85;
  color: #fff;
  /* Removemos mix-blend-mode exclusion para mejor legibilidad sobre el ruido */
}

/* Intro texto y Botón */
.hero-intro {
  position: absolute;
  bottom: 15%;
  left: 10%;
  max-width: 400px;
}

.hero-intro p {
  font-family: "Satoshi-R", sans-serif;
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
}

/* Tarjetas Flotantes */
.info-card {
  position: absolute;
  padding: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.info-card .label {
  display: block;
  font-family: "Casper-L", sans-serif;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

/* Ubicación visual */
.email-card {
  top: 20%;
  right: 5%;
  text-align: right;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.email-card a {
  font-family: "Casper-M", sans-serif;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.email-card a:hover {
  color: #aaa;
  font-style: italic;
}

.social-card {
  bottom: 25%;
  right: 25%;
}

.social-row {
  display: flex;
  gap: 1.5rem;
}

.social-row a {
  font-family: "Casper-M", sans-serif;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.social-row a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}
.social-row a:hover::after {
  width: 100%;
}

/* --- BOTÓN --- */
.magnetic-wrap {
  display: inline-block;
}

.magnetic-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 1.5rem 3rem;
  font-family: "Casper-M", sans-serif;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.magnetic-btn i {
  transition: transform 0.3s;
}

.magnetic-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.magnetic-btn:hover i {
  transform: translate(5px, -5px);
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
}

.modal-content {
  background: #111;
  border: 1px solid #333;
  padding: 3rem;
  width: 90%;
  max-width: 600px;
  position: relative;
  transform: translateY(50px);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.close-modal:hover {
  transform: rotate(90deg);
}

.modal-header h2 {
  font-family: "Casper-M", sans-serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.modal-header p {
  font-family: "Satoshi-R", sans-serif;
  color: #888;
  margin-bottom: 2rem;
}

/* Form Styles */
.form-group {
  position: relative;
  margin-bottom: 2.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #444;
  color: #fff;
  font-family: "Satoshi-R", sans-serif;
  font-size: 1.2rem;
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.3s;
}

.form-group textarea {
  resize: none;
}

.form-group label {
  position: absolute;
  top: 0.5rem;
  left: 0;
  color: #666;
  font-family: "Satoshi-R", sans-serif;
  pointer-events: none;
  transition: 0.3s ease all;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -1.2rem;
  font-size: 0.8rem;
  color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #fff;
}

.submit-btn {
  width: 100%;
  padding: 1.5rem;
  background: #fff;
  color: #000;
  border: none;
  font-family: "Casper-M", sans-serif;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}
.submit-btn:hover {
  background: #ddd;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-title h1 {
    font-size: 18vw;
  }
  .email-card {
    top: auto;
    bottom: 10%;
    right: auto;
    left: 5%;
    text-align: left;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
  }
  .social-card {
    bottom: 5%;
    right: 5%;
  }
  .hero-intro {
    bottom: 30%;
    width: 90%;
  }
}
