@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body,
html {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  background-color: #ebebeb;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Prevent scrolling during animation */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Ocultar barra de scroll nativa */
::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Custom Webkit Scrollbar */
.custom-scrollbar-track {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  height: 10vh;
  width: 8px;
  background: #1a1a1a;
  border-radius: 4px;
  z-index: 999;
}

.custom-scrollbar-thumb {
  width: 100%;
  height: 0%;
  background: #57286d;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.custom-scrollbar-track:hover .custom-scrollbar-thumb {
  background: #7b3f96;
}

#loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: none;
}

/* Cuando la animación termina, el loader baja de z-index */
#loader-container.done {
  z-index: 1 !important;
  pointer-events: none;
}

/* El pin-spacer de GSAP también debe quedar debajo */
.pin-spacer {
  pointer-events: none;
  z-index: 1;
}

.contenedor-logos {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.2);
}

.svg1 {
  width: 100vw;
  position: absolute;
  z-index: 2;
  top: -93%;
}

.svg2 {
  width: 39vw;
  position: relative;
  z-index: 1;
  left: -2.6vw;
  top: -8.33vw;
  /* Cambiado de vh a vw para mantener la proporción exacta texto/cara en móviles */
}

/* CARA: trazado con stroke */
.borde-cara {
  fill: transparent;
  stroke: #57286d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detalle-cara {
  fill: transparent;
  stroke: #57286d;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* TEXTO: relleno sólido — se anima con opacity por letra */
.pedazo-texto {
  fill: #57286d;
}

/* Hero empieza oculto, se revela con JS */

/* ======= HEADER / MENU OVERLAY ======= */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding: 15px;
  box-sizing: border-box;
}

.main-header.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ======= BURGER MENU ======= */
#burger {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 1000;
  background: #ebebeb;
  color: #57286d;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: color 0.3s ease;
  border-radius: 250px;
  padding: 10px;
  border: none;
  width: 3rem;
  height: 3rem;
}

#burger:hover {
  color: #7b3f96;
}

.burger-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 990;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  display: flex;
  justify-content: flex-end;
}

.burger-content {
  width: 50%;
  height: 100%;
  background-color: #1a1a1a;
  position: relative;
  display: flex;
  align-items: center;
  transform: translateX(100%);
}

@media screen and (max-width: 786px) {
  .burger-content {
    width: 100%;
  }
}

.burger-list {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-left: 10%;
  margin: 0;
}

.burger-list li {
  width: fit-content;
  margin: 1rem 0;
}

.burger-link-wrapper {
  overflow: hidden;
}

.burger-link {
  font-size: clamp(1.8rem, 8vw, 3.5rem);
  display: inline-block;
  transform: translateY(100%);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
}

.burger-link:hover {
  color: white;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #fff;
}

.burger-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 0 10% 10%;
}

.burger-footer span {
  color: #f4e285;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.burger-social-links {
  font-size: 13px;
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
}

.burger-social-links a {
  color: #aaa;
  text-decoration: none;
}

.burger-social-links a:hover {
  text-decoration: underline;
  color: #fff;
}

.menu-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000000;
  font-size: 0.85rem;
  font-weight: 700;
  width: 100%;
  max-width: 100vw;
  margin: 0;
}

.menu-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-content ul li a {
  text-decoration: none;
  color: #000000;
  transition: opacity 0.3s ease;
}

.menu-content ul li a:hover {
  color: #57286d;
  opacity: 1;
}

/* Ocultar "ertweb" estático porque usamos el clon de SVG fijo */
.menu-left {
  opacity: 0;
  width: 50px;
  /* reserva el espacio del logo fijo */
}

.hero {
  opacity: 0;
  position: relative;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8vh;
  z-index: 950;
  box-sizing: border-box;
}

/* ======= SERVICES — Pinned Scroll / Panel Wipe ======= */
.boxed-services-wrapper {
  position: relative;
  z-index: 10;
  background-color: #1a1a1a;
  color: #e0e0e0;
  border-radius: 30px 30px 0 0;
}

/* Header del servicio — scroll normal */
.services-text {
  padding: 10rem 4rem 10rem 9rem;
}

.services-text h2 {
  font-size: 5.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
  position: relative;
  left: 8%;
}

.services-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #999;
  max-width: 500px;
  position: absolute;
  right: 15%;
}

/* Contenedor exterior — se pinea al hacer scroll */
.boxed-container {
  height: 100vh;
  padding: 2rem 4rem 3rem 4rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Caja blanca con bordes rectos */
.box-services {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 1rem;
  overflow: hidden;
  width: 65vw;
  height: 80vh;
}

/* ---- Columna izquierda: Cards visuales apiladas ---- */
.sr-visuals {
  position: relative;
  overflow: hidden;
}

/* Cada card se apila en absolute */
.sr-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2a2a2a;
  overflow: hidden;
  box-sizing: border-box;
}

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

/* Card 1 visible por defecto, cards 2 y 3 fuera de vista (abajo) */
.sr-card.visual-card-1 {
  z-index: 1;
}

.sr-card.visual-card-2 {
  z-index: 2;
}

.sr-card.visual-card-3 {
  z-index: 3;
}

.mockup-block {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #333, #444);
  border-radius: 14px;
}

/* ---- Columna derecha: Textos y Nav ---- */
.sr-texts {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

/* Mini nav — fija en la parte superior de la columna derecha */
.mini-nav {
  position: absolute;
  top: 1rem;
  flex-shrink: 0;
  margin-bottom: 2rem;
}

.mini-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mini-nav ul li {
  font-size: 0.85rem;
  font-weight: 600;
  color: #aaa;
  cursor: pointer;
  transition: color 0.4s ease;
}

.mini-nav ul li.active {
  color: #1a1a1a;
}

/* Contenedor de text slides — apilados en relative/absolute */
.sr-text-group {
  position: relative;
  overflow: hidden;
  height: 45%;
}

/* Cada text block se apila en absolute */
.sr-text-block {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Text 1 visible, texts 2 y 3 ocultos */
.sr-text-block.text-1 {
  opacity: 1;
}

.sr-text-block.text-2,
.sr-text-block.text-3 {
  opacity: 0;
  transform: translateY(30px);
}

/* Número gigante — wrapper en esquina superior derecha */
.giant-number-wrapper {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  overflow: hidden;
  height: 8rem;
  z-index: 5;
  pointer-events: none;
}

/* Track que contiene los 3 números apilados verticalmente */
.giant-number-track {
  display: flex;
  flex-direction: column;
}

.giant-number {
  font-size: 8rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.06);
  line-height: 1;
  height: 8rem;
  flex-shrink: 0;
}

.main-title {
  font-size: 2rem;
  font-weight: 800;
  color: #57286d;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  line-height: 1.2;
}

.body-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.2rem;
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stack-list li {
  font-size: 0.85rem;
  color: #888;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-bottom {
  color: #000;
  width: 80vw;
  display: flex;
  align-items: flex-end;
  gap: 3rem;
  box-sizing: border-box;
  padding-left: 5%;
}

.hero-img {
  position: relative;
  flex: 1;
  min-width: 0;
}

.hero-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  background-color: #57286d;
  opacity: 0.3;
  pointer-events: none;
  border-radius: 22px;
}

.hero-img img {
  object-fit: cover;
  border-radius: 22px;
  width: 100%;
  height: 30vh;
}

.hero-text {
  flex: 0 0 35%;
  min-width: 0;
  font-weight: 600;
  font-size: 1.2rem;
}

#hero-paragraph {
  overflow: hidden;
}

.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.25em;
}

.word-inner {
  display: inline-block;
  transform: translateY(100%);
}

/* ======= SPOTLIGHT BUTTON ======= */
a.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 23.5px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(to right, #57286d, #7b3f96);
  margin-top: 1.5rem;
  z-index: 960;
}

.button__wrapper {
  font-size: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 2rem;
  width: 150px;
  height: 45px;
  border-radius: 22.5px;
  background: #ebebeb;
  overflow: hidden;
}

a.button:hover .button__text {
  color: #ebebeb;
}

.button__text {
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #57286d;
  transition: color 300ms ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.button__text svg {
  width: 28px;
  height: 28px;
  margin-left: 1rem;
}

.button__spotlight {
  position: absolute;
  z-index: 1;
  height: 10px;
  width: 10px;
  opacity: 1;
  border-radius: 50%;
  background: linear-gradient(to right, #57286d, #7b3f96);
  inset: 0;
  top: 50%;
  transform: scale(0);
}

/* ======= SELECTED WORKS — Split-Screen Sticky Scroll ======= */
.selected-works {
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding: 0;
  position: relative;
}

.sw-container {
  position: relative;
}

/* Left Column — Pinned by GSAP */
.sw-left {
  width: 40%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
}

.sw-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.sw-number-wrapper {
  overflow: hidden;
  height: 10rem;
}

.sw-number-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-out;
}

.sw-number {
  font-size: 10rem;
  font-weight: 900;
  line-height: 1;
  height: 10rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #57286d, #7b3f96);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Right Column — Scrollable */
.sw-right {
  width: 60%;
  margin-left: 40%;
  display: flex;
  flex-direction: column;
}

/* Project Card — image only, 100vh */
.sw-card {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 1rem;
}

.sw-card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: none;
  /* Hide default native cursor */
}

.sw-card-link .bg-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(25px) brightness(0.3);
  transform: scale(1.15);
  /* Scale extra to avoid white borders from blur */
  z-index: 1;
}

.sw-card-link .img-clear {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-height: 85%;
  object-fit: contain;
  z-index: 2;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.sw-card-link:hover .img-clear {
  transform: translate(-50%, -50%) scale(1.02);
}

/* Cursor global para Selected Works */
.sw-global-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(43, 43, 43, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.1);
}

/* Hide mobile info on desktop */
.sw-mobile-info {
  display: none;
}

/* Info text ticker — debajo del número */
.sw-info-wrapper {
  overflow: hidden;
  height: 10rem;
  margin-top: 1.5rem;
}

.sw-info-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-out;
}

.sw-info-slide {
  height: 10rem;
  flex-shrink: 0;
}

.sw-info-slide h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.sw-info-slide p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #888;
  margin: 0 0 0.8rem 0;
}

.sw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sw-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(87, 40, 109, 0.4);
  color: #7b3f96;
  letter-spacing: 0.02em;
}

/* ======= ABOUT / SKILLS SECTION ======= */
.about-section {
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding: 8rem 4rem;
  position: relative;
  border-radius: 0 0 30px 30px;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left Column */
.about-left {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-title-sticky {
  position: sticky;
  top: 4rem;
}

.about-title {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.about-title .word-inner {
  background: linear-gradient(135deg, #57286d, #7b3f96, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-img-placeholder {
  width: 100%;
  height: 50vh;
  background-color: #2a2a2a;
  border-radius: 16px;
  overflow: hidden;
}

.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right Column */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

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

.skills-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.skills-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skills-list li {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ccc;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  letter-spacing: 0.02em;
  padding: 0.3rem 0;
  min-height: 1.4em;
}

/* Descripción */
.about-description {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-description p {
  font-size: 1rem;
  line-height: 1.8;
  color: #999;
  max-width: 550px;
}

/* ======= CONTACT SECTION ======= */
.contact-section {
  background-color: #ebebeb;
  padding: 6rem 4rem;
  position: relative;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  background-color: #222;
  border-radius: 20px;
  padding: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-title {
  font-size: 4rem;
  font-weight: 800;
  color: #e0e0e0;
  line-height: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #57286d;
  outline: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  cursor: pointer;
}

.form-group select option {
  background-color: #222;
  color: #ccc;
}

.contact-btn {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.7rem 1.8rem;
  background: transparent;
  border: 1px solid #666;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  border-color: #57286d;
  color: #fff;
  background-color: #57286d;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(87, 40, 109, 0.3);
}

/* ======= FOOTER ======= */
.site-footer {
  background-color: #0d0d0d;
  color: #666;
  padding: 5rem 6rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: #e0e0e0;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
  max-width: 200px;
}

.footer-nav h4,
.footer-social h4,
.footer-contact-info h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
}

.footer-nav ul,
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.burger-footer {
  margin-top: auto;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.burger-social-links {
  display: flex;
  gap: 1.5rem;
}

.burger-social-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.burger-social-links a:hover {
  color: #a855f7;
}

/* Toggle Language inside Burger */
.lang-toggle-burger {
  align-self: flex-start;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(123, 63, 150, 0.5);
  color: #ccc;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.lang-toggle-burger:hover {
  background: rgba(123, 63, 150, 0.2);
  border-color: #a855f7;
  color: #fff;
}

.footer-nav a,
.footer-social a {
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: #a855f7;
}

.footer-contact-info p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 0.4rem 0;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8rem;
}

.footer-copy,
.footer-crafted {
  font-size: 0.8rem;
  color: #3a3a3a;
  margin: 0;
}

/* ESTILOS ELIMINADOS DE FLOTANTE LANG TOGGLE */

/* ===========================================
   RESPONSIVE — TABLET  ≤1024px
=========================================== */
@media (max-width: 1024px) {

  .svg1 {
    top: clamp(-30rem, -125vw, -20rem);
  }

  .svg2 {
    top: clamp(-12.5rem, -90vw, -15rem);
  }

  /* Hero */
  .hero-bottom {
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
  }

  #hero-paragraph {
    font-size: clamp(0.9rem, 4vw, 1.15rem);
    max-width: 100%;
  }

  /* Services */
  .services-text h2 {
    font-size: 2.5rem;
  }

  .boxed-container {
    height: auto !important;
  }

  .box-services {
    grid-template-columns: 1fr;
  }

  .sr-visuals {
    display: none;
  }

  /* Selected Works — Normal Auto Layout for Tablet & Mobile */
  .sw-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .sw-left {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding: 2.5rem 1.5rem 0 1.5rem !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
  }

  .sw-right {
    position: relative !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 1.5rem 3rem 1.5rem !important;
    box-sizing: border-box !important;
  }

  .sw-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 0 4rem 0 !important;
    border-radius: 16px !important;
    background: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .sw-card-link {
    display: block !important;
    width: 100% !important;
    height: 60vw !important;
    min-height: 250px !important;
    cursor: auto !important;
  }

  .sw-card-link .bg-blur {
    display: none !important;
  }

  .sw-card-link .img-clear {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    position: relative !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    box-shadow: none !important;
  }

  /* Ocultar el tracker GSAP de escritorio en iPad/Móvil */
  .sw-number-wrapper,
  .sw-info-wrapper {
    display: none;
  }

  .sw-label {
    font-size: 0.8rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    display: block;
    letter-spacing: 0.1em;
  }

  /* Mostrar la info incrustada bajo la imagen */
  .sw-mobile-info {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
  }

  .sw-mobile-info h3 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }

  .sw-mobile-info p {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 1.25rem;
  }

  .sw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
  }

  .sw-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.02em;
    font-weight: 600;
  }

  /* About */
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-title {
    font-size: 3.5rem;
  }

  .about-title-sticky {
    position: static;
  }

  /* Contact */
  .contact-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 2rem;
  }

  .contact-title {
    font-size: 2.5rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 4rem 3rem 2rem;
  }
}

@media (max-width: 950px) {
  .svg1 {
    top: clamp(-27.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-11rem, -50vw, -50rem);
  }

  .hero-bottom {
    padding: 1rem;
    margin-bottom: -3rem;
    gap: 0;
  }


}

@media (max-width: 850px) {
  .svg1 {
    top: clamp(-27.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-13rem, -50vw, -50rem);
  }

  .hero-bottom {
    padding: 1rem;
    margin-bottom: -3rem;
    gap: 0;
  }


}

/* ===========================================
   RESPONSIVE — MOBILE  ≤768px
=========================================== */
@media (max-width: 768px) {

  .svg1 {
    top: clamp(-27.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-15rem, -50vw, -50rem);
  }


  /* General */
  body {
    overflow-x: clip;
    /* overflow-x: hidden breaks position: sticky on mobile */
  }

  /* Hero */
  .hero {
    min-height: 100svh;
    height: auto;
    z-index: auto;
    /* Remove the hardcoded z-index that broke the scroll pinning */
  }

  .hero-bottom {
    padding: clamp(1rem, 4vw, 2rem);
    padding-bottom: clamp(1.5rem, 5vw, 2.5rem);
    flex-direction: column-reverse;
    /* Image top, text bottom */
    gap: clamp(1rem, 4vw, 1.5rem);
  }

  .hero-text {
    position: relative;
    z-index: 5;
    /* Ensures the text and button are above the image bounding box */
  }

  .hero-img {
    width: 100%;
    height: clamp(200px, 45vh, 50vw);
    min-height: 200px;
  }

  .hero-img img {
    border-radius: 12px;
  }

  /* Services section */
  .boxed-services-wrapper {
    padding: 3rem 1.5rem;
  }

  .services-text {
    padding: 1.5rem;
  }

  .services-text h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    left: 0;
  }

  .services-text p {
    font-size: 0.9rem;
    position: static;
  }

  /* Services box - PINNED SLIDER ON MOBILE */
  .boxed-container {
    padding: clamp(0.5rem, 3vw, 1.5rem);
    height: auto;
    min-height: 100svh;
  }

  .box-services {
    position: relative;
    padding: clamp(0.8rem, 3vw, 1.2rem);
    height: 85svh;
    min-height: 520px;
    /* Previene desbordamiento en alturas < 600px */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
  }

  /* Top half for GSAP visuals */
  .sr-visuals {
    position: relative;
    width: 100%;
    height: 45%;
    overflow: hidden;
    border-radius: 12px;
  }

  .sr-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  /* Bottom half for GSAP texts */
  .sr-texts {
    position: relative;
    width: 100%;
    height: 55%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  /* Hide nav on small screens to save space */
  .mini-nav {
    display: none;
  }

  .sr-text-group {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .sr-text-block {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 2rem;
  }

  .text-1 {
    opacity: 1;
    /* First text visible */
    transform: none;
  }

  .text-2,
  .text-3 {
    opacity: 0;
    transform: translateY(30px);
  }

  .main-title {
    font-size: 1.5rem !important;
    /* Slightly smaller for mobile */
  }

  .giant-number-wrapper {
    display: none;
    /* Hide the big numbers to save space on mobile */
  }


  /* About */
  .about-section {
    padding: 4rem 1.5rem;
    border-radius: 0 0 16px 16px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-left {
    gap: 2rem;
  }

  .about-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .about-title-sticky {
    position: static;
  }

  .about-img-placeholder {
    height: 55vw;
    min-height: 220px;
  }

  .skills-columns {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  /* Contact */
  .contact-section {
    padding: 3rem 1.5rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
    border-radius: 14px;
  }

  .contact-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  /* Footer */
  .site-footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Menu overlay */
  .menu-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 1rem;
  }

  .menu-left-center,
  .social,
  .menu-right {
    display: none;
  }

  .menu-list {
    display: flex;
    gap: 1.2rem;
    padding: 0;
    margin: 0;
  }

  .menu-list li a {
    font-size: 0.8rem;
  }

  /* Ocultar elementos sobrantes en teléfonos pequeños si es necesario */
}

/* ===========================================
   RESPONSIVE — SMALL PHONES  ≤480px
=========================================== */

@media (max-width: 670px) {
  .svg1 {
    top: clamp(-27.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-16.5rem, -50vw, -50rem);
  }

  .hero-bottom {
    padding: 1rem;
    margin-bottom: -3rem;
    gap: 0;
  }


}

@media (max-width: 600px) {
  .svg1 {
    top: clamp(-27.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-17.5rem, -50vw, -50rem);
  }

  .hero-bottom {
    padding: 1rem;
    margin-bottom: -3rem;
    gap: 0;
  }


}

@media (max-width: 550px) {
  .svg1 {
    top: clamp(-26rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-17.5rem, -50vw, -50rem);
  }

  .hero-bottom {
    padding: 1rem;
    margin-bottom: -3rem;
    gap: 0;
  }


}

@media (max-width: 480px) {
  .svg1 {
    top: clamp(-26rem, -125vw, -20rem);
  }

  .svg2 {
    top: clamp(-17.8rem, -90vw, -15rem);
  }

  .skills-columns {
    grid-template-columns: 1fr;
  }

  .skills-list li {
    font-size: 0.85rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .sw-card {
    height: auto;
  }

  .sw-card-link {
    height: 75vw !important;
  }

  .about-section {
    padding: clamp(2rem, 8vw, 3rem) clamp(1rem, 4vw, 1.5rem);
  }

  .contact-section {
    padding: clamp(2.5rem, 8vw, 3.5rem) clamp(1rem, 4vw, 1.5rem);
  }
}

@media (max-width: 450px) {
  .svg1 {
    top: clamp(-22.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-15.1rem, -50vw, -50rem);
  }


}


@media (max-width: 420px) {
  .svg1 {
    top: clamp(-22.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-15.4rem, -50vw, -50rem);
  }


}


@media (max-width: 400px) {
  .svg1 {
    top: clamp(-22.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-15.7rem, -50vw, -50rem);
  }


}

@media (max-width: 380px) {
  .svg1 {
    top: clamp(-17.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-11rem, -50vw, -50rem);
  }

  .hero-bottom {
    padding: 1rem;
    margin-bottom: -3rem;
    gap: 0;
  }


}

@media (max-width: 350px) {
  .svg1 {
    top: clamp(-17.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-11.4rem, -50vw, -50rem);
  }

  .hero-bottom {
    padding: 1rem;
    margin-bottom: -3rem;
    gap: 0;
  }


}

@media (max-width: 345px) {
  .svg1 {
    top: clamp(-17.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-11.6rem, -50vw, -50rem);
  }

  .hero-bottom {
    padding: 1rem;
    margin-bottom: -3rem;
    gap: 0;
  }


  .main-header {
    display: none;
  }
}

@media (max-width: 330px) {
  .svg1 {
    top: clamp(-17.5rem, -100vw, -50rem);

  }

  .svg2 {
    top: clamp(-12rem, -50vw, -50rem);
  }

  .hero-bottom {
    padding: 1rem;
    margin-bottom: -3rem;
    gap: 0;
  }

  .hero-img {
    margin-bottom: -2rem;
  }

  .main-header {
    display: none;
  }
}