/* ============================================================
   RESET Y BASE
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --oxidized: #1a1715;
  --linen: #f2ede7;
  --bone: #f5f2ed;
  --carbon: #1a1a1a;
  --copper: #b87333;
  --gold: #b8863a;
  --gold-metallic: #a67c3e;
  --tobacco: #8b5a3a;
  --text-light: #b0a89a;
  --text-dark: #1a1a1a;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--linen);
  color: var(--carbon);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   BOTÓN CTA PRINCIPAL
   ============================================================ */
.btn-primary {
  display: inline-block;
  background-color: var(--tobacco);
  color: var(--bone);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 40px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
  text-align: center;
  min-width: 200px;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(184, 115, 51, 0.3);
}

.btn-primary:active {
  transform: scale(0.97);
}

/* ============================================================
   ANIMACIONES CSS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-hero {
  animation: fadeInUp 1s var(--transition) both;
}

.animate-hero-delay-1 {
  animation-delay: 0.3s;
}
.animate-hero-delay-2 {
  animation-delay: 0.5s;
}
.animate-hero-delay-3 {
  animation-delay: 0.8s;
}
.animate-hero-delay-4 {
  animation-delay: 1s;
}
.animate-hero-delay-5 {
  animation-delay: 1.2s;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--transition), transform 1s var(--transition);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-divider {
  width: 0;
  height: 1px;
  background-color: var(--copper);
  transition: width 1s var(--transition);
}

.animate-divider.visible {
  width: 4rem;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s var(--transition), transform 1s var(--transition);
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s var(--transition), transform 1s var(--transition);
}

.animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s var(--transition), transform 1s var(--transition);
}

.animate-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.animate-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-stagger-delay-1 {
  transition-delay: 0.1s;
}
.animate-stagger-delay-2 {
  transition-delay: 0.2s;
}
.animate-stagger-delay-3 {
  transition-delay: 0.3s;
}
.animate-stagger-delay-4 {
  transition-delay: 0.4s;
}
.animate-stagger-delay-5 {
  transition-delay: 0.5s;
}
.animate-stagger-delay-6 {
  transition-delay: 0.6s;
}
.animate-stagger-delay-7 {
  transition-delay: 0.7s;
}
.animate-stagger-delay-8 {
  transition-delay: 0.8s;
}
.animate-stagger-delay-9 {
  transition-delay: 0.9s;
}
.animate-stagger-delay-10 {
  transition-delay: 1.0s;
}
.animate-stagger-delay-11 {
  transition-delay: 1.1s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--oxidized);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  animation: scaleIn 2.5s var(--transition) both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1a1715 0%, rgba(26, 23, 21, 0.4) 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 24px 64px 24px;
}

.hero-content .tag {
  font-family: 'Inter', sans-serif;
  color: var(--copper);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s var(--transition) both 0.3s;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  animation: fadeInUp 1s var(--transition) both 0.5s;
}

.hero-title .torino {
  color: var(--bone);
}

.hero-title .lounge {
  color: var(--tobacco);
  font-style: italic;
  font-weight: 700;
  display: inline-block;
  position: relative;
  font-size: 0.85em; /* Un poco más pequeño que TORINO */
  letter-spacing: 0.02em; /* Espaciado más fino */
  transition: color 0.4s var(--transition), text-shadow 0.4s var(--transition);
  cursor: default;
}

/* Efecto hover: se vuelve dorado brillante */
.hero-title .lounge:hover {
  color: var(--copper);
  text-shadow: 0 0 30px rgba(184, 115, 51, 0.4), 0 0 60px rgba(184, 115, 51, 0.2);
}

/* Efecto hover en el contenedor (para que también funcione al pasar sobre TORINO) */
.hero-title:hover .lounge {
  color: var(--copper);
  text-shadow: 0 0 30px rgba(184, 115, 51, 0.4), 0 0 60px rgba(184, 115, 51, 0.2);
}

.hero-content .subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  color: rgba(245, 242, 237, 0.7);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--transition) both 0.8s;
}

.hero-content .description {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: rgba(245, 242, 237, 0.6);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s var(--transition) both 1s;
}

.hero-content .btn-primary {
  animation: fadeInUp 0.8s var(--transition) both 1.2s;
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section {
  padding: 96px 0;
}

.section-light {
  background-color: var(--linen);
}

.section-dark {
  background-color: var(--oxidized);
  color: var(--bone);
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(26, 26, 26, 0.6);
  max-width: 560px;
  line-height: 1.7;
}

.section-dark .section-subtitle {
  color: rgba(245, 242, 237, 0.5);
}

.divider {
  height: 1px;
  background-color: var(--copper);
  width: 0;
  margin-bottom: 48px;
  transition: width 1s var(--transition);
}

.divider.visible {
  width: 4rem;
}

/* ============================================================
   MANIFIESTO
   ============================================================ */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .manifesto-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.manifesto-image {
  position: relative;
}

.manifesto-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.manifesto-image .accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(184, 115, 51, 0.3);
}

.manifesto-text p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: rgba(26, 26, 26, 0.7);
  line-height: 1.8;
  margin-bottom: 24px;
}

.manifesto-text p:last-child {
  margin-bottom: 0;
}

.manifesto-text .dropcap {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 5vw, 4rem);
  float: left;
  margin-right: 12px;
  margin-top: 4px;
  line-height: 0.8;
  color: var(--carbon);
}

/* ============================================================
   VERSATILIDAD - CORREGIDO (sin romper layout)
   ============================================================ */
.versatility-header {
  margin-bottom: 64px;
}

.versatility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 1024px) {
  .versatility-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.versatility-card {
  position: relative;
  overflow: hidden;
  cursor: default;
  aspect-ratio: 1/1; /* Mantiene el cuadrado */
}

.versatility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--transition);
}

.versatility-card:hover img {
  transform: scale(1.05);
}

.versatility-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, 
    rgba(26, 23, 21, 0.92) 0%, 
    rgba(26, 23, 21, 0.5) 45%, 
    rgba(26, 23, 21, 0.15) 75%, 
    transparent 100%
  );
}

.versatility-card .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 24px;
}

.versatility-card .content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 1.5vw, 1.8rem);
  color: var(--bone);
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.versatility-card .content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(245, 242, 237, 0.9);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--transition), transform 0.4s var(--transition);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.versatility-card:hover .content p {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MÓVIL: texto siempre visible y con buen contraste ===== */
@media (max-width: 768px) {
  .versatility-card .overlay {
    background: linear-gradient(to top, 
      rgba(26, 23, 21, 0.95) 0%, 
      rgba(26, 23, 21, 0.6) 50%, 
      rgba(26, 23, 21, 0.25) 80%, 
      transparent 100%
    );
  }

  .versatility-card .content {
    padding: 16px 14px 18px;
  }

  .versatility-card .content p {
    opacity: 1 !important;
    transform: translateY(0) !important;
    font-size: 0.75rem;
    color: rgba(245, 242, 237, 0.95);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  .versatility-card .content h3 {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.5);
  }
}

/* ============================================================
   CARACTERÍSTICAS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 16px;
  }
}

.features-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item .dot {
  width: 8px;
  height: 8px;
  background-color: var(--copper);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.feature-item .text {
  flex: 1;
}

.feature-item .text h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  color: var(--carbon);
  margin-bottom: 2px;
}

.feature-item .text p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(26, 26, 26, 0.6);
  line-height: 1.6;
}

.feature-item.right-align {
  text-align: right;
  flex-direction: row-reverse;
}

.feature-item.right-align .dot {
  margin-top: 8px;
}

.features-center-image {
  position: relative;
}

.features-center-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.features-center-image .frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(184, 115, 51, 0.2);
  pointer-events: none;
}

/* ============================================================
   FEATURES TECNOLÓGICOS (etiqueta especial)
   ============================================================ */
.feature-item .tech-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper);
  background: rgba(184, 115, 51, 0.1);
  padding: 2px 10px;
  border-radius: 12px;
  margin-top: 4px;
}

.feature-item.right-align .tech-badge {
  display: inline-block;
}

/* ============================================================
   GALERÍA - CON LIGHTBOX
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.7s var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.span-2 {
  grid-column: span 2;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox .close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1;
}

.lightbox .close:hover {
  color: #fff;
  transform: rotate(90deg);
}

.lightbox .counter {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 16px;
  border-radius: 20px;
}

.lightbox .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 20px 12px;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  user-select: none;
}

.lightbox .nav-arrow:hover {
  color: #fff;
}

.lightbox .nav-arrow.prev {
  left: 16px;
}

.lightbox .nav-arrow.next {
  right: 16px;
}

@media (max-width: 640px) {
  .lightbox .nav-arrow {
    font-size: 2rem;
    padding: 12px 8px;
  }
  .lightbox .nav-arrow.prev {
    left: 4px;
  }
  .lightbox .nav-arrow.next {
    right: 4px;
  }
  .lightbox .close {
    top: 16px;
    right: 20px;
    font-size: 2rem;
  }
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.final-cta {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--oxidized);
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.final-cta-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 23, 21, 0.8);
}

.final-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 96px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.final-cta-content .divider {
  margin: 0 auto 48px;
}

.final-cta-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--bone);
  line-height: 1.1;
  margin-bottom: 24px;
}

.final-cta-content p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: rgba(245, 242, 237, 0.6);
  line-height: 1.7;
  margin-bottom: 48px;
}

.final-cta-content .btn-primary {
  box-shadow: 0 0 40px rgba(184, 115, 51, 0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--oxidized);
  border-top: 1px solid rgba(245, 242, 237, 0.1);
  padding: 40px 0;
}

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

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand span {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--bone);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.footer-brand .sep {
  width: 1px;
  height: 16px;
  background-color: rgba(184, 115, 51, 0.4);
}

.footer-brand .label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(245, 242, 237, 0.4);
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(245, 242, 237, 0.3);
  letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero-content {
    padding: 120px 16px 48px 16px;
  }
  .section {
    padding: 64px 0;
  }
  .versatility-grid {
    gap: 12px;
  }
  .versatility-card .content {
    padding: 12px 12px 16px;
  }
  .versatility-card .content h3 {
    font-size: 1rem;
  }
  .features-grid {
    gap: 32px;
  }
  .feature-item {
    margin-bottom: 16px;
  }
  .feature-item .text h4 {
    font-size: 1rem;
  }
  .final-cta-content {
    padding: 64px 16px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .gallery-item.span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.span-2 {
    grid-column: span 1;
  }
}


/* ============================================================
   SLIDE CONTAINER (blueprint ↔ gif)
   ============================================================ */
.slide-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--oxidized);
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s var(--transition);
  pointer-events: none;
}

.slide-item.active {
  opacity: 1;
  pointer-events: auto;
}

/* Indicadores del slide */
.slide-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slide-dot.active {
  background-color: var(--copper);
  transform: scale(1.2);
}

.slide-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive: ajustar indicadores en móvil */
@media (max-width: 640px) {
  .slide-indicators {
    bottom: 10px;
    padding: 4px 12px;
    gap: 8px;
  }
  .slide-dot {
    width: 6px;
    height: 6px;
  }
}