/* ========================= */
/* ARCHIVO: style.css */
/* ========================= */

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

html{
  scroll-behavior:smooth;
}

body{
  background:#0a0a0a;
  color:white;
  font-family:'Montserrat', sans-serif;
  overflow-x:hidden;
}

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

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

section{
  padding:120px 8%;
}

/* GRAIN */
.grain{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.05;
  background:rgba(255,255,255,.02);
  z-index:9999;
}

/* HEADER */
header{
  position:fixed;
  top:0;
  width:100%;
  padding:24px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:1000;
  backdrop-filter:blur(10px);
  background:rgba(0,0,0,.2);
}

.logo{
  font-weight:700;
  letter-spacing:2px;
}

nav{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  align-items:center;
}

nav a{
  font-size:.95rem;
  opacity:.8;
  transition:.3s;
}

nav a:hover{
  opacity:1;
}

/* HERO */
.hero{
  height:100vh;
  background:url("https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?q=80&w=1800") center/cover;
  display:flex;
  align-items:center;
  position:relative;
}

.overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:700px;
}

.subtitle{
  text-transform:uppercase;
  letter-spacing:4px;
  opacity:.7;
  margin-bottom:20px;
}

.hero h1{
  font-size:4rem;
  line-height:1.1;
  margin-bottom:30px;
}

.btn{
  padding:14px 30px;
  border:1px solid rgba(255,255,255,.2);
  transition:.3s;
}

.btn:hover{
  background:white;
  color:black;
}

/* SECTION TITLES */
.section-tag{
  opacity:.6;
  text-transform:uppercase;
  letter-spacing:3px;
  margin-bottom:16px;
}

.section-title h2,
.about h2{
  font-size:3rem;
  margin-bottom:30px;
}

/* ABOUT */
.about{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}

.about p{
  color:#cfcfcf;
  line-height:1.8;
}

.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.stat{
  background:#111;
  padding:40px;
  border:1px solid rgba(255,255,255,.05);
}

.stat h3{
  font-size:2.5rem;
  margin-bottom:10px;
}

/* CATEGORIES */
.categories{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:40px 0;
}

.categories button{
  background:#111;
  color:white;
  border:none;
  padding:12px 20px;
  cursor:pointer;
  transition:.3s;
}

.categories button.active,
.categories button:hover{
  background:white;
  color:black;
}

/* GALLERY */
.gallery{
  display:grid;
  grid-template-columns:repeat(3,minmax(240px,1fr));
  gap:18px;
}

.gallery-item{
  overflow:hidden;
  position:relative;
  cursor:pointer;
  border-radius:22px;
  aspect-ratio:4 / 5;
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .6s ease;
}

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

.photo-editing-section{
  padding:100px 0;
}

.photo-editing-inner{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:40px;
  align-items:start;
}

.photo-editing-copy{
  max-width:800px;
}

.photo-editing-copy h2{
  font-family:'Playfair Display', serif;
  font-size:3rem;
  margin-bottom:24px;
  line-height:1.05;
}

.photo-editing-copy p,
.section-tag,
.comparison-copy{
  font-family:'Montserrat', sans-serif;
}

.photo-editing-copy p{
  color:#cfcfcf;
  line-height:1.85;
  font-size:1.05rem;
}

.photo-editing-hero{
  max-width:800px;
  margin:0 auto 50px;
  text-align:center;
}

.photo-editing-hero-copy{
  width:100%;
}

.photo-editing-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(320px,1fr));
  gap:32px;
}

.photo-editing-card{
  display:flex;
  flex-direction:column;
  gap:20px;
  align-self:start;
}

.titulo-edicion{
  font-family:'Playfair Display', serif;
  font-size:1.5rem;
  margin:0;
  color:#fff;
}

.photo-editing-comparison{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.comparison-wrapper{
  position:relative;
  display:block;
  width:100%;
  overflow:hidden;
  border-radius:24px;
  background:#111;
  isolation:isolate;
}

.comparison-image{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}

.comparison-image.before{
  position:relative;
  z-index:1;
}

.comparison-image.after{
  position:absolute;
  top:0;
  left:0;
  width:50%;
  height:100%;
  object-fit:cover;
  overflow:hidden;
  z-index:2;
}

.comparison-overlay{
  position:absolute;
  top:0;
  left:50%;
  width:2px;
  height:100%;
  background:rgba(255,255,255,.5);
  transform:translateX(-1px);
  pointer-events:none;
}

.comparison-slider{
  position:absolute;
  top:0;
  left:50%;
  width:0;
  height:100%;
  pointer-events:none;
}

.slider-handle{
  position:absolute;
  top:50%;
  left:0;
  transform:translate(-50%, -50%);
  width:48px;
  height:48px;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  border:2px solid rgba(255,255,255,.35);
  box-shadow:0 18px 45px rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:ew-resize;
  pointer-events:auto;
  z-index:2;
}

.slider-icon{
  display:block;
  font-size:1.1rem;
  color:#111;
}

.comparison-copy{
  color:#cfcfcf;
  font-size:.95rem;
}

@media (max-width:1024px){
  .photo-editing-inner{
    grid-template-columns:1fr;
  }
}

@media (max-width:1024px){
  .gallery{
    grid-template-columns:repeat(2,minmax(220px,1fr));
  }
}

@media (max-width:900px){
  .about{
    grid-template-columns:1fr;
    gap:40px;
  }
  .gallery{
    grid-template-columns:1fr;
  }
}

@media (max-width:768px){
  section{
    padding:80px 20px;
  }
  header{
    padding:18px 20px;
  }
  nav{
    justify-content:center;
    gap:16px;
  }
  nav a{
    font-size:.85rem;
  }
  .section-title h2,
  .about h2,
  .photo-editing-copy h2{
    font-size:2.2rem;
  }
  .photo-editing-grid{
    grid-template-columns:1fr;
    gap:24px;
  }
  .photo-editing-copy{
    max-width:100%;
  }
}

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

#lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2000;
  padding:24px;
}

#lightbox.hidden{
  display:none;
}

.lightbox-backdrop{
  position:absolute;
  inset:0;
}

.lightbox-content{
  position:relative;
  max-width:95vw;
  max-height:95vh;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.lightbox-category{
  position:absolute;
  top:16px;
  right:16px;
  padding:10px 16px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.95);
  color:#111;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(0,0,0,.2);
  z-index:2;
}

.lightbox-category.hidden{
  display:none;
}

.lightbox-content img{
  width:auto;
  max-width:100%;
  max-height:80vh;
  object-fit:contain;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.55);
  cursor:zoom-out;
}

.lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  color:#111;
  font-size:1.5rem;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(0,0,0,.3);
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox-prev{
  left:-28px;
}

.lightbox-next{
  right:-28px;
}

.lightbox-caption{
  margin-top:12px;
  color:#ddd;
  text-align:center;
}

/* SERVICES */
.service-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:24px;
}

.service-card{
  background:#111;
  padding:40px;
  border:1px solid rgba(255,255,255,.05);
  transition:.3s;
}

.service-card:hover{
  transform:translateY(-8px);
}

/* CONTACT */
.contact-links{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  margin-top:30px;
  align-items:flex-start;
}

.contact-details{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.contact-qr{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px 20px;
  background:#111;
  border:1px solid rgba(255,255,255,.08);
  min-width:220px;
}

.qr-image{
  width:min(150px, 100%);
  height:auto;
  display:block;
  background:#fff;
  padding:10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 24px rgba(0,0,0,.2);
}

.contact-links a,
.contact-links p{
  opacity:.7;
  transition:.3s;
}

.contact-links a:hover{
  opacity:1;
}

/* FOOTER */
footer{
  padding:40px;
  text-align:center;
  opacity:.5;
}

/* ANIMATIONS */
.fade-in{
  opacity:0;
  transform:translateY(40px);
  transition:1s ease;
}

.fade-in.visible{
  opacity:1;
  transform:translateY(0);
}

/* RESPONSIVE */
@media(max-width:900px){

  .hero h1{
    font-size:2.5rem;
  }

  .about{
    grid-template-columns:1fr;
  }

  .stats{
    grid-template-columns:1fr;
  }

  nav{
    display:none;
  }

}

/* EDITOR UI */
#editor-toggle{
  position:fixed;
  right:20px;
  bottom:20px;
  width:48px;
  height:48px;
  border-radius:8px;
  background:#111;
  color:white;
  border:1px solid rgba(255,255,255,.08);
  cursor:pointer;
  z-index:2000;
}

#editor-panel{
  position:fixed;
  right:20px;
  top:60px;
  width:420px;
  max-height:80vh;
  background:#0b0b0b;
  border:1px solid rgba(255,255,255,.06);
  padding:12px;
  overflow:auto;
  z-index:2000;
  box-shadow:0 10px 30px rgba(0,0,0,.6);
}

.hidden{display:none}

.editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.editor-tabs{display:flex;gap:6px;margin-bottom:8px}
.editor-tabs button{padding:6px 8px;background:#111;border:0;color:#ddd;cursor:pointer}
.editor-tabs button.active{background:#fff;color:#000}
.editor-body{margin-bottom:8px}
.editor-section label{display:block;margin-top:8px;margin-bottom:4px;color:#cfcfcf}
.editor-section input,.editor-section textarea{width:100%;padding:8px;background:#111;border:1px solid rgba(255,255,255,.04);color:#fff}
.editor-actions{display:flex;gap:8px;flex-wrap:wrap}
.editor-actions button{padding:8px 10px;background:#111;border:1px solid rgba(255,255,255,.06);color:#fff;cursor:pointer}