:root {
    --primary-color: #05caf2;
    --secondary-color: #00e6c3;
    --dark-blue: #16233f;
    --light-blue: rgba(5, 202, 242, 0.1);
    --text-color: #ffffff;
    --text-muted: #ffffff;
    --gradient-primary: linear-gradient(135deg, #05caf2, #1093B1);
    --gradient-secondary: linear-gradient(135deg, #00e6c3, #05caf2);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
  }

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
  }
  
  .contact-container {
    max-width: 1500px;
    margin: 0 auto;
    background: rgba(22, 35, 63, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }
  
  .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    padding: 3rem;
  }
  
  /* Contact Info Side */
  .contact-header {
    margin-bottom: 3rem;
  }
  
  .contact-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .contact-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
  }
  
  .contact-benefits {
    display: grid;
    gap: 2rem;
  }
  
  .benefit-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: var(--transition);
  }
  
  .benefit-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
  }
  
  .benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    font-size: 1.5rem;
    color: white;
  }
  
  
  .benefit-text h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: white;
  }
  
  .benefit-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
  }
  
/* Form Side */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 2.5rem;
  }
  
  .form-header {
    text-align: center;
    margin-bottom: 2.5rem;
  }
  
  .form-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
  }
  
  .form-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
  }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .bi-pencil-square{
    position: absolute;
    bottom: 4.8rem; 
  }
  
  .input-group {
    position: relative;
    display: flex;
    align-items: center;
  }

  .input-group i {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    pointer-events: none;
  }
  
  

  .input-group input,
  .input-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
  }
  
  .input-group textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  .input-group input:focus,
  .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(5, 202, 242, 0.1);
  }
  
  .input-group input::placeholder,
  .input-group textarea::placeholder {
    color:white;
  }
  
  .submit-button {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(5, 202, 242, 0.2);
  }
  
  .submit-button i {
    transition: transform 0.3s ease;
  }
  
  .submit-button:hover i {
    transform: translateX(4px);
  }
  
  /* Alert Styles */
  .alert-container {
    margin-top: 1.5rem;
  }
  
  /* Estilos para la alerta de éxito */
.alert-success {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(25, 135, 84, 0.1);
  border: 1px solid rgba(25, 135, 84, 0.2);
  border-radius: 12px;
}

.alert-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 135, 84, 0.2);
  border-radius: 50%;
  color: #198754;
}

/* Estilos para la alerta de error */
.alert-danger {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(220, 53, 69, 0.1); /* Fondo rojo claro */
  border: 1px solid rgba(220, 53, 69, 0.2); /* Borde rojo */
  border-radius: 12px;
}

.alert-icon-danger {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 53, 69, 0.2); /* Fondo rojo claro */
  border-radius: 50%;
  color: #dc3545; /* Color rojo */
}

.alert-content h4 {
  color: #198754; /* Verde para éxito */
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.alert-content p {
  color: rgba(25, 135, 84, 0.8); /* Verde claro para éxito */
  font-size: 0.95rem;
  margin: 0;
}

/* Modificar los colores para la alerta de error */
.alert-content-danger h4 {
  color: #dc3545; /* Color rojo */
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.alert-content-danger p {
  color: rgba(220, 53, 69, 0.8); /* Rojo claro */
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* Contenedor general: mantiene el ancho total igual que el campo de teléfono actual */
.custom-phone-field {
  display: flex;
  width: 100%;
  height: 3.5rem; /* Altura consistente con otros inputs */
  box-sizing: border-box;
}

/* Contenedor del código de área con ancho fijo */
.custom-area-code-wrapper {
  flex: 0 0 90px;  /* Fija el ancho a 90px (ajústalo según necesites) */
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  background: rgba(255,255,255,0.03);
}

/* Selector del código de área */
.custom-area-code-selector {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  cursor: pointer;
}
/* Bandera en el selector principal */
.custom-area-code-selector img.custom-area-code-flag {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.2); /* Fondo para evitar transparencia indeseada */
  padding: 2px;
  object-fit: cover;
}

/* Banderas en el desplegable: se reducen y se les agrega fondo */
.custom-area-code-dropdown li img {
  width: 14px;   /* Disminuye el tamaño */
  height: 14px;
  border-radius: 2px;
  background-color: rgba(255,255,255,0.2); /* Fondo para evitar transparencia */
  padding: 2px;
  object-fit: cover;
}

.custom-area-code-text {
  font-size: 1rem;
  color: var(--text-color, #ffffff);
  margin-left: 0.5rem;
}
.custom-area-code-selector i {
  margin-left: 0.5rem;
  font-size: 1rem;
  color: var(--text-color, #ffffff);
}

/* Desplegable de la lista de países */
.custom-area-code-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(22,35,63,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  padding-left: 0;
}
.custom-area-code-dropdown li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text-color, #ffffff);
  transition: all 0.3s ease;
}
.custom-area-code-dropdown li:hover {
  background: rgba(255,255,255,0.05);
}

/* Contenedor del input de teléfono: ocupa el resto del espacio */
.custom-phone-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-left: none;
  border-radius: 0 12px 12px 0;
  background: rgba(255,255,255,0.03);
}
.custom-phone-input-wrapper i {
  margin-right: 0.5rem;
  color: var(--text-color, #ffffff);
}
.custom-phone-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  font-size: 1rem;
  padding: 0.75rem 0;
}
.custom-phone-input-wrapper input::placeholder{
  color: white;
}
.custom-phone-input-wrapper input::placeholder{
  color: white;
}
.custom-phone-input-wrapper input:focus {
  outline: none;
}

/* Estilos para el desplegable */
.country-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  max-height: 200px;
  overflow-y: auto;
  background: #16233f; /* Fondo sólido en lugar de transparente */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 0.5rem;
  display: none;
  z-index: 1000;
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.country-list.active {
  display: block;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.country-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.country-option img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.country-option span {
  color: var(--text-color);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Estilizar la barra de desplazamiento */
.country-list::-webkit-scrollbar {
  width: 6px;
}

.country-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Ajustes para el selector de país */
.selected-country {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  height: 100%;
}

.flag-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.selected-country img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.selected-country span {
  color: var(--text-color);
  font-size: 0.9rem;
}

.selected-country .bi-chevron-down {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

