/* ===== Miss Angel Secrets =====
   Medidas tomadas del sitio original en PC (1440px). */
:root {
  --gold: #e0cc92;
  --gold-2: #ddbf67;
  --black: #000;
  --ink: #1c1c1c;
  --muted: #54595f;
  --icon-gray: #69727d;
  --line: #c4cbdb;
  --header-h: 64px; /* alto del menu superior */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 700; }

/* ===== Header ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); padding: 0 5%;
  background: var(--black);
  display: flex; align-items: center; justify-content: space-between;
}
.topbar__logo img { width: 128px; height: 51px; object-fit: contain; }
.social { display: flex; gap: 20px; }
.social a { display: block; width: 18px; height: 18px; color: var(--icon-gray); transition: color .2s; }
.social svg { width: 100%; height: 100%; fill: currentColor; }
.social a:hover { color: var(--gold); }

/* ===== Botones ===== */
.btn {
  display: inline-block;
  background: var(--gold); color: var(--black);
  border: 1px solid var(--black);
  transition: transform .3s;
}
.btn:hover { transform: scale(.9); }
.btn--main { font: 500 18px/1 "Manrope", sans-serif; padding: 25px 30px; border-radius: 30px; }

/* ===== Hero ===== */
/* Portada a pantalla completa: ocupa el alto visible debajo del menú (90 px) */
.hero {
  position: relative;
  min-height: 560px;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  max-height: 1000px;
  padding: clamp(24px, 4vh, 57px) 6% clamp(70px, 12vh, 130px);
  display: flex;
  background: #000 url("../img/hero-bg.jpg") 50% 50% / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(at 0% 0%, #000 25%, rgba(242, 41, 91, 0) 66%);
}
.hero > * { position: relative; z-index: 1; }
.hero__left { width: 52.8%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero__title {
  font: 400 clamp(40px, 8vh, 58px)/1 "Poppins", sans-serif;
  color: var(--gold);
  margin-bottom: clamp(14px, 2.6vh, 22px);
}
.hero__text {
  font: 300 18px/27px "Manrope", sans-serif; color: #fff;
  margin-bottom: clamp(20px, 4.2vh, 37px);
}

.hero__right {
  width: 47.2%;
  padding: 10px;
  display: flex; align-items: center;
  background: url("../img/angel.png") 100% 50% / auto min(100%, 458px) no-repeat;
}
.hero-card {
  width: 252px; margin: 0 0 0 12px;
  padding: 25px 35px 35px;
  border: 1px solid var(--line); border-radius: 15px;
  background: linear-gradient(180deg, #000 45%, var(--gold-2) 100%);
  color: #fff;
}
.hero-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; }
.hero-card__head img { width: 56px; height: 56px; border-radius: 100px; object-fit: cover; }
.hero-card__rating {
  display: flex; align-items: center; gap: 7px; margin-top: 7px;
  font: 500 16px/1 "Manrope", sans-serif; color: var(--gold-2);
}
.hero-card__rating svg { width: 22px; height: 22px; fill: #f8ff13; }
.hero-card__name { font: 500 16px/19.2px "Manrope", sans-serif; color: var(--gold-2); }
.hero-card__sub { font: 400 14px/21px "Manrope", sans-serif; margin-bottom: 10px; }
.hero-card__list { font: 400 14px/21px "Manrope", sans-serif; margin-bottom: 10px; }
.hero-card__more { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; font: 500 15px/1 "Manrope", sans-serif; }
.hero-card__more svg { width: 13px; height: 15px; fill: #fff; }

/* Efecto 3D de la tarjeta según el mouse (lo controla main.js) */
.hero__right { perspective: 900px; }
.hero-card {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s;
  will-change: transform;
}
.hero-card.is-tilting { transition: transform .08s linear, box-shadow .2s; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.hero-card > * { transform: translateZ(30px); }
.hero-card__head { transform: translateZ(50px); }
.hero-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.28), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.hero-card.is-tilting::after { opacity: 1; }

.hero__wave {
  position: absolute !important; z-index: 0 !important;
  left: 0; bottom: -1px; width: 100%; height: min(500px, 58%);
  fill: #fff; transform: scaleX(-1);
  pointer-events: none;
}

/* ===== Plataformas ===== */
.partners {
  height: 81px; padding: 0 4%;
  display: flex; align-items: center; justify-content: space-between;
}
.partners__title { font: 400 40px/1 "Poppins", sans-serif; color: #000; white-space: nowrap; }
.marquee {
  width: 56%; height: 81px; overflow: hidden;
  /* Bordes difuminados: los logos aparecen y desaparecen suavemente */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.marquee__track { display: flex; height: 100%; width: max-content; animation: marquee 16s linear infinite; }
.marquee__track img { width: calc(51.5vw / 3); max-width: 245px; height: 100%; object-fit: contain; padding: 0 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Carrusel genérico ===== */
.carousel { position: relative; overflow: hidden; }
.carousel__track { display: flex; transition: transform .5s ease; }
.carousel__track > * { flex: 0 0 100%; min-width: 0; }

/* ===== Conoce ===== */
.about { display: flex; align-items: center; margin-top: 57px; padding-left: 4%; }
.about .carousel { width: 542px; flex-shrink: 0; height: 548px; }
.about .carousel__track img {
  width: 458px; height: 540px; margin: 0 42px;
  object-fit: cover; border-radius: 25px;
  flex: 0 0 458px;
}
.about .carousel__track { gap: 84px; }
.about__text { width: 713px; padding-left: 114px; color: var(--ink); }
.about__title { font: 400 58px/69.6px "Poppins", sans-serif; color: #000; margin-bottom: 31px; }
.about__text p:not(.about__title) { font: 300 15px/22.5px "Manrope", sans-serif; margin-bottom: 10px; }

/* ===== Por qué elegirnos ===== */
.why {
  position: relative;
  margin-top: 57px; padding: 64px 5% 65px;
  background: #fff; border-radius: 30px;
}
.why__card {
  position: relative; z-index: 1;
  border: 5px solid var(--gold); border-radius: 25px;
  padding: 64px;
  background: #fff;
}
.why__kicker { font: 400 22px/26px "Montserrat", sans-serif; color: #000; text-align: center; margin-bottom: 20px; }
.why__title { font: 800 65px/1 "Archivo", sans-serif; text-transform: uppercase; text-align: center; color: #000; margin-bottom: 70px; }
.why__grid { display: grid; grid-template-columns: repeat(3, 305px); justify-content: space-between; row-gap: 50px; }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; }
.feature__icon { width: 50px; height: 50px; fill: #000; margin-bottom: 29px; }
.feature__icon.gold { fill: var(--gold); }
.feature h3 { font: 800 14px/1 "Archivo", sans-serif; color: #000; margin-bottom: 14px; }
.feature h3.gold { color: var(--gold); }
.feature p { font: 400 18px/27px "Montserrat", sans-serif; color: var(--muted); }
.why__wave {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 99px;
  fill: #000; pointer-events: none;
}

/* ===== Testimonios ===== */
.testimonials { background: #000; padding: 0 6% 14px; }
.testimonials__title { font: 400 40px/48px "Poppins", sans-serif; color: var(--gold); text-align: center; }
.testi { height: 257px; }
.quote { margin: 0; padding: 20px 52px 0 51px; display: flex; align-items: center; gap: 20px; }
.quote__who { width: 176px; flex-shrink: 0; text-align: center; }
.quote__who img { width: 106px; height: 106px; margin: 0 auto 7px; border-radius: 999px; border: 3px solid var(--gold); object-fit: cover; }
.quote__who strong { display: block; font: 600 15px/23px "Roboto", sans-serif; color: #fff; }
.quote__who span { display: block; font: 400 14px/21px "Roboto Slab", serif; color: var(--gold); }
.quote blockquote {
  flex: 1; margin: 0; padding: 20px;
  border: 2px solid var(--gold); border-radius: 25px;
  font: italic 400 18px/27px "Roboto", sans-serif; color: #fff;
}
.carousel__arrow {
  position: absolute; top: 98px; width: 20px; height: 20px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--gold);
}
.carousel__arrow svg { width: 20px; height: 20px; fill: currentColor; }
.carousel__arrow--prev { left: 10px; }
.carousel__arrow--next { right: 10px; }
.carousel__arrow--next svg { transform: scaleX(-1); }

/* Flechas de la galería "Conoce": botones redondos sobre los bordes de la foto */
.about .carousel__arrow {
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); color: var(--gold);
  border: 1px solid rgba(224, 204, 146, .6);
  backdrop-filter: blur(4px);
  transition: background .25s, color .25s, transform .25s;
  z-index: 2;
}
.about .carousel__arrow svg { width: 22px; height: 22px; }
.about .carousel__arrow:hover { background: var(--gold); color: #000; transform: translateY(-50%) scale(1.08); }
.about .carousel__arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.about .carousel__arrow--prev { left: 58px; }
.about .carousel__arrow--next { right: 58px; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 21px; display: flex; justify-content: center; gap: 12px; }
.carousel__dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; }
.carousel__dots button[aria-selected="true"] { opacity: 1; }

/* ===== FAQ ===== */
.faq { background: #000; color: #fff; padding: 0 6%; display: flex; justify-content: space-between; }
.faq__left { width: 441px; }
.faq__title { font: 400 58px/69.6px "Poppins", sans-serif; color: var(--gold); margin-bottom: 15px; }
.faq__left p { font: 300 18px/27px "Manrope", sans-serif; }
.faq__right { width: 662px; }
.faq__item { border: 1px solid var(--line); border-radius: 15px; margin-bottom: 34.6px; }
.faq__item:last-child { margin-bottom: 0; }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 25px 45px;
  font: 400 18px/22px "Poppins", sans-serif; color: #fff;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary { transition: color .3s; }
.faq__item[open] summary { color: var(--gold); }
.faq__item[open] .faq__answer { animation: faqOpen .4s ease; }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-8px); } }
.faq__answer { padding: 0 45px 25px; font: 300 15px/22.5px "Manrope", sans-serif; }
.faq__answer p { margin-bottom: 14px; }
.faq__answer ul { margin: 0 0 14px; padding-left: 20px; }
.faq__answer strong { font-weight: 400; color: #fff; }

/* ===== Visita ===== */
/* Mapa a la izquierda, texto a la derecha */
.visit { background: #000; color: #fff; padding: 64px 5%; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; }
.visit__left { width: 659px; padding-left: 102.6px; }
.visit__title { font: 700 58px/58px "Manrope", sans-serif; color: var(--gold); margin: 0 0 8px; }
.visit__title b { font-weight: 800; }
.visit__text { font: 400 18px/27px "Manrope", sans-serif; margin-bottom: 70px; }
.visit__label { font: 700 18px/18px "Manrope", sans-serif; color: var(--gold); margin-bottom: 8px; }
.visit__address { font: 300 16px/24px "Poppins", sans-serif; margin-bottom: 70px; }
.visit__social { display: flex; gap: 16px; }
.visit__social a { width: 24px; height: 24px; color: var(--icon-gray); transition: color .2s; }
.visit__social a:hover { color: var(--gold); }
.visit__social svg { width: 100%; height: 100%; fill: currentColor; }
.visit__map {
  width: 640px; height: auto; aspect-ratio: 16 / 10; border: 0; border-radius: 15px;
}

/* ===== Footer ===== */
.footer { background: var(--gold); color: #000; text-align: center; font: 300 16px/24px "Poppins", sans-serif; padding: 10.5px 8%; }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  animation: pulse 2s infinite, wa-ring 5s ease-in-out 1.5s infinite;
  transform-origin: 50% 60%;
}
/* Globo rojo de notificacion */
.wa-float::after {
  content: "1"; position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #ff3b30; color: #fff; border: 2px solid #fff;
  font: 700 11px/16px "Manrope", sans-serif; text-align: center;
  animation: wa-badge 5s ease-in-out 1.5s infinite;
}
.wa-float:hover { animation-play-state: paused; }
/* Vibra como una notificacion durante ~1 s cada 5 s */
@keyframes wa-ring {
  0%, 22%, 100% { transform: rotate(0) scale(1); }
  2% { transform: rotate(-16deg) scale(1.12); }
  4% { transform: rotate(14deg) scale(1.12); }
  6% { transform: rotate(-14deg) scale(1.12); }
  8% { transform: rotate(12deg) scale(1.12); }
  10% { transform: rotate(-10deg) scale(1.1); }
  12% { transform: rotate(8deg) scale(1.08); }
  14% { transform: rotate(-6deg) scale(1.05); }
  16% { transform: rotate(4deg) scale(1.02); }
  18% { transform: rotate(-2deg) scale(1); }
}
@keyframes wa-badge {
  0%, 20%, 100% { transform: scale(1); }
  4% { transform: scale(1.35); }
  10% { transform: scale(.95); }
}
.wa-float svg { width: 34px; height: 34px; fill: currentColor; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== PC más pequeños: mismas proporciones ===== */
@media (max-width: 1360px) {
  .about .carousel { width: 38vw; height: auto; }
  .about .carousel__track img { width: 32vw; height: auto; aspect-ratio: 458 / 540; flex-basis: 32vw; margin: 0 3vw; }
  .about .carousel__track { gap: 6vw; }
  .about .carousel__arrow--prev { left: calc(3vw + 14px); }
  .about .carousel__arrow--next { right: calc(3vw + 14px); }
  .about__text { padding-left: 8vw; }
  .why__grid { grid-template-columns: repeat(3, 27%); }
  .faq__left { width: 33%; }
  .faq__right { width: 50%; }
  .visit__left { width: 50%; }
  .visit__map { width: 46%; }
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .hero { flex-direction: column; min-height: 0; height: auto; max-height: none; padding: 6% 5% 120px; }
  .hero__right { display: block; }
  .hero__left { width: 100%; align-items: center; text-align: center; }
  .hero__title { font-size: 55px; margin-bottom: 18px; }
  .hero__text { font-size: 14px; line-height: 1.5; max-width: 640px; margin-bottom: 24px; }
  .hero__right { width: 100%; min-height: 560px; background-position: 100% 100%; background-size: 70% auto; }
  .hero-card { margin: 60px 0 0; }
  .hero__wave { height: 220px; }
  .partners { height: auto; padding: 30px 4%; gap: 20px; }
  .partners__title { font-size: 32px; }
  .marquee { width: 60%; }
  .marquee__track img { width: 20vw; }
  .about { flex-direction: column-reverse; padding: 0 5%; }
  .about .carousel { width: 100%; max-width: 458px; }
  .about .carousel__track { gap: 0; }
  .about .carousel__track img { width: 100%; flex-basis: 100%; margin: 0; }
  .about .carousel__arrow--prev { left: 12px; }
  .about .carousel__arrow--next { right: 12px; }
  .about__text { width: 100%; max-width: none; padding: 0 0 30px; text-align: center; }
  .about__title { font-size: 45px; line-height: 1.2; }
  .why__title { font-size: 44px; margin-bottom: 40px; }
  .why__grid { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 50px 1fr; column-gap: 18px; text-align: left; align-items: center; }
  .feature__icon { margin: 0; width: 40px; height: 40px; }
  .feature h3 { font-size: 28px; margin: 0; }
  .feature p { grid-column: 2; font-size: 16px; line-height: 1.6; margin-top: 10px; }
  .testi { height: auto; padding-bottom: 50px; }
  .faq { flex-direction: column; padding: 40px 5%; gap: 30px; }
  .faq__left, .faq__right { width: 100%; text-align: center; }
  .faq__right { text-align: left; }
  .faq__title { font-size: 45px; line-height: 1.2; }
  .faq__left p { font-size: 14px; }
  .visit { flex-direction: column; gap: 30px; }
  .visit__left { width: 100%; padding: 0; }
  .visit__map { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* ===== Móvil ===== */
@media (max-width: 767px) {
  :root { --header-h: 56px; }
  .topbar { padding: 0 16px; }
  .topbar__logo img { width: 100px; }
  .social { gap: 14px; }
  .hero { padding: 40px 16px 90px; align-items: center; text-align: center; }
  /* En móvil: título, texto, tarjeta y debajo solo "Agendar Entrevista" */
  .hero__left { display: contents; }
  .hero__left > * { position: relative; z-index: 1; }
  .hero__title { order: 1; }
  .hero__text { order: 2; }
  .hero__right { order: 3; }
  .btn--main { order: 4; margin-top: 28px; }
  .hero__title { font-size: 38px; line-height: 1.12; }
  .btn--main { font-size: 16px; padding: 18px 26px; }
  .hero__right { min-height: 0; background: none; display: flex; flex-direction: column; align-items: center; }
  .hero__right::before { content: ""; display: block; width: 80%; aspect-ratio: 1; background: url("../img/angel.png") center / contain no-repeat; }
  .hero-card { margin: 0; }
  .hero__wave { height: 120px; }
  .partners { flex-direction: column; }
  .marquee { width: 100%; }
  .marquee__track img { width: 33vw; height: 60px; }
  .about__title, .faq__title { font-size: 34px; }
  .why { padding: 20px 16px 80px; }
  .why__title { font-size: 34px; }
  .feature { grid-template-columns: 36px 1fr; column-gap: 14px; }
  .feature__icon { width: 30px; height: 30px; }
  .feature h3 { font-size: 20px; }
  .testimonials__title { font-size: 32px; line-height: 1.2; }
  .quote { flex-direction: column; padding: 20px 0 0; }
  .carousel__arrow { display: none; }
  .about .carousel__arrow { display: grid; width: 40px; height: 40px; }
  .about .carousel__arrow svg { width: 18px; height: 18px; }
  .carousel__dots button { background: #fff; opacity: .35; }
  .faq__item summary { padding: 18px 22px; font-size: 16px; }
  .faq__answer { padding: 0 22px 18px; }
  .visit__title { font-size: 38px; line-height: 1.1; }
  .visit__map { aspect-ratio: 4 / 3; }
}

/* ===== Móvil pequeño (320–400px) ===== */
@media (max-width: 400px) {
  .hero__title { font-size: 32px; }
  .hero__text { font-size: 13.5px; }
  .partners__title { font-size: 26px; white-space: normal; text-align: center; }
  .why { padding: 16px 12px 70px; }
  .why__card { padding: 28px 16px; border-width: 4px; }
  .why__title { font-size: 30px; }
  .feature { grid-template-columns: 30px 1fr; column-gap: 12px; }
  .feature h3 { font-size: 18px; }
  .feature p { font-size: 15px; }
  .about__title, .faq__title { font-size: 30px; }
  .visit__title { font-size: 32px; }
  .testimonials__title { font-size: 28px; }
  .quote blockquote { font-size: 16px; line-height: 25px; }
  .faq__item summary { padding: 16px 18px; font-size: 15px; }
  .faq__answer { padding: 0 18px 16px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 30px; height: 30px; }
}

/* ===== Pantallas grandes (más de 1600px): el contenido se centra
   con el mismo ancho que en 1440px y los fondos ocupan todo el ancho ===== */
@media (min-width: 1600px) {
  :root { --extra: calc((100vw - 1440px) / 2); }
  .topbar { padding-inline: calc(var(--extra) + 72px); }
  .hero { padding-inline: calc(var(--extra) + 86px); }
  .partners { padding-inline: calc(var(--extra) + 57px); }
  .marquee { width: 734px; }
  .about { padding-left: calc(var(--extra) + 57px); }
  .why { padding-inline: calc(var(--extra) + 72px); }
  .testimonials, .faq { padding-inline: calc(var(--extra) + 86px); }
  .visit { padding-inline: calc(var(--extra) + 72px); }
  .why__wave { height: auto; }
  .why__wave { aspect-ratio: 1425 / 99; max-height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* La tarjeta 3D solo se mueve con el mouse, así que conserva su transición */
  .hero-card { transition: transform .5s cubic-bezier(.2, .8, .2, 1) !important; }
  .hero-card.is-tilting { transition: transform .08s linear !important; }
  .hero-card::after { transition: opacity .3s !important; }
  /* El carrusel de plataformas aliadas se mueve siempre, como en el sitio original */
  .marquee__track { animation: marquee 16s linear infinite !important; }
  /* El aviso de WhatsApp es un llamado a la accion: se mantiene */
  .wa-float { animation: pulse 2s infinite, wa-ring 5s ease-in-out 1.5s infinite !important; }
  .wa-float::after { animation: wa-badge 5s ease-in-out 1.5s infinite !important; }
}
