@charset "utf-8";

/* ===== GLOBAL ===== */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;

  background-image: url("gallery/joellogo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* 🔥 ESTO lo hace gigante */
  background-attachment: fixed;
}

/* ===== HEADER ===== */
.site-header{
  background-color: #2c3e50;
  color: white;
  padding: 18px 16px 0;
  text-align: center;
}

.header-top{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 10px;
}

.site-header h1{
  margin: 8px 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.3px;
}

/* ===== LANGUAGE SWITCH ===== */
.lang-switch{ display: flex; gap: 10px; }

.flag-btn{
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, background 0.2s, border 0.2s;
}

.flag-btn:hover{
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

.flag-btn.active{
  border-color: rgba(0,255,127,0.65);
  background: rgba(0,255,127,0.15);
}

.flag-text{ font-size: 12px; opacity: 0.95; }

/* ===== NAV ===== */
nav ul{
  list-style: none;
  padding: 10px 0;
  margin: 0;
  background: #34495e;
}

nav ul li{
  display: inline-block;
  margin: 8px 12px;
}

nav ul li a{
  color: white;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

nav ul li a:hover{
  background: rgba(26,188,156,0.25);
  color: #00ff7f;
  transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
section{
  background: rgba(255,255,255,0.92);
  padding: 30px;
  margin: 38px auto;
  max-width: 1000px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

section:hover{ transform: translateY(-2px); }

h2{ margin-top: 0; color: #2c3e50; }

.service-list{
  padding-left: 18px;
  line-height: 1.8;
}

/* ===== GALLERY ===== */
.gallery{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.gallery img{
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery img:hover{
  transform: scale(1.06);
  box-shadow: 0 14px 26px rgba(0,0,0,0.18);
}

/* ===== LIGHTBOX ===== */
#lightbox{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img{
  max-width: 85%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(255,255,255,0.18);
}

#lightbox .close,
#lightbox .prev,
#lightbox .next{
  position: absolute;
  color: white;
  font-size: 42px;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
}

#lightbox .close{ top: 18px; right: 34px; }
#lightbox .prev{ left: 34px; }
#lightbox .next{ right: 34px; }

#lightbox .close:hover,
#lightbox .prev:hover,
#lightbox .next:hover{
  color: #00ff7f;
  transform: scale(1.05);
}

/* ===== CONTACT EMAIL BOX ===== */
.contact-box{
  max-width: 650px;
  margin: 0 auto 18px auto;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(44,62,80,0.15);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  text-align: center;
}

.contact-label{
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  color: #2c3e50;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.contact-email{
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(26,188,156,0.14);
  border: 1px solid rgba(26,188,156,0.22);
  color: #1abc9c;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s, background 0.2s;
}

.contact-email:hover{
  background: rgba(26,188,156,0.22);
  transform: translateY(-1px);
}

/* ===== CONTACT FORM ===== */
.contact-form{
  max-width: 650px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.contact-form label{
  font-weight: 900;
  color: #2c3e50;
}

.contact-form input,
.contact-form textarea{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(44,62,80,0.2);
  font-size: 15px;
  outline: none;
  transition: box-shadow 0.2s, border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(26,188,156,0.8);
  box-shadow: 0 0 0 4px rgba(26,188,156,0.18);
}

.contact-form textarea{
  min-height: 140px;
  resize: vertical;
}

.contact-form button{
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  background: #2c3e50;
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(0,0,0,0.12);
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.contact-form button:hover{
  background: #1abc9c;
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(0,0,0,0.16);
}

/* Honeypot hidden */
.hp-field{
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  opacity: 0;
}

/* Form status */
.form-status{
  margin: 8px 0 0;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  color: #2c3e50;
}

.form-status.success{ color: #1abc9c; }
.form-status.error{ color: #e74c3c; }

/* ===== FOOTER ===== */
footer{
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 18px 12px;
}

footer a{
  color: #00ff7f;
  text-decoration: none;
  font-weight: 900;
}

footer a:hover{
  color: #ffffff;
  text-decoration: underline;
}

.powered{
  display: inline-block;
  margin-top: 6px;
  opacity: 0.95;
}

/* ===== REVEAL ===== */
.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show{
  opacity: 1;
  transform: translateY(0);
}

/* Fade on language switch */
.page-content{ transition: opacity 0.2s ease; }
.fade-out{ opacity: 0.15; }

.fade-in{
  animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn{
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== MOBILE ===== */
@media (max-width: 768px){
  nav ul li{ display: block; margin: 10px 0; }
  section{ padding: 18px; margin: 18px 12px; }
  .gallery img{ width: 46%; height: 110px; }
  #lightbox .prev{ left: 14px; }
  #lightbox .next{ right: 14px; }
  #lightbox .close{ right: 18px; }
}