/* =====================================================
   CONTACTO · ALCO SUR INGENIERÍA
   Estilos alineados con site-system.css
   SIN AFECTAR EL EFECTO RAIN
   ===================================================== */

/* ----------------------------------------------
   Secciones y contenedores
---------------------------------------------- */
.contact-hero {
  position: relative;
  padding: 100px 24px 80px;
  background: linear-gradient(to bottom, var(--color-bg), var(--color-surface));
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.contact-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 16px;
  color: var(--color-text);
  position: relative;
  z-index: 2;
}

.contact-hero p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.9vw, 20px);
  color: var(--color-muted);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  line-height: 1.6;
}

/* Contenedor del rain (sin cambios) */
.icon-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.rain-icon {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  pointer-events: none;
  z-index: 1;
}

/* ----------------------------------------------
   Talk section (por qué nosotros)
---------------------------------------------- */
.talk-section {
  padding: 72px 24px 40px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.talk-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--color-blue-mid);
  color: var(--color-blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.talk-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--color-text);
}

.talk-description {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 800px;
  margin: 0 auto 32px;
  line-height: 1.68;
}

/* ----------------------------------------------
   Features grid
---------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 48px 0 24px;
}

.feature-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: 28px 20px;
  transition: var(--ease);
  box-shadow: var(--shadow-xs);
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.feature-item i {
  font-size: 32px;
  color: var(--color-blue);
  margin-bottom: 16px;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-item p {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.55;
}

/* ----------------------------------------------
   Contact grid (3 columnas)
---------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 40px auto 60px;
  padding: 0 24px;
}

.contact-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-2xl);
  padding: 32px 28px;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.contact-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.contact-card-header i {
  font-size: 24px;
  color: var(--color-blue);
}

.contact-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

/* Mapa */
.map-container {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  height: 180px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.address-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-muted);
  font-size: 14px;
}

.address-line i {
  color: var(--color-blue);
  width: 20px;
  margin-top: 2px;
}

/* Acciones rápidas */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--color-surface);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: var(--ease);
  border: 1px solid var(--color-border);
}

.action-button:hover {
  background: var(--color-blue-light);
  border-color: var(--color-border-hover);
  transform: translateX(3px);
}

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
}

.action-icon i {
  font-size: 22px;
  color: var(--color-blue);
}

.action-content {
  display: flex;
  flex-direction: column;
}

.action-label {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.action-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.contact-card-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Formulario */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--color-text);
  transition: var(--ease);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(10,93,194,0.10);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 28px;
  background: var(--color-blue);
  border: none;
  border-radius: 999px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-top: 18px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--ease);
  box-shadow: var(--shadow-blue);
}

.btn-submit:hover {
  background: var(--color-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(10,93,194,0.28);
}

/* Alertas del formulario */
.form-alert {
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}
.form-alert-success {
  background: #e9f7ef;
  border: 1px solid #a8d8bb;
  color: #1a6b3a;
}
.form-alert-error {
  background: #fef0ef;
  border: 1px solid #f5b8b3;
  color: #842016;
}

.form-honeypot {
  display: none;
}

/* ----------------------------------------------
   Indalce section (grupo)
---------------------------------------------- */
.indalce-section {
  background: var(--color-surface);
  border-radius: var(--r-2xl);
  max-width: 1180px;
  margin: 16px auto 48px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  border: 1px solid var(--color-border);
}

.indalce-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: var(--color-blue-mid);
  color: var(--color-blue);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.indalce-content h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--color-text);
}

.indalce-copy {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.brand-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--ease);
}

.brand-link:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.brand-link img {
  height: 22px;
  width: auto;
}

.indalce-icon {
  text-align: center;
}
.indalce-icon i {
  font-size: 72px;
  color: var(--color-blue);
  opacity: 0.15;
}

.cert-mini-row {
  margin-top: 20px;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-blue);
  margin: 0 6px 6px 0;
}

/* ----------------------------------------------
   CTA final
---------------------------------------------- */
.cta-section {
  max-width: 1180px;
  margin: 40px auto 80px;
  padding: 0 24px;
  text-align: center;
}

.cta-content {
  background: var(--color-surface);
  border-radius: var(--r-2xl);
  padding: 48px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.cta-content h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.cta-content p {
  font-size: 18px;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.btn-submit-inline {
  display: inline-flex;
  width: auto;
  padding: 14px 36px;
  background: var(--color-blue);
  color: white;
  text-decoration: none;
}

.btn-submit-inline:hover {
  background: var(--color-blue-dark);
  transform: translateY(-2px);
}

/* ----------------------------------------------
   Responsive (alineado con sistema)
---------------------------------------------- */
@media (max-width: 950px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .indalce-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .indalce-icon {
    order: -1;
  }
  .brand-link-row {
    justify-content: center;
  }
}

@media (max-width: 650px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .contact-hero h1 {
    font-size: 40px;
  }
  .talk-title {
    font-size: 32px;
  }
  .indalce-section {
    padding: 32px 24px;
  }
  .indalce-content h3 {
    font-size: 28px;
  }
  .indalce-icon i {
    font-size: 60px;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 80px 20px 60px;
  }
  .contact-hero h1 {
    font-size: 36px;
  }
  .contact-hero p {
    font-size: 18px;
  }
  .contact-card {
    padding: 24px 20px;
  }
  .action-button {
    padding: 12px 16px;
  }
  .btn-submit-inline {
    width: 100%;
    justify-content: center;
  }
}