/* ============================================
   MVMT — Premium Brand Portfolio
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0D0D0D;
  --dark: #1A1A1A;
  --dark-light: #222222;
  --orange: #EE730D;
  --red: #E00914;
  --white: #FFFFFF;
  --white-soft: #F5F5F5;
  --gray: #888888;
  --gray-dark: #444444;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--black);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--orange);
  color: var(--black);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 3px;
}

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

img {
  max-width: 100%;
  display: block;
}

/* --- CUSTOM CURSOR --- */
.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              height 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.3s ease,
              background 0.3s ease,
              opacity 0.3s ease;
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: var(--white);
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.cursor.hover {
  width: 80px;
  height: 80px;
  border-color: var(--red);
  background: rgba(224, 9, 20, 0.15);
  font-size: 9px;
  mix-blend-mode: normal;
}

.cursor.heart-mode {
  width: 50px;
  height: 50px;
  border-color: var(--red);
  background: rgba(224, 9, 20, 0.2);
  border-radius: 50%;
  mix-blend-mode: normal;
}

.cursor.heart-mode::after {
  content: '♥';
  font-size: 20px;
  color: var(--red);
  animation: heartbeat 0.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  40% { transform: scale(1); }
  60% { transform: scale(1.2); }
}

.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.cursor.hover ~ .cursor-trail {
  opacity: 0;
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
  .cursor, .cursor-trail { display: none; }
  body { cursor: auto; }
}

/* --- NAVIGATION --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 48px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#navbar.scrolled {
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 48px;
  border-bottom: 1px solid rgba(238, 115, 13, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.15em;
  display: flex;
  gap: 2px;
  cursor: none;
}

.logo-m { color: var(--white); }
.logo-v { color: var(--orange); }
.logo-t { color: var(--red); }

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 0;
  cursor: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover {
  color: var(--white);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: none;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--black) 0%, #111 50%, var(--dark) 100%);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-eyebrow {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--orange);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-line-1 {
  font-size: clamp(64px, 12vw, 160px);
  background: linear-gradient(135deg, var(--white) 0%, var(--orange) 60%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-line-2 {
  font-size: clamp(20px, 3vw, 36px);
  letter-spacing: 0.4em;
  color: var(--gray);
  font-weight: 400;
}

.hero-line-3 {
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.2em;
  color: var(--white);
}

.hero-line-3 em {
  font-style: normal;
  color: var(--orange);
}

.hero-divider {
  font-size: clamp(24px, 3vw, 40px);
  color: var(--red);
  opacity: 0.4;
  font-weight: 300;
  opacity: 0;
  transform: translateY(40px);
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--gray);
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
}

/* --- BUTTON PRIMARY --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--white);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateY(30px);
}

.btn-primary:hover {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
  transform: translateY(-2px) !important;
  box-shadow: 0 20px 60px rgba(238, 115, 13, 0.3);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover .btn-shine {
  left: 100%;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- SCROLL INDICATOR --- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

.hero-scroll-indicator span {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--gray);
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--orange);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  margin: 24px auto 0;
}

/* --- PROYECTOS SECTION --- */
.section-proyectos {
  padding: 120px 48px;
  max-width: 1440px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.bento-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: none;
  grid-column: span 1;
  grid-row: span 1;
}

.bento-wide {
  grid-column: span 2;
}

.bento-tall {
  grid-row: span 2;
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-card:hover .card-bg {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(13, 13, 13, 0.3) 40%,
    rgba(13, 13, 13, 0.85) 100%);
  transition: background 0.5s ease;
}

.bento-card:hover .card-overlay {
  background: linear-gradient(135deg,
    rgba(238, 115, 13, 0.6) 0%,
    rgba(224, 9, 20, 0.6) 100%);
}

.card-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-card:hover .card-content {
  transform: translateY(0);
}

.card-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(238, 115, 13, 0.3);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.bento-card:hover .card-tag {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.1s;
}

.bento-card:hover .card-desc {
  opacity: 1;
  transform: translateY(0);
}

.card-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  transition: color 0.5s ease;
}

.bento-card:hover .card-number {
  color: rgba(255, 255, 255, 0.1);
}

/* --- PROJECT MODAL --- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.project-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 85vh;
  background: var(--dark);
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.85);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(238, 115, 13, 0.1);
}

.project-modal.active .modal-container {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(13, 13, 13, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: var(--red);
  border-color: var(--red);
}

.modal-scroll {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.modal-scroll::-webkit-scrollbar {
  display: none;
}

.modal-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.modal-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--dark) 100%);
}

.modal-hero-content {
  position: absolute;
  bottom: 32px;
  left: 40px;
  z-index: 2;
}

.modal-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--orange);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.modal-body {
  padding: 40px;
}

.case-study-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 48px;
}

.case-phase {
  display: flex;
  gap: 24px;
}

.phase-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.phase-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  width: 40px;
  height: 40px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(180deg, var(--orange), transparent);
  min-height: 20px;
}

.phase-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.phase-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
}

.modal-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.gallery-item {
  height: 200px;
  border-radius: 12px;
  background: var(--dark-light);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(238, 115, 13, 0.1);
}

.modal-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-cta span {
  font-size: 13px;
  color: var(--gray);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--orange);
  color: var(--black);
}

/* --- CONCEPTO SECTION --- */
.section-concepto {
  padding: 120px 48px;
  background: linear-gradient(180deg, var(--black) 0%, var(--dark) 50%, var(--black) 100%);
  position: relative;
  overflow: hidden;
}

.concepto-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.concepto-text {
  margin-top: 32px;
}

.concepto-text p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 20px;
}

.concepto-lead {
  font-size: 18px !important;
  color: var(--white-soft) !important;
  font-weight: 400;
}

.text-orange { color: var(--orange); font-weight: 600; }
.text-red { color: var(--red); font-weight: 600; }

.concepto-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(238, 115, 13, 0.15);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

/* --- TECHNICAL SKETCH --- */
.technical-sketch {
  position: relative;
  padding: 40px;
  border: 1px solid rgba(238, 115, 13, 0.1);
  border-radius: 20px;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(10px);
}

.sketch-svg {
  width: 100%;
  height: auto;
}

.sketch-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.sketch-line.animated {
  animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.sketch-line-1.animated { animation-delay: 0s; animation-duration: 2.5s; }
.sketch-line-2.animated { animation-delay: 0.5s; }
.sketch-line-3.animated { animation-delay: 1s; }
.sketch-line-4.animated { animation-delay: 1.5s; animation-duration: 1s; }

.sketch-label {
  position: absolute;
  bottom: 16px;
  right: 24px;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--orange);
  opacity: 0.4;
}

/* --- CONTACTO SECTION --- */
.section-contacto {
  padding: 120px 48px;
  max-width: 1440px;
  margin: 0 auto;
}

.contacto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.contacto-lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray);
  text-align: center;
  margin-bottom: 48px;
}

.contacto-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--dark);
  border: 1px solid rgba(238, 115, 13, 0.1);
  border-radius: 12px;
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  cursor: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-link:hover {
  border-color: var(--orange);
  transform: translateX(8px);
  background: rgba(238, 115, 13, 0.05);
}

.contact-link svg {
  color: var(--orange);
  flex-shrink: 0;
}

/* --- FOOTER --- */
.footer {
  padding: 32px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--orange);
}

.footer-copy {
  font-size: 12px;
  color: var(--gray-dark);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-credit {
  font-size: 12px;
  color: var(--gray-dark);
}

.footer-easter-egg {
  cursor: none;
  padding: 8px;
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.footer-easter-egg:hover {
  transform: scale(1.3);
  opacity: 1;
}

/* --- SECRET MODAL --- */
.secret-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.secret-modal.active {
  opacity: 1;
  pointer-events: all;
}

.secret-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.secret-card {
  position: relative;
  max-width: 520px;
  width: 90%;
  padding: 56px 40px;
  background: linear-gradient(145deg, var(--dark) 0%, #151515 100%);
  border: 1px solid rgba(238, 115, 13, 0.2);
  border-radius: 24px;
  text-align: center;
  transform: scale(0.8) translateY(40px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 40px 100px rgba(238, 115, 13, 0.1),
              0 0 0 1px rgba(238, 115, 13, 0.05);
}

.secret-modal.active .secret-card {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition-delay: 0.3s;
}

.secret-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--orange));
  opacity: 0;
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}

.secret-modal.active .secret-glow {
  opacity: 0.15;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.25; }
}

/* Geometric Hearts */
.secret-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 24px;
}

.geo-heart {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0;
}

.geo-heart::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--orange);
  clip-path: polygon(50% 0%, 65% 15%, 100% 15%, 100% 50%, 50% 100%, 0% 50%, 0% 15%, 35% 15%);
  opacity: 0.15;
}

.secret-modal.active .geo-heart {
  animation: floatHeart 6s ease-in-out infinite;
}

.geo-heart-1 { top: 10%; left: 10%; animation-delay: 0s !important; }
.geo-heart-2 { top: 20%; right: 15%; animation-delay: 1s !important; }
.geo-heart-3 { bottom: 30%; left: 8%; animation-delay: 2s !important; }
.geo-heart-4 { top: 15%; left: 50%; animation-delay: 0.5s !important; }
.geo-heart-5 { bottom: 20%; right: 10%; animation-delay: 1.5s !important; }
.geo-heart-6 { bottom: 10%; left: 40%; animation-delay: 2.5s !important; }

@keyframes floatHeart {
  0% { opacity: 0; transform: translateY(20px) rotate(0deg) scale(0.5); }
  20% { opacity: 0.3; }
  50% { opacity: 0.15; transform: translateY(-15px) rotate(15deg) scale(1); }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(20px) rotate(-10deg) scale(0.5); }
}

.secret-icon {
  margin-bottom: 28px;
  animation: heartbeatIcon 1.5s ease-in-out infinite;
}

@keyframes heartbeatIcon {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

.secret-message {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--white-soft);
  font-style: italic;
  margin-bottom: 36px;
}

.secret-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid rgba(238, 115, 13, 0.3);
  color: var(--orange);
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: none;
  transition: all 0.3s ease;
}

.secret-close:hover {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}

/* --- CONFETTI CANVAS --- */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999999;
}

/* --- CINEMATIC FLICKER --- */
.cinematic-flicker {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  animation: engineStart 1.2s ease-out forwards;
}

@keyframes engineStart {
  0% { background: rgba(238, 115, 13, 0.0); }
  5% { background: rgba(238, 115, 13, 0.15); }
  10% { background: rgba(0, 0, 0, 0.9); }
  15% { background: rgba(224, 9, 20, 0.1); }
  20% { background: rgba(0, 0, 0, 0.95); }
  30% { background: rgba(238, 115, 13, 0.08); }
  35% { background: rgba(0, 0, 0, 0.9); }
  45% { background: rgba(224, 9, 20, 0.05); }
  50% { background: rgba(0, 0, 0, 0.7); }
  65% { background: rgba(238, 115, 13, 0.03); }
  100% { background: rgba(0, 0, 0, 0.0); }
}

/* --- ANIMATION CLASSES --- */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }

  .concepto-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-proyectos,
  .section-concepto,
  .section-contacto {
    padding: 80px 24px;
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 16px 24px;
  }

  #navbar.scrolled {
    padding: 12px 24px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    gap: 2px;
  }

  .hero-line-1 {
    font-size: 56px;
  }

  .hero-line-2 {
    font-size: 14px;
    letter-spacing: 0.2em;
  }

  .hero-line-3 {
    font-size: 22px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .bento-wide,
  .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .concepto-stats {
    gap: 24px;
  }

  .stat-num {
    font-size: 28px;
  }

  .modal-container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .modal-hero {
    height: 220px;
  }

  .modal-body {
    padding: 24px;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .modal-title {
    font-size: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .secret-card {
    padding: 40px 24px;
  }

  .secret-message {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero-line-1 {
    font-size: 44px;
  }

  .btn-primary {
    padding: 14px 28px;
    font-size: 10px;
  }

  .concepto-stats {
    flex-direction: column;
    gap: 16px;
  }
}
