/* pages.css — estilos compartidos entre todas las páginas */

/* === VARIABLES === */
:root {
  --color-black: #000000;
  --color-dark: #0a0a0a;
  --color-gray-dark: #1a1a1a;
  --color-gray: #333333;
  --color-gray-light: #666666;
  --color-white: #ffffff;
  --color-accent: #C85A1E;
  --color-accent-light: #E87A3A;
  --color-accent-dark: #8C3A0E;
  --color-warm-bg: #1a0f08;
  --color-whatsapp: #25D366;

  --font-primary: 'Aileron', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  --container-max: 1400px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* texturas de fondo — .texture-brand en secciones, .texture-logo en estudio/nosotros/contacto */
.texture-brand::before,
.texture-logo::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.texture-brand::before {
  background-image: url('../images/prints-06.png');
}

.texture-logo::before {
  background-image: url('../images/Logo_NotARobot.png');
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* === HEADER / NAVBAR === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 30px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition-fast);
}

/* === MAIN CONTENT === */
.main-content {
  padding: var(--spacing-3xl) 0;
}

.content-section {
  margin-bottom: var(--spacing-3xl);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl);
}

.section-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.section-intro p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

/* === PROJECTS GRID === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.project-card {
  background-color: var(--color-gray-dark);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(200, 90, 30, 0.12);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 90, 30, 0.6);
  box-shadow:
    0 0 0 1px rgba(200, 90, 30, 0.06),
    0 8px 30px rgba(200, 90, 30, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Click feedback */
.project-card-link:active .project-card {
  transform: translateY(-2px) scale(0.99);
  border-color: rgba(200, 90, 30, 0.9);
  box-shadow:
    0 0 0 2px rgba(200, 90, 30, 0.22),
    0 0 28px rgba(200, 90, 30, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.4);
  transition-duration: 0.08s;
}

.project-card .card-image {
  aspect-ratio: 16/9;
  background-color: var(--color-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-card.placeholder .card-image {
  background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-gray-dark) 100%);
}

.placeholder-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.project-card .card-info {
  padding: var(--spacing-md);
}

.project-card .card-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.project-card .card-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* === STUDIO SECTION === */
.studios-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.studio-card {
  background-color: var(--color-gray-dark);
  border-radius: 16px;
  padding: var(--spacing-xl);
  text-align: center;
}

.studio-card h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.studio-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-lg);
}

.studio-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
}

.feature-tag {
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  font-size: 0.85rem;
}

/* === TEAM SECTION === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.team-member {
  text-align: center;
}

.team-member .member-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  background-color: var(--color-gray);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member .member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.team-member .role {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* === CONTACT SECTION === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.contact-info-card {
  background-color: var(--color-gray-dark);
  border-radius: 16px;
  padding: var(--spacing-xl);
}

.contact-info-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  margin-bottom: var(--spacing-md);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-xs);
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-value a {
  color: var(--color-accent);
  transition: opacity var(--transition-fast);
}

.contact-value a:hover {
  opacity: 0.8;
}

/* === PODCAST PROCESS === */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.process-step {
  background: linear-gradient(180deg, rgba(200, 90, 30, 0.10) 0%, rgba(200, 90, 30, 0.03) 100%);
  border-radius: 16px;
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: left;
  border: 1px solid rgba(200, 90, 30, 0.18);
  border-top: 2px solid rgba(200, 90, 30, 0.60);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  background: linear-gradient(180deg, rgba(200, 90, 30, 0.18) 0%, rgba(200, 90, 30, 0.06) 100%);
  border-color: rgba(200, 90, 30, 0.35);
  border-top-color: rgba(200, 90, 30, 0.90);
  box-shadow:
    0 0 0 1px rgba(200, 90, 30, 0.06),
    0 8px 28px rgba(200, 90, 30, 0.12),
    0 18px 36px rgba(0, 0, 0, 0.3);
}

.process-step:active {
  transform: translateY(-2px) scale(0.99);
  transition-duration: 0.08s;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
  color: var(--color-white);
}

.process-step p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* === FLOATING BUTTONS === */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  z-index: 999;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.btn-contactanos {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background-color: var(--color-white);
  color: var(--color-black);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-contactanos:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* === FOOTER === */
.footer {
  background-color: var(--color-dark);
  padding: var(--spacing-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  height: 30px;
  width: auto;
  margin: 0 auto var(--spacing-md);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
  background-color: rgba(200, 90, 30, 0.3);
  transform: scale(1.15);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* === CONTACT TABLE === */
.contact-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
}

.contact-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-table tr:last-child {
  border-bottom: none;
}

.contact-table td {
  padding: 1.25rem 1.5rem;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  vertical-align: middle;
}

.contact-table .ct-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  width: 40%;
  text-align: right;
  padding-right: 2rem;
}

.contact-table .ct-value {
  font-weight: 600;
  color: var(--color-accent);
  text-align: left;
}

.contact-table .ct-value a {
  color: var(--color-accent);
  transition: opacity var(--transition-fast);
}

.contact-table .ct-value a:hover {
  opacity: 0.7;
}

/* === STUDIO LABEL === */
.studio-label {
  text-align: center;
  margin-bottom: 1.2rem;
}

.studio-letter {
  display: block;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 0.85;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.studio-word {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 4px;
}

/* === STUDIO CARD V2 === */
.studio-card-v2 {
  background-color: var(--color-gray-dark);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition-base);
}

.studio-card-v2:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.studio-card-v2 .studio-photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.studio-card-v2 .studio-specs {
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-card-v2 .studio-body {
  padding: 1.5rem;
}

.studio-card-v2 .studio-body p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === GALLERY GRID (4 columns) === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background-color: var(--color-gray-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* === VIDEO PROJECT CARD === */
.project-card .card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .card-image video {
  transform: scale(1.05);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .studios-container {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-table .ct-label,
  .contact-table .ct-value {
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.5rem 1rem;
  }

  .contact-table .ct-label {
    padding-bottom: 0.25rem;
  }

  .contact-table .ct-value {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--spacing-xl);
    gap: var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.98);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .page-hero {
    height: 40vh;
    min-height: 300px;
  }

  .byhumans-text {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
  }

  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }

  .btn-whatsapp {
    width: 50px;
    height: 50px;
  }

  .btn-contactanos {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-intro {
    font-size: 1rem;
  }

  .title-sketch.sketch-wrap {
    width: 130%;
  }
}

/* === MÓVILES PEQUEÑOS === */
@media (max-width: 480px) {
  :root {
    --header-height: 60px;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .logo-img {
    height: 24px;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .page-hero {
    height: 35vh;
    min-height: 250px;
  }

  .page-hero-title {
    font-size: 2rem;
  }

  .floating-buttons {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .btn-whatsapp {
    width: 45px;
    height: 45px;
  }

  .btn-whatsapp svg {
    width: 22px;
    height: 22px;
  }

  .btn-contactanos {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .footer {
    padding: var(--spacing-xl) 0;
  }

  .footer-logo {
    height: 24px;
  }

  .footer-tagline {
    font-size: 0.9rem;
  }
}

/* banners SVG y heroes */

/* === PAGE HERO BANNER === */
.page-hero-banner {
  position: relative;
  width: 100%;
  margin-top: var(--header-height);
  overflow: hidden;
  background-color: var(--color-black);
}

.page-hero-banner .banner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

/* Fade-out bottom edge — blend into page */
.page-hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-black));
  pointer-events: none;
}

/* === BANNER SVG (inline — escala sin pérdida a cualquier resolución) === */
.banner-svg {
  display: block;
  width: 100%;
  height: auto;
}

.main-content {
  position: relative;
}

/* === STUDIOS STATEMENT === */
.studios-statement-wrapper {
  padding: 3rem 2rem 0;
  text-align: center;
  background: radial-gradient(ellipse 55% 90% at center, rgba(139, 48, 14, 0.15) 0%, transparent 72%);
}

/* Frase completa: "dos estudios, e infinitas posibilidades." */
.studios-statement {
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--color-white);
  margin: 0 auto;
  max-width: 960px;
}

/* "infinitas" — acento naranja de la marca */
.studios-accent {
  color: var(--color-accent);
  font-style: italic;
}

/* Descripción bajo el statement */
.studios-intro-text {
  text-align: center;
  max-width: 600px;
  margin: 1.6rem auto 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.78;
}

/* === SECTION HEADLINE === */
.section-headline {
  text-align: center;
  margin: var(--spacing-lg) 0 var(--spacing-xl);
}

.section-headline h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BANNER SECONDARY (inline section titles) === */
.banner-secondary {
  width: 100%;
  text-align: center;
  margin: var(--spacing-xl) 0;
  overflow: hidden;
}

.banner-secondary img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* Variante a ancho completo — fuera del container, borde a borde */
.banner-secondary--section {
  margin: 0 0 var(--spacing-2xl);
  position: relative;
}

.banner-secondary--section img {
  max-width: 100%;
  object-position: center;
}

/* Fade-out inferior para integrar con el contenido de abajo */
.banner-secondary--section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--color-black));
  pointer-events: none;
}

/* === INSTALLATIONS TITLE === */
.installations-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
}

/* === INFINITE CAROUSEL — TEAM === */
.team-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.team-carousel {
  display: flex;
  gap: var(--spacing-xl);
  width: max-content;
  animation: scroll-team 40s linear infinite;
}

.team-carousel:hover {
  animation-play-state: paused;
}

.team-carousel-item {
  flex: 0 0 auto;
  text-align: center;
  width: 357px;
}

.team-carousel-item img {
  width: 306px;
  height: 306px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-sm);
  border: 3px solid rgba(200, 90, 30, 0.3);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.team-carousel-item:hover img {
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.team-carousel-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
}

.team-carousel-item .role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

.team-carousel-item .role .founder-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 4px;
}

@keyframes scroll-team {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* === INFINITE CAROUSEL — GALLERY === */
.gallery-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.gallery-carousel {
  display: flex;
  gap: var(--spacing-md);
  width: max-content;
  animation: scroll-gallery 40s linear infinite;
}

.gallery-carousel:hover {
  animation-play-state: paused;
}

.gallery-carousel-item {
  flex: 0 0 auto;
  width: 300px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

/* === LIGHTBOX OVERLAY === */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

@keyframes scroll-gallery {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* === CLICKABLE PROJECT CARD === */
a.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* === PROJECT DETAIL PAGE === */
.project-detail {
  margin-top: var(--header-height);
  padding: var(--spacing-2xl) 0 var(--spacing-3xl);
}

.project-detail .container {
  max-width: 1000px;
}

.project-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--color-gray-dark);
  margin-bottom: var(--spacing-xl);
}

.project-video-wrapper video,
.project-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-video-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-detail-info h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.project-detail-info .project-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 6px 16px;
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  margin-bottom: var(--spacing-lg);
}

.project-detail-info .project-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.9;
  max-width: 800px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-xl);
  transition: color var(--transition-fast);
}

.btn-back:hover {
  color: var(--color-white);
}

.btn-back svg {
  width: 18px;
  height: 18px;
}

/* === RESPONSIVE ADDITIONS === */
@media (max-width: 768px) {
  .team-carousel-item {
    width: 255px;
  }

  .team-carousel-item img {
    width: 221px;
    height: 221px;
  }

  .gallery-carousel-item {
    width: 220px;
    height: 160px;
  }

  .banner-secondary {
    margin: var(--spacing-lg) 0;
  }
}

@media (max-width: 480px) {
  .team-carousel-item {
    width: 196px;
  }

  .team-carousel-item img {
    width: 162px;
    height: 162px;
  }

  .gallery-carousel-item {
    width: 180px;
    height: 130px;
  }
}

/* === SCROLL REVEAL — Animaciones de entrada al hacer scroll === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-title {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible,
.reveal-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion — respect accessibility preference */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-title {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   MICRO-INTERACCIONES & MEJORAS VISUALES
   ============================================================ */

/* --- Focus visible — anillo naranja para navegación de teclado --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- WhatsApp button — pulse ring (sonar) --- */
.btn-whatsapp {
  position: relative;
  overflow: visible;
}

.btn-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  65%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

.btn-whatsapp:hover::before {
  animation-play-state: paused;
}

/* --- Floating contact button — orange glow on hover --- */
.floating-buttons .btn-contactanos:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(200, 90, 30, 0.2);
}

/* --- Back button — arrow slides left on hover --- */
.btn-back svg {
  transition: transform var(--transition-fast);
}

.btn-back:hover svg {
  transform: translateX(-5px);
}

/* --- Project card — scan line cinematic on hover --- */
.project-card .card-image {
  position: relative;
}

.project-card .card-image::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(200, 90, 30, 0.1) 50%,
    transparent 60%
  );
  transform: translateY(110%);
  pointer-events: none;
  z-index: 2;
}

.project-card:hover .card-image::after {
  animation: card-scan 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes card-scan {
  0%   { transform: translateY(110%); opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(-110%); opacity: 0; }
}

/* --- Nav toggle — hamburger → X spring animation --- */
.nav-toggle span {
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.68, -0.55, 0.265, 1.55),
              opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Page hero banner — entrance animation --- */
@keyframes banner-enter {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-hero-banner {
  animation: banner-enter 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Respeta preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .btn-whatsapp::before   { animation: none; opacity: 0; }
  .card-image::after      { display: none; }
  .page-hero-banner       { animation: none; }
  .nav-toggle span        { transition: none; }
}