@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap");

/* ==============================
        RESET GENERAL
============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==============================
        CONFIGURACIÓN BASE
============================== */

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Arial", sans-serif;
  background: #fff;
}

/* ==============================
        TODAS LAS PANTALLAS
============================== */

section {
  width: 100%;
}

.loader-screen,
.gallery,
.final-screen {
  position: fixed;
  inset: 0;
  height: 100vh;
}
/* ==============================
        LOADER INICIAL
============================== */

.loader-screen {
  background: #000;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.film-counter {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.counter-number {
  color: #fff;
  font-size: 7rem;
  font-weight: 700;
  font-family: "IBM Plex Sans";
  letter-spacing: -3px;
}

.film-ring {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

/* ==============================
        GALERÍA DE EVENTOS
============================== */

.gallery {
  background: #000;
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Cada escena ocupa toda la pantalla */
.gallery-item {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 0;
}

/* Fondo cinematográfico */
.gallery-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(25px) brightness(0.35);
  transform: scale(1.2);
}

/* Foto principal */
.gallery-image {
  position: relative;

  width: auto;
  height: 100vh;

  object-fit: contain;

  z-index: 2;

  will-change: transform, opacity;
}

/* ==============================
        PANTALLA FINAL
============================== */

.final-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==============================
          HERO
============================== */

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 1000;
  isolation: isolate;
  overflow: hidden;
}

/* ==============================
MAIN DEL SITIO
============================== */

.main-content {
  position: relative;
  background: #fff;
  min-height: 200vh;
  z-index: 5;
}

/* ==============================
NAVBAR
============================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 9999;
  background: linear-gradient(
    to right,
    rgba(2, 2, 2, 0.842) 60%,
    rgba(255, 255, 255, 0.55) 100%,
    rgba(255, 255, 255, 0) 100%
  );

  backdrop-filter: blur(18px);
}

/* LOGO */
.nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* DERECHA (REDES) */
.nav-right {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* ICONOS */
.nav-icon {
  font-size: 22px;
  color: #111;
  transition: 0.3s ease;
}

.nav-icon:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}

/* WHATSAPP DESTACADO */
.nav-icon.whatsapp {
  color: #111;
}

.main-content,
.gallery {
  will-change: opacity;
  transform: translateZ(0);
}

.service-showcase {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.showcase-image {
  width: 100%;
  height: 100%;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60px;
  transition: 1s ease;
}

.image-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.842) 40%,
    rgba(255, 255, 255, 1) 100%
  );

  z-index: 2;
  pointer-events: none;
}

.services-slider {
  position: absolute;
  inset: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  perspective: 1000px;
}

.slider-arrow {
  position: absolute;
  bottom: 10%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 9999;
  transition: 0.3s;
  pointer-events: auto;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.slider-prev {
  left: calc(50% - 480px);
}

.slider-next {
  right: calc(50% - 480px);
}

.slider-arrow i {
  font-size: 1rem;
  color: #111;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.226);
  z-index: 1;
}

.service-card {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(24vw, 320px);
  height: min(15vw, 200px);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  z-index: 6;
  cursor: pointer;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: 0.6s ease;
  z-index: 1;
}

.service-card.side::before {
  background: rgba(0, 0, 0, 0.3);
}

.service-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 0.6s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card h2 {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  color: #fff;
  font-size: clamp(1rem, 1.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 3;
}

.service-card.active {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  z-index: 7;
}

.mobile-logo-bg {
  display: none;
}

/* =========================
EXTRAS SECTION
========================= */

.extras-section {
  padding: 120px 0;
  background: #fff;
}

.extras-header,
.extras-text {
  text-align: center;
  width: min(800px, 90%);
  margin: 0 auto 40px auto;
}

.extras-text p {
  color: #666;
  font-size: 1.2rem;
  line-height: 1.7;
}

/* =========================
CARDS WRAPPER (EN FILA)
========================= */

.extras-cards {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
}

/* =========================
CARD BASE
========================= */

.extra-card {
  flex: 0 0 480px; /* 👈 clave: evita que se achiquen */
  width: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 360px;
}

/* fondo real */
.extra-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* oscurecer imagen */
.extra-card .card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* =========================
INNER FLIP
========================= */

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  z-index: 2;
}

/* FLIP STATE */
.extra-card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* =========================
FRONT
========================= */

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front {
  background: transparent;
}

/* título centrado */
.card-front h2 {
  color: #fff;
  font-size: 2.2rem;
  text-align: center;
  z-index: 2;
}

/* overlay leve para legibilidad */
.card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

/* =========================
BACK
========================= */

.card-back {
  position: absolute;
  inset: 0;

  transform: rotateY(180deg);

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding: 0;
}

.card-back-bg {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 0;
}

.card-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 40px;
}

.card-content h3 {
  color: #fff;
  margin-bottom: 10px;
}

.card-content p {
  max-width: 340px;

  color: rgba(255, 255, 255, 0.92);

  line-height: 1.7;
}

/* =========================
OPEN EFFECT
========================= */

.extra-card.expanded {
  transform: scale(1.05);
  z-index: 10;
}

.card-front,
.card-back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.card-inner {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

/* FOTOLIBROS */

.photobook-section {
  padding: 35px 0 45px;
  background: #c5c4c4;
}

.photobook-header {
  text-align: center;
  width: min(900px, 90%);
  margin: auto;
}

.photobook-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 15px;
}

.photobook-header p {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.7;
}

/* LAYOUT */
.photobook-wrapper {
  width: min(1100px, 82%);
  margin: 25px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* ACTIVO */

.photobook-active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photobook-active img {
  opacity: 1;
}

.photobook-main img {
  width: auto;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;

  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.photobook-info {
  width: 100%;
  max-width: 420px;
  margin-top: 20px;
}

.photobook-info h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.photobook-info p {
  color: #666;
  line-height: 1.6;
}

/* ARROWS */
.photobook-arrows {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.photobook-arrows button {
  width: 40px;
  height: 40px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
}

/* STACK */
.photobook-stack {
  position: relative;
  height: 350px;
  perspective: 1600px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photobook-item {
  position: absolute;
  width: 50%;
  height: 185px;
  border-radius: 4px;
  top: 0;
  left: 15%;
  transform-origin: right top;
  transform: translate(-50%, -50%) rotateY(0deg);
  background: #c5c4c4;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.082);

  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/*==================================
            NOSOTROS
==================================*/

.about-intro {
  padding: 80px 0 40px;

  background: #050505;

  position: relative;

  overflow: hidden;
}

.about-intro-content {
  width: min(900px, 90%);

  margin: auto;

  text-align: center;
}

.about-kicker {
  display: inline-block;

  font-size: 0.85rem;

  letter-spacing: 8px;

  color: #d8b36a;

  margin-bottom: 30px;
}

.about-heading {
  font-size: clamp(3rem, 5vw, 5.4rem);

  line-height: 1.08;

  font-weight: 700;

  color: #fff;

  margin-bottom: 45px;
}

.about-text {
  width: min(760px, 100%);

  margin: auto;

  font-size: 1.25rem;

  line-height: 2;

  color: rgba(255, 255, 255, 0.78);
}

/*==================================*/
/* TEAM STORY */
/*==================================*/

.team-story {
  position: relative;

  width: 100%;

  height: 78vh;

  overflow: hidden;

  background: #000;
}

.team-image {
  position: absolute;

  inset: 0;
}

.team-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center 25%;

  transform: scale(1.03);

  will-change: transform;
}

.team-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.18)
  );
}
.team-title {
  position: absolute;

  top: 45px;

  left: 50%;

  transform: translateX(-50%);

  z-index: 5;

  text-align: center;
}

.team-title span {
  letter-spacing: 8px;

  font-size: 0.85rem;

  color: #fff;

  opacity: 0.85;
}

.team-description {
  background: #050505;
  padding: 20px 0 30px;
}

.team-description-content {
  width: min(950px, 90%);

  margin: auto;

  text-align: center;
}

.team-description h2 {
  font-size: clamp(2.7rem, 4vw, 4.8rem);

  line-height: 1.15;

  color: #fff;

  margin-bottom: 35px;
}

.team-description p {
  max-width: 820px;

  margin: auto;

  font-size: 1.2rem;

  line-height: 2;

  color: rgba(255, 255, 255, 0.78);
}
/*==================================*/
/* WORKFLOW CINEMATOGRÁFICO */
/*==================================*/

.workflow-section {
  background: #050505;

  padding: 60px 0;

  overflow: hidden;

  position: relative;
}

.workflow-item {
  width: min(1400px, 90%);

  margin: 0 auto 120px;

  display: grid;

  grid-template-columns: 1.15fr 0.85fr;

  gap: 50px;

  align-items: center;
}

.workflow-item:last-child {
  margin-bottom: 0;
}

.workflow-item.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.workflow-item.reverse .workflow-image {
  order: 2;
}

.workflow-item.reverse .workflow-content {
  order: 1;
}

.workflow-image {
  position: relative;

  overflow: hidden;

  border-radius: 28px;

  min-height: 520px;
  max-height: 560px;

  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);
}

.workflow-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transform: scale(1.08);

  will-change: transform;
}

.workflow-image::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    to top,

    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.15)
  );
}

.workflow-content {
  position: relative;
}

.workflow-step {
  display: block;

  font-size: clamp(5rem, 10vw, 9rem);

  font-weight: 700;

  line-height: 1;

  color: rgba(255, 255, 255, 0.534);

  margin-bottom: 5px;

  letter-spacing: -4px;
}

.workflow-line {
  width: 2px;

  height: 120px;

  background: #d8b36a;

  margin-bottom: 45px;

  transform-origin: top;
}

.workflow-content h2 {
  font-size: clamp(2.8rem, 4vw, 5rem);

  line-height: 1.05;

  color: #fff;

  margin-bottom: 30px;
}

.workflow-content p {
  font-size: 1.18rem;

  line-height: 2;

  color: rgba(255, 255, 255, 0.78);

  max-width: 520px;
}

/*==================================*/
/* TABLET */
/*==================================*/

@media (max-width: 1100px) {
  .workflow-item {
    grid-template-columns: 1fr;

    gap: 70px;

    margin-bottom: 170px;
  }

  .workflow-item.reverse .workflow-image,
  .workflow-item.reverse .workflow-content {
    order: initial;
  }

  .workflow-image {
    min-height: 560px;
  }

  .workflow-content {
    max-width: 760px;

    margin: auto;
  }
}

/*********** ELIMINAR PARPADEO DE ANIMACION *************/

.loader-screen,
.gallery {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.intro-active .loader-screen {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

body.intro-active .gallery {
  opacity: 1;
  visibility: visible;
}

/*==================================
            FOOTER
==================================*/

.site-footer {
  background: #050505;
  padding: 0 0 35px;
}

.footer-divider {
  width: min(1200px, 88%);
  height: 1px;
  margin: 0 auto 28px;
  background: rgba(255, 255, 255, 0.12);
}

.footer-copy {
  width: min(90%, 900px);

  margin: auto;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  flex-wrap: wrap;

  text-align: center;

  color: rgba(255, 255, 255, 0.65);

  font-size: 0.95rem;

  line-height: 1.8;
}

.footer-copy a {
  display: inline-flex;
  align-items: center;
  transition: 0.3s;
}

.footer-copy a:hover {
  opacity: 0.8;
}

.footer-copy img {
  height: 20px;
  width: auto;
  display: block;
}

/* ==============================
        RESPONSIVE TABLET
============================== */

@media (max-width: 768px) {
  .mobile-logo-bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(
      to bottom,
      #ffffff 0%,
      #ffffffd0 70%,
      rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    z-index: 6;
    pointer-events: none;
  }

  .logo-container {
    width: 90vw;
    height: 40vh;
    z-index: 10;
  }

  .service-showcase {
    display: block;
  }

  .showcase-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .showcase-image img {
    object-fit: cover;
    object-position: center 60px;
  }

  .image-fade {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 320px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 30%,
      white 70%
    );
  }
  .service-card {
    left: 15%;
    bottom: 60px;
    transform: translateX(-25%);
    width: 70vw;
    height: 42vw;
  }

  .slider-arrow {
    display: none;
  }

  .card-overlay {
    background: rgba(0, 0, 0, 0.116);
  }

  .extras-section {
    padding: 70px 0;
  }

  .extras-text p {
    font-size: 1rem;
  }

  .extras-cards {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
  }

  .extra-card {
    flex: 0 0 auto; /* 👈 ESTA ES LA CLAVE */

    width: 100%;

    max-width: 420px;

    height: 220px;

    display: block;
  }

  .extra-card .card-bg,
  .card-back-bg {
    background-size: cover;
    background-position: center;
  }

  .extra-card .card-bg {
    background-position: center 35%;
  }

  .card-back-bg {
    background-position: center;
  }

  .card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .card-content h3 {
    margin-bottom: 12px;
    flex-shrink: 0;
  }

  .card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .card-content::-webkit-scrollbar {
    width: 5px;
  }

  .card-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 20px;
  }

  .card-content::-webkit-scrollbar-track {
    background: transparent;
  }

  .extra-card.expanded {
    transform: scale(1.03);
  }

  .card-inner {
    height: 100%;
  }

  .card-front,
  .card-back {
    height: 100%;
  }

  .card-back {
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .nav {
    height: 70px;
    padding: 0 20px;
  }

  .nav-logo img {
    height: 38px;
  }

  .nav-icon {
    font-size: 17px;
  }

  .photobook-wrapper {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  /* ACTIVO FULL WIDTH */
  .photobook-main img {
    height: 260px;
    width: 100%;
    border-radius: 14px;
  }

  .photobook-info h3 {
    font-size: 1.5rem;
  }

  .photobook-info p {
    font-size: 1rem;
  }

  /* STACK VISIBLE EN MOBILE */
  .photobook-stack {
    display: flex;
    height: 220px;
    perspective: 1200px;
  }

  .photobook-item {
    height: 180px;
    width: 75%;
    left: 20%;
    top: 10%;
    transform: translate(-50%, -50%);
    transform-origin: center;
  }

  .photobook-arrows {
    justify-content: center;
  }

  .team-story {
    height: 42vh;
  }

  .team-image img {
    object-fit: contain;
    transform: scale(1);
  }

  .team-description {
    padding: 25px 0 10px;
  }

  .team-description h2 {
    font-size: 2rem;
  }

  .team-description p {
    font-size: 1rem;

    line-height: 1.8;
  }

  .team-title {
    top: 25px;
  }

  .workflow-section {
    padding: 30px 0;
  }

  .workflow-item {
    width: 92%;

    gap: 15px;

    margin-bottom: 60px;
  }

  .workflow-image {
    min-height: 300px;
    max-height: 420px;

    border-radius: 20px;
  }

  .workflow-step {
    font-size: 3.8rem;

    margin-bottom: 15px;
  }

  .workflow-line {
    height: 70px;

    margin-bottom: 28px;
  }

  .workflow-content h2 {
    font-size: 2rem;
  }

  .workflow-content p {
    font-size: 1rem;

    line-height: 1.8;
  }

  .footer-copy {
    gap: 5px;
    font-size: 0.90rem;
  }

  .footer-copy img {
    height: 18px;
  }

  .footer-divider {
    width: 90%;
  }
}

/* ==============================
        RESPONSIVE MÓVIL PEQUEÑO
============================== */

@media (max-width: 480px) {
  .logo-container {
    width: 95vw;
    height: 35vh;
  }
}
