/* =========================================
   ELISBLONDY — styles.css
   Minimalista / Claro / Adaptativo
   ========================================= */

/* ── Variables globales ── */
:root {
  --color-bg: #faf9f7;
  --color-white: #ffffff;
  --color-dark: #1a1a1a;
  --color-mid: #555555;
  --color-light: rgba(255, 255, 255, 0.85);
  --color-overlay: rgba(250, 249, 247, 0.38);
  --color-overlay-footer: rgba(250, 249, 247, 0.92);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;

  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --carousel-speed: 5000ms;

  --footer-height: 56px;
}

/* ── Reset & base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-dark);
  overflow: hidden;        /* sin scroll — todo en pantalla completa */
  height: 100dvh;
  width: 100%;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   HERO — ocupa toda la pantalla
   ========================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;          /* dynamic viewport height: evita el salto en móvil */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Carrusel de fondo ── */
.carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Ken Burns suave en cada slide activo */
  transform: scale(1);
  transition: transform 6s ease;
}

.carousel__slide.is-active img {
  transform: scale(1.06);
}

/* Overlay blanco suave para el estilo claro */
.carousel__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}

/* ── Dots indicadores ── */
.carousel__dots {
  position: absolute;
  bottom: calc(var(--footer-height) + 20px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-base), transform var(--transition-base);
}

.dot.active {
  background: var(--color-white);
  transform: scale(1.35);
}

.dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.8);
}

/* ── Contenido hero ── */
.hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  /* Entrada animada */
  animation: fadeUp 1.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--color-white);
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.18);
  line-height: 1;
  text-transform: uppercase;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

/* ── Botón principal ── */
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border: 2px solid rgba(0, 0, 0, 0.85);
  background: rgba(180, 225, 245, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1a1a1a;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
  white-space: nowrap;
}

.hero__btn:hover,
.hero__btn:focus-visible {
  background: rgba(180, 225, 245, 0.88);
  border-color: rgba(180, 220, 240, 0.9);
  box-shadow: 0 8px 32px rgba(0, 175, 240, 0.2);
  transform: translateY(-2px);
  outline: none;
}

.hero__btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--footer-height);
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);

  background: var(--color-overlay-footer);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-mid);
  text-transform: uppercase;
  white-space: nowrap;
}

.footer__copy strong {
  font-weight: 400;
  color: var(--color-dark);
}

/* ── Íconos de redes ── */
.footer__social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-mid);
  transition: color var(--transition-base), transform var(--transition-base);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--color-dark);
  transform: translateY(-2px);
  outline: none;
}

/* =========================================
   ANIMACIONES
   ========================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
  :root {
    --footer-height: 52px;
  }

  .hero__title {
    letter-spacing: 0.18em;
  }

  .hero__btn {
    padding: 13px 32px;
  }

  .footer__copy {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .footer__social {
    gap: 16px;
  }
}

/* Móvil pequeño (≤ 480px) */
@media (max-width: 480px) {
  :root {
    --footer-height: 52px;
  }

  .hero__content {
    gap: 10px;
  }

  .hero__title {
    letter-spacing: 0.12em;
  }

  .hero__subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.28em;
  }

  .hero__btn {
    padding: 12px 26px;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .footer {
    padding: 0 16px;
  }

  .footer__copy {
    font-size: 0.55rem;
  }

  .footer__link svg {
    width: 18px;
    height: 18px;
  }
}

/* Landscape móvil muy bajo (altura ≤ 420px) */
@media (max-height: 420px) {
  .hero__title {
    font-size: clamp(2rem, 8vw, 4rem);
  }

  .hero__subtitle {
    display: none;
  }

  .carousel__dots {
    bottom: calc(var(--footer-height) + 8px);
  }
}
