/* ===== SECCI�0�7N CONTACTO ===== */
.contact-section {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.contact-wrapper {
  display: flex;
  height: 800px; /* ajusta el valor a gusto */
  overflow: hidden; /* oculta lo que se salga */
}








/* ========== LADO IZQUIERDO: INFO (JUSTIFICADO A LA IZQUIERDA) ========== */
.contact-info-side {
    flex: 1;
    position: relative;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: flex-start; /* CAMBIO: de center a flex-start */
    padding: 80px 40px;
    min-height: 100vh;
    overflow: hidden;
}

/* Fondo y Overlay (Sin cambios) */
.contact-info-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://apce.mx/fondos2prueba/Elemento aceite 2.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    z-index: 0;
}

.contact-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.contact-info-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 550px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* CAMBIO: de center a flex-start */
}

.contact-info-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 50px;
    line-height: 1.3;
    width: 100%;
    text-align: left; /* CAMBIO: de center a left */
    display: block;
    margin-left: 0; /* CAMBIO: eliminar margen negativo */
}

.contact-info-block {
    margin-bottom: 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content; 
    margin-left: 150px;
}

.contact-block-title {
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
    width: 100%;
    text-align: left; /* CAMBIO: de center a left */
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 15px;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

/* Alineaci��n vertical perfecta de iconos */
.contact-link i {
    color: #00ff88;
    font-size: 1.2rem;
    width: 25px; /* Espacio fijo para el icono */
    text-align: center;
    flex-shrink: 0;
}

.contact-link span {
    text-align: left;
}

.contact-link:hover {
    color: #ffcc00;
    transform: translateX(5px);
}

/* ========== Ajustes Responsivos (Garant��a 1600px) ========== */
@media (min-width: 1500px) {
    .contact-info-content {
        max-width: 600px;
    }
    
}






















/* ========== LADO DERECHO: FORMULARIO ========== */
.contact-form-side {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 40px;
}

.contact-form-container {
  width: 100%;
  max-width: 600px;
  padding-top: 30px; /* �9�6 USAR padding, NO margin */
}


.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
}

.form-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: #666;
}

/* FORMULARIO */
.modern-contact-form {
  width: 100%;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

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

.form-checkbox {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

.form-checkbox label a {
  color: #007bff;
  text-decoration: underline;
}

/* BOT�0�7N */
.btn-submit-form {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: -10px;
}

.btn-submit-form:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-submit-form i {
  transition: transform 0.3s ease;
}

.btn-submit-form:hover i {
  transform: translateX(5px);
}

/* MENSAJES */
.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

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

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

.form-message i {
  font-size: 1.2rem;
}


/* Spinner del bot��n */
.btn-submit-form .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

.d-none {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}