/* ========== FORZAR ANCHO COMPLETO - ELIMINAR MÁRGENES ========== */
.contacto-page {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  overflow-x: hidden;
}

.contacto-page section {
  margin: 0 !important;
  box-sizing: border-box;
}

.block-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ========== SECCIÓN HERO ========== */
.contacto-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  text-align: center;
  padding: 100px 20px !important;
}

.contacto-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.contacto-hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  color: white !important;
}

.contacto-hero h1::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: #f16901;
  margin: 25px auto 0;
}

.contacto-hero p {
  font-size: 20px;
  line-height: 1.7;
  margin: 20px auto 0;
  opacity: 0.95;
  max-width: 700px;
}

/* ========== SECCIÓN FORMULARIO ========== */
.formulario-contacto-section {
  background: #f8f9fa;
  padding: 100px 20px !important;
}

.formulario-contacto-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.formulario-contacto-col {
  background: white;
  padding: 50px 45px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.info-contacto-col {
  padding: 0;
}

.formulario-contacto-col h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 30px 0;
  padding-bottom: 20px;
  border-bottom: 3px solid #f16901;
}

/* Estilos del formulario */
.wpforms-container {
  width: 100%;
}

.wpforms-field-container,
.wpforms-field-container1 {
  margin-bottom: 0;
}

.wpforms-field {
  margin-bottom: 25px;
}

.wpforms-field-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.texto_blanco {
  color: #2c3e50 !important;
}

.wpforms-required-label {
  color: #f16901;
  margin-left: 3px;
}

.wpforms-field-medium,
.wpforms-field-small {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.wpforms-field-medium:focus,
.wpforms-field-small:focus,
textarea.wpforms-field-small:focus {
  border-color: #f16901;
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 105, 1, 0.1);
}

textarea.wpforms-field-small {
  min-height: 150px;
  resize: vertical;
}

.wpforms-one-half {
  width: 100%;
}

/* Honeypot field (hidden) */
.wpforms-field-container1 {
  position: absolute !important;
  left: -9000px !important;
}

/* Checkbox */
.wpforms-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #f16901;
  margin-right: 10px;
}

.wpforms-field-label-inline {
  display: inline;
  font-size: 14px;
  color: #2c3e50;
  line-height: 1.6;
}

.wpforms-field-label-inline a {
  color: #f16901;
  text-decoration: none;
  font-weight: 600;
}

.wpforms-field-label-inline a:hover {
  text-decoration: underline;
}

/* Submit button */
.wpforms-submit-container {
  margin-top: 30px;
}

.wpforms-submit {
  display: block;
  width: 100%;
  padding: 16px 40px;
  background: #f16901;
  color: white !important;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(241, 105, 1, 0.3);
}

.wpforms-submit:hover {
  background: #d45801;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(241, 105, 1, 0.4);
}

/* Alert messages */
.alert {
  padding: 20px;
  border-radius: 5px;
  margin: 0 0 25px 0;
  font-size: 16px;
  line-height: 1.6;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Info de contacto */
.info-contacto-item {
  background: white;
  padding: 40px 35px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  border-left: 5px solid #f16901;
  transition: all 0.3s ease;
}

.info-contacto-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateX(5px);
}

.info-contacto-item h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-icono {
  width: 45px;
  height: 45px;
  background: #f16901;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.info-contacto-item p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin: 8px 0;
}

/* ========== SECCIÓN OFICINAS ========== */
.oficinas-section {
  background: white;
  padding: 100px 20px !important;
}

.oficinas-section h2 {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.oficinas-section h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: #f16901;
  margin: 20px auto 60px;
}

.oficina-item {
  max-width: 1200px;
  margin: 0 auto 60px;
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.oficina-info {
  padding: 40px;
}

.oficina-item h3 {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 20px 0;
}

.oficina-item p {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  margin: 10px 0;
}

.oficina-mapa {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .contacto-hero {
    min-height: 350px;
    padding: 70px 20px !important;
  }

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

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

  .formulario-contacto-section,
  .oficinas-section {
    padding: 60px 20px !important;
  }

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

  .formulario-contacto-col {
    padding: 35px 25px;
  }

  .formulario-contacto-col h2 {
    font-size: 26px;
  }

  .oficinas-section h2 {
    font-size: 28px;
  }

  .oficina-info {
    padding: 30px 25px;
  }

  .oficina-item h3 {
    font-size: 24px;
  }

  .oficina-mapa {
    height: 350px;
  }
}
