/* =============================================
   CREATIVA — Fórmula Creativa
   Design polish, animations & overrides
   ============================================= */

/* ---------- Font Face ---------- */
@font-face {
  font-family: "Aktifo";
  src: url("/wp-content/uploads/fonts/Aktifo-B%20Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Site Header ---------- */
.site-header.dynamic-header {
  display: flex !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999 !important;
  background: transparent !important;
  padding: 0 80px !important;
  min-height: 130px;
  transition: background 0.3s ease;
}
.site-header.dynamic-header .header-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-header.dynamic-header .site-logo img {
  max-height: 45px;
  width: auto;
}
.site-header.dynamic-header .site-navigation .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 27px;
}
.site-header.dynamic-header .site-navigation .menu li {
  display: flex;
}
.site-header.dynamic-header .site-navigation .menu li a {
  font-size: 21.6px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.9) !important;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
  text-decoration: none;
  font-family: "Aktifo", sans-serif;
}
.site-header.dynamic-header .site-navigation .menu li a:hover {
  color: #a68759 !important;
}
.site-header.dynamic-header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
.site-header.dynamic-header.scrolled .site-navigation .menu li a {
  color: #555 !important;
}
.site-header.dynamic-header.scrolled .site-navigation .menu li a:hover {
  color: #a68759 !important;
}
.site-header.dynamic-header.scrolled .site-logo img {
  filter: brightness(0.3);
}

/* ---------- Hero Section ---------- */
.hero-home {
  position: relative !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 0 80px !important;
  padding-bottom: 100px !important;
  overflow: hidden;
}
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 30, 50, 0.3) 0%,
    rgba(10, 30, 50, 0.5) 50%,
    rgba(10, 30, 50, 0.7) 100%
  );
  z-index: 1;
}
.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
  z-index: 1;
}
.hero-home > .elementor-container,
.hero-home > .e-con-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-home .hero-row,
.hero-home > .elementor-element-hero_row {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  width: 100%;
  gap: 40px;
}

/* ---------- Hero Heading ---------- */
.hero-home h1,
.hero-home .elementor-heading-title,
.elementor-widget-heading h1 {
  font-weight: 900 !important;
  font-size: clamp(48px, 6.25vw, 120px) !important;
  line-height: 0.9 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ---------- H2 Section Headings ---------- */
.elementor-widget-heading h2 {
  font-weight: 700 !important;
  font-size: clamp(24px, 2.4vw, 37px) !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}
.elementor-41
  .elementor-element.elementor-element-wgt21601
  .elementor-heading-title {
  font-size: clamp(24px, 2.4vw, 37px) !important;
}
.hero-home .elementor-element-h_left {
  flex: 1 !important;
  align-self: flex-end !important;
}

/* ---------- Hero Button ---------- */
.hero-home .elementor-element-h_right {
  align-self: flex-end !important;
  flex-shrink: 0 !important;
  margin-bottom: 10px !important;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.anim-fade-up {
  animation: fadeInUp 0.8s ease forwards;
}
.anim-fade-left {
  animation: fadeInLeft 0.8s ease forwards;
}
.anim-fade-right {
  animation: fadeInRight 0.8s ease forwards;
}

/* ---------- Pricing Cards (if needed) ---------- */
.pricing-card {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* ---------- Client Plugin (legacy) ---------- */
#OutClient {
  display: none;
  max-width: 960px;
  width: 100%;
}
#newClients input[type="text"] {
  margin-bottom: 10px;
}
.buttonA {
  background: blue;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  float: right;
  margin-bottom: 10px;
  border-radius: 10px;
}
.boxGeneral {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
.deleteClients {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-home {
    padding: 0 40px !important;
    padding-bottom: 80px !important;
  }
  .hero-home .hero-row,
  .hero-home > .elementor-element-hero_row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  .hero-home .elementor-heading-title {
    font-size: clamp(50px, 10vw, 90px) !important;
  }
}
@media (max-width: 767px) {
  .hero-home {
    padding: 0 20px !important;
    padding-bottom: 60px !important;
  }
  .hero-home .elementor-heading-title {
    font-size: clamp(40px, 14vw, 80px) !important;
  }
  .hero-home .elementor-button {
    font-size: 14px !important;
    padding: 12px 24px !important;
  }
  /* Body text mobile */
  .elementor-widget-text-editor p {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
  /* Form labels mobile */
  .elementor-field-group label,
  .elementor-form label {
    font-size: 16px !important;
  }
  /* Contact form button mobile */
  .elementor-form .elementor-button,
  .elementor-form button[type="submit"] {
    height: 48px !important;
    padding: 12px 32px !important;
    font-size: 18px !important;
    border-radius: 24px !important;
  }
  /* Servicios row title mobile */
  .cs-row__title {
    font-size: 22px !important;
  }
  .cs-row__img {
    height: 220px !important;
  }
  /* Service category heading mobile */
  .elementor-heading-title {
    word-break: normal;
  }
}

/* Botón dorado — secundario "Ver más" */
.btn-gold .elementor-button,
.elementor-button.btn-gold,
a.btn-gold {
  background: linear-gradient(
    135deg,
    #bca273 0%,
    #c6ae7c 33%,
    #d7bc8a 100%
  ) !important;

  color: #000000 !important;
  border: none !important;
  border-radius: 999px !important;

  height: 42.7px !important;
  padding: 8px 23px !important;
  font-size: 20.6px !important;
  font-weight: 400 !important;
  font-family: "Akzidenz-Grotesk BQ Light", "Inter", sans-serif !important;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: all 0.3s ease;
}

.btn-gold .elementor-button:hover,
.elementor-button.btn-gold:hover,
a.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  color: #000000 !important;
}
.btn-gold .elementor-button-text,
.btn-gold i,
.btn-gold svg {
  color: inherit !important;
  fill: currentColor;
}

/* ---------- Black squircle icon inside secondary buttons ---------- */

.btn-gold .elementor-button-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  background: #000000 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 13px !important;
}
.btn-gold .elementor-button-icon i,
.btn-gold .elementor-button-icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  font-size: 13px !important;
}

/* Botón primario — CTA hero/formulario — high specificity override */
.elementor-element-c919200 .elementor-button,
.btn-hero-cta,
.hero-home .elementor-button,
.elementor-element-hc .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: none !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  font-family: "Akzidenz-Grotesk BQ Light", "Inter", sans-serif !important;
  font-size: 31.5px !important;
  font-weight: 400 !important;
  padding: 16px 40px !important;
  height: 68.8px !important;
  border-radius: 34.4px !important;
  border: none !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  white-space: nowrap !important;
}
.elementor-element-c919200 .elementor-button:hover,
.btn-hero-cta:hover,
.hero-home .elementor-button:hover,
.elementor-element-hc .elementor-button:hover {
  background: #1a1a1a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px) !important;
}
.elementor-element-c919200 .elementor-button-icon,
.btn-hero-cta .elementor-button-icon,
.hero-home .elementor-button-icon,
.elementor-element-hc .elementor-button-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 35px !important;
  height: 35px !important;
  min-width: 35px !important;
  background: #000000 !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 16px !important;
}
.elementor-element-c919200 .elementor-button-icon i,
.elementor-element-c919200 .elementor-button-icon svg,
.btn-hero-cta .elementor-button-icon i,
.btn-hero-cta .elementor-button-icon svg,
.hero-home .elementor-button-icon i,
.hero-home .elementor-button-icon svg,
.elementor-element-hc .elementor-button-icon i,
.elementor-element-hc .elementor-button-icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  font-size: 16px !important;
}

/* =============================================
   SERVICIOS — Categories + Posts
   Using cs-* classes from categorias-servicios plugin
   ============================================= */

/* Ocultar el Loop Grid original de Elementor */
.elementor-element-b14a4a5 {
  display: none !important;
}

/* Ocultar page header duplicado */
.page-header {
  display: none !important;
}

/* ---------- Contenedor principal (from categorias-servicios.css) ---------- */
.cs-servicios {
  max-width: 1200px;
  margin: 0 auto;
}

.page-id-41 .elementor-button-icon {
  display: none;
}

.cs-row__text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-row--reversed .cs-row__text .cs-row__text_inner {
  text-align: left;
}

.cs-row__text_inner {
  width: 70%;
}
/* ---------- Fila individual ---------- */
.cs-row {
  display: flex;
  min-height: 400px;
}

.cs-row--reversed {
  flex-direction: row-reverse;
}

.cs-row--white {
  background: #ffffff;
}

.cs-row--cream {
  background: #f7f5f0;
}

/* --- Columna de texto --- */
.cs-row__text {
  width: 50%;
  padding: 30px 0;
}

.cs-row--reversed .cs-row__text {
  text-align: right;
}

.cs-row--reversed .cs-row__btn {
  margin-left: auto;
}

/* --- Titulo --- */
.cs-row__title {
  margin: 0 0 12px;
  font-family: "Aktifo", "Aktifo-B Black", "Impact", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #b5923a;
}

/* --- Descripcion --- */
.cs-row__desc {
  margin: 0 0 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #6f6a5e;
}

/* --- Boton --- */
.cs-row__text .elementor-widget-button {
  display: inline-block;
}

.cs-row--reversed .cs-row__text .elementor-widget-button {
  margin-left: auto;
}

.cs-row__btn {
  display: inline-block;
}

/* --- Imagen --- */
.cs-row__media {
  width: 50%;
  position: relative;
  overflow: hidden;
}

.cs-row__img {
  display: block;
  width: 100%;
  height: 320px !important;
  object-fit: cover;
  border-radius: 18px;
}

/* --- Responsive cs-row --- */
@media (max-width: 991px) {
  .cs-row,
  .cs-row--reversed {
    flex-direction: column;
    gap: 24px;
    min-height: auto;
  }
  .cs-row__text,
  .cs-row--reversed .cs-row__text {
    flex: none;
    width: 100%;
    text-align: left;
  }
  .cs-row--reversed .cs-row__btn {
    margin-left: 0;
  }
  .cs-row__media {
    flex: none;
    width: 100%;
  }
  .cs-row__img {
    height: 260px;
  }
}

@media (max-width: 575px) {
  .cs-row__title {
    font-size: 22px;
  }
  .cs-row__img {
    height: 220px;
  }
}

/* =============================================
   SERVICIOS — Modal Overlay
   ============================================= */
.cs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  padding: 40px;
}

.cs-modal-overlay--active {
  opacity: 1;
  visibility: visible;
}

.cs-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cs-modal-overlay--active .cs-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.cs-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 10;
  transition: background 0.2s ease;
}

.cs-modal__close:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Modal slider (replaces imagen) */
.cs-modal__slider {
  position: relative !important;
  width: 100% !important;
  height: 350px !important;
  overflow: hidden !important;
  border-radius: 12px 12px 0 0 !important;
  background: #1a1a1a !important;
}

.cs-modal__slider-track {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  height: 100% !important;
  transition: transform 0.4s ease !important;
}

.cs-modal__slide {
  min-width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.cs-modal__slider-prev,
.cs-modal__slider-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  z-index: 5 !important;
  transition: background 0.2s ease !important;
  line-height: 1 !important;
}

.cs-modal__slider-prev { left: 12px !important; }
.cs-modal__slider-next { right: 12px !important; }

.cs-modal__slider-prev:hover,
.cs-modal__slider-next:hover {
  background: rgba(0, 0, 0, 0.9) !important;
}

/* Modal content */
.cs-modal__content {
  padding: 32px 36px 36px;
}

.cs-modal__title {
  font-family: "Aktifo-B Black", "Aktifo", "Impact", "Arial Black", sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #2c2417;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  line-height: 1.2;
}

.cs-modal__desc {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #4a4540;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

.cs-modal__desc p {
  margin: 0 0 10px 0;
}

.cs-modal__incluye {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: #4a4540;
  background: #f7f5f0;
  padding: 16px 20px;
  border-radius: 8px;
}

.cs-modal__incluye strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2c2417;
}

.cs-modal__incluye ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.cs-modal__incluye li {
  margin-bottom: 3px;
  line-height: 1.6;
}

/* Scrollbar styling */
.cs-modal::-webkit-scrollbar {
  width: 6px;
}

.cs-modal::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 0 12px 0;
}

.cs-modal::-webkit-scrollbar-thumb {
  background: #c4b99a;
  border-radius: 3px;
}

/* Responsive modal */
@media (max-width: 767px) {
  .cs-modal-overlay {
    padding: 20px;
  }
  .cs-modal__slider {
    height: 220px;
  }
  .cs-modal__slider-prev,
  .cs-modal__slider-next {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  .cs-modal__content {
    padding: 24px 20px 28px;
  }
  .cs-modal__title {
    font-size: 20px;
  }
}

/* =============================================
   MODAL — Gallery Slider
   ============================================= */

/* =============================================
   LIGHTBOX
   ============================================= */
.cs-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.cs-lightbox--active {
  opacity: 1;
  visibility: visible;
}

.cs-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 10;
  transition: background 0.2s ease;
}

.cs-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cs-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}

/* ---------- Posts Container (beneath each category) ---------- */
.cs-posts-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 40px;
}

.cs-posts--open {
  overflow: visible;
}

/* ---------- Cards Grid ---------- */
.cs-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 30px 0 40px;
}

/* ---------- Individual Card ---------- */
.cs-card {
  background: #f0e6d2;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* --- Card Image --- */
.cs-card__imagen {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.cs-card__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cs-card:hover .cs-card__imagen img {
  transform: scale(1.05);
}

/* --- Card Content --- */
.cs-card__content {
  padding: 20px;
}

.cs-card__title {
  font-family: "Aktifo-B Black", "Aktifo", "Impact", "Arial Black", sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #2c2417;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  line-height: 1.2;
}

.cs-card__desc {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #4a4540;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.cs-card__desc p {
  margin: 0;
}

/* --- INCLUYE section --- */
.cs-card__incluye {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  color: #4a4540;
}

.cs-card__incluye strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.cs-card__incluye ul {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
}

.cs-card__incluye li {
  margin-bottom: 2px;
  line-height: 1.5;
}

/* ---------- Empty State ---------- */
.cs-servicios-empty {
  text-align: center;
  padding: 30px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #999;
}

/* ---------- Animation ---------- */
@keyframes csFadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Load More Button ---------- */
.cs-load-more-wrap {
  text-align: center;
  padding: 20px 0 10px;
}

.cs-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #a68759;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 28px;
  border: 2px solid #a68759;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cs-load-more-btn:hover {
  background: #a68759;
  color: #fff;
  box-shadow: 0 4px 12px rgba(166, 135, 89, 0.3);
}

.cs-load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cs-load-more-btn.cs-load-more--expanded {
  border-color: #999;
  color: #666;
}

.cs-load-more-btn.cs-load-more--expanded:hover {
  background: #666;
  border-color: #666;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .cs-posts-container {
    padding: 0 20px;
  }
  .cs-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .cs-card__imagen {
    height: 180px;
  }
}

@media (max-width: 767px) {
  .cs-posts-container {
    padding: 0 15px;
  }
  .cs-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cs-card__imagen {
    height: 200px;
  }
  .cs-card__title {
    font-size: 15px;
  }
}

/* =============================================
   CLIENTES — Carousel & Map Section
   ============================================= */

/* Hide the default WP page title */
.page-id-16 .page-header {
  display: none !important;
}

/* Map section — make image float */
.elementor-element-sec10659
  .elementor-column.elementor-col-50:last-child
  .elementor-widget-image
  img {
  max-width: 120% !important;
  margin-left: -10% !important;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Swirl decorations on clientes page */
.elementor-element-sec91729,
.elementor-element-sec10659 {
  position: relative;
  overflow: visible;
}

.elementor-element-sec91729::after,
.elementor-element-sec10659::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    ellipse at center,
    rgba(201, 185, 151, 0.3) 0%,
    rgba(201, 185, 151, 0.1) 40%,
    transparent 70%
  );
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  z-index: 0;
  pointer-events: none;
}

.elementor-element-sec91729::after {
  top: -60px;
  right: -40px;
  transform: rotate(25deg);
}

.elementor-element-sec10659::before {
  bottom: -40px;
  left: -30px;
  transform: rotate(-30deg);
}

@media (max-width: 767px) {
  .elementor-element-sec10659
    .elementor-column.elementor-col-50:last-child
    .elementor-widget-image
    img {
    max-width: 100% !important;
    margin-left: 0 !important;
  }
  .elementor-element-sec91729::after,
  .elementor-element-sec10659::before {
    width: 180px;
    height: 180px;
  }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: #000000 !important;
  height: 200px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 183px 0 183px !important;
}
footer.site-footer .footer-inner {
  width: 100%;
  max-width: 1554px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

/* Logo — stacked wordmark */
footer.site-footer .footer-logo {
  flex-shrink: 0;
  width: 258px;
}
footer.site-footer .footer-logo img {
  height: 113px;
  width: 258px;
  object-fit: contain;
  object-position: left center;
}

/* Dividers — gold gradient vertical line */
footer.site-footer .footer-divider {
  width: 0.6px;
  height: 133px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #a68759 0%, #e8cb91 50%, #a68759 100%);
  align-self: center;
}

/* Footer menu */
footer.site-footer .footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
footer.site-footer .footer-menu .menu {
  display: flex;
  gap: 27px;
  list-style: none;
  margin: 0;
  padding: 0;
}
footer.site-footer .footer-menu .menu li a {
  font-family: "Aktifo", sans-serif;
  font-size: 21.6px;
  font-weight: 900;
  color: #ffffff !important;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer.site-footer .footer-menu .menu li a:hover {
  color: #a68759 !important;
}

/* Social icons — white glyphs, no background */
footer.site-footer .footer-social-icons {
  display: flex;
  align-items: center;
  gap: 38px;
  flex-shrink: 0;
}
footer.site-footer .footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s ease;
  width: auto;
  height: auto;
  background: none !important;
  border-radius: 0 !important;
}
footer.site-footer .footer-social-icons a:hover {
  color: #a68759 !important;
}

/* ---------- Responsive — Tablet ---------- */
@media (max-width: 1024px) {
  .elementor-widget-heading h1 {
    font-size: clamp(40px, 8vw, 80px) !important;
  }
  .elementor-widget-heading h2 {
    font-size: clamp(20px, 3vw, 30px) !important;
  }
  .site-header.dynamic-header {
    padding: 0 30px !important;
  }
  footer.site-footer {
    height: auto !important;
    padding: 0 60px !important;
  }
  footer.site-footer .footer-divider {
    display: none;
  }
  footer.site-footer .footer-inner {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  footer.site-footer .footer-menu {
    order: -1;
    width: 100%;
  }
}

/* ---------- Responsive — Mobile ---------- */
@media (max-width: 767px) {
  .site-header.dynamic-header {
    padding: 0 15px !important;
    min-height: 80px !important;
  }
  .site-header.dynamic-header .site-navigation .menu {
    gap: 15px !important;
  }
  .site-header.dynamic-header .site-navigation .menu li a {
    font-size: 16px !important;
  }
  footer.site-footer {
    height: auto !important;
    padding: 0 20px !important;
  }
  footer.site-footer .footer-divider {
    display: none;
  }
  footer.site-footer .footer-inner {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  footer.site-footer .footer-menu {
    order: -1;
    width: 100%;
  }
  footer.site-footer .footer-menu .menu {
    gap: 15px !important;
    flex-wrap: wrap;
    justify-content: center;
  }
  footer.site-footer .footer-menu .menu li a {
    font-size: 16px !important;
  }
  footer.site-footer .footer-social-icons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px !important;
  }
  footer.site-footer .footer-social-icons a {
    font-size: 28px !important;
  }
  .elementor-form label.elementor-field-label {
    font-size: 16px !important;
  }
  .btn-gold .elementor-button,
  .elementor-button.btn-gold {
    height: 38px !important;
    padding: 6px 18px !important;
    font-size: 16px !important;
  }
  .hero-home .elementor-button,
  .elementor-element-hc .elementor-button {
    height: 50px !important;
    padding: 12px 24px !important;
    font-size: 20px !important;
  }
}

/* ---------- Paragraph line-height ---------- */
.elementor-widget-text-editor p {
  line-height: 1.2 !important;
}
