:root {
  --primary-color: #0969da;
  --secondary-color: #1a7f37;
  --text-color: #1f2328;
  --text-secondary: #656d76;
  --border-color: #d0d7de;
  --bg-color: #ffffff;
  --bg-secondary: #f6f8fa;
  --header-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  background-color: white;
}

.animated-text-container {
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
  position: relative;
  margin-bottom: 1rem;
}

.text-input {
  width: 100%;
  min-height: 60px;
  padding: 16px;
  font-size: 16px;
  line-height: 1.5;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  transition: all 0.3s ease;
  resize: none;
  font-family: inherit;
}

.text-input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.text-input::placeholder {
  color: #666;
  transition: color 0.3s ease;
}


.use-description-btn.active {
  opacity: 1;
  pointer-events: all;
  cursor: pointer;
}

/* Estilo para el boton de usar descripcion */
.use-description-btn {
  display: block;
  margin: 20px auto;
  padding: 12px 24px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.use-description-btn:hover {
  background-color: #357abd;
  transform: translateY(-2px);
}

.use-description-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.use-description-btn i {
  margin-right: 8px;
}

.animated-text {
  position: absolute;
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
}

.animated-text.active {
  opacity: 0.5;
  animation: typeWriter 6s steps(100, end),
             blink-caret 0.75s step-end infinite;
}

@keyframes typeWriter {
  from {
      width: 0;
  }
  to {
      width: 100%;
  }
}

@keyframes blink-caret {
  from, to { border-right-color: transparent }
  50% { border-right-color: var(--text-secondary); }
}

.animated-text.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  to {
      opacity: 0;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: var(--header-padding);
  align-items: center;
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-right {
  margin-right: 10px;
}

.logo {
  height: 32px;
  margin-top: 6px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.nav-link:hover {
  color: var(--primary-color);
}

.hero {
  min-height: 100vh; /* Asegura altura mínima inicial */
  position: relative;
  padding: 2rem 1rem;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.search-results {
  margin-top: 3rem;
  width: 90%;
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}

.results-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(320px, 1fr));
  gap: 3rem;
  width: 100%;
  justify-content: center;
  margin: 0 auto;
}

.candidate-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  width: 100%;
  min-width: 360px;
}

@media (max-width: 1400px) {
  .results-wrapper {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    max-width: 900px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .results-wrapper {
    grid-template-columns: minmax(280px, 1fr);
    max-width: 450px;
  }
}

.hero-title {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-color);
}

.hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.button {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.button-primary {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid rgba(27, 31, 36, 0.15);
}

.button-primary:hover {
  background-color: #0550ae;
}

.button-secondary {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.button-secondary:hover {
  background-color: #f3f4f6;
}

.scroll-arrow {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Asegura que ocupe todo el ancho disponible */
}

.scroll-text {
  font-size: 0.8rem;
  color: #666;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-align: center;
  width: 100%; /* Asegura que el texto use todo el ancho */
}

.scroll-arrow-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto; /* Centra el botón */
}

.scroll-arrow-btn:hover {
  transform: translateY(4px);
}

.scroll-arrow-btn i {
  font-size: 24px;
  color: #4a90e2;
}

.features {
  padding: 60px 24px;
  background-color: var(--bg-color);
}

.features-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-color);
}

.feature-icon {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.feature-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 14px;
}

.merlin-spinner-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.merlin-spinner-overlay.active {
  display: flex;
}

.merlin-spinner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.merlin-spinner {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.spinner-text {
  margin: 0;
  font-size: 18px;
  color: #333;
  text-align: center;
  width: 100%;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-button {
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  background-color: #ffffff;
  color: #24292e;
  border: 2px solid #24292e;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  max-height: 40px;
  margin-bottom: 5px;
  transform: translateY(-4px);
}

.cta-button2 {
  display: inline-block;
  padding: 0px 6px;
  align-items: center;
  height: 50px;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: #24292e;
  border: 2px solid #24292e;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #f8f7f6 !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 4px 6px rgba(120, 113, 108, 0.15);
}

.cta-button2:hover {
  transform: translateY(-2px) !important; 
  box-shadow: 0 4px 6px rgba(120, 113, 108, 0.15);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button i {
  font-size: 18px;
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.contact-section {
  background-color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 0;
  margin-bottom: 60px;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2rem;
  color: #2d3436;
  margin-bottom: 1rem;
}

.contact-description {
  font-size: 1.1rem;
  color: #636e72;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-button.linkedin {
  background-color: #0077b5;
  color: white;
}

.contact-button.website {
  background-color: #2d3436;
  color: white;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-button i {
  font-size: 1.2rem;
}

.contact-button.email {
  background-color: #ea4335; /* Color rojo de Gmail */
  color: white;
}

.contact-button.email:hover {
  background-color: #d33426;
}

/* Responsive design */
@media (max-width: 768px) {
  .contact-section {
      padding: 3rem 1rem;
  }

  .contact-title {
      font-size: 1.75rem;
  }

  .contact-description {
      font-size: 1rem;
  }

  .contact-buttons {
      flex-direction: column;
      align-items: center;
  }

  .contact-button {
      width: 100%;
      max-width: 250px;
      justify-content: center;
  }
}

.header-title {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  opacity: 1;
}

.candidate-card:hover {
  transform: translateY(-2px);
}

.candidate-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.candidate-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
}

.candidate-info {
  flex-grow: 1;
}

.candidate-username {
  margin: 0;
  color: #2d3436;
  font-size: 1.2rem;
}

.match-score {
  display: flex;
  align-items: center;
  color: #00b894;
  font-weight: 500;
  margin-top: 0.25rem;
}

.match-score i {
  margin-right: 0.5rem;
}

.candidate-bio {
  color: #636e72;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ai-evaluation {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
}

.ai-evaluation h4 {
  margin: 0 0 0.5rem 0;
  color: #2d3436;
}

.ai-evaluation p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #636e72;
}

.strengths, .recommendation {
  margin: 0.5rem 0;
}

.search-params-section {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 20px 0;
  overflow: hidden;
}

.search-params-header {
  background: #f8f9fa;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-text h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #2c3e50;
}

.header-subtitle {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 2px;
}

.params-grid {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.param-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 16px;
}

.param-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.param-header i {
  color: #6c757d;
}

.param-label {
  font-weight: 500;
  color: #495057;
}

.param-value-container {
  padding-left: 24px;
}

.param-value {
  color: #2c3e50;
  line-height: 1.5;
}

.search-params-content {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  opacity: 1;
}

.params-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.params-toggle-btn:hover {
  background-color: rgba(0,0,0,0.05);
}

.params-toggle-btn i {
  transition: transform 0.3s ease;
}

.params-toggle-btn.expanded i {
  transform: rotate(180deg);
}


@media (max-width: 768px) {

  .candidate-avatar {
      width: 50px;
      height: 50px;
  }

  .candidate-username {
      font-size: 1.1rem;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-right {
  margin-left: 10px;
}

.header-title {
    font-size: 18px;
}


.hero-container {
    margin-top: 70px;
}

.hero-title {
  font-size: 1.8rem;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 15px;
  margin-top: 5px;
}

.hero-description {
    font-size: 1rem;
    text-align: center;
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Textarea y botón de búsqueda */
.animated-text-container {
    width: 100%;
    margin: 15px auto;
}

.text-input {
    font-size: 14px;
    padding: 12px;
    min-height: 50px;
}

.use-description-btn {
    width: 100%;
    margin: 10px auto;
    padding: 12px 16px;
    font-size: 14px;
}

/* Features Section */
.features {
    padding: 40px 15px;
}

.feature-title2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.features-container {
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card {
    padding: 20px;
}

/* Resultados de búsqueda */
.search-results {
    margin-top: 2rem;
    padding: 0 15px;
}

.results-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
}

.candidate-card {
    min-width: auto;
    padding: 20px;
    margin: 10px 0;
}

.search-params-section {
    margin: 15px 0;
}

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

.param-item {
    padding: 12px;
}

/* Sección de contacto */
.contact-section {
    padding: 40px 15px;
}

.contact-container {
    width: 100%;
}

.contact-title {
    font-size: 1.5rem;
}

.contact-description {
    font-size: 1rem;
}

.contact-buttons {
    flex-direction: column;
    gap: 15px;
}

.contact-button {
    width: 100%;
}

.scroll-arrow {
    margin-top: 30px;
}

.search-cta {
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.cta-title {
    font-size: 1.2rem;
}

.cta-description {
    font-size: 0.9rem;
}

.cta-button {
  white-space: nowrap;
}

.cta-button:hover {
  background-color: #99a1ad;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}


.notifications-container {
    width: 90%;
    left: 5%;
    bottom: 20px;
}

.notification {
    padding: 12px;
    margin-bottom: 10px;
}
}

/* Estilizar el scrollbar para mejor apariencia */
.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.search-cta {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-title {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.cta-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.search-cta .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #24292e;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-cta .cta-button:hover {
  background-color: #2f363d;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-cta .cta-button i {
  font-size: 18px;
}

/* Asegurarse de que la flecha se muestre correctamente en ambas posiciones */
.hero-container > .scroll-arrow,
.search-results > .scroll-arrow {
  display: block;
}

.feature-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.feature-title2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

