
.hero-logo {
  position: fixed;
  margin: 2em;
  color: #000;
  font-style: 2em;
  z-index: 2;
}

.menu-open {
	color: #000000;
  
}

.menu-open,
.menu-close {
	position: absolute;
	top: 0;
	right: 0;
	padding: 40px;
	font-size: 2em;
	cursor: pointer;
}

.nav-container {
	position: fixed;
	left: -100%;
	width: 100%;
	height: 100vh;
	background: #fff;
}

.menu__item {
  color: inherit;
  text-decoration: none;
	position: relative;
	padding: 0 6vw;
}

.menu__item-link {
  color: inherit;
  text-decoration: none;
	display: inline-block;
	cursor: pointer;
	position: relative;
	transition: opacity 0.4s;
}

.menu__item-link::before {
	all: initial;
	counter-increment: menu;
	position: absolute;
	bottom: 60%;
	left: 0;
	pointer-events: none;
}

.menu__item-link:hover {
	transition-duration: 0.1s;
	opacity: 0;
}

.menu__item-img {
  text-decoration: none;
	z-index: 2;
	pointer-events: none;
	position: absolute;
	height: 12vh;
	max-height: 600px;
	opacity: 0;
	left: 8%;
	top: 10%;
	transform: scale(0);
}

.menu__item-link:hover + .menu__item-img {
	opacity: 1;
	transform: scale(1);
	transition: all 0.4s;
}

.menu {
  text-decoration: none;
	padding: 10vh 0 25vh;
	--offset: 10vw;
	--move-initial: calc(-25% + var(--offset));
	--move-final: calc(-50% + var(--offset));
	font-size: 3vw;
    font-family: "Neue Montreal";
}

.marquee {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: rgb(214, 214, 214);
	pointer-events: none;
}

.marquee__inner {
	width: fit-content;
	display: flex;
	position: relative;
	opacity: 0;
	transition: all 0.1s;
	transform: translateX(60px);
}

.menu__item-link:hover ~ .marquee .marquee__inner {
	opacity: 1;
	transform: translateX(0px);
	transition-duration: 0.4s;
}

.menu__item-link,
.marquee span {
	white-space: nowrap;
	padding: 0 1vw;
	line-height: 1.15;
}

.marquee span {
	font-style: italic;
}



:root {
  --text-color: #111;
  --bg-color: #e5e5e5;
}



.menu-open {
	color: #000000;
	top: 0;
	right: 0;
	padding: 40px;
	font-size: 20px;
	position: fixed;
	cursor: pointer;
	z-index: 2;
}


.menu-close {
	position: absolute;
	top: 0;
	right: 0;
	padding: 40px;
	font-size: 20px;
	cursor: pointer;
}


.nav-container {
	position: fixed;
	left: -100%;
	width: 100%;
	height: 100vh;
	background: #FFF;
	z-index: 3;
}

.menu__item {
	position: relative;
	padding: 0 6vw;
}

.menu__item-link {
	display: inline-block;
	cursor: pointer;
	position: relative;
	transition: opacity 0.4s;
}

.menu__item-link::before {
	all: initial;
	counter-increment: menu;
	position: absolute;
	bottom: 60%;
	left: 0;
	pointer-events: none;
}

.menu__item-link:hover {
	transition-duration: 0.1s;
	opacity: 0;
}

.menu__item-img {
	z-index: 2;
	pointer-events: none;
	position: absolute;
	height: 12vh;
	max-height: 600px;
	opacity: 0;
	left: 8%;
	top: 10%;
	transform: scale(0);
}

.menu__item-link:hover + .menu__item-img {
	opacity: 1;
	transform: scale(1);
	transition: all 0.4s;
}

.menu {
	padding: 10vh 0 25vh;
	--offset: 20vw;
	--move-initial: calc(-25% + var(--offset));
	--move-final: calc(-50% + var(--offset));
	font-size: 7vw;
}

.marquee {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: rgb(214, 214, 214);
	pointer-events: none;
}

.marquee__inner {
	width: fit-content;
	display: flex;
	position: relative;
	opacity: 0;
	transition: all 0.1s;
	transform: translateX(60px);
}

.menu__item-link:hover ~ .marquee .marquee__inner {
	opacity: 1;
	transform: translateX(0px);
	transition-duration: 0.4s;
}

.menu__item-link,
.marquee span {
	white-space: nowrap;
	font-size: 6vw;
	padding: 0 1vw;
	line-height: 1.15;
}

.marquee span {
	font-style: italic;
}


/* Estilos para el header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(249, 250, 252, 0.8);
    backdrop-filter: blur(8px);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.header.shrink {
    padding: 8px;
    background-color: rgba(249, 250, 252, 0.9);
}

.header a {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 20px;
    padding-right: 4px;
    position: relative;
}

.header a:hover {
    text-decoration: underline;
}

.header a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #374151;
    bottom: 0;
    left: 0;
    transform-origin: bottom right;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.logo {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo.shrink {
    font-size: 16px;
}

body {
  font-family: "Poppins";
  transition: 0.3s ease-out;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  background-color: #6c4b9d;
  
}

section:not(#sectionPin) {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 2rem;
  padding: 50px 10vw;
  margin: auto;
  place-items: center;
}



h1 {
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #2e262f;
  position: absolute;
  top: 10vw;
  left: 10vw;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ==================== RESPONSIVE DESIGN - PREMIUM UI/UX ==================== */
@media (max-width: 1024px) {
  /* Eliminar horizontal scroll manteniendo animaciones */
  #sectionPin {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    background: transparent !important;
  }
  
  .pin-wrap {
    height: auto !important;
    display: block !important;
    transform: none !important;
    flex-direction: column;
  }
  
  .pin-wrap > * {
    min-width: 100% !important;
    margin-bottom: 0;
    padding: 7vh 5vw;
  }
}

@media (max-width: 768px) {
  /* Hero Section Premium */
  .hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    background-size: cover;
    background-position: 65% center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 75, 157, 0.3);
    z-index: 1;
  }

  .hero-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    z-index: 2;
    padding-top: 10vh;
  }

  .hero-title1, 
  .hero-title2, 
  .hero-title3 {
    font-size: clamp(2.5rem, 10vw, 4rem);
    line-height: 1.15;
    font-weight: 800;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    letter-spacing: -0.03em;
  }

  .hero-title1 {
    animation: fadeInDown 1s ease-out;
  }
  .hero-title2 {
    animation: fadeInDown 1s ease-out 0.2s forwards;
    opacity: 0;
  }
  .hero-title3 {
    animation: fadeInDown 1s ease-out 0.4s forwards;
    opacity: 0;
    margin-top: 1rem;
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .floating-image1, 
  .floating-image2 {
    width: 40%;
    max-width: 180px;
    position: absolute;
    z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: float 4s ease-in-out infinite;
  }

  .floating-image1 {
    top: 15%;
    right: 5%;
  }

  .floating-image2 {
    bottom: 15%;
    left: 5%;
  }

  /* Header Premium */
  .hero-logo {
    font-size: 2rem;
    margin: 1.5rem;
    z-index: 10;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  .menu-open {
    font-size: 1.2rem;
    padding: 1.5rem;
    z-index: 10;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  /* Contact Section - Premium Bento Box */
  .contacto {
    padding: 5vh 5vw;
    background-size: cover;
    background-position: center;
  }

  .nave-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .nave-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-container {
    width: 100% !important;
    height: 220px;
    border-radius: 32px !important;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
  }

  .services .card-container {
    height: 280px;
    grid-column: span 1;
  }

  .card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
  }

  .preview-text {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    align-self: flex-start;
  }

  .card-icon {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
  }

  .card-logo {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
  }

  .text-wrapper {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    width: calc(100% - 3rem);
    animation: float-text 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .card-container:hover .text-wrapper {
    opacity: 1;
  }

  /* Shapes Animation Premium */
  .shapes {
    width: 180px;
    height: 180px;
  }

  #square, 
  #circle {
    width: 50px;
    height: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  #triangle {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid #a5a1ff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Animaciones premium */
  @keyframes float {
    0%, 100% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(-15px) rotate(2deg);
    }
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes float-text {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-80%);
    }
  }
}

@media (max-width: 480px) {
  /* Micro-ajustes para móviles pequeños */
  .hero-content {
    padding-top: 15vh;
  }

  .hero-title1, 
  .hero-title2 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .hero-title3 {
    font-size: clamp(1.5rem, 9vw, 2.5rem);
  }

  .floating-image1, 
  .floating-image2 {
    width: 35%;
  }

  .card-container {
    height: 200px;
  }

  .services .card-container {
    height: 240px;
  }

  .card-title {
    font-size: 1rem;
  }

  .preview-text {
    font-size: 0.9rem;
  }
}
