/* =====================
   HEADER
   ===================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 1rem;
}

.dropdown {
  position: relative;
}

.dropdown button {
  background: none;
  border: none;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
}

.menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 160px;
  background: rgba(20, 20, 20, 0.95);
  border-radius: 8px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
}

.menu a {
  padding: 0.5rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: white;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .menu {
  display: flex;
}

.right img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
}

/* =====================
   CARRUSEL
   ===================== */
.carousel {
  padding-top: 64px;
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0)
  );
  color: white;
  max-width: 50%;
}

.badge {
  background: var(--color-accent);
  color: var(--color-bg-alt);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  width: fit-content;
  margin-bottom: 1rem;
}

.cta {
  margin-top: 1rem;
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

.carousel-nav.prev { left: 1rem; }
.carousel-nav.next { right: 1rem; }

.dots {
  position: absolute;
  bottom: 13rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg);
  cursor: pointer;
}

.dots button.active {
  background: var(--color-text);
}

@media (max-width: 768px) {
  .overlay {
    max-width: 100%;
    padding: 2rem;
  }
}

/* =====================
   SECCIONES FEATURE
   ===================== */
.feature {
  position: relative;
  padding: 6rem 0;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content.reverse {
  direction: rtl;
}

.content.reverse > * {
  direction: ltr;
}

.image img {
  width: 100%;
  border-radius: 16px;
}

.feature-a {
  background: linear-gradient(
    to bottom,
    #F6F4EF 0%,
    #F6F4EF 70%,
    #0B0B0D 100%
  );
  color: var(--color-text-alt);
}

.feature-b {
  background: linear-gradient(
    to bottom,
    #0B0B0D 0%,
    #0B0B0D 70%,
    #F3F0EA 100%
  );
  color: var(--color-text);
}

.feature-c {
  background: var(--color-bg-alt);
  color: var(--color-text-alt);
}

.feature::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: inherit;
  filter: blur(40px);
  transform: translateY(50%);
  z-index: -1;
}

@media (max-width: 768px) {
  .content {
    grid-template-columns: 1fr;
  }
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 3rem 2rem;
  font-size: 0.9rem;
}

.footer a {
  color: var(--color-text);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.socials {
  display: flex;
  gap: 1rem;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2rem 0;
}

.footer-links {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.col a {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

.legal {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}