/* ===========================================
   Causas Laborales — Custom Styles
   Mardel & Cía · causaslaborales.cl
   =========================================== */

/* ── Variables ── */
:root {
  --cl-primary:       #1a2332;
  --cl-primary-dark:  #111827;
  --cl-secondary:     #c8a96e;
  --cl-secondary-dark:#a8893e;
  --cl-accent:        #b71c1c;
  --cl-accent-dark:   #8b1515;
  --cl-text:          #2d2d2d;
  --cl-text-light:    #6b7280;
  --cl-bg:            #ffffff;
  --cl-bg-alt:        #f8f9fa;
  --cl-border:        #e5e7eb;
  --cl-header-height: 100px;
  --cl-radius:        4px;
  --cl-transition:    0.3s ease;
  --cl-shadow:        0 4px 24px rgba(0,0,0,0.08);
  --cl-shadow-hover:  0 8px 32px rgba(0,0,0,0.14);
}

/* ── Base font-size override para escalar todos los rem del sitio ── */
html {
  font-size: 17px !important;
}

/* ── Body base para elementos dentro de .cl-main ── */
.cl-main,
.cl-main p,
.cl-main li,
.cl-main h3,
.cl-main h2 {
  font-size-adjust: none;
}

/* ── Reset / Base ── */
.cl-main * {
  box-sizing: border-box;
}

/* ── Container ── */
.cl-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Smooth Scroll ── */
html {
  scroll-behavior: smooth;
}

:target,
section[id] {
  scroll-margin-top: var(--cl-header-height);
}

/* ── Buttons ── */
.cl-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--cl-radius);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all var(--cl-transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.cl-btn--primary {
  background-color: var(--cl-secondary);
  color: var(--cl-primary);
  border-color: var(--cl-secondary);
  font-weight: 700;
}

.cl-btn--primary:hover {
  background-color: var(--cl-secondary-dark);
  border-color: var(--cl-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.4);
  color: var(--cl-primary);
}

.cl-btn--outline {
  background-color: var(--cl-secondary);
  color: var(--cl-primary);
  border-color: var(--cl-secondary);
  font-weight: 700;
}

.cl-btn--outline:hover {
  background-color: var(--cl-secondary-dark);
  border-color: var(--cl-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.4);
  color: var(--cl-primary);
}

.cl-btn--lg {
  padding: 18px 44px;
  font-size: 14px;
}

/* ── Section Base ── */
.cl-section {
  padding: 90px 0;
}

.cl-section--alt {
  background-color: var(--cl-bg-alt);
}

.cl-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.cl-section-title {
  font-size: clamp(2rem, 4.5vw, 2rem);
  font-weight: 700;
  color: var(--cl-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cl-section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background-color: var(--cl-secondary);
  margin: 16px auto 0;
}

.cl-why__text .cl-section-title::after {
  margin-left: 0;
}

.cl-section-intro {
  font-size: 1.1rem;
  color: var(--cl-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.cl-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  background-color: var(--cl-primary-dark);
}

.cl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 15, 25, 0.93) 0%,
    rgba(17, 24, 39, 0.82) 55%,
    rgba(17, 24, 39, 0.50) 100%
  );
  z-index: 1;
}

.cl-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: var(--cl-header-height);
  padding-bottom: 40px;
}

.cl-hero__pretitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cl-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cl-hero__pretitle::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: var(--cl-secondary);
}

.cl-hero__name {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-style: italic;
}

.cl-hero__title {
  font-size: clamp(2rem, 5.5vw, 2rem);
  font-weight: 800;
  color: #fff !important;
  line-height: 1.12;
  margin-bottom: 28px;
  max-width: 700px;
}

#inicio .cl-hero__title,
.cl-hero .cl-hero__title,
.cl-hero h1,
.btLightSkin .cl-hero__title,
.btLightSkin .cl-hero h1 {
  color: #ffffff !important;
}

.cl-hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 620px;
}

.cl-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ═══════════════════════════════════════════
   CREDENCIALES STRIP
═══════════════════════════════════════════ */
.cl-credentials {
  background-color: var(--cl-primary);
  padding: 48px 0;
}

.cl-credentials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cl-credentials__item {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}

.cl-credentials__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  color: var(--cl-secondary);
}

.cl-credentials__icon svg {
  width: 100%;
  height: 100%;
}

.cl-credentials__item p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* ═══════════════════════════════════════════
   QUIÉN SOY
═══════════════════════════════════════════ */
.cl-section-title--left::after {
  margin-left: 0;
}

.cl-about__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.cl-about__image-wrap {
  position: sticky;
  top: calc(var(--cl-header-height) + 24px);
}

.cl-about__image-wrap img {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: var(--cl-shadow);
}

.cl-about__image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--cl-bg-alt);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--cl-text-light);
  font-size: 0.85rem;
  border: 2px dashed var(--cl-border);
}

.cl-about__image-placeholder svg {
  width: 80px;
  opacity: 0.5;
}

.cl-about__pretitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cl-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cl-about__pretitle::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: var(--cl-secondary);
}

.cl-about__bio p {
  color: var(--cl-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 14px;
}

.cl-about__bio strong {
  color: var(--cl-primary);
}

.cl-about__highlights {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--cl-border);
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.cl-about__highlights li {
  font-size: 14px !important;
  color: var(--cl-text);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.cl-about__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cl-secondary);
}

/* ═══════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════ */
.cl-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cl-service-card {
  background: var(--cl-bg);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all var(--cl-transition);
  border-top: 3px solid transparent;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.cl-service-card:hover {
  border-top-color: var(--cl-secondary);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-6px);
}

.cl-service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--cl-secondary);
  margin-bottom: 20px;
}

.cl-service-card__icon svg {
  width: 100%;
  height: 100%;
}

.cl-service-card h3 {
  font-size: 17px !important;
  font-weight: 700;
  color: var(--cl-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.cl-service-card p {
  font-size: 15px !important;
  color: var(--cl-text-light);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════
   PROCESO
═══════════════════════════════════════════ */
.cl-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
  position: relative;
}

.cl-process__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--cl-secondary), var(--cl-secondary));
  z-index: 0;
}

.cl-process__step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cl-process__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--cl-primary);
  color: var(--cl-secondary);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 3px solid var(--cl-secondary);
}

.cl-process__body h3 {
  font-size: 17px !important;
  font-weight: 700;
  color: var(--cl-primary);
  margin-bottom: 8px;
}

.cl-process__body p {
  font-size: 15px !important;
  color: var(--cl-text-light);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════
   POR QUÉ TRABAJAR CONMIGO
═══════════════════════════════════════════ */
.cl-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cl-why__list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.cl-why__list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 20px;
  font-size: 16px !important;
  color: var(--cl-text);
  line-height: 1.5;
}

.cl-why__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--cl-secondary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.cl-why__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cl-why__stat {
  background: var(--cl-primary);
  border-radius: var(--cl-radius);
  padding: 40px 24px;
  text-align: center;
}

.cl-why__stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--cl-secondary);
  line-height: 1;
  margin-bottom: 12px;
}

.cl-why__stat-label {
  display: block;
  font-size: 13px !important;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   CTA BLOCK
═══════════════════════════════════════════ */
.cl-cta-block {
  background-color: var(--cl-primary) !important;
  padding: 80px 0;
}

.cl-cta-block__inner {
  text-align: center;
}

.cl-cta-block__title {
  font-size: clamp(2rem, 4vw, 2rem);
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 16px;
}

.cl-cta-block__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88) !important;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cl-cta-block .cl-btn--primary {
  background-color: var(--cl-secondary);
  color: var(--cl-primary);
  border-color: var(--cl-secondary);
}

.cl-cta-block .cl-btn--primary:hover {
  background-color: var(--cl-secondary-dark);
  border-color: var(--cl-secondary-dark);
  color: var(--cl-primary);
  box-shadow: 0 6px 20px rgba(200,169,110,0.4);
}

/* ═══════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════ */
.cl-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.cl-contact__grid .cl-section-title {
  text-align: left;
}

.cl-contact__intro {
  color: var(--cl-text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin: 16px 0 36px;
}

.cl-contact__data {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cl-contact__data-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 14px;
}

.cl-contact__data-item a {
  color: var(--cl-text);
  text-decoration: none;
  transition: color var(--cl-transition);
}

.cl-contact__data-item a:hover {
  color: var(--cl-accent);
}

.cl-contact__data-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--cl-secondary);
}

/* CF7 form reset */
.cl-contact__form .wpcf7-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cl-text);
  margin-bottom: 6px;
}

.cl-contact__form .wpcf7-form input[type="text"],
.cl-contact__form .wpcf7-form input[type="email"],
.cl-contact__form .wpcf7-form input[type="tel"],
.cl-contact__form .wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius);
  font-size: 1.05rem;
  color: var(--cl-text);
  background: #fff;
  transition: border-color var(--cl-transition);
  margin-bottom: 20px;
}

.cl-contact__form .wpcf7-form input:focus,
.cl-contact__form .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--cl-secondary);
}

.cl-contact__form .wpcf7-form textarea {
  height: 140px;
  resize: vertical;
}

.cl-contact__form .wpcf7-form input[type="submit"] {
  background-color: var(--cl-secondary);
  color: var(--cl-primary);
  border: none;
  padding: 14px 36px;
  border-radius: var(--cl-radius);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--cl-transition);
  width: 100%;
}

.cl-contact__form .wpcf7-form input[type="submit"]:hover {
  background-color: var(--cl-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200,169,110,0.3);
}

/* ── Footer ── */
.btLightSkin .btSiteFooter,
.btDarkSkin .btLightSkin .btSiteFooter,
.btLightSkin .btSiteFooterWidgets,
.btDarkSkin .btLightSkin .btSiteFooterWidgets {
  background: var(--cl-primary) !important;
}

/* ── Active menu item ── */
nav a.active {
  color: var(--cl-secondary) !important;
  border-bottom: 2px solid var(--cl-secondary);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cl-about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cl-about__image-wrap {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }

  .cl-about__highlights {
    grid-template-columns: 1fr;
  }

  .cl-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cl-process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  .cl-process__steps::before {
    display: none;
  }

  .cl-why__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .cl-contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --cl-header-height: 150px;
  }

  .cl-section {
    padding: 60px 0;
  }

  .cl-hero {
    min-height: 100svh;
    align-items: flex-start;
    background-attachment: scroll;
  }

  .cl-hero__content {
    padding-top: calc(var(--cl-header-height) + 24px);
    padding-bottom: 56px;
    text-align: center;
  }

  .cl-hero__pretitle {
    justify-content: center;
    align-items: flex-start;
    font-size: 0.78rem;
    letter-spacing: 2px;
    line-height: 1.4;
    margin-bottom: 18px;
    width: 100%;
  }

  .cl-hero__pretitle::before {
    display: none;
  }

  .cl-hero__name {
    font-size: 1rem;
    letter-spacing: 3px;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
    max-width: 320px;
  }

  .cl-hero__title {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1.12;
    margin-bottom: 24px;
  }

  .cl-hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
  }

  .btVerticalMenuTrigger .btIco .btIcoHolder:before,
  .btHorizontalMenuTrigger .btIco .btIcoHolder:before {
    color: #fff !important;
    border-color: transparent !important;
  }

  .mainHeader .menuHolder .port {
    position: relative;
  }

  .mainHeader .menuHolder .logo {
    float: none;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 0;
  }

  .mainHeader .menuHolder .logo img {
    margin: 0 auto;
  }

  .btVerticalMenuTrigger,
  .btHorizontalMenuTrigger {
    z-index: 2;
  }

  .cl-credentials__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cl-services__grid {
    grid-template-columns: 1fr;
  }

  .cl-process__steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cl-process__step {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }

  .cl-process__number {
    margin: 0;
    flex-shrink: 0;
  }

  .cl-why__visual {
    grid-template-columns: 1fr 1fr;
  }

  .cl-hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .cl-hero__ctas .cl-btn,
  .cl-cta-block .cl-btn {
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cl-container {
    padding: 0 16px;
  }

  .cl-hero__content {
    padding-top: calc(var(--cl-header-height) + 18px);
  }

  .cl-hero__name {
    max-width: 280px;
  }

  .cl-credentials {
    padding: 40px 0;
  }

  .cl-why__visual {
    grid-template-columns: 1fr;
  }
}
