:root {
  --blanco: #f8f0ea;
  --beige: #f6f2ee;
  --rosa: #e4bdb2;
  --gris: #6b6b6b;
  --negro: #1c1c1c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--blanco);
  color: var(--negro);
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 80px;
}

.logo img {
  height: 90px;
  width: auto;
  margin-top: 6px;
  margin-left: -30px;
}

.btn-header {
  text-decoration: none;
  color: var(--negro);
  font-size: 14px;
  border-bottom: 1px solid var(--negro);
}

/* INTRO */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px;
  align-items: center;
}

.intro-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 30px;
}

.intro-text p {
  max-width: 420px;
  color: var(--gris);
  line-height: 1.8;
}

.btn-main {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 34px;
  background: var(--rosa);
  color: var(--negro);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
}

/* CONTENEDOR GENERAL */
.intro-slider {
  display: flex;
  justify-content: center;
}

/* MARCO EXTERIOR */
.frame {
  background: #c6b3a3;
  padding: 22px;

  width: 520px;     /* ⬅️ horizontal */
  height: 360px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 20px 40px rgba(0,0,0,0.08),
    0 8px 16px rgba(0,0,0,0.06);
}



/* MARCO INTERIOR BLANCO */
.fade-slider {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

/* IMÁGENES */
.fade-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  padding: 20px;
}

/* IMAGEN ACTIVA */
.fade-slider .slide.active {
  opacity: 1;
}

.fade-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.15;
  pointer-events: none;
}


.slider {
  display: flex;
  transition: transform 0.6s ease;
}

.slider img {
  width: 100%;
  max-width: 380px;
  margin-right: 20px;
}

/* FILOSOFIA */
.filosofia {
  padding: 100px 80px;
  background: var(--beige);
  text-align: center;
}

.filosofia p {
  max-width: 600px;
  margin: auto;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
}

/* PORTFOLIO */
.portfolio-editorial {
  padding: 50px 80px;
  text-align: center;
}

/* MENÚ */
.portfolio-menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

.portfolio-menu button {
  background: none;
  border: none;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  cursor: pointer;
  color: var(--gris);
}

.portfolio-menu button.active {
  color: var(--negro);
  border-bottom: 1px solid var(--negro);
}

/* SLIDER */
.portfolio-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.portfolio-frame {
  background: #464644;
  padding: 10px;
  width: 520px;
  height: 360px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.08),
    0 8px 16px rgba(0,0,0,0.06);
}

.portfolio-slider {
  position: relative;
  width: 100%;
  height: 100%;
  background: white;
  overflow: hidden;
}

.portfolio-slider > img {
  cursor: zoom-in;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.portfolio-slider img.active {
  opacity: 1;
}

.hidden {
  display: none;
}

/* CONTROLES */
.nav {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--negro);
}

.portfolio-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--negro);
}

.zoom-overlay {
  display: flex;
  z-index: 99999;
}

.zoom-image {
  position: relative;
  opacity: 1;
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* CONTACTO */
.contacto {
  padding: 100px 80px;
  text-align: center;
}

.contacto h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin-bottom: 20px;
}

.contacto p {
  color: var(--gris);
}

/* FOOTER */
.footer {
  padding: 40px 80px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.footer a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--negro);
}

/* OVERLAY */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 240, 234, 0.95); /* beige suave */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

/* ACTIVO */
.zoom-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* IMAGEN */
.zoom-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.15);
  animation: zoomIn 0.4s ease;
}

/* BOTÓN CERRAR */
.zoom-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 36px;
  cursor: pointer;
  color: var(--negro);
}

/* ANIMACIÓN */
@keyframes zoomIn {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* FORZAR VISIBILIDAD DE IMAGEN EN ZOOM */
.zoom-overlay img,
.zoom-image {
  opacity: 1 !important;
  position: relative !important;
  display: block;
  visibility: visible;
}

.zoom-overlay img {
  opacity: 1 !important;
  position: relative !important;
  display: block !important;
  max-width: 90vw;
  max-height: 90vh;
}

.zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;

  font-size: 64px;          /* ⬅️ MÁS GRANDE */
  line-height: 1;
  color: #000;

  cursor: pointer;
  padding: 20px 28px;       /* ⬅️ ÁREA DE CLICK GRANDE */
  opacity: 0.7;

  z-index: 100001;          /* ⬅️ MUY IMPORTANTE */
}

.zoom-nav:hover {
  opacity: 1;
}

.zoom-prev {
  left: 40px;
}

.zoom-next {
  right: 40px;
}

/* CONTENEDOR DE IMAGEN EN ZOOM */
.zoom-image {
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

/* ESTADOS DE ANIMACIÓN */
.zoom-image.fade-out {
  opacity: 0;
  transform: translateX(-12px);
}

.zoom-image.fade-in {
  opacity: 1;
  transform: translateX(0);
}


@media (max-width: 768px) {
  .zoom-nav {
    font-size: 48px;      /* Un poco más chico en móvil */
    padding: 14px 20px;
    touch-action: manipulation;
  }

  .zoom-prev {
    left: 8px;            /* ⬅️ PEGADO AL BORDE */
  }

  .zoom-next {
    right: 8px;
  }
}

.zoom-info {
  position: absolute;
  top: 28px;
  left: 40px;
  display: flex;
  gap: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: #000;
  opacity: 0.85;
}

.zoom-session {
  text-transform: capitalize;
}

.zoom-counter {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .zoom-info {
    top: 18px;
    left: 20px;
    font-size: 14px;
  }
}

.about-editorial {
  padding: 120px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: #fff;
}

.about-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 30px;
}

.about-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #000;
  opacity: 0.85;
}

/* IMAGEN */
.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin-left: auto;

  border-radius: 4px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.08),
    0 8px 16px rgba(0,0,0,0.06);
}

.packages-editorial {
  padding: 120px 80px;
  background: #fff;
  text-align: center;
}

.packages-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 400;
  margin-bottom: 14px;
}

.packages-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 80px;
}

.packages-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.package-card {
  position: relative;
  padding: 60px 50px;
  border: 1px solid #e6e1dc;
  background: #fff;
}

.package-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 16px;
}

.package-price {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  margin-bottom: 40px;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.package-features li {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin-bottom: 14px;
  opacity: 0.85;
}

/* DESTACADO */
.package-card.featured {
  border-color: #cbb6a3;
}

.package-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #cbb6a3;
  color: #fff;
  font-size: 12px;
  padding: 6px 14px;
  letter-spacing: 0.05em;
}

.install-btn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 9999;
    background: #111;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    transition: all .3s ease;
}

.install-btn:hover {
    background: #25D366;
    transform: translateY(-2px);
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .intro-text h1 {
    font-size: 36px;
  }

  .intro-slider {
    width: 100%;
  }

  .about-editorial {
    grid-template-columns: 1fr;
    padding: 80px 40px;
    gap: 50px;
  }

  .about-image img {
    margin: 0 auto;
    max-width: 320px;
  }

  .about-title {
    font-size: 34px;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .slider img {
    max-width: 100%;
  }

  .frame {
    width: 100%;
    max-width: 340px;
    height: 220px;
    padding: 16px;
  }

  .fade-slider .slide {
    padding: 12px;
  }

  .portfolio-editorial {
    padding: 80px 40px;
  }

  .portfolio-menu {
    flex-wrap: wrap;
    gap: 20px;
  }

  .portfolio-frame {
    width: 100%;
    max-width: 340px;
    height: 220px;
  }

  .portfolio-slider img {
    padding: 12px;
  }

  .portfolio-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .packages-editorial {
    padding: 80px 40px;
  }

  .packages-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .package-card {
    padding: 50px 35px;
  }

  .packages-title {
    font-size: 32px;
  }

  .header,
  .footer {
    padding: 20px 40px;
  }
}


