/* ========================================
   CONTACT PAGE STYLES - NEPI
   ======================================== */

/* Hero Section */
.contacto-hero {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--bg2) 0%, rgba(31, 134, 255, 0.05) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contacto-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(31, 134, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: float-slow 8s ease-in-out infinite;
}

.contacto-hero::after {
  content: '';
  position: absolute;
  top: 10%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(31, 134, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: float-slow 6s ease-in-out infinite reverse;
}

.contacto-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contacto-hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.contacto-hero p {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 0;
}

/* Main Content Container */
.contacto-content {
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

.contacto-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 40px;
  align-items: start;
}

/* Left Column - Contact Info */
.contacto-info {
  position: relative;
}

.contacto-info h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.contacto-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contacto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, rgba(31, 134, 255, 0.3) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contacto-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(31, 134, 255, 0.1);
  transform: translateY(-4px);
}

.contacto-card:hover::before {
  transform: scaleX(1);
}

.contacto-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(31, 134, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--blue);
}

.contacto-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.contacto-card p {
  color: var(--text2);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

.contacto-card a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contacto-card a:hover {
  color: #4fa3ff;
}

/* Social Links */
.contacto-social {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border2);
}

.contacto-social h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(31, 134, 255, 0.1);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--blue);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* Right Column - Contact Form */
.contacto-form-container {
  position: relative;
}

.contacto-form-container h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.contacto-form {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}


.form-group {
  margin-bottom: 18px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 134, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row .form-group {
  margin-bottom: 18px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--blue);
}

.form-checkbox label {
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--blue) 0%, #1570d4 100%);
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-submit:hover {
  background: linear-gradient(135deg, #1570d4 0%, #1062b8 100%);
  box-shadow: 0 8px 24px rgba(31, 134, 255, 0.3);
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

/* Map Section */
.contacto-map {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--border2);
  text-align: center;
  position: relative;
  z-index: 1;
}

.contacto-map h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.contacto-map p {
  color: var(--text2);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border2);
  height: 400px;
  background: var(--bg2);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Floating Animation */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(31, 134, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(31, 134, 255, 0.5);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contacto-hero h1 {
    font-size: 40px;
  }

  .contacto-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contacto-form {
    padding: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .contacto-hero {
    padding: 80px 20px;
  }

  .contacto-hero h1 {
    font-size: 32px;
  }

  .contacto-hero p {
    font-size: 16px;
  }

  .contacto-content {
    padding: 60px 20px;
  }

  .contacto-info h2,
  .contacto-form-container h2,
  .contacto-map h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .contacto-card {
    padding: 20px;
  }

  .contacto-form {
    padding: 24px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .contacto-map {
    margin-top: 60px;
    padding-top: 60px;
  }

  .map-container {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .contacto-hero {
    padding: 60px 16px;
  }

  .contacto-hero h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .contacto-hero p {
    font-size: 14px;
  }

  .contacto-content {
    padding: 40px 16px;
  }

  .contacto-info h2,
  .contacto-form-container h2,
  .contacto-map h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .contacto-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .contacto-card-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin-bottom: 12px;
  }

  .contacto-card h3 {
    font-size: 16px;
  }

  .contacto-form {
    padding: 20px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
  }

  .form-submit {
    padding: 12px 16px;
    font-size: 14px;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .social-links {
    gap: 10px;
  }

  .map-container {
    height: 200px;
  }

  .contacto-map {
    margin-top: 40px;
    padding-top: 40px;
  }
}

/* Form Validation Styles */
.form-error {
  display: block;
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.is-invalid {
  border-color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.05) !important;
}

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
  border-color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.05) !important;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
