/* ===== BASE ===== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  color: #303030;
  margin: 0;
  padding: 0;
}

h1 {
  color: #000000;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #000000;
  margin: 0;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #000000;
  margin: 0;
}

section {
  padding: 24px;
  margin-bottom: 108px;
  margin-inline-start: 24px;
  margin-inline-end: 24px;
  border-radius: 16px;
}

section h2 {
  text-align: center;
  margin-bottom: 8px;
}

.subtitulo {
  color: #303030;
  text-align: center;
  margin: 0 auto 80px;
  max-width: 64ch;
}

section, footer {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ÍCONOS IA ===== */

.iconos-ia {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 50;
}

.icono-ia-item {
  position: relative;
  cursor: pointer;
}

.icono-ia-img {
  width: 48px;
  height: 48px;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.2s ease;
}

.icono-ia-item:hover .icono-ia-img {
  filter: grayscale(100%) brightness(0.3);
}

.tooltip-ia {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #1A1A1A;
  color: white;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  padding: 10px 14px;
  border-radius: 8px;
  width: 220px;
  white-space: normal;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.icono-ia-item:hover .tooltip-ia {
  opacity: 1;
  visibility: visible;
}

/* ===== NAV ===== */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(255, 255, 255, 0);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  color: #000000;
  font-weight: bold;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburguesa span {
  width: 24px;
  height: 2px;
  background-color: #000000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .hamburguesa {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    padding: 24px 40px;
    border-top: 1px solid #E4E4E7;
    z-index: 99;
  }

  .nav-links.abierto {
    display: flex;
  }

  nav {
    position: relative;
  }
}

/* ===== TOGGLE SPA/ENG ===== */

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #E4E4E7;
  border-radius: 22px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch input:checked + .slider {
  background-color: #1269FF;
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
}

/* ===== BOTONES ===== */

.btn-primary {
  background-color: #1269FF;
  color: #FFFFFF;
  border: none;
  padding: 12px 20px;
  border-radius: 80px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-primary:hover {
  background-color: #0d52cc;
}

.btn-secondary {
  background-color: #EBF2FF;
  color: #1269FF;
  border: none;
  padding: 8px 24px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #d6e4ff;
}

/* ===== HERO WRAPPER ===== */

.hero-wrapper {
  background-color: #FFFFFF;
  background-image:
    radial-gradient(circle 700px at top right, #9288FB60, #F788FB30, transparent 80%),
    radial-gradient(circle 700px at bottom left, #6EA3FF60, #52FFAB30, transparent 80%);
  overflow: hidden;
  position: relative;
}

/* ===== HERO ===== */

.hero {
  margin-bottom: 0px;
  margin-inline-start: auto;
  margin-inline-end: auto;
  max-width: 1200px;
  border-radius: 0px;
  border: 0px;
  color: #000000;
  text-align: center;
  height: 806px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 40px;
  box-sizing: border-box;
}

.hero em {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
}

.hero-subtitulo {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: #303030;
  max-width: 700px;
  margin: 0;
}

.hero .btn-primary {
  display: inline-flex;
}

/* ===== LOGOS DE CLIENTES ===== */

.logos-clientes {
  padding: 40px 0;
  background-color: #FFFFFF;
  max-width: none;
  overflow: hidden;
}

.logos-carrusel {
  display: flex;
  width: max-content;
  animation: scroll-logos 25s linear infinite;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-item {
  height: 32px;
  width: auto;
  opacity: 0.8;
}

/* ===== MY WORK: FILTROS ===== */

.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

/* ===== CHIPS ===== */

.chip {
  background-color: #FFFFFF;
  border: 1px solid #E4E4E7;
  color: #000000;
  padding: 4px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip:hover {
  background-color: #EBF2FF;
}

.chip-activo,
.chip-fijo {
  background-color: #EBF2FF;
  border-color: #E4E4E7;
}

.chip-activo:hover {
  background-color: #D5E4FF;
}

.chip-close {
  color: #000000;
  font-size: 16px;
}

.chip-activo:hover .chip-close {
  color: #007AFF;
}

/* ===== TARJETAS DE PROYECTO ===== */

.proyectos-lista {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.proyecto-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #FFFFFF;
  border: 1px solid #E2E2E2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.06);
}

.proyecto-imagen {
  width: 434px;
  height: 287px;
  background-color: #EBF2FF;
  border-radius: 12px;
  flex-shrink: 0;
}

.proyecto-contenido {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  align-self: stretch;
}

.proyecto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.proyecto-subtitulo {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #555555;
  margin: 0;
}

.proyecto-descripcion {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #555555;
  margin: 0;
  max-width: 65ch;
}

.proyecto-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag {
  background-color: #FFFFFF;
  color: #303030;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid #E4E4E7;
}

/* ===== MY APPROACH ===== */

.approach-grid {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}

.approach-card {
  flex: 1;
  background-color: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.approach-numero {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1269FF;
  margin-bottom: 2px;
}

.approach-card h3 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 16px;
}

.approach-card p {
  font-size: 14px;
  color: #555555;
}

/* ===== QUOTE BANNER ===== */

.quote-banner {
  background-color: #EBF2FF;
  text-align: center;
  padding: 60px 40px;
  margin-inline-start: 0;
  margin-inline-end: 0;
  max-width: none;
  border-radius: 0;
}

.quote-texto {
  font-size: 28px;
  color: #000000;
  max-width: 700px;
  margin: 0 auto;
}

.quote-texto em {
  font-family: 'Lora', serif;
  font-style: italic;
}

/* ===== ABOUT ME ===== */

.about-grid {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 80px;
}

.about-imagen {
  width: 400px;
  height: 480px;
  background-color: #E4E4E7;
  border-radius: 16px;
  flex-shrink: 0;
}

.about-contenido {
  flex: 1;
  max-width: 600px;
}

.about-contenido h3 {
  font-size: 40px;
  margin-bottom: 24px;
}

.about-contenido em {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  color: #1269FF;
}

.about-contenido p {
  font-size: 16px;
  color: #303030;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 64ch;
}

.about-contacto {
  font-weight: 600;
  color: #000000;
}

.about-botones {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

/* ===== FAQ ===== */

.faq-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 80px;
}

.faq-item {
  border: 1px solid #E4E4E7;
  border-radius: 12px;
}

.faq-pregunta {
  width: 100%;
  background-color: #FFFFFF;
  border: none;
  padding: 20px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 12px;
  box-sizing: border-box;
}

.faq-icono {
  color: #1269FF;
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
}

.faq-respuesta p {
  color: #555555;
  font-size: 14px;
  margin: 0 0 20px 0;
}

.faq-item.abierto .faq-respuesta {
  max-height: 200px;
}

.faq-item.abierto .faq-icono {
  transform: rotate(45deg);
}

/* ===== FOOTER ===== */

.footer {
  background-color: #FFFFFF;
  border-top: 1px solid #E4E4E7;
  padding: 60px 40px 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-marca {
  flex: 1;
  max-width: 320px;
}

.footer-tagline {
  font-size: 14px;
  color: #555555;
  margin: 16px 0;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #8C8C8C;
}

.footer-social a:hover {
  color: #1269FF;
}

.footer-columna {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-columna h4 {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-columna a {
  color: #555555;
  text-decoration: none;
  font-size: 14px;
}

.footer-columna a:hover {
  color: #1269FF;
}

.footer-bottom {
  border-top: 1px solid #E4E4E7;
  padding-top: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 12px;
  color: #8C8C8C;
  margin: 0;
}

/* ===== FORMULARIO DE CONTACTO ===== */

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

label {
  margin-bottom: 4px;
  font-weight: bold;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

@media (max-width: 768px) {
  .hamburguesa {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    padding: 24px 40px;
    border-top: 1px solid #E4E4E7;
    z-index: 99;
  }

  .nav-links.abierto {
    display: flex;
  }

  nav {
    position: relative;
  }

  .proyecto-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .proyecto-imagen {
    width: 100%;
    height: 200px;
  }

  .proyecto-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .approach-grid {
    flex-direction: column;
  }

  .approach-card {
    width: 100%;
  }

  .about-grid {
    flex-direction: column;
  }

  .about-imagen {
    width: 100%;
    height: 280px;
  }

  .about-contenido {
    max-width: 100%;
  }
}