/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  padding-top: 0; /* Eliminando cualquier padding superior del body */
}

html {
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 48px;
  height: 48px;
  /* Eliminando completamente cualquier estilo de fondo del logo */
}

.brand-text {
  font-size: 24px;
  font-weight: bold;
  color: #f59e0b;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #f59e0b;
}

/* Añadiendo estilos para botones de login y registro en desktop */
.btn-login {
  border: 2px solid #f59e0b !important;
  color: #f59e0b !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  transition: all 0.3s !important;
}

.btn-login:hover {
  background: #f59e0b !important;
  color: white !important;
}

.btn-register {
  background: #f59e0b !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  transition: all 0.3s !important;
}

.btn-register:hover {
  background: #d97706 !important;
  transform: translateY(-1px) !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

/* Añadiendo estilos para botones de login y registro en móvil */
.btn-login-mobile {
  border: 2px solid #f59e0b !important;
  color: #f59e0b !important;
  padding: 12px 16px !important;
  border-radius: 6px !important;
  margin-top: 10px !important;
  text-align: center !important;
  font-weight: 600 !important;
  border-bottom: none !important;
}

.btn-register-mobile {
  background: #f59e0b !important;
  color: white !important;
  padding: 12px 16px !important;
  border-radius: 6px !important;
  margin-top: 10px !important;
  text-align: center !important;
  font-weight: 600 !important;
  border-bottom: none !important;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 500px;
  margin-top: 0; /* Eliminando margin-top */
  padding-top: 70px; /* Añadiendo padding-top para compensar header fijo */
  overflow: hidden;
  background: #f8fafc;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Asegurar que las imágenes se muestren correctamente */
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  padding: 20px;
  max-width: 90%;
}

.slide-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
  line-height: 1.1; /* Reduciendo interlineado de títulos */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Añadiendo sombra para legibilidad */
}

.slide-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.3; /* Reduciendo interlineado de párrafos */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Añadiendo sombra para legibilidad */
}

.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 3;
  /* Ocultando completamente los controles de navegación del slider */
  display: none;
}

.slider-btn {
  background: rgba(245, 158, 11, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ocultando botones de navegación anterior/siguiente */
  display: none;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #f59e0b;
}

/* User Selector */
.user-selector {
  padding: 30px 0; /* Reduciendo espaciado entre header y primera sección */
  background: #f8fafc;
}

.user-selector h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
  line-height: 1.2; /* Reduciendo interlineado de títulos de sección */
}

.user-selector p {
  text-align: center;
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 3rem;
}

.selector-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.selector-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.selector-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.selector-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.selector-card > p {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.selector-card ul {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.selector-card li {
  padding: 0.5rem 0;
  color: #4b5563;
  position: relative;
  padding-left: 1.5rem;
}

.selector-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #f59e0b;
  color: white;
}

.btn-primary:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #1f2937;
  color: white;
}

.btn-secondary:hover {
  background: #374151;
  transform: translateY(-2px);
}

/* Job Roles */
.job-roles {
  padding: 60px 0; /* Reduciendo padding vertical para móvil */
  background: white;
}

.job-roles h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
  line-height: 1.2; /* Reduciendo interlineado de títulos de sección */
}

.job-roles p {
  text-align: center;
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 3rem;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.role-card {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.role-card:hover {
  background: #f59e0b;
  color: white;
  transform: translateY(-5px);
  border-color: #d97706;
}

.role-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.role-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.role-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Company Types */
.company-types {
  padding: 60px 0; /* Reduciendo padding vertical para móvil */
  background: #f8fafc;
}

.company-types h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
  line-height: 1.2; /* Reduciendo interlineado de títulos de sección */
}

.company-types p {
  text-align: center;
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 3rem;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.company-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #1f2937;
  color: white;
}

.company-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.company-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

/* Features */
.features {
  padding: 60px 0; /* Reduciendo padding vertical para móvil */
  background: white;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1f2937;
  line-height: 1.2; /* Reduciendo interlineado de títulos de sección */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  background: #f59e0b;
  color: white;
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #f59e0b;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #f59e0b;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #f59e0b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu.active {
    display: block;
  }

  .slide-content h1 {
    font-size: 2rem;
    line-height: 1.1; /* Manteniendo interlineado reducido en móvil */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); /* Sombra más fuerte en móvil */
  }

  .slide-content p {
    font-size: 1.2rem;
    line-height: 1.3; /* Manteniendo interlineado reducido en móvil */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9); /* Sombra más fuerte en móvil */
  }

  .selector-cards {
    grid-template-columns: 1fr;
  }

  .roles-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .companies-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .container {
    padding: 0 15px;
  }

  .hero-slider {
    height: 56.25vw; /* Ratio 16:9 responsive */
    min-height: 350px;
    max-height: 500px;
    margin-top: 0; /* Eliminando cualquier espaciado superior en móvil */
    padding-top: 70px; /* Añadiendo padding-top para compensar header fijo */
  }

  section {
    padding: 60px 0;
  }

  .user-selector,
  .job-roles,
  .company-types,
  .features {
    padding: 20px 0; /* Reduciendo aún más el espaciado en móvil */
  }

  .user-selector h2,
  .job-roles h2,
  .company-types h2,
  .features h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .user-selector p,
  .job-roles p,
  .company-types p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .slide-content {
    padding: 15px;
    max-width: 85%;
  }

  .slide-content h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0.8rem;
  }

  .slide-content p {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 56.25vw; /* Manteniendo ratio 16:9 */
    min-height: 300px;
    max-height: 400px;
    margin-top: 0; /* Asegurando que no hay espaciado superior en móviles pequeños */
    padding-top: 70px; /* Añadiendo padding-top para compensar header fijo */
  }

  .slide-content {
    padding: 12px;
    max-width: 80%;
  }

  .slide-content h1 {
    font-size: 1.6rem;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  }

  .slide-content p {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
  }

  section {
    padding: 60px 0;
  }

  .user-selector,
  .job-roles,
  .company-types,
  .features {
    padding: 15px 0; /* Espaciado mínimo para móviles pequeños */
  }

  .user-selector h2,
  .job-roles h2,
  .company-types h2,
  .features h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .user-selector p,
  .job-roles p,
  .company-types p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .roles-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .role-card {
    padding: 1rem;
  }

  .role-icon {
    font-size: 2rem;
  }

  .company-card {
    padding: 1.5rem;
  }

  .company-icon {
    font-size: 2.5rem;
  }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.role-card,
.company-card,
.feature-card,
.selector-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Añadiendo fallback para imágenes que no cargan */
img {
  max-width: 100%;
  height: auto;
}
