/* =========================================================================
   Metanoia Holistic - Premium Design System
   ========================================================================= */

:root {
  /* Colors */
  --bg-primary: #f4eeea;
  --bg-secondary: #FFFFFF;
  --text-primary: #4c4238;
  --text-secondary: #4c4238;
  --accent-color: #75689f;
  --accent-hover: #744d82;
  --accent-light: rgba(117, 104, 159, 0.1);
  --success-color: #829A88;
  --success-hover: #657D6B;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Dancing Script', cursive;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(44, 53, 49, 0.05);
  --shadow-md: 0 12px 30px rgba(44, 53, 49, 0.08);
  --shadow-lg: 0 20px 40px rgba(44, 53, 49, 0.12);
  --shadow-accent: 0 8px 24px rgba(215, 125, 65, 0.25);

  /* Borders & Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  /* Transitions */
  --transition-fast: 0.4s ease-in-out;
  --transition-spring: 0.6s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  font-weight: 300;
}

p em {
  font-family: var(--font-accent);
  font-size: 1.4em;
  color: var(--accent-hover);
  font-style: normal;
  display: inline-block;
  transform: translateY(2px);
}

/* ================== Navigation Bar ================== */
.navbar {
  background-color: rgba(244, 238, 234, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 1rem;
  z-index: 1000;
  max-width: 1100px;
  margin: 1rem auto;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.nav-container {
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.btn-nav {
  background-color: var(--accent-color);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-nav::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}

.btn-nav:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 15px rgba(220, 167, 139, 0.4);
}

.btn-nav:hover::after {
  left: 150%;
}

/* ================== Fullscreen Video Hero ================== */
.video-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  
  background: linear-gradient(-45deg, #f4eeea, #75689f, #dca78b, #744d82);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(244, 238, 234, 0.2) 0%, rgba(244, 238, 234, 0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo {
  width: 150px;
  animation: fadeInDown 0.8s ease backwards;
}

.hero-text {
  margin-top: 1.5rem;
  animation: fadeInUp 0.8s ease backwards 0.2s;
}

.hero-text h1 {
  color: var(--accent-color);
  font-family: var(--font-accent);
  font-size: 3.8rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
  text-shadow: 2px 2px 8px rgba(215, 125, 65, 0.15);
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-primary);
  font-weight: 300;
}

.btn-hero {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 2.5rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  box-shadow: var(--shadow-accent);
  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.btn-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.btn-hero:hover {
  transform: translateY(-4px) scale(1.02);
  background-color: var(--accent-hover);
  box-shadow: 0 12px 28px rgba(215, 125, 65, 0.35);
}

.btn-hero:hover::after {
  left: 100%;
}

.hero-glass-intro {
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 1s ease backwards 0.6s;
  text-align: center;
  max-width: 650px;
}

.intro {
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.intro:last-child {
  margin-bottom: 0;
}

.intro strong {
  font-weight: 500;
  color: var(--accent-color);
}

.intro.secundaria {
  font-style: italic;
  font-size: 1.05rem;
}

/* ================== Sections ================== */
.section {
  max-width: 1200px;
  margin: auto;
  padding: 8rem 2rem;
}

.section>h2 {
  font-size: 2.8rem;
  margin-bottom: 3rem;
  position: relative;
}

/* Grid Layouts */
.grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
}

.grid-2>div {
  flex: 1 1 400px;
}

.grid-2 h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.grid-2 p {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.grid-2 img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform var(--transition-spring);
}

.grid-2 img:hover {
  transform: scale(1.02) rotate(-1deg);
}

/* ================== Cards UI ================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.cards.cards-large {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition-spring), border-color var(--transition-spring);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(220, 167, 139, 0.15);
  border-color: var(--accent-light);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-spring);
}

.card:hover .card-img-wrap img {
  transform: scale(1.06);
}

/* ================== Bento Grid ================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 2rem;
  margin-top: 3rem;
}

.bento-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-spring);
}

.bento-item:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(220, 167, 139, 0.2);
}

.bento-item:first-child {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.bento-item:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}

.bento-item:nth-child(3) {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

.bento-item .img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-spring);
}

.bento-item:hover img {
  transform: scale(1.06);
}

.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2rem 2rem 2rem;
  background: linear-gradient(transparent, rgba(74, 64, 54, 0.9));
  color: #fff;
  z-index: 2;
  text-align: left;
}

.bento-content h3 {
  color: #fff;
  font-size: 1.8rem;
  margin: 0;
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-item {
    height: 350px;
  }

  .bento-item:first-child,
  .bento-item:nth-child(2),
  .bento-item:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ================== Reveal Animations ================== */
.reveal-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  color: var(--accent-color);
}

.card p {
  font-size: 1rem;
  flex-grow: 1;
}

.btn-card {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 2rem;
  color: var(--accent-color);
  background-color: transparent;
  border: 1px solid var(--accent-color);
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(220, 167, 139, 0.3), transparent);
  transform: skewX(-25deg);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn-card:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(220, 167, 139, 0.4);
  transform: translateY(-2px);
}

.btn-card:hover::after {
  left: 150%;
}

/* ================== Playlist Section ================== */
.section.playlist {
  background-color: transparent;
  margin: 2rem auto 8rem;
  position: relative;
  text-align: center;
}

.playlist-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.playlist-header h2 {
  font-size: 2.2rem;
  color: var(--accent-color);
  margin: 0;
}

.playlist-header img {
  width: 32px;
  height: 32px;
  animation: float 3s ease-in-out infinite;
}

.playlist-wrapper p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.spotify-player {
  width: 100%;
  height: 440px;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-spring);
}

.spotify-player:hover {
  transform: translateY(-5px);
}

/* ================== Shorts Section ================== */
.shorts-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.shorts-grid iframe {
  box-shadow: var(--shadow-md);
  transition: all var(--transition-spring);
  border: 2px solid transparent;
}

.shorts-grid iframe:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

/* ================== Footer & Overlays ================== */
.footer-pro {
  background-color: #f4eeea;
  /* Luxurious subtle terracotta-cream */
  padding: 6rem 1.5rem 3rem;
  border-top: 1px solid rgba(117, 104, 159, 0.2);
  color: var(--text-primary);
  font-family: var(--font-body);
  position: relative;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  font-style: normal;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-contact .contact-item {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.whatsapp-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--success-color);
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.whatsapp-link:hover {
  color: var(--success-hover);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(220, 167, 139, 0.2);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  margin: 0;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 1.5rem;
}

.footer-legal a:hover {
  color: var(--accent-color);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal a {
    margin: 0 0.5rem;
  }
}

.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 30px;
  right: 30px;
  background-color: var(--success-color);
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-spring);
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(5deg);
  background-color: var(--success-hover);
}

/* ================== Animations ================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ================== Media Queries ================== */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 3rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .grid-2 {
    gap: 2rem;
  }

  .playlist-wrapper p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  header {
    padding: 3rem 1rem 2rem;
  }

  footer a.whatsapp-boton {
    width: 100%;
    max-width: 300px;
  }

  .whatsapp-float {
    width: 60px;
    height: 60px;
    font-size: 30px;
    bottom: 20px;
    right: 20px;
  }
}
