/*
Theme Name: Willy's Gold - Trabaja con Nosotros
Theme URI: https://willysgoldjoyeria.com
Author: Willy's Gold Joyeria
Description: Pagina informativa de convocatoria laboral - Sedes Huaraz y Chimbote, y casting de talento.
Version: 5.0
Requires at least: 5.0
Requires PHP: 7.0
License: Uso privado
Text Domain: willysgold-trabaja
*/

:root{
  --bg: #F7F5F0;
  --panel: #FFFFFF;
  --panel-raised: #F0EEE7;
  --sage: #869D8A;
  --sage-deep: #6C8171;
  --silver: #B0B5B9;
  --silver-deep: #7C8186;
  --carbon: #333333;
  --ink: #1C1C1A;
  --ink-soft: #33322E;
  --muted: #6B6F72;
  --line: #E2DFD5;
}

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

body{
  background: var(--bg);
  color: var(--carbon);
  font-family: 'Work Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  
}

a{ color: inherit; }

/* ---------- Hero / banner (verde salvia) ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .carousel{
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  background: #000;
}

.hero-bg .carousel-track{
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  max-height: none;
  height: 100%;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent; /* Esto elimina el degradado negro */
}

.hero-inner{
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 90px 24px;
}

h1.brand{
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(30px, 5.6vw, 44px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7), 0 10px 40px rgba(0,0,0,0.6);
}
  /* 1. Tamaño base para pantallas pequeñas (móviles) */
.brand-logo {
  max-width: 100px; /* Mantiene el tamaño que ya te gusta en celular */
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0px 10px 25px rgba(0, 0, 0, 0.6));
}

/* 2. Tamaño específico para pantallas grandes (PC y tablets) */
@media (min-width: 768px) {
  .brand-logo {
    max-width: 500px; /* Aquí agrandamos el logo solo para computadoras */
  }
}
}
h1.brand::after{
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  background: rgba(255,255,255,0.55);
  margin: 18px auto 0;
}

.role-line{
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 2.8vw, 21px);
  color: rgba(255,255,255,0.92);
  margin-top: 16px;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7), 0 8px 30px rgba(0,0,0,0.6);
}

/* ---------- Tabs / selector de sede — flotantes sobre el slider ---------- */
.tab-nav{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.tab-btn {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    /* Aquí agregamos la sombra al texto para que resalte */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover{
  background: rgba(255,255,255,0.26);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.tab-btn.active{
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--ink);
}

/* ---------- Section shell ---------- */
section.block{
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
section.block:last-of-type{ border-bottom: none; }

.tag-label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 18px;
  position: relative;
  padding-left: 22px;
}
.tag-label::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border: 1.5px solid var(--sage);
  border-radius: 50%;
}
.tag-label::after{
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--sage);
}

h2{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 27px);
  color: var(--sage-deep);
  margin-bottom: 20px;
}

p.lead{ color: var(--muted); font-size: 15.5px; max-width: 58ch; }

/* ---------- About ---------- */
.about-grid{
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.about-fact{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.about-fact b{ color: var(--sage-deep); font-weight: 500; }

/* ---------- Duties ---------- */
.duties{ list-style: none; margin-top: 4px; }
.duties li{
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--carbon);
}
.duties li:first-child{ border-top: none; }
.duties li::before{
  content: "♦";
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--sage);
  font-size: 12px;
}

/* ---------- Salary cards ---------- */
.salary-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 560px){
  .salary-grid{ grid-template-columns: 1fr; }
}

.salary-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sage);
  border-radius: 4px;
  padding: 22px 20px;
  position: relative;
}
.salary-card::before{
  content: "";
  position: absolute;
  top: 20px; right: -1px;
  width: 14px; height: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateX(50%);
}
.salary-card:last-child::before{ display:none; }

.salary-grid-single{ grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }

.salary-mode{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.salary-amount{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 30px;
  color: var(--sage-deep);
  margin: 6px 0 14px;
}
.salary-amount span{ font-size: 15px; color: var(--muted); font-family: 'Work Sans', sans-serif; }

.salary-detail{
  font-size: 13.5px;
  color: var(--carbon);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.salary-detail div{ margin-bottom: 5px; color: var(--muted); }
.salary-detail div b{ color: var(--carbon); font-weight: 500; }

.pay-note{
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Benefits ---------- */
.benefit-row{
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.benefit-row:first-child{ border-top: none; }
.benefit-num{
  font-family: 'IBM Plex Mono', monospace;
  color: var(--sage-deep);
  font-size: 13px;
  min-width: 20px;
}
.benefit-text{ font-size: 15px; color: var(--carbon); }
.benefit-text b{ color: var(--sage-deep); font-weight: 500; }

/* ---------- Requirements ---------- */
.req-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin-top: 8px;
}
@media (max-width: 560px){ .req-grid{ grid-template-columns: 1fr; } }
.req-item{
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--carbon);
}
.req-item::before{
  content: "—";
  color: var(--silver-deep);
}

/* ---------- Process ---------- */
.process{ counter-reset: step; margin-top: 8px; }
.step{
  display: flex;
  gap: 18px;
  position: relative;
  padding-bottom: 30px;
}
.step:last-child{ padding-bottom: 0; }
.step-marker{
  counter-increment: step;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #FFFFFF;
  background: var(--sage);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.step-marker::before{ content: counter(step); }
.step:not(:last-child) .step-marker::after{
  content: "";
  position: absolute;
  top: 30px;
  left: 14px;
  width: 1px;
  height: calc(100% - 22px);
  background: var(--line);
}
.step-title{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--sage-deep);
  margin-bottom: 4px;
}
.step-body{ font-size: 14px; color: var(--muted); max-width: 48ch; }
.step-body b{ color: var(--silver-deep); font-weight: 500; }

.patience-note{
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--silver);
  padding-left: 14px;
}

/* ---------- CTA ---------- */
.cta-block{
  padding: 52px 0 64px;
  text-align: center;
}
.cta-title{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(22px, 3.6vw, 28px);
  margin-bottom: 10px;
  color: var(--sage-deep);
}
.cta-sub{ color: var(--muted); font-size: 14.5px; margin-bottom: 30px; max-width: 46ch; margin-left:auto; margin-right:auto; }

.cta-row{
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn{
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 15px 26px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary{
  background: var(--sage);
  color: #FFFFFF;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 8px 22px rgba(134,157,138,0.35); background: var(--sage-deep); }
.btn-whatsapp{
  background: #FFFFFF;
  color: var(--sage-deep);
  border: 1px solid var(--silver);
}
.btn-whatsapp:hover{ transform: translateY(-2px); box-shadow: 0 8px 22px rgba(176,181,185,0.35); }

.pending-note{
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--silver-deep);
  font-style: italic;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

footer.site-footer{
  text-align: center;
  padding: 30px 0 40px;
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  border-top: 1px solid var(--line);
}

/* ---------- Panels ---------- */
.panel{ display: none; }
.panel.active{ display: block; }

/* ---------- Carousel (imagenes reales) ---------- */
.carousel{
  position: relative;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
}

.carousel-track{
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 420px;
}

.carousel-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  /* Aumentamos el tiempo a 1s para una fusión suave y manejamos la visibilidad */
  transition: opacity 1s ease-in-out, visibility 1s; 
  overflow: hidden;
  background: transparent; /* Quitamos el negro sólido de la imagen individual */
}
.carousel-slide.active{
  opacity: 1;
  visibility: visible;
  z-index: 2; /* Obliga a la nueva imagen a ponerse por encima de la anterior */
  /* La visibilidad cambia a 0s (instantáneo) para que no haya retrasos al empezar a fundirse */
  transition: opacity 1s ease-in-out, visibility 0s; 
}

.carousel-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 7s ease-out;
}
.carousel-slide.active img{
  transform: scale(1.12);
}

.carousel-prev,
.carousel-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--silver);
  color: var(--sage-deep);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.2s ease, background 0.15s ease, color 0.15s ease;
}
.carousel:hover .carousel-prev,
.carousel:hover .carousel-next{ opacity: 1; }
.carousel-prev{ left: 14px; }
.carousel-next{ right: 14px; }
.carousel-prev:hover,
.carousel-next:hover{ background: var(--sage); color: #FFFFFF; border-color: var(--sage); }

.carousel-dots{
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.carousel-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--silver);
  cursor: pointer;
}
.carousel-dot.active{ background: var(--sage); border-color: var(--sage); }
