/* 
  Estilos principales para Ewuki
  - Estilo moderno, tecnológico y elegante
  - Totalmente responsive
  - Animaciones suaves y discretas
*/

/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f7f7f7;
  background-color: #050816;
  line-height: 1.6;
}

/* PALETA */
:root {
  --color-bg: #050816;
  --color-bg-alt: #0b1120;
  --color-card: #0f172a;
  --color-border: rgba(148, 163, 184, 0.3);
  --color-primary: #4f46e5;
  --color-primary-soft: rgba(79, 70, 229, 0.2);
  --color-primary-strong: #6366f1;
  --color-accent: #06b6d4;
  --color-text-main: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-danger: #f97373;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 999px;
}

/* CONTENEDORES GENERALES */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER / NAV */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.9), rgba(5, 8, 22, 0.75));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
  text-decoration: none;
}

.logo--img {
  display: inline-flex;
  align-items: center;
}

.logo--img img {
  display: block;
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
}

.nav__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__list a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__list a:hover {
  color: #e5e7eb;
  border-color: var(--color-primary);
}

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

/* LANG SWITCHER */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border-radius: var(--radius-sm);
  padding: 2px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.lang-switcher__btn {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher__btn--active {
  background: #155671;
  color: #f9fafb;
}

/* NAV TOGGLE (MÓVIL) */
.nav-toggle {
  display: none;
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: #e5e7eb;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle span:nth-child(1) {
  top: 11px;
}

.nav-toggle span:nth-child(2) {
  top: 16px;
}

.nav-toggle span:nth-child(3) {
  top: 21px;
}

.nav-toggle--open span:nth-child(1) {
  top: 16px;
  transform: rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open span:nth-child(3) {
  top: 16px;
  transform: rotate(-45deg);
}

/* HERO */
.hero {
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.15), transparent 55%),
    var(--color-bg);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero__text h1 {
  font-size: clamp(2.2rem, 3.1vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #f9fafb;
}

.hero__subtitle {
  margin: 0 0 1.75rem;
  color: var(--color-text-muted);
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.hero__visual {
  position: relative;
}

.hero__card {
  position: absolute;
  top: -1.5rem;
  right: 0;
  left: 0;
  margin: 0 auto;
  max-width: 260px;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  transform: translateY(-10px);
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.25s forwards;
}

.hero__card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.25rem;
}

.hero__card-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

.hero__image {
  width: 100%;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  display: block;
  object-fit: cover;
  max-height: 420px;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.08s ease;
}

.btn--primary {
  background: linear-gradient(135deg, #155671, #1a6d8f);
  color: #f9fafb;
  box-shadow: 0 16px 35px rgba(21, 86, 113, 0.45);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(21, 86, 113, 0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-main);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

.btn--full {
  width: 100%;
}

/* SECCIONES GENERALES */
.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__title {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #f9fafb;
}

.section__lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.section__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section__content--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

.section__content--reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.section__text {
  color: var(--color-text-main);
}

.section__text p {
  margin: 0 0 0.9rem;
}

.section__visual {
  display: flex;
  justify-content: flex-end;
}

.section__image {
  width: 100%;
  max-width: 450px;
  border-radius: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* GRID */
.grid {
  display: grid;
  gap: 1.75rem;
}

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

.grid--team {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

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

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

/* CARDS GENERALES */
.card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.65);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.15), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover::before {
  opacity: 1;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #f9fafb;
}

.card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* TEAM CARDS */
.team-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.7);
}

.team-card__image-wrapper {
  position: relative;
  overflow: hidden;
}

.team-card__image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}

.team-card:hover .team-card__image {
  transform: scale(1.06);
}

.team-card__body {
  padding: 1.4rem 1.3rem 1.6rem;
}

.team-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #f9fafb;
}

.team-card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* STEPS */
.step-card {
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.4rem 1.3rem 1.3rem 1.3rem;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.35), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.step-card:hover::after {
  opacity: 1;
}

.step-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  margin-bottom: 0.5rem;
}

.step-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #f9fafb;
}

.step-card__text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--color-text-muted);
}

/* CONTACTO / FORMULARIO */
.section__form {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border-radius: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: rgba(15, 23, 42, 0.9);
  color: var(--color-text-main);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.4);
  background-color: rgba(15, 23, 42, 0.98);
}

.form-group select {
  cursor: pointer;
}

.form-error {
  font-size: 0.78rem;
  color: var(--color-danger);
  margin: 0.25rem 0 0;
  min-height: 1em;
}

.form-message {
  font-size: 0.85rem;
  margin: 0.4rem 0 0.7rem;
  min-height: 1.1em;
}

.form-message--success {
  color: #4ade80;
}

.form-message--error {
  color: var(--color-danger);
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.6rem;
}

.contact-info p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-info strong {
  color: var(--color-text-main);
}

/* LEGALES */
.section--legal {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.legal-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.legal-text p {
  margin: 0 0 0.7rem;
}

.legal-back {
  margin-top: 2rem;
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background-color: #020617;
  padding: 1.8rem 0;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__logo {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e5e7eb;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
}

.footer__logo img {
  display: block;
  height: 26px;
  width: auto;
}

.footer__text {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 18rem;
}

.footer__links {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer__links a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: #e5e7eb;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ANIMACIONES */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    margin-top: 1rem;
  }

  .section__content--split,
  .section__content--reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .section__visual {
    justify-content: flex-start;
  }

  .section__image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: rgba(5, 8, 22, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    transform: translateY(-120%);
    transition: transform 0.22s ease-out;
  }

  .nav--open {
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    padding: 0.9rem 1.5rem 1.4rem;
  }

  .nav__list a {
    padding: 0.4rem 0;
    font-size: 0.88rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header__content {
    height: 64px;
  }

  .section {
    padding: 3.4rem 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4.5rem 0 3.4rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__content {
    align-items: flex-start;
  }
}