@font-face {
  font-family: "Bedrics Worth";
  src: url("../fuente/Bedrics Worth.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #f7f5f1;
  --color-surface: #ffffff;
  --color-surface-soft: #f0ede8;
  --color-text: #1f1f1f;
  --color-text-muted: #5c5c5c;
  --color-primary: #a1200e;
  --color-primary-dark: #7d180d;
  --color-accent: #f2a31b;
  --color-border: rgba(31, 31, 31, 0.12);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.14);
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-16: 4rem;
  --content-default: 1200px;
  --text-sm: 0.92rem;
  --text-base: 1rem;
  --text-lg: clamp(1.1rem, 1rem + 0.45vw, 1.4rem);
  --text-xl: clamp(1.8rem, 1.4rem + 0.9vw, 2.6rem);
  --text-hero: clamp(2rem, 1.35rem + 2.2vw, 4.4rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Fira Sans", Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.contenedor {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.section-kicker {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--text-sm);
}

/* HEADER */

.header-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 10px solid var(--color-primary);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
}

.cabecera {
    width: min(100% - 2rem, var(--container));
    min-height: 96px;
    margin: 0 auto;
    padding: 0.85rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
}

.cabecera-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.logo {
  width: clamp(120px, 13vw, 185px);
  height: auto;
  object-fit: contain;
}

.titulo {
  margin: 0;
  font-family: "Bedrics Worth", serif;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  color: var(--color-primary);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transform: translateY(4px);
}

/* INTRODUCCIÓN */

.introduccion {
  position: relative;
  min-height: clamp(360px, 62vh, 720px);
  overflow: hidden;
  background: #000;
}

.video-Introduccion,
.video-Introduccion video {
  width: 100%;
  height: 100%;
}

.video-Introduccion video {
  min-height: clamp(360px, 62vh, 720px);
  object-fit: cover;
}

.texto-Introduccion {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-4);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.18));
}

.texto-Introduccion h2 {
  max-width: 12ch;
  color: #ffffff;
  font-size: var(--text-hero);
  line-height: 1.05;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* SECCIONES */

.servicios,
.equipo,
.clientes,
.contactar {
  padding: var(--space-16) 0;
}

.texto-Servicios,
.texto-Equipo,
.texto-Clientes {
  text-align: center;
  margin-bottom: var(--space-8);
}

.texto-Servicios h2,
.texto-Equipo h2,
.texto-Clientes h2 {
  font-size: var(--text-xl);
  line-height: 1.2;
}

/* SERVICIOS - ESTILO ORIGINAL MEJORADO */

.servicios {
  padding: var(--space-16) 0 var(--space-10);
}

.swiper {
  width: min(100% - 2rem, 1100px);
  height: 550px;
  margin: 0 auto;
  padding-top: var(--space-4);
  padding-bottom: 2.5rem;
}

.swiper-slide {
  text-align: center;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.swiper-slide img {
  width: 100%;
  height: 400px;
  object-fit: scale-down;
}

.slider__txt {
  margin: auto;
  max-width: 320px;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--color-text);
}

/* EQUIPO */

.equipo {
  background-color: var(--color-surface-soft);
}

.contenido-Equipo {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto var(--space-10);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
}

.contenido-Equipo p {
  text-align: center;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.55rem);
  max-width: 320px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.contenido-Equipo img {
  width: 100%;
  margin: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cultura {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.cultura > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cultura p {
  text-align: center;
  color: var(--color-text-muted);
}

.circulo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-4);
}

.icono {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: var(--space-4);
}

/* CLIENTES */

.slider {
  background: #fff;
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.slider::before,
.slider::after {
  background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 100%;
  position: absolute;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
  top: 0;
}

.slider .slide-track {
  animation: scroll 40s linear infinite;
  display: flex;
  width: calc(220px * 22);
}

.slider .slide {
  height: 220px;
  width: 220px;
  display: flex;
  margin: auto;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.imagenClientes {
  width: 100%;
  object-fit: contain;
}

.imagenClientes1 {
  width: 70%;
  object-fit: contain;
}

/* CONTACTAR */

.contactar {
  width: 100%;
  background-color: var(--color-surface-soft);
}

.info-Conntactar {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.info-Conntactar > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.info-Conntactar div a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: var(--space-6);
  text-align: center;
}

.info-Conntactar div a img {
  display: block;
  width: 80px;
  margin: 0 auto var(--space-4);
}

.info-Conntactar div a h2 {
  text-align: center;
  font-size: 1.35rem;
  color: #000;
  margin-bottom: var(--space-2);
}

.info-Conntactar div a p {
  text-align: center;
  font-size: 1rem;
  color: #000;
}

/* FOOTER */

.site-footer {
  border-top: 10px solid var(--color-primary);
  background: #ffffff;
  padding: var(--space-5) var(--space-4);
}

.site-footer__inner {
  width: min(100%, var(--content-default));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo--footer {
  width: clamp(120px, 14vw, 180px);
}

.site-footer p {
  margin: 0;
  color: var(--color-text-muted);
  text-align: right;
}

.site-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.site-footer__links {
  display: flex;
  gap: var(--space-3);
  font-size: 0.9rem;
}

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

.site-footer__links a:hover {
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__right {
    align-items: center;
  }

  .site-footer p {
    text-align: center;
  }
}

/* ANIMACIONES */

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-220px * 11));
  }
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .contenido-Equipo,
  .cultura,
  .info-Conntactar {
    grid-template-columns: 1fr;
  }

  .footer .contenedor {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .cabecera {
    min-height: 72px;
    gap: var(--space-3);
  }

  .titulo {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .servicios,
  .equipo,
  .clientes,
  .contactar {
    padding: var(--space-10) 0;
  }

  .swiper {
    height: 360px;
    padding-top: var(--space-2);
  }

  .swiper-slide img {
    height: 230px;
  }

  .slider__txt {
    max-width: 290px;
    font-size: 1rem;
  }

  .slider {
    height: 160px;
  }

  .slider::before,
  .slider::after {
    width: 48px;
  }

  .slider .slide-track {
    width: calc(160px * 22);
    animation: scroll-mobile 30s linear infinite;
  }

  .slider .slide {
    width: 160px;
    height: 160px;
    padding: var(--space-3);
  }

  .circulo {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
  }

  .icono {
    width: 60px;
    height: 60px;
  }

  .info-Conntactar div a img {
    width: 58px;
  }

  .info-Conntactar div a h2 {
    font-size: 1.15rem;
  }

  .info-Conntactar div a p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .cabecera {
    flex-direction: column;
    padding: var(--space-3) 0;
  }

  .titulo {
    font-size: 2.6rem;
  }

  .texto-Introduccion h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .swiper {
    width: min(100% - 1rem, 1100px);
    height: 320px;
  }

  .swiper-slide img {
    height: 200px;
  }

  .slider__txt {
    max-width: 260px;
    font-size: 0.95rem;
  }

  .contenido-Equipo p {
    font-size: 1rem;
  }

  .slider {
    height: 150px;
  }

  .slider .slide-track {
    width: calc(150px * 22);
  }

  .slider .slide {
    width: 150px;
    height: 150px;
  }

  .imagen-Footer img {
    width: 150px;
  }

  .texto-Footer h3 {
    font-size: 0.82rem;
  }
}

@keyframes scroll-mobile {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-160px * 11));
  }
}