/* Colores de marca */
:root {
  --tek-blue: #011cf5;   /* azul manual */
  --tek-cream: #fdf4ff;  /* blanco cálido manual */
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--tek-blue);
  color: var(--tek-cream);
}

.tek-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background-color: var(--tek-blue); /* azul sólido */
}

/* header en páginas de caso (solo iconito a la izquierda) */
.tek-header--inner {
  justify-content: flex-start;
}

.tek-home-link {
  display: inline-flex;
  align-items: center;
}

.tek-home-icon {
  width: 32px;
  height: auto;
  display: block;
}



.tek-menu-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.tek-menu-btn img {
  width: 40px;
  height: auto;
  display: block;
}

/* logo header */
.tek-logo img {
  max-height: 40px;
  width: auto;
}

/* HERO */
.tek-hero {
  min-height: 100vh;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--tek-blue);
}

/* contenedor del logo con animación */
.tek-hero-logo-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  animation: logoIntro 1.2s ease-out forwards, logoFloat 5s ease-in-out 1.2s infinite;
  opacity: 0;           /* empieza invisible y aparece con la animación */
  transform: translateY(30px) scale(0.95);
}

/* si es imagen */
.tek-hero-logo {
  max-width: 540px;
  width: 90vw;
}

/* si lo haces con texto (opcional) */
/*
.tek-hero-logotype {
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  text-transform: lowercase;
  line-height: 0.85;
}

.tek-hero-logotype .line {
  display: block;
}

.tek-hero-logotype .line-1 { animation: wordFade 0.9s 0.2s forwards; opacity: 0; }
.tek-hero-logotype .line-2 { animation: wordFade 0.9s 0.4s forwards; opacity: 0; }
.tek-hero-logotype .line-3 { animation: wordFade 0.9s 0.6s forwards; opacity: 0; }
*/

.tek-hero-tagline {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  opacity: 0;
  animation: taglineFade 1s 1.3s forwards;
}

/* ANIMACIONES */

/* entrada del logo */
@keyframes logoIntro {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* flotando suave para que se sienta vivo */
@keyframes logoFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* entrada de tagline */
@keyframes taglineFade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* si usas palabras sueltas */
/*
@keyframes wordFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
*/

/* Responsivo */
@media (max-width: 768px) {
  .tek-header {
    padding: 0.9rem 1.2rem;
  }

  .tek-hero-logo {
    max-width: 320px;
  }

  .tek-hero-tagline {
    font-size: 0.8rem;
  }
}

/* --- SECCIÓN TRES E --- */
.tek-triple-e {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  min-height: 100vh;
  text-align: left;
  background-color: var(--tek-cream);
}

.e-item {
  position: relative;
  padding: 6rem 3rem;
  color: var(--tek-blue);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

/* “E” gigante detrás */
.e-bg {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 25rem;
  font-weight: 700;
  color: var(--tek-blue);
  opacity: 0.00;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  transition: all 0.4s ease-in-out;
}

/* Texto */
.e-item h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  z-index: 1;
  text-transform: capitalize;
  transition: color 0.4s ease-in-out;
}

.e-item p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 320px;
  z-index: 1;
  transition: color 0.4s ease-in-out;
}

/* --- EFECTO HOVER: invierte colores --- */
.e-item:hover {
  background-color: var(--tek-blue);
  color: var(--tek-cream);
}

.e-item:hover h2,
.e-item:hover p {
  color: var(--tek-cream);
}

.e-item:hover .e-bg {
  color: var(--tek-cream);
  opacity: 0.15;
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
  .tek-triple-e {
    grid-template-columns: 1fr;
  }

  .e-item {
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
  }

  .e-item p {
    max-width: 80%;
  }

  .e-bg {
    font-size: 20rem;
  }
}
/* CONTENEDOR DE BOTONES DE SERVICIOS */
.e-services {
  margin-top: 2.2rem;   /* más aire entre el párrafo y los botones */
  display: flex;
  flex-direction: column;
  gap: 1.1rem;          /* más espacio entre cada botón */
}


/* ESTILO GENERAL DE LOS BOTONES (píldoras) */
/* ESTILO GENERAL DE LOS BOTONES */
.service-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1.8px solid var(--tek-blue);
  background-color: transparent;
  color: var(--tek-blue);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

/* HOVER: inversión real del color + realce */
.service-pill:hover {
  background-color: var(--tek-blue);
  color: var(--tek-cream);
  border-color: var(--tek-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(1, 28, 245, 0.3);
}

/* Botones en bloque azul (inversión contraria) */
.e-item--blue .service-pill {
  border-color: var(--tek-cream);
  color: var(--tek-cream);
}

.e-item--blue .service-pill:hover {
  background-color: var(--tek-cream);
  color: var(--tek-blue);
  border-color: var(--tek-cream);
  box-shadow: 0 6px 16px rgba(255, 247, 255, 0.3);
}
/* --- CASE STUDIES --- */
.tek-cases {
  background-color: var(--tek-blue);
  color: var(--tek-cream);
  padding: 4rem 2rem 4.5rem;   /* menos padding y casi a full width */
}

.tek-cases-inner {
  max-width: 100%;             /* ya no lo centramos en una caja estrecha */
  margin: 0;
}


.tek-cases-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.tek-cases-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 por fila */
  gap: 2rem;
  padding: 1.5rem 0 0;
  /* quitamos el scroll horizontal */
  overflow-x: visible;
  scroll-snap-type: none;
}


/* tarjeta individual */
.case-card {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 300px; /* 🔹 más pequeño para que quepan 3 por fila */
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(6px) scale(1);
  transition:
    transform 0.35s cubic-bezier(0.21, 0.79, 0.34, 0.99),
    box-shadow 0.35s ease,
    filter 0.35s ease;
}



/* overlay más oscuro */
.case-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.85)
  );
}

/* contenido CENTRADO en medio de la tarjeta */
.case-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;       /* centrado vertical */
  justify-content: center;   /* centrado horizontal */
  padding: 1.5rem;
  text-align: center;
  z-index: 1;
}

.case-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tek-cream);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}


/* efecto hover: sube y se “ilumina” un poco */
.case-card:hover {
  /* 👇 en hover sube a su lugar y crece un poco */
  transform: translateY(0) scale(1.03);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  filter: brightness(1.05);
}

.case-card:hover .case-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.9)
  );
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .case-card {
    min-width: 70%;
    height: 360px;
  }

  .tek-cases {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .tek-cases-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 por fila en tablet */
  }
}

@media (max-width: 640px) {
  .tek-cases-row {
    grid-template-columns: 1fr; /* 1 por fila en móvil */
  }
}
/* ======================
   PÁGINAS DE CASE STUDY
   ====================== */

.case-detail {
  background-color: var(--tek-cream);
  color: var(--tek-blue);
  min-height: 100vh;
  padding: 6.5rem 6vw 4.5rem;  /* margen considerando header fijo */
}

/* layout 2 columnas: texto izq, fotos der */
.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* texto izquierda */
.case-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.case-tag {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.case-copy p {
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* fotos derecha */
.case-photos {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.case-photo-main img {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

.case-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.case-photo-grid img {
  width: 100%;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

/* responsive */
@media (max-width: 900px) {
  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-detail {
    padding: 6rem 1.8rem 4rem;
  }
}
/* ======================
   MENÚ HAMBURGUESA
   ====================== */

.tek-menu-icon {
  width: 32px;
  height: auto;
  cursor: pointer;
  z-index: 1001;
}

/* Contenedor del menú */
.tek-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 0;
  overflow: hidden;
  background-color: var(--tek-blue);
  color: #fff;
  transition: width 0.4s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Menú activo */
.tek-menu.active {
  width: 100%;
}

/* Lista */
.tek-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.tek-menu li {
  margin: 1.5rem 0;
}
/* ESTILO BASE */
.tek-menu a {
  color: var(--tek-cream);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* EFECTO AL PASAR EL MOUSE */
.tek-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--tek-cream);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

/* cuando pasas el mouse */
.tek-menu a:hover {
  color: var(--tek-cream);
  transform: scale(1.05);
}

.tek-menu a:hover::after {
  width: 60%;
}

html { scroll-behavior: smooth; }
:target { scroll-margin-top: 120px; } /* ajusta a la altura real del header */
.footer {
  background-color: #041178; /* color de fondo */
  color: #fdf4ff;
  padding: 30px 0;
  text-align: center;
  border-top: 0px solid #ddd;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer p {
  font-size: 0.95rem;
  margin: 0;
}

.footer-icons {
  display: flex;
  gap: 18px;
}

.footer-icons a img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-icons a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}
