:root {
  /* Colores principales */
  --rosaPetalo: #f7cfcf; /* Fondo principal o secciones suaves */
  --rosaEmpolvado: #e8b9b9; /* Acentos, bordes, hover de botones */
  --beigeCrema: #fdf4ee; /* Fondo secundario o tarjetas */
  --verdeEucalipto: #a8b79a; /* Detalles, íconos o separadores */
  --doradoSuave: #d6b26e; /* Botones, títulos destacados */
  --negroCarbon: #333333; /* Tipografía principal o subtítulos */
  --marronRosado: #b07a6a; /* Titulares destacados */
  --blanco: #ffffff;
  --fondoSuave: #fff6f3;
  --textoSuave: #5c4a47;
  
  /* Tipografías */
  --fuente-base: 'Poppins', sans-serif;
  --fuente-decorativa: 'Pacifico', cursive;

  /* Espaciados */
  --espaciado-xs: 0.25rem;
  --espaciado-sm: 0.5rem;
  --espaciado-md: 1rem;
  --espaciado-lg: 2rem;

  /* Sombras/bordes */
  --sombra-suave: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radio-base: 12px;
}

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

body {
  font-family: var(--fuente-base);
  color: var(--negroCarbon);
  background-color: var(--fondoSuave);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden; /* bloquea scroll horizontal global */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background-color: var(--marronRosado);
  color: var(--blanco);
  padding: 0.75rem 1rem;
  z-index: 999;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.skip-link:focus-visible {
  left: 10px;
  transform: scale(1);
  opacity: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 85px;
  background-color: var(--fondoSuave);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
}

.header__logo-link {
  display: inline-flex;
  align-items: center;
}

.header__logo {
  border-radius: 999px;
  margin-left: 10px;
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__list {
  list-style: none;
  display: flex;
  gap: var(--espaciado-lg);
}

.header__toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.header__toggle:focus-visible {
  outline: 3px solid var(--marronRosado);
  outline-offset: 3px;
}

.header__toggle-line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--negroCarbon);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__toggle--active .header__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle--active .header__toggle-line:nth-child(2) {
  opacity: 0;
}

.header__toggle--active .header__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav--items {
  margin: 0;
}

.nav--links {
  color: var(--textoSuave);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav--links:focus-visible {
  outline: 3px solid var(--marronRosado);
  outline-offset: 4px;
}

.nav--links:hover {
  color: var(--negroCarbon);
  border-bottom: 2px solid var(--negroCarbon);
}

.nav--links[aria-current="page"] {
  border-bottom: 2px solid var(--negroCarbon);
  color: var(--negroCarbon);
}


.hero__section {
  opacity: 0;
  transform: translateY(25px);
  animation: hero-slide-up 2s ease-out forwards;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 246, 243, 0.6);
  padding: var(--espaciado-lg);
  border-radius: 24px;
  box-shadow: var(--sombra-suave);
}

@keyframes hero-slide-up {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  background-image: url('assets/2.hero-mobile.png');
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
  height: 100vh;
  padding: var(--espaciado-lg) var(--espaciado-md);
}

.hero__title {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  color: var(--marronRosado);
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(25px);
  animation: hero-slide-up 0.9s ease-out forwards;
  animation-delay: 0.05s;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__heading {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(25px);
  animation: hero-slide-up 0.9s ease-out forwards;
  animation-delay: 0.05s;
}

.hero__subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 620px;
  color: var(--textoSuave);
}

.hero--button {
  font-size: clamp(1rem, 2vw, 1.1rem);
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  margin-top: 25px;
  background-color: var(--marronRosado);
  border: 2px solid transparent;
  color: var(--blanco);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  gap: var(--espaciado-xs);
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.hero--button:hover {
  background-color: var(--doradoSuave);
  transform: translateY(-2px);
}

.hero--button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(208, 146, 134, 0.6);
}

.services {
  background-color: #fdd1cd;
  text-align: center;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espaciado-lg);
}

.services--title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  text-shadow: 0 3px 0 var(--beigeCrema);
}

.services--text {
  font-size: 1.2rem;
  font-weight: 400;
  max-width: 720px;
}

.card {
  width: min(100%, 640px);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin: 0;
  padding: 1.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card:hover {
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.card-details {
  margin-top: 15px;
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.85);
  padding: 0 15px 10px;
  backdrop-filter: blur(4px);
}

.card-details summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  color: var(--negroCarbon);
  list-style: none;
}

.card-details summary::marker,
.card-details summary::-webkit-details-marker {
  display: none;
}

.card-details summary::after {
  content: "+";
  float: right;
  transition: transform 0.3s ease;
}

.card-details[open] summary::after {
  transform: rotate(45deg);
}

.card-details ul {
  list-style: disc;
  margin-left: 20px;
  color: var(--negroCarbon);
  font-weight: 400;
}

.card--title {
  font-size: 1.6rem;
  margin: 0;
  font-family: var(--fuente-decorativa);
  color: var(--marronRosado);
}

.card--text {
  margin: 0;
  font-size: 1rem;
  color: var(--textoSuave);
}

.card--image {
  width: min(100%, 400px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  margin: 0 auto;
  object-fit: cover;
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 90%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 85%);
}

.card_three .card--image {
  width: min(100%, 350px);
  aspect-ratio: 7 / 5;
  mask-image:
    linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #000 15%, #000 85%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 15%, #000 85%, rgba(0, 0, 0, 0) 100%);
  mask-composite: intersect;
  mask-repeat: no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #000 15%, #000 85%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 15%, #000 85%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: source-in;
  -webkit-mask-repeat: no-repeat;
}

.contact {
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(135deg, rgba(255, 223, 223, 0.65), rgba(255, 255, 255, 0.85));
  text-align: center;
}

.contact__content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--blanco);
  border-radius: 30px;
  padding: 3rem 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.contact__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--marronRosado);
}

.contact__text {
  margin-bottom: 2rem;
  color: var(--textoSuave);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact__button {
  min-width: 220px;
}

.contact__link {
  align-self: center;
  color: var(--marronRosado);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contact__link:hover,
.contact__link:focus-visible {
  color: var(--doradoSuave);
}

@media (max-width: 900px) {
  .header {
    flex-wrap: wrap;
    height: 90px;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
  }

  .header__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
  }

  .header__nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 0;
    margin-top: 0.5rem;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .header__nav--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    max-height: 320px;
    padding: 0.5rem 0;
  }

  .header__list {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0.75rem 0;
  }

  .nav--items {
    width: 100%;
  }

  .nav--links {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
  }

  .hero {
    height: auto;
    padding: 6rem 1.25rem 4rem;
  }

  .hero__heading {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card--image {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
