
:root {
  --jtt-yellow: #ffc800;
  --jtt-red: #ff1a1a;
  --jtt-dark: #040826;
}

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

html {
  scroll-behavior: smooth;
}

body {
  text-align: justify;
  font-family: "Saira", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0b1626;
  background-color: #f5f5f7;
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section--muted {
  background: #eef0f3;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header h2 {
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 8px;
}

.section-header p {
  color: #777;
  font-size: 15px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  max-width: 560px;
  margin-inline: auto;
  color: #4b5563;
}

/* GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD */
.project-card {
  position: relative;
}

.project-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Marcos “dobles” */
.project-card::before,
.project-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.project-card::after {
  inset: 26px 24px 4px 24px;
  border-color: rgba(0, 0, 0, 0.12);
}

/* Imagen */
.project-media img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    transparent 100%
  );
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 4px;
}

.project-overlay h3 {
  font-size: 20px;
  margin: 2px 0 6px;
}

.project-overlay p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 14px;
  max-width: 90%;
}

/* Botón */
.btn-project {
  align-self: flex-start;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 8px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #f7c518;   /* cambia por tu color corporativo */
  color: #f7c518;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

/* HOVER */
.project-card:hover .project-media {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.project-card:hover .project-media img {
  transform: scale(1.06);
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .btn-project {
  background: #f7c518;
  color: #111;
  transform: translateY(-1px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  height: 60px;
  width: auto;
  display: block;
}

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

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0b1626;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Nav */
.nav {
  display: flex;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-list a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: #f7c518;
  transition: width 0.25s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  background: #111827;
  border-radius: 999px;
}

/* ===== SLIDER HERO JTT ===== */
.jtt-hero {
  position: relative;
  min-height: clamp(380px, 75vh, 620px);
  overflow: hidden;
}

/* contenedor de las slides */
.jtt-hero-slider {
  position: relative;
  height: 100%;
}

/* cada slide */
.jtt-hero-slide {
  position: absolute;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.jtt-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.jtt-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* overlay oscuro */
.jtt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.75)
  );
}

/* textos centrados */
.jtt-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 0 1.5rem;
  gap: 0.75rem;
}

.jtt-hero-subtitle {
  color: var(--jtt-red, #ff1a1a); /* fallback rojo */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.jtt-hero-title {
  font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem);
  font-weight: 800;
}

/* Flechas amarillas */
.jtt-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  border: none;
  background: var(--jtt-yellow, #ffc800); /* fallback amarillo */
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.jtt-hero-nav span {
  font-size: 32px;
  line-height: 1;
}

.jtt-hero-nav--prev {
  left: 0;
  transform: translate(-35%, -50%);
}

.jtt-hero-nav--next {
  right: 0;
  transform: translate(35%, -50%);
}

.jtt-hero-nav:hover {
  background: #ffde59;
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.75);
}

/* Puntos */
.jtt-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.jtt-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #9ca3af;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.jtt-hero-dot.is-active {
  width: 26px;
  background: var(--jtt-yellow, #ffc800);
}

/*mision y vision*/
.mv-grid {
  margin-top: 40px;            /* espacio entre Sobre Nosotros y tarjetas */
  max-width: 1200px;           /* ancho alineado con .container */
  margin-left: auto;
  margin-right: auto;
}

/* Grid estilizado */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;         /* ambas tarjetas igual altura */
}

/* Tarjetas */
.mv-card {
  background: #fff;
  padding: 25px 30px;
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  font-family: "Saira", sans-serif;
}

.mv-card h3 {
  margin-bottom: 10px;
  font-weight: 800;
  color: #0B1626;
}

.mv-card p {
  margin: 0;
  text-align: justify;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .jtt-hero {
    min-height: 380px;
  }

  .jtt-hero-nav {
    width: 56px;
    height: 56px;
  }

  .jtt-hero-nav span {
    font-size: 24px;
  }

  .jtt-hero-nav--prev {
    transform: translate(-25%, -50%);
  }

  .jtt-hero-nav--next {
    transform: translate(25%, -50%);
  }
}

@media (max-width: 480px) {
  .jtt-hero-title {
    font-size: 2.1rem;
  }

  .jtt-hero-subtitle {
    font-size: 0.85rem;
  }
}

/* Sobre nosotros */
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2.8rem;
  align-items: center;
}

.section-content h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-content p + p {
  margin-top: 0.75rem;
  color: #4b5563;
}

.about-images {
  position: relative;
  max-width: 420px;
}

.about-img {
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.25);
}

.about-img--main {
  width: 80%;
}

.about-img--overlay {
  position: absolute;
  width: 80%;
  right: 0;
  bottom: -15%;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.4rem 1.4rem 1.6rem;
}

.card-body h3 {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.card-body p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* Projects */

.projects-section {
  padding: 60px 0 80px;
  background: #f5f5f7;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

/* CONTENEDOR */
.project {
  position: relative;
  text-align: center;
  cursor: pointer;
}

/* MARCOS */
.project-media {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.project-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 22, 38, 0.85), transparent);
  color: #f9fafb;
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-overlay h3 {
  font-size: 1.05rem;
  margin-bottom: 0.1rem;
}

.project-overlay p {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.project:hover img {
  transform: scale(1.05);
  opacity: 0.95;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.contact-info p {
  color: #4b5563;
  margin-bottom: 1.3rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-list i {
  margin-top: 0.15rem;
  font-size: 1.1rem;
  color: #f7c518;
}

.contact-list strong {
  font-size: 0.96rem;
}

.contact-list span {
  display: block;
  font-size: 0.93rem;
  color: #4b5563;
}

/* Formulario */
.contact-form {
  background: #ffffff;
  padding: 1.8rem;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.25rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.field input,
.field textarea {
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.7rem 0.85rem;
  font: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  background: #f9fafb;
}

.field input:focus,
.field textarea:focus {
  border-color: #f7c518;
  box-shadow: 0 0 0 1px #f7c51833;
  background: #ffffff;
}

.btn-primary {
  border-radius: 999px;
  border: none;
  background: #f7c518;
  color: #111827;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  justify-self: flex-start;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(55, 65, 81, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary:hover {
  background: #facc15;
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(55, 65, 81, 0.25);
}

/* GRID DE PROYECTOS */
/* Marco superior (gris fuerte) */
.project-media::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: calc(100% + 0px);
  height: calc(100% + 0px);
  border: 6px solid #bdbdbd;   /* gris fuerte */
  transform: skew(-6deg);
  z-index: 0;
  transition: 0.3s ease;
}

/* Marco inferior (gris claro) */
.project-media::after {
  content: "";
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: calc(100% + 0px);
  height: calc(100% + 0px);
  border: 6px solid #d7d7d7;   /* gris claro */
  transform: skew(-6deg);
  z-index: 0;
  transition: 0.3s ease;
}

/* IMAGEN */
.project-media img {
  position: relative;
  display: block;
  width: 80px;       /* igual al tamaño de tu muestra */
  height: auto;
  z-index: 2;
  border-radius: 4px;
  transition: 0.3s ease;
}

/* --- EFECTO CUANDO PASA EL MOUSE --- */
.project:hover .project-media::before {
  border-color: #e53935; /* rojo del marco interior */
}

.project:hover .project-media::after {
  border-color: #ff7961; /* rojo más claro para el segundo marco */
}

/* --- EFECTO EN EL TEXTO --- */
.project:hover .project-overlay h3,
.project:hover .project-overlay p {
  color: #e53935;   /* texto rojo */
  transition: color 0.3s ease;
}

/* HOVER EN LA IMAGEN (opcional) */
.project:hover img {
  transform: translateY(-6px);
}

/* GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-top: 60px;
}

/* "VER PROYECTO" */
.project::before {
  content: "VER PROYECTO";
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 1px;
}

/* CONTENEDOR DEL PROYECTO */
.project {
  text-align: center;
  position: relative;
}

/* MARCO INCLINADO GRIS */
.project-media {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.project-media::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 5px solid #ccc;
  transform: skew(-8deg);
  z-index: 0;
}

.project-media::after {
  content: "";
  position: absolute;
  top: 35px;
  left: 35px;
  width: 100%;
  height: 100%;
  border: 5px solid #e0e0e0;
  transform: skew(-8deg);
  z-index: 0;
}

/* IMAGEN */
.project-media img {
  position: relative;
  width: 100%;
  border-radius: 6px;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* EFECTO HOVER */
.project:hover img {
  transform: translateY(-6px);
}

/* TÍTULO */
.project-overlay h3 {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 800;
  color: #222;
}

/* DESCRIPCIÓN */
.project-overlay p {
  margin-top: 10px;
  font-size: 15px;
  color: #444;
}

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

/* Footer */

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 1rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-links {
  align-items: center;
  gap: 0.6rem;
}

.footer-links a {
  text-decoration: none;
  color: #4b5563;
}

/* Responsive */
@media (max-width: 960px) {
  .section-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-images {
    margin-inline: auto;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-block: 0.6rem;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav.is-open {
    max-height: 240px;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.75rem;
  }

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

  .hero-arrow {
    display: none;
  }

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

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 360px;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }
}

/* ========= FOOTER JTT ========= */
.jtt-footer {
  background: #040826;
  padding: 60px 24px 20px;
  color: #dce0e9;
  position: relative;
  z-index: 1;
}

/* Contenedor de columnas */
.footer-row {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

/* Columnas */
.footer-col h3 {
  color: #ff1a1a;
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col p {
  font-size: 15px;
  line-height: 1.6;
}

/* Logo */
.footer-logo {
  width: 180px;
  max-width: 100%;
  margin-bottom: 20px;
}

/* Redes sociales */
.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 17px;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-social a:hover {
  background: #ff1a1a;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Lista de servicios (flecha roja, sin viñetas blancas) */
.serv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.serv-list li {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 8px;
}

.svc-arrow {
  color: #ff1a1a;
  font-size: 20px;
  margin-right: 8px;
  line-height: 0;
  position: relative;
  top: -1px;
}

/* Íconos de contacto */
.footer-col i {
  color: #ff1a1a;
  margin-right: 8px;
}

/* Línea separadora */
.footer-line {
  width: 100%;
  height: 1px;
  background: #404868;
  margin: 32px 0 18px;
}

/* Parte inferior */
.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #b6b8c4;
}

.footer-bottom span {
  color: #ff1a1a;
}

/* Botón flotante subir */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #ffc300;
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: 0.25s ease;
}

.scroll-top:hover {
  background: #ffde59;
  transform: translateY(-2px);
}

/* ========= RESPONSIVE ========= */

/* Laptops pequeñas / tablets horizontales */
@media (max-width: 1024px) {
  .footer-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

/* Tablets verticales / celulares grandes */
@media (max-width: 768px) {
  .jtt-footer {
    padding: 40px 16px 16px;
  }

  .footer-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .serv-list li {
    justify-content: center;
  }

  .footer-col p {
    font-size: 14px;
  }

  .footer-bottom {
    font-size: 13px;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {
  .footer-logo {
    width: 150px;
  }

  .scroll-top {
    width: 42px;
    height: 42px;
    right: 16px;
    bottom: 16px;
    font-size: 16px;
  }
}
