@font-face {
    font-family: 'Designer';
    src: url('../assets/fonts/Designer.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter-Light-BETA.otf';
    src: url('../assets/fonts/Inter-Light-BETA.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GABRWFFR.TTF';
    src: url('../assets/fonts/GABRWFFR.TTF') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --cyan: #189cd8;
    --magenta: #e3047d;
    --yellow: #fdea18;
    --black: #121212;

    --background: #0b0f19;
    --card: #1f293d;
    --text: #e2e8f0;
    --nav-h: 72px; /* usa el mismo valor que en style.css */
    --font-display: 'Designer', sans-serif;
    --white: #ffffff;
    --radius: 14px;
    --card-soft: #16203a;
    --muted: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    font-family: 'Inter-Light-BETA.otf', sans-serif; /* texto */
}

h1, h2, h3,
.section-title,
.about-diagonal-content h2 {
    font-family: 'Designer', sans-serif; /* títulos */
}

header {
    background-color: var(--background);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 2px solid #222222;
}
.cmyk-bar {
  display: flex;
  height: 6px;
  width: 100%;
}
.cmyk-bar span { flex: 1; }
.cmyk-bar .c { background: var(--cyan); }
.cmyk-bar .m { background: var(--magenta); }
.cmyk-bar .y { background: var(--yellow); }
.cmyk-bar .k { background: #000; }

body > .cmyk-bar {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
}
a {
    color: inherit;
    text-decoration: none;
}
.navbar {
  position: fixed;
  top: 6px; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.nav-logo img { width: 44px; height: 44px; object-fit: contain; }
.nav-logo em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  font-family: 'GABRWFFR.TTF', sans-serif;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.95rem;
}

.nav-links > a:not(.nav-cta) {
  position: relative;
  padding: 0.35rem 0;
}
.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links > a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


main {
    padding-top: calc(var(--nav-h) + 6px + 2.5rem);
    z-index: 1;
    position: relative;
    min-height: 100vh;
    background-color: var(--background);
}

.hero-title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

/* ---------- Breadcrumb "Servicios / Wrap" ---------- */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b9c4d8;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--cyan);
    transition: color 0.25s ease;
}

.breadcrumb a:hover { color: var(--yellow); }

.breadcrumb i {
    font-style: normal;
    color: #4a5878;
}

.breadcrumb strong { color: var(--white); }

.hero-title h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.hero-title p {
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.carousel {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.8rem clamp(1rem, 4vw, 2rem) 1.2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;                       /* Firefox */
  scrollbar-color: var(--cyan) var(--card-soft);
}

.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-track {
  background: var(--card-soft);
  border-radius: 999px;
}
.carousel::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  border-radius: 999px;
}

.carousel img {
  flex: 0 0 auto;
  width: clamp(240px, 32vw, 380px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  scroll-snap-align: start;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.carousel img:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

/* ---------- Banda CTA ---------- */
.cta-band {
    max-width: 1160px;
    margin: clamp(3rem, 8vw, 5rem) auto 0;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: calc(var(--radius) + 6px);
    background:
        linear-gradient(120deg, rgba(24,156,216,0.18), rgba(227,4,125,0.18) 50%, rgba(253,234,24,0.14)),
        var(--card);
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-band > div { flex: 1 1 320px; }
.cta-band h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: 0.5rem; }
.cta-band p { color: var(--muted); }
.cta-octopus { width: 90px; height: 90px; object-fit: contain; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

.btn-primary {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 10px 30px rgba(24, 156, 216, 0.35);
}
.btn-primary:hover { background: var(--magenta); transform: translateY(-3px); }

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-3px); }


/* ---------- Proyectos destacados (flechas encadenadas) ---------- */
.proyectos-destacados {
    max-width: 1160px;
    margin: clamp(3rem, 8vw, 5rem) auto 0;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.proyectos-destacados-text {
    text-align: center;
    margin-bottom: 2.2rem;
}

.proyectos-destacados-text h3 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    letter-spacing: 0.04em;
    color: var(--white);
    margin: 0 0 0.5rem;
}

.proyectos-destacados-text p {
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin: 0;
}

/* Las 4 imágenes forman una cadena de flechas:
   la punta de cada una (75% → 100%) encaja en la muesca
   de la siguiente (0% → 25%). El margen negativo las
   superpone un poco menos que la muesca, dejando una
   ranura fina de fondo que dibuja el zigzag entre ellas. */
.proyectos-destacados-imagenes {
    --img-w: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proyectos-destacados-imagenes img {
    width: var(--img-w);
    height: 280px;
    object-fit: cover;
    flex: 0 0 auto;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.proyectos-destacados-imagenes img:hover {
    filter: brightness(1.15);
}

/* Cada imagen (menos la primera) se mete en la punta de la anterior */
.proyectos-destacados-imagenes img:not(.imagen1) {
    margin-left: calc(var(--img-w) * -0.22);
}

/* Primera: plana a la izquierda, punta a la derecha (la que me pasaste) */
.imagen1 {
    clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
    border-radius: 14px 0 0 14px;
}

/* Intermedias: muesca a la izquierda + punta a la derecha */
.imagen2,
.imagen3 {
    clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%);
}

/* Última: muesca a la izquierda, plana a la derecha */
.imagen4 {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 25% 50%);
    border-radius: 0 14px 14px 0;
}

/* ---------- Mapa ---------- */
.wrap-mapa {
    max-width: 1160px;
    margin: clamp(3rem, 8vw, 5rem) auto 0;
    padding: 0 clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 5rem);
}

.wrap-mapa-text {
    text-align: center;
    margin-bottom: 2rem;
}

.wrap-mapa-text h3 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    letter-spacing: 0.04em;
    color: var(--white);
    margin: 0 0 0.5rem;
}

.wrap-mapa-text p {
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin: 0 auto;
    max-width: 520px;
}

.wrap-mapa-frame {
    position: relative;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    border: 1px solid #2c3a55;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

/* Filete CMYK sobre el mapa, como la barra del navbar */
.wrap-mapa-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    z-index: 1;
    background: linear-gradient(
        90deg,
        var(--cyan) 0%, var(--cyan) 25%,
        var(--magenta) 25%, var(--magenta) 50%,
        var(--yellow) 50%, var(--yellow) 75%,
        #000 75%, #000 100%
    );
}

.wrap-mapa-frame iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

/* ---------- Responsive de esta página ---------- */
@media (max-width: 640px) {
    /* Las flechas se convierten en cuadrícula 2x2:
       responsive.css ya les quita el clip-path y les da
       border-radius a .imagen1..4, aquí solo cambia el layout */
    .proyectos-destacados-imagenes {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .proyectos-destacados-imagenes img,
    .proyectos-destacados-imagenes img:not(.imagen1) {
        margin-left: 0;
        height: 180px;
    }
    .wrap-mapa-frame iframe {
        height: 320px;
    }
}

.footer {
    position: sticky;
    display: grid;
    bottom: 0;
    left: 0;
    width: 100%;
    gap: 40px;
    box-sizing: border-box;
}

.footer-main {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.footer-logo {
    display: flex;
    position: 1;
    height: 200px;
}

.footer-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.footer-logo:hover{
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 40px;
}

.footer-links p {
    color: var(--yellow);
    font-family: 'Designer', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'GABRWFFR.TTF', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--magenta); /* Línea roja de acento */
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 40px;
    max-width: 320px; /* <- clave: evita que el texto invada la columna vecina */
}

.footer-contact h4 {
    color: var(--yellow);
    font-family: 'Designer', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start; /* el ícono queda arriba si el texto pasa a 2 líneas */
    gap: 8px;
    margin: 5px 0;
}

.footer-icon {
    flex-shrink: 0; /* el ícono nunca se encoge ni se deforma */
    width: 20px;
    height: 20px;
}

.footer-contact p span {
    flex: 1;
    min-width: 0; /* permite que el texto haga wrap dentro de su espacio */
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-direction: column;
}

.footer-social h3 {
    color: var(--yellow);
    font-family: 'Designer', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.footer-social-icon {
    display: flex;
    gap: 8px;
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* lo pone blanco, igual que en contact-social */
    transition: filter 0.3s ease;
}

.footer-social a {
    gap: 20px;
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-family: 'GABRWFFR.TTF', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--yellow);
}

.footer-social a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--magenta); /* Línea roja de acento */
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.footer-social a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.footer-social a:hover .footer-social-icon {
    filter: invert(84%) sepia(59%) saturate(1000%) hue-rotate(1deg) brightness(105%);
}

.footer-bottom {
    background: linear-gradient(180deg, rgba(14, 21, 38, 0.94) 0%, rgba(4, 18, 52, 0.94) 300%);
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #222222;
    color: #aaaaaa;
    font-size: 14px;
}

.back-to-top {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    background-color: transparent;
    color: var(--cyan);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.back-to-top:hover {
    background-color: var(--cyan);
    color: var(--black);
    transform: translateY(-50%) translateY(-3px);
}

@media (max-width: 600px) {
    .back-to-top {
        position: static;
        transform: none;
        margin-top: 10px;
    }
    .back-to-top:hover {
        transform: translateY(-3px);
    }
    .footer-bottom {
        flex-direction: column;
        padding: 20px;
    }
}

.whatsapp-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 40;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.atribuciones {
    background: none;
    border: none;
    color: #aaaaaa;
    font-family: 'GABRWFFR.TTF', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.atribuciones:hover {
    color: var(--yellow);
    text-decoration: underline;
}