/* ===== CONTACT PAGE - PREMIUM ENHANCEMENTS ===== */

.contacto-hero {
  position: relative;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contacto-hero .hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  max-width: 1240px;
  margin: 0 auto;
  align-items: center;
  gap: 80px;
}

.contacto-hero .hero-grid > .reveal:first-child {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transform: translateY(-60px); /* Elevado para mejor balance visual */
}

.contacto-hero h1 {
  margin: 15px 0 25px;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.contacto-hero .lead {
  margin: 0;
  max-width: 540px;
}

/* Background Glow Effects */
.contacto-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

.contacto-hero::after {
  content: "";
  position: absolute;
  bottom: 0%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(87, 27, 193, 0.05), transparent 70%);
  filter: blur(50px);
  z-index: -1;
}

/* Glassmorphism Form Card */
.contact-glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 40px 100px rgba(2, 31, 89, 0.1);
  padding: 40px !important;
  border-radius: 32px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

html.theme-dark .contact-glass-panel {
  background: rgba(13, 28, 45, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

/* Modern Input Styles */
.contact-form .input {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(6, 22, 74, 0.1);
  transition: all 0.3s ease;
}

html.theme-dark .contact-form .input {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.contact-form .input:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
  transform: translateY(-1px);
}

/* Final adjustments */
html.theme-dark .contact-form .input:focus {
  background: rgba(255, 255, 255, 0.05);
}

/* Aligerar apariencia del formulario */
.contact-form {
  gap: 18px !important; /* Reducido de 28px para que se vea menos 'cargado' */
}

.contact-form .form-grid {
  gap: 20px !important;
}

.contact-form label {
  font-weight: 500 !important; /* Menos peso visual */
  font-size: 0.8rem !important; /* Ligeramente más pequeño */
  margin-bottom: 6px !important;
  display: block !important;
  color: var(--muted) !important;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.contact-form .input {
  background: rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(6, 22, 74, 0.06) !important;
  padding: 12px 16px !important; /* Más compacto */
  border-radius: 12px !important;
  font-size: 0.9rem !important;
}

html.theme-dark .contact-form .input {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.contact-form .input:focus {
  background: #fff !important;
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.08) !important;
}

html.theme-dark .contact-form .input:focus {
  background: rgba(255, 255, 255, 0.04) !important;
}

.contact-glass-panel h2 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 25px !important;
}

/* FAQ Premium */
.faq-section {
  padding: 100px 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 102, 255, 0.02));
}

.faq-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.faq-item-premium {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.faq-item-premium:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 102, 255, 0.2);
  transform: translateY(-5px);
}

.faq-item-premium h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item-premium h3::before {
  content: "?";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--blue);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.faq-item-premium p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Local Presence */
.local-presence {
  padding: 80px 0;
}

.local-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  background: var(--navy);
  border-radius: 30px;
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 991px) {
  .local-card {
    grid-template-columns: 1fr;
    padding: 40px;
    text-align: center;
  }
}

.zones-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

@media (max-width: 991px) {
  .zones-pills {
    justify-content: center;
  }
}

.zone-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: #fff;
  transition: all 0.3s ease;
}

.zone-pill:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.05);
}

.local-map-preview {
  height: 300px;
  background: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?q=80&w=1000&auto=format&fit=crop') center/cover;
  border-radius: 20px;
  position: relative;
  filter: grayscale(1) brightness(0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 20px var(--blue);
}

.map-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: rgba(0, 102, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-map 2s infinite;
}

@keyframes pulse-map {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

html.theme-dark .contact-form .input:focus {
  background: rgba(255, 255, 255, 0.05);
}

/* Direct Contact Cards */
.direct-contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
  justify-content: flex-start;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  min-width: 0;
  flex: 1; /* Allow equal growth */
  min-width: fit-content;
}

.contact-pill:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 20px 40px rgba(2, 31, 89, 0.08);
}

.contact-pill-icon {
  width: 32px;
  height: 32px;
  background: var(--soft);
  color: var(--blue);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-pill-info b {
  display: block;
  font-size: 0.8rem;
  color: var(--navy);
  margin-bottom: 0px;
  line-height: 1.2;
}

.contact-pill-info span {
  font-size: 0.7rem;
  color: var(--muted);
  display: block;
}

/* Submit Button Refinement */
.btn-submit-premium {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, #06164a 0%, #0066ff 100%);
  color: #fff;
  font-size: 14px !important;
  letter-spacing: 0.15em !important;
}

/* Social Proof Badge */
.trust-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 102, 255, 0.08);
  color: var(--blue);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 102, 255, 0.1);
  width: fit-content;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .contact-glass-panel {
    padding: 24px !important;
  }
  .contacto-hero {
    padding-top: 100px;
  }
}

/* Hero Selling Points */
.hero-selling-points {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selling-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}

.selling-point svg {
  color: var(--blue);
  flex-shrink: 0;
  stroke: var(--blue);
}
/* FAQ Section Premium Styling */
.faq-section {
  position: relative;
  overflow: hidden;
}

.faq details {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 102, 255, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.faq details:hover {
  border-color: rgba(0, 102, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
}

.faq summary {
  padding: 20px;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.faq details[open] summary {
  color: #0066ff;
  border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

/* Local Presence Card */
.local-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  background: var(--surface);
  border-radius: 32px;
  padding: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  align-items: center;
}

.zones-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.zone-pill {
  padding: 8px 16px;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  transition: all 0.3s ease;
}

.zone-pill:hover {
  background: #0066ff;
  color: #fff;
  transform: translateY(-2px);
}

.local-map-preview {
  height: 300px;
  background: #f0f4f8;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background-image: url("https://www.transparenttextures.com/patterns/cubes.png"); /* Texture for map feel */
}

.map-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #0066ff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.map-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: rgba(0, 102, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}

@media (max-width: 850px) {
  .local-card {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .local-map-preview {
    height: 200px;
  }
}

/* Footer Overrides for Contact Page */
.site-footer {
  background: #020617;
  padding-top: 80px;
}

.footer-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 700;
}

.footer-links a, .footer-links span {
  opacity: 0.6;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: #0066ff;
  padding-left: 5px;
}
