/* Fidel Amarres — fondo blanco, acentos rojo y #1b1d4b */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
:root {
  --color-navy: #1b1d4b;
  --color-red: #c41e3a;
  --color-red-dark: #9e1830;
}


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

html {
  scroll-behavior: smooth;
}

body.site-body {
  font-family: "Jost", sans-serif;
  font-style: normal;
  margin: 0;
  background: var(--theme-page-bg, #fff);
  color: var(--color-navy);
  line-height: 1.5;
}

a {
  color: var(--color-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--navy {
  background: var(--color-navy);
  color: #fff;
}

.btn--navy:hover {
  background: #12143a;
  color: #fff;
}

.btn--red {
  background: var(--color-red);
  color: #fff;
}

.btn--red:hover {
  background: var(--color-red-dark);
  color: #fff;
}

.btn--header-cta {
  background: var(--theme-nav-cta-bg, var(--color-red));
  color: #fff;
}

.btn--header-cta:hover {
  background: var(--theme-nav-cta-hover, var(--color-red-dark));
  color: #fff;
}

.btn--header-cta--nav .header-cta__wa-icon {
  display: none;
  flex-shrink: 0;
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn--ghost:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn--icon-only {
  padding: 0.55rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.btn--icon-only svg {
  display: block;
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--theme-nav-bg, #fff);
  /* Contenedor del panel de búsqueda a ancho completo */
  isolation: isolate;
}

.site-header--static {
  position: relative;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-header__left {
  justify-self: start;
}

.site-header__center {
  justify-self: center;
  text-align: center;
}

.site-header__right {
  justify-self: end;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-navy);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-red);
  text-decoration: none;
}

.site-logo img {
  max-height: 100px;
  width: auto;
  vertical-align: middle;
}

.search-toggle-wrap {
  position: relative;
  z-index: 120;
}

/* Debe ganar a .btn--icon-only svg { display: block } (mayor especificidad) */
.btn--icon-only svg.search-toggle__icon--open {
  display: block;
}

.btn--icon-only svg.search-toggle__icon--close {
  display: none;
}

.site-header--search-open .btn--icon-only svg.search-toggle__icon--open {
  display: none;
}

.site-header--search-open .btn--icon-only svg.search-toggle__icon--close {
  display: block;
}

.search-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 105;
  align-items: center;
  box-sizing: border-box;
  padding: 0;
  background: var(--theme-nav-bg, #fff);
}

.search-panel.is-open {
  display: flex;
}

.search-panel__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  box-sizing: border-box;
}

.search-panel__spacer {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  min-width: 2.75rem;
}

.search-panel__form {
  display: flex;
  flex: 1;
  min-width: 0;
  margin: 0;
  align-items: center;
}

.search-panel input[type="search"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(27, 29, 75, 0.2);
  border-radius: 50px;
  font: inherit;
  font-size: 1rem;
  color: var(--color-navy);
  background: var(--theme-page-bg, #fff);
}

.search-panel input[type="search"]::placeholder {
  color: rgba(27, 29, 75, 0.45);
}

.search-panel input[type="search"]:focus {
  outline: 2px solid rgba(196, 30, 58, 0.35);
  outline-offset: 2px;
  border-color: var(--color-red);
}

.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2rem;
}

.site-footer {
  border-top: 1px solid rgba(27, 29, 75, 0.12);
  background: var(--theme-page-bg, #fff);
  color: var(--color-navy);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.site-footer__line {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .site-footer__line {
    white-space: normal;
  }
}

.site-footer__email {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}

.site-footer__email a {
  color: var(--color-navy);
  text-decoration: none;
}

.site-footer__email a:hover {
  color: var(--color-red);
  text-decoration: underline;
}

.site-footer__legal {
  margin: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}

.site-footer__legal a {
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--color-red);
  text-decoration: underline;
}

.site-footer__legal-sep {
  color: rgba(27, 29, 75, 0.35);
  user-select: none;
}

.legal-page {
  padding-bottom: 2.5rem;
}

.legal-page__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.legal-page__prose section {
  margin-bottom: 1.5rem;
}

.legal-page__prose h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--color-navy);
}

.legal-page__prose.prose p {
  margin: 0 0 0.75rem;
}

.legal-page__prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-page__note {
  margin-top: 2rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: rgba(27, 29, 75, 0.75);
  background: rgba(27, 29, 75, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(27, 29, 75, 0.1);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 1.25rem;
}

/* Grid de cards estilo referencia */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  color: var(--theme-card-text, #fff);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(27, 29, 75, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 29, 75, 0.18);
  text-decoration: none;
  color: var(--theme-card-text, #fff);
}

.service-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top;
  background-color: var(--theme-card-bg, var(--color-navy));
}

.service-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.service-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card__title {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--theme-card-text, #fff);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.service-card__meta {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--theme-card-text, #fff);
  opacity: 0.92;
  line-height: 1.35;
}

.service-card__cta {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50px;
  background: var(--theme-card-cta-bg, var(--color-red));
  color: #fff;
  text-shadow: none;
  transition: background 0.2s ease;
  align-self: flex-start;
}

.service-card:hover .service-card__cta {
  background: var(--theme-card-cta-hover, var(--color-red-dark));
}

/* PDS */
.pds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.pds__gallery {
  position: sticky;
  top: 5.5rem;
}

.pds__main-slot {
  position: relative;
  width: 100%;
}

.pds__main-img {
  width: 100%;
  object-position: top;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: #f0f0f5;
  display: block;
}

.pds__main-img[hidden] {
  display: none !important;
}

.pds__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pds__thumb-btn {
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  background: none;
  overflow: hidden;
  opacity: 0.88;
  line-height: 0;
}

.pds__thumb-btn:hover,
.pds__thumb-btn.is-active {
  border-color: var(--color-red);
  opacity: 1;
}

.pds__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.pds__thumb--video {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.pds__content h1 {
  font-size: 1.75rem;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--color-navy);
}

.pds__duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: -0.35rem 0 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
}

.pds__duration-icon {
  flex-shrink: 0;
  color: var(--color-red);
  opacity: 0.95;
}

.pds__duration-text {
  line-height: 1.3;
}

.pds__content .prose {
  color: var(--color-navy);
  font-size: 1.05rem;
}
  .pds__content .prose pre {
    text-wrap: auto;
  }

.pds__content .prose a {
  color: var(--color-red);
}

.pds__content .prose p {
  margin: 0 0 1rem;
}

.pds__content .prose ul,
.pds__content .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.pds__content .prose h2,
.pds__content .prose h3 {
  color: var(--color-navy);
  margin: 1.25rem 0 0.5rem;
}

.pds__content .prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.pds__actions {
  margin-top: 1.75rem;
}

.pds__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.pds__cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.pds__cta-call {
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  border: 1px solid var(--color-navy);
}

.pds__cta-call-text {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.2;
}

.pds__cta-call-num {
  color: var(--color-navy);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pds__cta-call-icon {
  color: var(--color-navy);
  flex-shrink: 0;
}

.pds__cta-call:hover {
  background: var(--color-navy);
  color: #fff;
}

.pds__cta-call:hover > .pds__cta-call-text,
.pds__cta-call:hover .pds__cta-call-num,
.pds__cta-call:hover > .pds__cta-call-icon {
  color: #fff !important;
}


.pds__cta-wa-icon {
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-navy);
  opacity: 0.85;
}

.page-404 {
  text-align: center;
  padding: 1rem 1rem 2.5rem;
  max-width: 28rem;
  margin: 0 auto;
}

.page-404__code {
  margin: 0 0 0.35rem;
  font-size: clamp(3.5rem, 12vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-red);
  letter-spacing: -0.04em;
}

.page-404__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

.page-404__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--color-navy);
  opacity: 0.88;
  line-height: 1.5;
}

.page-404__actions {
  margin: 0;
}

@media (max-width: 768px) {
  .btn--header-cta--nav {
    padding: 0.55rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .service-card { 
    aspect-ratio: 4 / 3;
  }

  .btn--header-cta--nav .header-cta__wa-icon {
    display: block;
  }

  .btn--header-cta--nav .header-cta__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
  }

  .search-panel__inner {
    gap: 0.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .site-header__center {
    min-width: 0;
  }

  .site-logo {
    font-size: 0.95rem;
  }

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

  .pds__gallery {
    position: static;
  }
}
