/* ==========================================================================
   Amadeo Santos — Estilos globales
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */
:root {
  --c1: #BAC2C5;
  --c2: #F3F2F0;
  --c3: #403E63;
  --c4: #0f121b;
  --c5: #F23D3D;

  --text: #0B1016;
  --muted: #5a6771;
  --wrap: min(1150px, 92vw);
  --radius: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --header-h: 64px;
  --touch-min: 44px;
  --transition: 0.25s ease;
  --section-pad-y: clamp(1.2rem, 5vw, 1.2rem);
  --hero-pad-bottom: 1.5rem;
  --hero-content-top: clamp(1.25rem, 3vw, 2rem);
}

/* --------------------------------------------------------------------------
   Base / Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c3);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  scroll-margin-top: var(--header-h);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

main .wrap,
.contact-page .wrap,
.hero .content.wrap {
  padding-inline: clamp(1rem, 4vw, 1.25rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Header / Navegación
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c4);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo img {
  width: min(272px, 58vw);
  height: auto;
  max-height: 40px;
  display: block;
}

#menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  justify-content: center;
  align-items: center;
}

.menu-btn span {
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background var(--transition);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: #fff;
  opacity: 0.9;
  transition: color var(--transition), opacity var(--transition);
}

nav a:hover {
  color: var(--c5);
  opacity: 1;
  text-decoration: none;
}

.pill {
  background: var(--c5);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
  white-space: nowrap;
}

.pill:hover,
.pill:focus-visible {
  color: var(--c4);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(242, 61, 61, 0.28);
}

@media (max-width: 900px) {
  .menu-btn {
    display: flex;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    margin-left: 0;
  }

  nav ul {
    display: none;
  }

  #menu-toggle:checked ~ nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--c4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.25rem;
    gap: 0.8rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }

  nav .pill {
    margin-top: 0;
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(360px, 50svh, 540px);
  display: grid;
  place-items: start center;
  align-content: start;
  background: var(--c4) url("../../img/bg.jpg") center/cover no-repeat;
  color: #fff;
  padding: calc(var(--header-h) + var(--hero-content-top)) 0 var(--hero-pad-bottom);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 18, 27, 1),
    rgba(15, 18, 27, 0.7) 30%,
    rgba(15, 18, 27, 0.3) 60%,
    rgba(15, 18, 27, 0) 100%
  );
  z-index: -1;
}

.hero .content {
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  margin-top: 0;
  text-align: center;
  box-sizing: border-box;
}

.hero .content.wrap {
  align-self: stretch;
}

.kicker {
  display: inline-block;
  background: rgba(243, 242, 240, 0.3);
  color: var(--c4);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 0.6rem;
}

.hero h1 {
  margin: 0.2rem 0 0.6rem;
  font-family: "Rancho", cursive;
  line-height: 1.1;
  font-weight: bold;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 60ch;
  margin: 0 auto 1.2rem;
  text-align: center;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  background: var(--c5);
  color: #fff;
  font-weight: 800;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.cta-primary:hover {
  background: #fff;
  color: var(--c5);
  text-decoration: none;
  transform: translateY(-2px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.cta-secondary:hover {
  background: #fff;
  color: var(--c4);
  text-decoration: none;
}

.hero .galaxy-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero .galaxy-background::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    radial-gradient(2px 2px at 40px 60px, #FCF2C5, transparent),
    radial-gradient(2px 2px at 20px 50px, #FCF2C5, transparent),
    radial-gradient(3px 3px at 30px 100px, #FCF2C5, transparent),
    radial-gradient(1px 1px at 70px 200px, #FCF2C5, transparent),
    radial-gradient(2px 2px at 160px 120px, #FCF2C5, transparent),
    radial-gradient(2px 2px at 200px 90px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(2px 2px at 300px 220px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(3px 3px at 350px 340px, #FCF2C5, transparent);
  background-repeat: repeat;
  background-size: 400px 400px;
  animation: stars-move 40s linear infinite;
  opacity: 0.55;
}

@keyframes stars-move {
  0% { transform: translateY(0); }
  100% { transform: translateY(-400px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .galaxy-background::before {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Secciones genéricas
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-pad-y) 0;
}

.section-alt {
  background: var(--c4);
}

.section h2,
.about h2 {
  font-family: "Rancho", cursive;
  color: var(--c5);
  font-size: clamp(2rem, 4vw, 4rem);
  margin: 0 0 0.6rem;
}

.section-alt h2 {
  color: #fff;
}

.lead {
  color: var(--muted);
}

.lead-light {
  color: #e9e8f8;
}

.section-intro {
  margin: 0 0 1rem;
}

/* --------------------------------------------------------------------------
   Sobre mí
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}

.about .card {
  background: rgba(252, 252, 252, 0.78);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid #e7eaec;
  border-radius: var(--radius);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  box-shadow: var(--shadow);
  align-self: start;
}

.about .side {
  position: relative;
  display: block;
  min-height: clamp(260px, 38vw, 520px);
}

.portrait {
  position: absolute;
  left: 5%;
  bottom: 0;
  object-fit: cover;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

@media (max-width: 860px) {
  .about .side {
    min-height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .portrait {
    position: static;
    margin-top: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */
.services-section {
  background: var(--c4);
  color: #fff;
}

.services-section h2 {
  color: #fff;
}

/* Inicio: slider de servicios */
.home-services-slider {
  margin-top: 1.25rem;
}

.home-services-slider__stage {
  position: relative;
}

.home-services-slider__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-inline: 2.75rem;
  padding: 0.5rem 0 0.75rem;
}

.home-services-slider__viewport::-webkit-scrollbar {
  display: none;
}

.home-services-slider__viewport:focus-visible {
  outline: 2px solid var(--c5);
  outline-offset: 4px;
  border-radius: 8px;
}

.home-services-slider.is-single-page .home-services-slider__footer {
  opacity: 0.5;
}

.home-services-slider__track {
  display: flex;
  gap: 1rem;
}

.home-services-slider__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(2rem, 8vw, 3.5rem);
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.home-services-slider__fade.is-hidden {
  opacity: 0;
}

.home-services-slider__fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--c4) 15%, transparent);
}

.home-services-slider__fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--c4) 15%, transparent);
}

.home-services-slider__btn {
  appearance: none;
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 18, 27, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: background var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition);
}

.home-services-slider__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.05);
}

.home-services-slider__btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.home-services-slider__btn--prev {
  left: 0.35rem;
}

.home-services-slider__btn--next {
  right: 0.35rem;
}

.home-services-slider__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.35rem;
}

.home-services-slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.home-services-slider__dot {
  appearance: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.home-services-slider__dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.home-services-slider__dot.is-active {
  width: 1.6rem;
  background: var(--c5);
}

.home-services-slider__status {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.home-service-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 0 0 var(--slide-size, 280px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.35rem 1.1rem;
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    opacity 0.35s ease,
    transform var(--transition);
}

.home-service-card::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 15%,
    rgba(255, 255, 255, 0.05) 28%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.05) 72%,
    transparent 85%
  );
  transform: translateX(-160%);
  transition: opacity 0.35s ease, transform 0s 0.35s;
}

.home-service-card > * {
  position: relative;
  z-index: 2;
}

.home-service-card.is-active {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.home-service-card:not(.is-active) {
  opacity: 0.72;
}

.home-service-card:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 12px rgba(242, 61, 61, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.home-service-card:hover::before {
  opacity: 1;
  transform: translateX(160%);
  transition: transform 0.85s ease, opacity 0.12s ease;
}

.home-service-card:hover .home-service-card__icon-wrap {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 10px rgba(242, 61, 61, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .home-service-card::before {
    display: none;
  }

  .home-service-card:hover {
    transform: none;
  }
}

@media (max-width: 599px) {
  .home-services-slider__viewport {
    scroll-padding-inline: 1rem;
  }

  .home-services-slider__track {
    padding-inline: 0.35rem;
  }

  .home-service-card {
    scroll-snap-align: center;
  }

  .home-services-slider__btn--prev {
    left: 0.15rem;
  }

  .home-services-slider__btn--next {
    right: 0.15rem;
  }

  .home-services-slider__btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.home-service-card__icon-wrap {
  display: block;
  flex-shrink: 0;
  width: clamp(7.5rem, 34vw, 10.5rem);
  height: clamp(7.5rem, 34vw, 10.5rem);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 0.15rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.home-service-card__icon {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.home-service-card h3 {
  margin: 0.85rem 0 0.35rem;
  font-family: "Rancho", cursive;
  font-size: 2.35rem;
  font-weight: 400;
  color: var(--c5);
}

.home-service-card p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.92;
  line-height: 1.45;
}

.home-services-more {
  margin-top: 1.75rem;
  text-align: center;
}

.about .btn-outline {
  margin-top: 1rem;
}

.btn-outline--light {
  color: #fff;
  border-color: #fff;
}

.btn-outline--light:hover {
  background: #fff;
  color: var(--c4);
}

.btn-outline--dark {
  color: var(--c3);
  border-color: var(--c3);
}

.btn-outline--dark:hover {
  background: var(--c3);
  color: #fff;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 3vw, 2.6rem);
}

.service-row {
  display: grid;
  gap: clamp(1rem, 2.2vw, 2rem);
  grid-template-columns: 1fr;
  align-items: center;
}

.service-media {
  display: flex;
  justify-content: center;
}

.service-media a {
  display: block;
  border-radius: 999px;
  line-height: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-media a:hover {
  transform: scale(1.03);
  text-decoration: none;
}

.service-media a:focus-visible {
  outline: 3px solid var(--c5);
  outline-offset: 4px;
}

.service-img {
  width: clamp(220px, 36vw, 360px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  border: 8px solid rgba(252, 252, 252, 0.78);
  box-shadow: var(--shadow);
}

.service-copy {
  max-width: 70ch;
  justify-self: center;
}

.service-row--single .service-copy {
  max-width: 100%;
  justify-self: stretch;
  width: 100%;
}

.service-title {
  font-family: "Rancho", cursive;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: 0.3px;
  line-height: 1.15;
  margin: 0.3rem 0 0.6rem;
  color: var(--c5);
}

.service-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

.service-title a:hover,
.service-title a:focus-visible {
  color: #fff;
  text-decoration: none;
}

.service-copy p {
  opacity: 0.95;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  margin-top: 0.6rem;
  transition: background var(--transition), color var(--transition);
}

.btn-outline:hover {
  background: #fff;
  color: var(--c4);
  text-decoration: none;
}

.highlight {
  background: rgba(243, 242, 240, 0.08);
  border-left: 6px solid var(--c5);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin: 0.9rem 0;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
}

.service-breadcrumb {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  color: #e9e8f8;
}

.service-breadcrumb a {
  color: #fff;
  text-decoration: underline;
}

.service-back {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: right;
}

.service-back a {
  color: #fff;
  text-decoration: underline;
}

.service-row--single {
  margin-top: 0.5rem;
}

/* Contenido ampliado SEO en páginas de servicio */
.service-detail {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.service-detail h2 {
  font-family: "Rancho", cursive;
  color: var(--c5);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 1.8rem 0 0.6rem;
  line-height: 1.15;
}

.service-detail h2:first-child {
  margin-top: 0;
}

.service-detail h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 1.2rem 0 0.4rem;
}

.service-detail p {
  opacity: 0.95;
  margin: 0.85rem 0;
}

.service-detail ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  opacity: 0.95;
}

.service-detail li {
  margin-bottom: 0.35rem;
}

.service-detail a {
  color: #fff;
  text-decoration: underline;
}

.service-detail a:hover {
  color: var(--c5);
}

.service-faq {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.service-faq details {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.service-faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.service-faq summary::-webkit-details-marker {
  display: none;
}

.service-faq summary::after {
  content: "+";
  float: right;
  font-weight: 800;
  color: var(--c5);
}

.service-faq details[open] summary::after {
  content: "−";
}

.service-faq details p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.service-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
}

.service-related a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.service-related a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--c5);
  text-decoration: none;
}

.service-cta-block {
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(242, 61, 61, 0.12);
  border: 1px solid rgba(242, 61, 61, 0.35);
  border-radius: var(--radius);
  text-align: center;
}

.service-cta-block p {
  margin: 0 0 1rem;
  font-weight: 600;
}

@media (min-width: 980px) {
  .service-row {
    grid-template-columns: 1fr 1.1fr;
  }

  .services-list .service-row:nth-child(even) .service-media {
    order: 2;
  }

  .services-list .service-row:nth-child(even) .service-copy {
    order: 1;
  }
}

/* --------------------------------------------------------------------------
   Galería (index + página)
   -------------------------------------------------------------------------- */
.section-dark {
  background: var(--c4);
  color: #fff;
}

.section-dark h2 {
  color: #fff;
}

.gallery-section h2 {
  color: var(--c3);
}

.gallery-section.section-dark h2 {
  color: #fff;
}

.section-dark .gallery img {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.gallery {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.gallery img,
.gallery-thumb {
  border-radius: 12px;
  width: 100%;
  height: clamp(140px, 22vw, 190px);
  object-fit: cover;
  object-position: 50% 10%;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-page .gallery img {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.gallery img:hover,
.gallery-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

@media (min-width: 860px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery-more {
  margin-top: 1.5rem;
  text-align: center;
}

/* Tabs galería */
.tabs {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tab-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.65rem 1rem;
  min-height: var(--touch-min);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn[aria-selected="true"] {
  background: var(--c5);
  border-color: rgba(242, 61, 61, 0.65);
}

.tab-btn:active {
  transform: translateY(1px);
}

.page-hero-title {
  font-family: "Rancho", cursive;
  color: #fff;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  margin: 0 0 0.4rem;
  line-height: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1100px, 95vw);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Dossier
   -------------------------------------------------------------------------- */
.dossier {
  background: #fff;
  border: 1px solid #e7eaec;
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.dossier h2 {
  margin: 0.2rem 0 0.3rem;
  color: var(--c3);
}

.dossier p {
  margin: 0;
}

.dossier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dossier a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  background: var(--c3);
  color: #fff;
  font-weight: 800;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
}

.dossier a:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.dossier a.ghost {
  background: transparent;
  border: 2px solid var(--c3);
  color: var(--c3);
}

/* Página dossier (misma estructura que servicios) */
.dossier-intro {
  margin-top: 0.25rem;
}

.dossier-intro .service-title {
  margin-bottom: 0.75rem;
}

.dossier-intro p {
  opacity: 0.95;
}

.section-dossier .dossier-banner {
  background: #fff;
  border: 1px solid #e7eaec;
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.6rem);
  box-shadow: var(--shadow);
  margin-top: 0.5rem;
}

.section-dossier.section-dark .dossier-banner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.section-dossier .dossier-banner > p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.section-dossier.section-dark .dossier-banner > p {
  color: rgba(255, 255, 255, 0.88);
}

.section-dossier .dossier-download {
  margin-top: 0;
}

.dossier-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}

@media (min-width: 700px) {
  .dossier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .dossier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dossier-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.dossier-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #fff;
}

.dossier-card p {
  margin: 0;
  font-size: 0.95rem;
}

.dossier-download {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  align-content: flex-start;
  justify-content: center;
}

.dossier-download .cta-primary,
.dossier-download .btn-outline {
  margin: 0;
}

.service-detail .dossier-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Contacto (index + formulario)
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.contact .card {
  background: #fff;
  border: 1px solid #e7eaec;
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.6rem);
  box-shadow: var(--shadow);
}

#titulo-sobre-mi,
#titulo-contacto {
  color: var(--c5);
}

.contact-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.cta-primary.mail {
  display: inline-flex;
  margin-top: 0;
}

/* Página formulario contacto */
.contact-page {
  background: var(--c4);
  color: #fff;
  padding: var(--section-pad-y) 0 clamp(2.5rem, 6vw, 4rem);
}

.contact-grid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2rem);
  grid-template-columns: 1fr;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  max-width: 420px;
  width: 100%;
}

.contact-illustration {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0;
  border-radius: 16px;
}

.contact-data {
  margin-top: 0;
  background: rgba(11, 16, 22, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.contact-data a {
  color: #fff;
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-group {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  display: block;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.form-group:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.form-group-message {
  border-radius: 16px;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-fieldset {
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 0.8rem 1rem 1rem;
  margin: 0;
}

.form-fieldset legend {
  padding: 0 0.4rem;
  font-weight: 700;
  color: #fff;
}

.radios {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--touch-min);
}

.radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.radio input[type="radio"]::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.15s ease;
}

.radio input[type="radio"]:checked::after {
  transform: scale(1);
}

.radio label {
  cursor: pointer;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #fff;
}

.consent a {
  color: #fff;
  text-decoration: underline;
}

.legal-info {
  background: rgba(11, 16, 22, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.legal-info p {
  margin: 0 0 0.45rem;
}

.legal-info p:last-child {
  margin-bottom: 0;
}

.legal-info strong {
  color: #fff;
}

.contact-btn {
  justify-self: start;
  border: 0;
  cursor: pointer;
  background: #fff;
  color: var(--c4);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  min-height: var(--touch-min);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-family: inherit;
  font-size: 0.95rem;
  transition: transform var(--transition), filter var(--transition);
}

.contact-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

.form-alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.form-alert--ok {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-alert--error {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (max-width: 700px) {
  .contact-left {
    max-width: 100%;
  }

  .contact-illustration {
    max-width: 100%;
  }

  .contact-btn {
    width: 100%;
    justify-self: stretch;
  }
}

/* --------------------------------------------------------------------------
   Páginas legales
   -------------------------------------------------------------------------- */
.legal-page {
  background: var(--c4);
  color: var(--text);
}

.legal-content {
  max-width: 72ch;
  background: rgba(252, 252, 252, 0.78);
  border: 1px solid #e7eaec;
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.legal-breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-breadcrumb a {
  color: var(--c3);
}

.legal-content h1 {
  font-family: "Rancho", cursive;
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--c5);
  margin: 0 0 0.35rem;
  line-height: 1.1;
}

.legal-updated {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-content h2 {
  font-size: 2.1rem;
  color: var(--c3);
  margin: 1.6rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-content ul {
  margin: 0.35rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--c3);
  text-decoration: underline;
}

.legal-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e7eaec;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: var(--c4);
  color: #cfd7dc;
  padding: 2.5rem 0 2rem;
}

.foot {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.foot-cols {
  width: 100%;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.brand-footer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
}

.brand-logo-Isotipo img {
  display: block;
  height: clamp(100px, 18vw, 145px);
  width: auto;
}

.foot-cols > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.foot-cols > div strong {
  color: #aebbc4;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.foot a {
  color: #aebbc4;
  font-size: small;
  line-height: 1.5;
}

.foot-cols a {
  color: #fff;
}

.foot small {
  color: #aebbc4;
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

.foot small a {
  color: #cfd7dc;
  text-decoration: underline;
}

.foot small a:hover {
  color: #fff;
}

#lfs-widget {
  width: 100%;
}

#lfs-widget a {
  word-break: break-word;
}

#lfs-widget-badget-colaborador {
  margin: 5px 0 !important;
}

.social-links {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.5rem;
  padding: 0 1rem;
}

.social-links img {
  width: clamp(48px, 12vw, 80px);
  height: auto;
  transition: transform var(--transition);
  opacity: 0.8;
}

.social-links img:hover {
  opacity: 1.0;
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .foot-cols > .brand-footer {
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .brand-logo-Isotipo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .brand-logo-Isotipo img {
    margin-inline: auto;
  }
}

@media (min-width: 768px) {
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .foot-cols {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
