/* ======UNIVERSAL================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nova Oval", sans-serif !important;
}

body {
  width: 100%;
  height: auto !important;
  background-color: #f4f7f6;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
}

/* ======LANDING PAGE================= */

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 100px;
  background-color: azure;
  top: 0;
  z-index: 9000;
  padding: 0 30px;
}

.nav-left,
.brand {
  display: flex;
  align-items: center;
}

.brand h3 {
  color: black;
  font-size: 28px;
  margin-left: 10px;
}

.nav-left,
.span {
  color: green;
  margin-left: 5px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.abrir-menu,
.cerrar-menu {
  display: none;
}

.links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.links li {
  list-style: none;
}

.links li a {
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  color: green;
  cursor: pointer;
  transition: color 0.2s ease;
}
.links i {
  color: green;
}

.dropdown-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.dropdown-btn {
  background: none;
  color: green;
  font-size: 20px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: azure;
  width: 300px;
  top: 50px;
  right: 0;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
}

.dropdown-content a {
  color: green;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  cursor: pointer;
  font-size: 18px;
}

.dropdown-content a:hover {
  background-color: #f0fdf4;
}

.dropdown-content.show,
.popup-options.show {
  display: block !important;
}
.profile-dropdown {
  display: flex;
  flex-direction: column;
  width: 40%;
  height: 300px;
  background-color: azure;
  position: absolute;
}


.main-content {
  display: block;
  width: 100%;
  height: 600px;
}

/* Botón Delete Job Offer */
.btn-delete-job {
  color: #00805d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-delete-job:hover {
  color: #00664a;
  background-color: #e6f4ea;
  text-decoration: none;
}
.container-1,
.container-2,
.container-3 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.container-1 {
  background-image: url(../images/hero_6.jpg);
}
.container-2 {
  background-image: url(../images/image_6.jpg);
}
.container-3 {
  background-image: url(../images/hero_5.jpg);
}

.container-1 h1,
.container-2 h1,
.container-3 h1 {
  font-size: 30px;
  color: aliceblue;
  font-weight: 900;
  text-align: center;
  text-shadow: 2px 2px 15px black;
  padding: 0 20px;
}

.container-4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 550px;
  padding: 40px 0;
  background-color: #f4f7f6;
}
.container-4 h1{
  font-size: 24px;
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}
.carousel-wrapper {
  display: flex;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* Las acomoda en fila */
  gap: 20px;
  width: 100%;
  height: auto;
}

.carousel-card {
  position: relative;
  width: 100%;
  height: auto;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f5;
  opacity: 1; /* Visibles siempre */
  transform: none; /* Quitamos la animación lateral */
  pointer-events: auto;
  text-align: center;
}

.carousel-card.active,
.carousel-card.exit {
  opacity: 1;
  transform: none;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.carousel-card h3 {
  font-size: 1.4rem;
  color: #1a1d20;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.carousel-card p {
  font-size: 1rem;
  color: #5c646d;
  line-height: 1.6;
  margin: 0;
 
}

/*================ DASHBOARDS SECTION=============*/

.nav-bar.app-nav {
  background-color: azure;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.app-nav .nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.app-nav .nav-menu a {
  text-decoration: none;
  color: green;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.app-nav .nav-menu a:hover,
.app-nav .nav-menu a.active {
  color: #7ad049;
}

/* Botón 'Post a New Job Offer' */
.app-nav .btn-post-job {
  background: #00805d;
  color: #ffffff !important;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease;
}

.app-nav .btn-post-job:hover {
  background: #00664a;
}

.user-profile-wrapper {
  position: relative;
  cursor: pointer;
}

.avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00805d;
  display: block;
  cursor: pointer;
}

.freelancer-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.freelancer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-dropdown {
  display: none;
  position: absolute;
  right: -20px;
  top: 55px;
  width: 320px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  z-index: 1000;
  padding: 16px;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-header img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-header .user-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.dropdown-header .user-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.badge-fee {
  display: inline-block;
  background: #e6f4ea;
  color: #00805d;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 5px;
}

.dropdown-links {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
}

.dropdown-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #334155;
  text-decoration: none;
  font-size: 13.5px;
  border-radius: 6px;
  transition: background 0.2s;
}

.dropdown-links li a:hover {
  background: #f8fafc;
  color: #00805d;
}

.dropdown-links li.logout-link {
  border-top: 1px solid #f1f5f9;
  margin-top: 6px;
  padding-top: 6px;
}

.dropdown-links li.logout-link a {
  color: #ef4444;
}

.dropdown-links li.logout-link a:hover {
  background: #fef2f2;
}

/* ==========================================
 MODALES Y DIÁLOGOS (<dialog>)
 ========================================== */
.main-content-dashboards {
  display: block;
  width: 100%;
  height: 700px;
}
.dashboard-container {
  padding: 90px 20px 40px 20px;
  width: 100%;
  max-height: 670px;
  overflow-y: auto;
  margin: 0 auto;
}
.dialog,
.dialog-2 {
  border: none;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 650px;
  margin: auto;
  padding: 20px;
  overflow-y: auto;
  height: 500px;
  max-height: 90vh;
}

.dialog::backdrop,
.dialog-2::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.button-container {
  display: flex;
  width: 100%;
  height: 30px;
  justify-content: flex-end;
  align-items: center;
}

.dialog-closebutton {
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  outline: none;
  color: #64748b;
  transition: color 0.2s;
}

.dialog-closebutton:hover {
  color: #0f172a;
}
#modal6 .dialog-blog-content h1 {
  font-size: 20px;
  color: green;
  margin-bottom: 8px;
}

#modal6 .dialog-blog-content p {
  font-size: 17px;
  color: #475569;
  line-height: 1.4;
  white-space: pre-line;
  text-align: left;
  margin-bottom: 15px;
}
#modal2 .dialog-blog-content p {
  font-size: 15px;
  color: #475569;
  line-height: 1.4;
  white-space: pre-line;
  text-align: left;
  margin-bottom: 15px;
}
#modal6.dialog-blog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.dialog-blog {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 100%;
  max-height: 90vh;
  background-color: #fff;
  margin: auto;
  border-radius: 25px;
  border: none;
}
.dialog-closebutton,
.dialog-blog-closebutton {
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  outline: none;
  color: #64748b;
  transition: color 0.2s;
  margin-left: auto;
  margin-right: 20px;
  margin-top: 10px;
}

#modal6 .dialog-blog-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 400px;
  min-height: 350px;
  padding-right: 15px;
  overflow-y: auto;
  box-sizing: border-box;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
}


.btn-prev,
.btn-next {
  font-size: 14px;
  background-color: green;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  margin: 10px;
  color: whitesmoke;
  cursor: pointer;
}
.dialog-content h1,
.dialog-content h2 {
  font-size: 20px;
  color: green;
  margin-bottom: 5px;
}

.dialog-content p, .span-blog{
  font-size: 17px;
  color: #475569;
  text-align: left;
  line-height: 1.4;
  white-space: pre-line;
  text-align: justify;
  margin-right: 20px;
}

.dialog-2-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 400px;
  margin-bottom: 20px;
  overflow-y: auto;
}
.dialog-2-content p {
  line-height: 1.4;
  white-space: pre-line;
  font-size: 18px;
}

/* Modales específicos más ancontainer-4os (Wallet & Overview) */
.overview-modal,
.wallet-modal {
  max-width: 900px;
  width: 92%;
  padding: 25px;
}
/* ==========================================
   ESTILOS PARA EL MODAL DE PROPUESTAS
   ========================================== */

/* 1. Modal grande y centrado */
.overview-modal,
.dialog {
  width: 100% !important;
  max-width: 980px !important;
  max-height: 85vh !important;
  border: none;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 24px 30px;
}

/* 2. Scroll solo dentro de la lista de propuestas */
.dialog-content {
  display: flex;
  flex-direction: column;
  max-height: calc(85vh - 70px);
}

.dialog-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 20px;
}

.proposals-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto; /* Activa el scroll interno si hay múltiples cajitas */
  padding-right: 10px; /* Evita que el scroll monte sobre los bordes */
  max-height: 100%;
}

/* Personalización elegante de la barra de scroll */
.proposals-list::-webkit-scrollbar {
  width: 6px;
}
.proposals-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

/* 3. Tarjeta / Cajita individual de cada propuesta */
.proposal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-color: 0.2s ease;
  box-shadow: 0.2s ease;
}

.proposal-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Encabezado de la propuesta (Avatar, Nombre y Precio) */
.proposal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
}

.freelancer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.freelancer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00805d;
}

.freelancer-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.job-applied-tag {
  font-size: 13px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.bid-badge {
  text-align: right;
  background: #f0fdf4;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.bid-amount {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #00805d;
}

.bid-estimate {
  font-size: 12px;
  color: #166534;
  display: block;
}

/* Cuerpo con la carta de presentación */
.proposal-card-body{
 display: flex;
 gap: 90px;
 height: fit-content;
}
.cover-letter {
  font-size: 14px;
  color: #334155;
  line-height: 1.2; /* Un interlineado más apretado */
  margin: 0;
  padding: 0;
  white-space: pre-line;
}

/* Pie de la tarjeta (Fecontainer-4a y Botones) */
.proposal-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.proposal-date {
  font-size: 13px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.proposal-actions {
  display: flex;
  gap: 10px;
}

/* Botones dentro de la propuesta */
.btn-secondary {
  background-color: #f1f5f9;
  color: #334155;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-primary {
  background-color: #00805d;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #00664a;
}

/* Estado vacío */
.empty-state-box {
  text-align: center;
  padding: 40px 20px;
  color: green;
}

.empty-state-box i {
  font-size: 40px;
  margin-bottom: 8px;
}
/* Modal de Confirmación de Pago */
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(3px);
}

.payment-modal-card {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 12px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.payment-modal-icon {
  font-size: 48px;
  color: #10b981;
  margin-bottom: 12px;
}

.payment-modal-title {
  margin: 0 0 10px 0;
  color: #1e293b;
  font-size: 1.25rem;
}

.payment-modal-text {
  margin: 0 0 20px 0;
  color: #64748b;
  font-size: 0.95rem;
}

.payment-modal-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 10px 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
}

/* Botón de PayPal */
.btn-paypal-pay {
  padding: 10px 22px;
  font-size: 0.9rem;
  background-color: #0070ba;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
  width: auto;
}
/* ==========================================
 TABLAS Y VISTAS DE TRABAJOS / WALLET
 ========================================== */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.job-card {
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  width: 70%;
  min-height: auto;
}

.feed-header {
  margin-bottom: 25px;
}
.feed-header h2 {
  font-size: 24px;
  color: #222;
  margin-bottom: 5px;
}
.feed-header p {
  color: #666;
  font-size: 14px;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.job-title {
  font-size: 20px;
  font-weight: 700;
  color: green;
  margin: 0 0 4px 0;
}
.job-posted-by {
  font-size: 14px;
  color: #718096;
}

.job-rate {
  font-size: 20px;
  font-weight: 800;
  color: #00805d;
  background: #e6f4ea;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.job-description {
  font-size: 17px;
  color: #4a5568;
  line-height: 1.2;
  margin-bottom: 16px;
}
.job-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.skill-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
}

.btn-apply,
.btn-post-job {
  background: #00805d;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-apply:hover,
.btn-post-job:hover {
  background: #00664a;
}

/* Tabla Overview */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  margin-top: 15px;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.overview-table th {
  background-color: #f9fafb;
  color: #374151;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.overview-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}
.status-pending {
  background-color: #fef3c7;
  color: #d97706;
}
.status-accepted {
  background-color: #d1fae5;
  color: #059669;
}
.status-rejected {
  background-color: #fee2e2;
  color: #dc2626;
}

/* Wallet Cards */
.wallet-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.wallet-card {
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.card-available {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.card-available .card-amount {
  color: #00805d;
}
.card-escrow {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.card-escrow .card-amount {
  color: #1d4ed8;
}

/* ==========================================
 FORMULARIO DE REGISTRO
 ========================================== */

.form-container {
  height: 99.99vh; /* Limita la altura máxima al 85% de la pantalla */
  overflow-y: auto; /* Activa la barra de desplazamiento vertical solo cuando sea necesario */
  padding-right: 15px; /* Espacio opcional para que la barra no tape el contenido */
  background-image: url("../images/hero_6.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
}

.form-container-hr {
  max-height: 99.99vh; /* Limita la altura máxima al 85% de la pantalla */
  overflow-y: auto; /* Activa la barra de desplazamiento vertical solo cuando sea necesario */
  padding-right: 15px; /* Espacio opcional para que la barra no tape el contenido */
  background-image: url("../images/hero_6.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
}
.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 550px;
  min-height: 400px;
  margin: 30px auto 50px auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}
.form-container-flcr {
  max-height: 99.99vh; /* Limita la altura máxima al 85% de la pantalla */
  overflow-y: auto; /* Activa la barra de desplazamiento vertical solo cuando sea necesario */
  padding-right: 15px; /* Espacio opcional para que la barra no tape el contenido */
  background-image: url("../images/hero_6.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
}
.register-form-flcr {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 550px;
  min-height: 200vh;
  margin: 30px auto 50px auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
}

.profile-pic-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.avatar-preview {
  display: flex;
  min-width: 90%; /* O el ancontainer-4o fijo que prefieras para tu avatar */
  min-height: 70px; /* Debe ser igual al ancontainer-4o para que sea cuadrado o redondo */
  border-radius: 100%; /* Si quieres que el contenedor sea circular */
  overflow: hidden; /* ¡Clave! Esto oculta todo lo que se salga del contenedor */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 2px dashed #ccc;
  position: relative;
  margin-left: auto;
}

/* Si tu JavaScript inserta una etiqueta <img> dentro de .avatar-preview al seleccionar la foto */
.avatar-preview img {
  width: 150px;
  height: 140px;
  object-fit: cover;
  position: relative;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-group label {
  font-size: 15px;
  font-weight: 600;
  color: #1a1d20;
}
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #eef2f5;
  background-color: #f4f7f6;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}
.avatar-preview {
  width: 50%;
  height: 50%;
}
.input-group input:focus,
.input-group textarea:focus {
  border-color: green;
  background-color: #ffffff;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: green;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #005600;
}
/* Estado Normal (Tema Claro) */
body {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
nav {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Transición suave al cambiar de tema */
body,
nav,
.dialog,
.dropdown-menu,
input,
select,
textarea,
button {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

/* 1. BODY Y FONDO GENERAL */
body.dark-theme {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}

/* 2. NAVEGACIÓN (NAV / HEADER) */
body.dark-theme nav,
body.dark-theme .app-nav,
body.dark-theme .nav-bar,
body.dark-theme header {
  background-color: #181818 !important;
  border-bottom-color: #2d2d2d !important;
  color: #ffffff !important;
}

body.dark-theme nav a,
body.dark-theme .nav-menu a {
  color: #cccccc !important;
}
/* Logo / Brand en Modo Oscuro */
body.dark-theme .brand h3 {
  color: #ffffff !important;
}

body.dark-theme .brand .span {
  color: green !important; /* Mantiene tu verde de marca o el tono verde que uses */
}
body.dark-theme nav a:hover,
body.dark-theme .nav-menu a.active,
body.dark-theme .nav-menu .span {
  color: #ffffff !important;
}

body.dark-theme .nav-menu #briefcase,
body.dark-theme .nav-menu #bell,
body.dark-theme .nav-menu #proposals,
body.dark-theme .nav-menu #trackings,
body.dark-theme .nav-menu #wallet,
body.dark-theme .nav-menu #blog,
body.dark-theme .nav-bar #proposals {
  color: #ffffff !important;
}
/* 3. DROPDOWN (MENÚ DESPLEGABLE DE PERFIL) */
body.dark-theme .profile-dropdown,
body.dark-theme .dropdown-menu,
body.dark-theme .dropdown-content {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .dropdown-menu a,
body.dark-theme .profile-dropdown a {
  color: #e0e0e0 !important;
}

body.dark-theme .dropdown-menu a:hover,
body.dark-theme .profile-dropdown a:hover {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
}

/* 4. TODOS LOS DIALOGS Y MODALES */
body.dark-theme dialog,
body.dark-theme .dialog,
body.dark-theme .modal {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  border: 1px solid #333333 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
}

/* Encabezados y textos dentro de los modales */
body.dark-theme dialog h1,
body.dark-theme dialog h2,
body.dark-theme dialog h3,
body.dark-theme dialog h4,
body.dark-theme .dialog h2,
body.dark-theme .dialog-content h2 {
  color: #ffffff !important;
}

body.dark-theme .dialog-subtitle,
body.dark-theme .form-help {
  color: #aaa !important;
}

/* Botón de cerrar de los modales */
body.dark-theme .dialog-closebutton {
  color: #aaa !important;
}
body.dark-theme .dialog-closebutton:hover {
  color: #fff !important;
}

/* 5. FORMULARIOS (INPUTS, SELECTS, TEXTAREAS) */
body.dark-theme input[type="text"],
body.dark-theme input[type="number"],
body.dark-theme input[type="email"],
body.dark-theme input[type="password"],
body.dark-theme select,
body.dark-theme textarea {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
  border: 1px solid #444444 !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
  color: #888888 !important;
}
body.dark-theme .dialog-blog-content p,
body.dark-theme .strong,
body.dark-theme .span {
  color: #ffffff !important;
}
body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
  border-color: #0d6efd !important;
  outline: none !important;
}

/* 6. TARJETAS Y CONTENEDORES DE INFORMACIÓN */
body.dark-theme .card,
body.dark-theme .job-offer-card,
body.dark-theme .empty-state-box,
body.dark-theme .profile-box {
  background-color: #181818 !important;
  border-color: #333333 !important;
  color: #e0e0e0 !important;
}

/* 7. DANGER ZONE EN MODO OSCURO */
body.dark-theme .dialog div[style*="background-color: rgba(220, 53, 69"] {
  background-color: rgba(220, 53, 69, 0.12) !important;
  border-color: #5a1e24 !important;
}
/* 8. DETALLES DE LAS TARJETAS DE TRABAJO (OFERTAS) EN MODO OSCURO */

/* Horas por día (Arriba a la derecontainer-4a) */
body.dark-theme .job-card .hours-badge {
  color: #a0a0a0 !important;
}

/* Fecha de publicación (Abajo a la izquierda) */
body.dark-theme .job-card .job-date {
  color: #a0a0a0 !important;
}

/* Iconos de reloj (bi-clock y bi-clock-history) */
body.dark-theme .job-card .hours-badge i,
body.dark-theme .job-card .job-date i {
  color: #a0a0a0 !important;
}

/* Opcional: Si deseas que la tarjeta cambie su fondo a oscuro */
body.dark-theme .job-card {
  background-color: #181818 !important;
  border: 1px solid #333333 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .job-card .job-title {
  color: #ffffff !important;
}
/* Descripción de la oferta en modo oscuro */
body.dark-theme .job-card .job-description {
  color: #cccccc !important;
}
body.dark-theme .job-card .job-posted-by {
  color: #aaaaaa !important;
}
/* 9. TABLA DE PROPUESTAS EN MODO OSCURO */

/* Subtítulo del modal */
body.dark-theme .overview-header p {
  color: #aaaaaa !important;
}

/* Fondo y bordes de la tabla */
body.dark-theme .overview-table {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-color: #333333 !important;
}

/* Encabezados de la tabla (th) */
body.dark-theme .overview-table th {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
  border-bottom: 2px solid #333333 !important;
}

/* Celdas de la tabla (td) */
body.dark-theme .overview-table td {
  background-color: #1e1e1e !important;
  color: #cccccc !important;
  border-bottom: 1px solid #2d2d2d !important;
}

/* Texto en negrita y categoría dentro del Job Title */
body.dark-theme .overview-table .job-title-cell strong {
  color: #ffffff !important;
}

body.dark-theme .overview-table .job-category {
  color: #888888 !important;
}

/* Badges de estado */
body.dark-theme .status-pill.status-pending {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}

body.dark-theme .status-pill.status-accepted {
  background-color: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
}

body.dark-theme .status-pill.status-rejected {
  background-color: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}
/* 10. SECCIÓN MY WALLET EN MODO OSCURO */

/* Título de la sección de historial */
body.dark-theme .wallet-history-section h3 {
  color: #ffffff !important;
}

/* Tarjetas de saldo (Wallet Cards) */
body.dark-theme .wallet-card {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
  color: #e0e0e0 !important;
}

/* Títulos/Labels dentro de las tarjetas (In escrow, Pending, etc.) */
body.dark-theme .wallet-card .card-label {
  color: #aaaaaa !important;
}

/* Números / Montos ($0.00) */
body.dark-theme .wallet-card .card-amount {
  color: #ffffff !important;
}

/* Textos explicativos pequeños (<small>) */
body.dark-theme .wallet-card small {
  color: #888888 !important;
}

/* Botón "Withdraw funds" cuando está deshabilitado */
body.dark-theme .btn-withdraw:disabled {
  background-color: #2d2d2d !important;
  color: #666666 !important;
  border: 1px solid #444444 !important;
  cursor: not-allowed;
}

/* Botón "Withdraw funds" cuando esté activo */
body.dark-theme .btn-withdraw:not(:disabled) {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
}

/* Caja de "No transactions recorded yet" (Empty state) */
body.dark-theme .wallet-history-section .empty-state {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
  border-radius: 8px;
  padding: 15px;
}

body.dark-theme .wallet-history-section .empty-state p {
  color: #aaaaaa !important;
  margin: 0;
}
/* 11. MODAL DE PROPUESTAS RECIBIDAS (LADO DEL CLIENTE) */

/* Tarjeta contenedora de la propuesta */
body.dark-theme .proposal-card {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
  color: #e0e0e0 !important;
}
body.dark-theme #chatMessagesBoxFlcr,
body.dark-theme #chatMessagesBoxHr,
body.dark-theme #chatMessagesBox {
  background-color: #1e1e1e !important;
  border: 1px solid #333333 !important;
}
/* Nombre del freelancer y título profesional */
body.dark-theme .proposal-card .freelancer-info h4 {
  color: #ffffff !important;
}

body.dark-theme .proposal-card .job-applied-tag {
  color: #aaaaaa !important;
}

/* Badge de tarifa ($25.00/hr) - Esquina superior derecha */
body.dark-theme .proposal-card .bid-badge {
  background-color: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

body.dark-theme .proposal-card .bid-badge .bid-amount {
  color: #34d399 !important;
}

body.dark-theme .proposal-card .bid-badge .bid-estimate {
  color: #a7f3d0 !important;
}

/* Texto de la propuesta (Carta de presentación) */
body.dark-theme .proposal-card .cover-letter {
  color: #cccccc !important;
}

/* Fecha de aplicación y pie de tarjeta */
body.dark-theme .proposal-card .proposal-card-footer {
  border-top: 1px solid #2d2d2d !important;
}

body.dark-theme .proposal-card .proposal-date {
  color: #888888 !important;
}

/* Botón 'Chat' en modo oscuro */
body.dark-theme .proposal-card .btn-secondary {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
  border: 1px solid #444444 !important;
}

body.dark-theme .proposal-card .btn-secondary:hover {
  background-color: #333333 !important;
}
/* 12. MODAL DE INFORMACIÓN DEL FREELANCER */

/* Etiquetas/Labels (Full name:, Professional title:, etc.) */
body.dark-theme .info-group label {
  color: #aaaaaa !important;
}

/* Valores/Contenido (Los datos reales del freelancer) */
body.dark-theme .info-group p {
  color: #ffffff !important;
}

/* Borde del Avatar */
body.dark-theme .dialog-content img[alt="Profile picture"] {
  border-color: #333333 !important;
}
.screen-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 99.99vh;
  background-color: azure;
  justify-content: center;
  align-items: center;
}

.screen-block h1 {
  color: green;
}
.screen-block p {
  font-weight: 80;
}
.button-content {
  display: flex;
  width: 10px;
  height: 10%;
  background-color: green;
}

/* 1. Imagen de captura de la landing en todo el fondo */
.bg-landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* 2. Capa que aplica el efecto 'Blurry' / Borroso a la imagen */
.overlay-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35); /* Capa oscura sutil para contraste */
  -webkit-backdrop-filter: blur(10px); /* Efecto de desenfoque */
  backdrop-filter: blur(10px); /* Soporte para Safari */
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* 3. Cuadro blanco flotante en el centro */
.card-modal {
  background-color: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  max-width: 680px;
  width: 100%;
  z-index: 3;
}

/* 4. Estilos de texto */
.title-green {
  color: green; /* Verde profesional (puedes usar tu verde exacto, ej: #28a745) */
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.card-modal p {
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* 5. Contenedor y Botón Verde con Blanco */
.button-content {
  margin-top: 25px;
}

.btn-green {
  display: inline-block;
  background-color: green; /* Fondo verde */
  color: #ffffff !important; /* Texto blanco */
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Efecto al pasar el mouse por el botón */
.btn-green:hover {
  background-color: #1b5e20; /* Verde un poco más oscuro */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
}
/* ==========================================
 CARROUSELS
 ========================================== */
 .freelancers-carrousel-container {
  width: 100%;
  height: 350px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.freelancers-carrousel-container h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

/* Contenedor relativo para permitir posicionar los botones a los costados exactamente */
.carrousel-flex-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 520px; /* Ampliado para dar espacio a la tarjeta más ancha y los botones */
    margin: 0 auto;
}

/* Contenedor estricto de una sola tarjeta centrado */
.freelancers-wrapper {
    width: 380px; /* Antes 280px */
    overflow: hidden;
    padding: 10px 0;
    margin: 0 auto;
}

.freelancers-content {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease-in-out;
}

.freelancer-card {
    flex: 0 0 380px; /* Antes 280px */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.freelancer-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #f8fafc;
}

.freelancer-card h2 {
  font-size: 17px;
  color: #1e293b;
  margin: 8px 0;
  
}

.freelancer-card p {
  font-size: 14px;
  color: #64748b;
  margin: 6px 0;
}

.freelancer-card .title {
  font-weight: 600;
  color: #0f172a;
}

.freelancer-card .rate {
  color: #16a34a;
  font-weight: 600;
}

/* Estilos base y separación simétrica para los botones */
.carrousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.2s, transform 0.1s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Botón izquierdo separado fuera de la tarjeta */
.prev-btn {
  left: -20px; 
}

/* Botón derecho separado fuera de la tarjeta */
.next-btn {
  right: -20px;
}

.carrousel-nav-btn:hover {
  background-color: #f1f5f9;
  color: #2563eb;
  border-color: #94a3b8;
}

.carrousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}


.jobs-carrousel-container {
  width: 100%;
  height: 550px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
  margin-top: 60px;
}

.jobs-carrousel-container h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

/* Contenedor flexible adaptado al nuevo ancontainer-4o de 500px */
.jobs-carrousel-container .carrousel-flex-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 660px; /* 500px de tarjeta + espacio para los botones */
  margin: 0 auto;
}

/* Ventana que muestra la tarjeta ancontainer-4a (500px) */
.jobs-wrapper {
  width: 500px;
  overflow: hidden;
  padding: 10px 0;
  margin: 0 auto;
}

.jobs-content {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease-in-out;
}

/* Tarjeta de trabajo más ancontainer-4a en horizontal */
.job-card {
  flex: 0 0 500px; /* Ancontainer-4o horizontal ampliado */
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.job-card > h2 {
  font-size: 20px;
  color: #1e293b;
  margin-bottom: 20px;
  text-align: center;
}

.job-card .description {
  font-size: 15px;
  color: #475569;
  margin-bottom: 15px;
  line-height: 1.5;
  text-align: justify;
}

.job-card .skills {
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

/* Sección del Hirer */
.job-hirer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 15px;
  margin-top: 10px;
}

.job-hirer-info img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f8fafc;
}

.job-hirer-info h2 {
  font-size: 15px;
  color: #334155;
  margin: 0;
}

.job-card .country {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
  text-align: left;
}

/* Botones de navegación laterales */
.jobs-carrousel-container .carrousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.2s, transform 0.1s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.jobs-carrousel-container .prev-btn {
  left: -20px;
}

.jobs-carrousel-container .next-btn {
  right: -20px;
}

.jobs-carrousel-container .carrousel-nav-btn:hover {
  background-color: #f1f5f9;
  color: #2563eb;
  border-color: #94a3b8;
}

.jobs-carrousel-container .carrousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}
/* ==========================================
 FOOTER
 ========================================== */
.footer {
  display: block;
  width: 100%;
  height: 400px;
  position: relative;
  background-color: black;
  bottom: 0;
}

.footer-cards-container {
  display: flex;
  width: 100%;
  height: 300px;
  justify-content: space-between;
}

.footer-card {
  display: block;
  width: 30%;
  height: 200px;
  margin: 20px 10px 0 10px;
}

.footer-card h1 {
  color: whitesmoke;
  font-size: 20px;
}
.footer-card p {
  color: whitesmoke;
  font-size: 18px;
  text-align: justify;
  margin-top: 20px;
  white-space: pre-line;
}
.footer-card a {
  text-decoration: none;
  color: whitesmoke;
  font-size: 18px;
  cursor: pointer;
}

.social-icons {
  display: flex;
  width: 30%;
  height: 200px;
  margin: 20px 10px 0 10px;
}

.social-icons img {
  width: 30px;
  height: 30px;
  margin-right: 20px;
}

.enterprice-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100px;
}

.enterprice-container h1 {
  font-size: 20px;
  color: whitesmoke;
}
.enterprice-container a {
  text-decoration: none;
  font-size: 20px;
  cursor: pointer;
  color: purple;
}

/* RESPONSIVE DESIGN LANDING PAGE (SIN ALTERAR) */
@media screen and (max-width: 768px) {
  body {
    height: auto !important;
  }

  /* BARRA DE NAVEGACIÓN RESPONSIVE */
  .nav-bar {
    height: 80px;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
  }

  .nav-left {
    width: auto;
    height: auto;
  }

  .brand {
    width: auto;
    height: auto;
  }

  .brand h3 {
    font-size: 22px;
    margin-left: 0;
  }

  .abrir-menu {
    display: block;
    font-size: 30px;
    color: green;
    cursor: pointer;
    background: none;
    border: none;
  }

  .cerrar-menu {
    display: block;
    font-size: 30px;
    color: green;
    cursor: pointer;
    background: none;
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .nav-right {
    display: block;
    width: auto;
    height: 100px;
    margin-left: 0;
  }

  .abrir-menu {
    display: block;
    font-size: 35px;
    color: green;
    cursor: pointer;
    background: none;
    border: none;
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 9001;
  }

  .cerrar-menu {
    display: block;
    font-size: 35px;
    color: green;
    cursor: pointer;
    background: none;
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .links {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: -100%;
    min-width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: azure;
    margin-left: 0;
    padding-top: 90px;
    padding-left: 30px;
    box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    z-index: 9999;
  }

  /* Clase que activarás con JavaScript para abrir el menú */
  .links.active {
    left: 0;
  }

  .links ul {
    padding: 0;
    margin: 20px 0;
    text-align: left;
  }

  .links li {
    display: block;
    margin: 10px 0;
  }

  .links li a {
    font-size: 22px;
    margin: 0;
  }

  .dropdown-menu {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    flex-direction: column;
    display: flex;
    align-items: flex-start;
  }

  .dropdown-btn {
    width: auto;
    font-size: 22px;
    text-align: left;
  }

  .dropdown-content {
    position: fixed;
    top: 120px;
    margin: 10px auto 0 0;
    width: 90%;
    box-shadow: none;
    text-align: left;
    z-index: 9000;
  }

  .container-1,
  .container-2,
  .container-3 {
    height: auto;
    min-height: 100vh;
    padding: 100px 20px;
  }

  .container-1 h1,
  .container-2 h1,
  .container-3 h1,
  .container-4 h1 {
    font-size: 24px;
    line-height: 1.4;
  }

  .carousel-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 10px;
  }

  .carousel-track {
    grid-template-columns: 1fr;
    gap: 15px;
    height: auto;
  }

  .carousel-card {
    padding: 20px;
  }

  /* DIÁLOGOS / MODALES */
  .dialog,
  .dialog-2 {
    overflow-y: auto;
  }

  .dialog-content,
  .dialog-content-2 {
    min-height: auto;
    padding-bottom: 40px;
  }

  .dialog-content h1 {
    font-size: 24px;
  }

  .dialog-content p {
    font-size: 16px;
  }

  .nav-bar .app-nav {
    position: absolute;
    z-index: 10999;
  }
  .links {
    display: flex;
    position: absolute;
    z-index: 9999;
  }
  .app-nav .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .app-nav .nav-menu a {
    font-size: 20px;
  }

  .user-profile-wrapper {
    margin-top: 40px;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 9999;
  }
  .job-card-header,
  .proposal-card-header,
  .proposal-card-footer,
  .job-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .job-rate,
  .bid-badge {
    align-self: flex-start;
  }

  .proposal-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .overview-modal,
  .wallet-modal,
  .dialog,
  .dialog-2 {
    width: 95% !important;
    padding: 15px;
    max-height: 90vh !important;
  }

  .register-form {
    padding: 20px;
    margin: 15px;
    max-width: 100%;
  }

  .profile-pic-section {
    order: -1;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 10px;
  }

  .avatar-preview {
    margin-left: 0;
    margin-right: 0;
  }
  .dropdown-links li a {
    font-size: 18px;
  }
  .profile-dropdown .user-info h4 {
    font-size: 20px;
  }
  .profile-dropdown .user-info p {
    font-size: 18px;
  }
  #modal6 {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 99.99vh;
    margin: none !important;
  }

  /* PIE DE PÁGINA (FOOTER) */
  .footer {
    height: auto;
    padding: 40px 20px;
    border: 0;
    margin-top: auto;
    position: relative;
  }

  .footer-cards-container {
    flex-direction: column;
    height: auto;
    align-items: center;
  }

  .footer-card {
    width: 100%;
    height: auto;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-card p {
    text-align: center;
  }

  .social-icons {
    width: 100%;
    height: auto;
    justify-content: center;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 20px;
  }

  .social-icons img {
    margin-right: 10px;
    margin-left: 10px;
  }

  .enterprice-container {
    margin-top: 20px;
    text-align: center;
  }

  .form-container {
    padding: 25px;
  }
  /* ==========================================
   CARROUSELS 
   ========================================== */

.freelancers-carrousel-container,
.jobs-carrousel-container {
  width: 100%;
  height: auto;
  margin: 40px auto;
  padding: 0 15px;
  text-align: center;
}

.freelancers-carrousel-container h3,
.jobs-carrousel-container h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

/* Contenedores flexibles que se ajustan al 100% sin salirse */
.carrousel-flex-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0 40px; /* Espacio reservado para que las flechas floten sin desbordar */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Ventanas y tarjetas fluidas */
.freelancers-wrapper,
.jobs-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  margin: 0 auto;
}

.freelancers-content,
.jobs-content {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease-in-out;
}

/* Tarjetas con ancho flexible máximo pero adaptables al contenedor */
.freelancer-card {
  flex: 0 0 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  margin: 0 auto;
}

.job-card {
  flex: 0 0 100%;
  max-width: 500px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  margin: 0 auto;
}

/* Elementos internos de las tarjetas */
.freelancer-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid #f8fafc;
}

.freelancer-card h2 {
  font-size: 17px;
  color: #1e293b;
  margin: 8px 0;
}

.freelancer-card p {
  font-size: 14px;
  color: #64748b;
  margin: 6px 0;
}

.freelancer-card .title {
  font-weight: 600;
  color: #0f172a;
}

.freelancer-card .rate {
  color: #16a34a;
  font-weight: 600;
}

.job-card > h2 {
  font-size: 20px;
  color: #1e293b;
  margin-bottom: 20px;
  text-align: center;
}

.job-card .description {
  font-size: 15px;
  color: #475569;
  margin-bottom: 15px;
  line-height: 1.5;
  text-align: justify;
}

.job-card .skills {
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.job-hirer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 15px;
  margin-top: 10px;
}

.job-hirer-info img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f8fafc;
}

.job-hirer-info h2 {
  font-size: 15px;
  color: #334155;
  margin: 0;
}

.job-card .country {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
  text-align: left;
}

/* Botones de navegación seguros dentro de los márgenes fluidos */
.carrousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.2s, transform 0.1s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.prev-btn {
  left: 0px;
}

.next-btn {
  right: 0px;
}

.carrousel-nav-btn:hover {
  background-color: #f1f5f9;
  color: #2563eb;
  border-color: #94a3b8;
}

.carrousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

}
