/* ==========================================================================
   CAFETOS · CSS PREMIUM & MODERN
   ========================================================================== */

/* 1. VARIABLES & SETUP
   ========================================================================== */
:root {
  /* Colors */
  --primary: #1F2C20;
  --primary-dark: #1D1D1B;
  --secondary: #392C1C;
  --accent: #C3A77F;
  --bg-light: #f7f1e7;
  --text-dark: #1D1D1B;
  --text-muted: #3B3D3B;
  --white: #ffffff;
  
  /* Fonts */
  --font-body: 'Space Mono', monospace;
  --font-heading: 'Space Mono', monospace;
  --font-accent: 'Space Mono', monospace;
  
  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
  --section-padding: clamp(60px, 10vw, 100px) 0;
  
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
}

body.loading {
  overflow: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* 2. TEXTURE & OVERLAYS
   ========================================================================== */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 3. TYPOGRAPHY
   ========================================================================== */
.section-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

/* 4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(31, 44, 32, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* 5. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(60px, 8vh, 80px); /* Dynamic height */
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background-color: rgba(252, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  height: 60px; /* Slimmer on scroll */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar.nav-dark .nav-links a,
.navbar.nav-dark .nav-logo {
  color: var(--white);
}

.navbar.nav-dark.scrolled {
  background-color: rgba(31, 44, 32, 0.95);
}

.navbar.nav-dark .hamburger span {
  background-color: var(--white);
}

.navbar.nav-light .nav-links a,
.navbar.nav-light .nav-logo {
  color: var(--primary);
}

.navbar.nav-light.scrolled {
  background-color: rgba(247, 241, 231, 0.95);
}

.navbar.nav-light .hamburger span {
  background-color: var(--primary);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.nav-logo img {
  height: clamp(24px, 4vw, 32px); /* Responsive logo height */
  width: auto;
  filter: brightness(0) invert(1); /* Default white for dark backgrounds */
  transition: var(--transition);
}

.navbar.nav-light .nav-logo img,
.navbar.scrolled .nav-logo img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(16%) saturate(1518%) hue-rotate(101deg) brightness(91%) contrast(92%);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.05em;
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--text-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

.navbar.scrolled .hamburger span {
  background-color: var(--primary);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%; /* Full width to avoid layout issues */
    height: 100vh;
    background-color: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: 0.5s var(--ease);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--white) !important;
    font-size: clamp(24px, 8vw, 32px); /* Responsive mobile font */
    font-family: var(--font-body);
    font-weight: 700;
    margin: 15px 0;
  }

  .hamburger {
    display: block;
    padding: 5px; /* Smaller padding */
    margin-right: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* 6. HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Large Background Logo effect */
.hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 70vw, 900px);
  height: clamp(80px, 20vw, 220px);
  background: url("img/logo.webp") center/contain no-repeat;
  opacity: 0.08;
  filter: brightness(0) invert(1);
  z-index: -1;
  pointer-events: none;
}

.hero-logo {
  display: none; /* Hide img logo in hero as per image, use text */
}

.hero-divider {
  width: 40px;
  height: 1px;
  background-color: var(--white);
  margin-bottom: 24px;
  opacity: 0.6;
}

.hero-tagline {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards 0.5s;
}

.hero-tagline img {
  width: clamp(220px, 58vw, 560px);
  height: auto;
  filter: brightness(0) saturate(100%) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.hero-label {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  opacity: 0.9;
}

.hero-sub {
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 400;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards 0.8s;
}

.hero .btn-outline {
  border-radius: 50px;
  padding: 18px 40px;
  border: 1px solid var(--white);
  background: transparent;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards 1s;
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleX {
  from { transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

/* 7. ABOUT SECTION
   ========================================================================== */
#nosotros {
  padding: var(--section-padding);
  background-color: var(--bg-light);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background-color: var(--primary);
  opacity: 0.4;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .section-label {
    justify-content: center;
  }
  
  .about-text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

.about-text .section-title {
  font-size: clamp(32px, 6vw, 64px);
  margin-bottom: clamp(20px, 4vw, 40px);
  line-height: 1.1;
}

.about-text p {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 17px);
  max-width: 520px;
}

.about-text p:first-of-type::first-letter {
  font-family: var(--font-body);
  font-size: clamp(3.5em, 5vw, 4.5em);
  float: left;
  line-height: 0.8;
  margin-right: 12px;
  color: var(--primary);
  margin-top: 4px;
}

.about-images {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-right: clamp(20px, 5vw, 40px);
  max-width: 500px;
  margin: 0 auto;
}

.about-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-img-wrap:first-child {
  width: 45%;
  aspect-ratio: 3 / 4;
  z-index: 2;
  margin-right: -20%;
  margin-top: 15%;
}

.about-img-wrap:last-child {
  width: 55%;
  aspect-ratio: 3 / 4;
  z-index: 1;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Circle background element */
.about-images::after {
  content: '';
  position: absolute;
  top: -20px;
  right: 0;
  width: clamp(150px, 30vw, 200px);
  height: clamp(150px, 30vw, 200px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  z-index: 0;
}

@media (max-width: 768px) {
  .about-images::after {
    display: none;
  }

  .about-images {
    padding-right: 0;
    overflow: hidden;
  }

  .about-img-wrap:first-child {
    margin-right: -10%;
  }
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* 8. GALLERY SECTION
   ========================================================================== */
#galeria {
  padding: var(--section-padding);
  background-color: var(--primary);
  color: var(--white);
}

#galeria .section-label {
  color: var(--white);
  opacity: 0.6;
}

#galeria .section-label::before {
  background-color: var(--white);
}

#galeria .section-title {
  color: var(--white);
  margin-bottom: 32px;
}

#galeria .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(200px, 25vw, 300px);
  gap: clamp(10px, 2vw, 20px);
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  
  .gallery-item:nth-child(n) {
    grid-row: span 1 !important;
    grid-column: span 1 !important;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* Specific layout based on image 3 */
.gallery-item:nth-child(1) {
  grid-row: span 2;
}

.gallery-item:nth-child(2) {
  grid-column: span 1;
}

.gallery-item:nth-child(3) {
  grid-column: span 1;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* 9. MENU SECTION
   ========================================================================== */
#menu {
  padding: var(--section-padding);
  background-color: var(--bg-light);
  text-align: center;
}

#menu .section-title {
  font-size: clamp(32px, 6vw, 64px);
  margin-bottom: clamp(20px, 4vw, 32px);
}

#menu .section-subtitle {
  margin: 0 auto clamp(40px, 8vw, 60px);
  padding: 0 20px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: 60px;
}

.menu-card {
  padding: clamp(30px, 6vw, 60px) clamp(20px, 4vw, 40px);
  background-color: var(--white);
  border-radius: 24px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 992px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

.menu-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.menu-card:hover::after {
  transform: scaleX(1);
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.menu-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 32px;
}

.menu-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}

.menu-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.menu-cta .btn-primary {
  background-color: var(--primary-dark);
  border-radius: 50px;
  padding: 18px 48px;
  font-size: 13px;
}

@media (max-width: 992px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

/* 10. CONTACT SECTION
   ========================================================================== */
#contacto {
  padding: var(--section-padding);
  background-color: var(--bg-light);
  color: var(--text-dark);
}

#contacto .section-title {
  color: var(--primary);
  font-size: clamp(32px, 6vw, 64px);
  margin-bottom: clamp(30px, 6vw, 48px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 10vw, 120px);
  align-items: center;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
  margin-bottom: 24px;
}

.contact-icon {
  width: 52px;
  height: 52px;
  background-color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--primary);
  text-transform: none;
  letter-spacing: 0;
}

.contact-item p, .contact-item a {
  font-size: 15px;
  color: var(--text-muted);
}

.contact-socials {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

.social-link {
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

.contact-map {
  height: clamp(300px, 50vw, 450px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* 11. FOOTER
   ========================================================================== */
.footer {
  padding: 100px 0 40px;
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
  gap: 20px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain; /* Prevent distortion */
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  flex-grow: 1;
  font-weight: 400;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: var(--white);
  opacity: 0.6;
  transition: var(--transition);
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.4;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 24px;
  }

  .footer-tagline {
    font-size: 16px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* 12. SOCIAL FLOATING (GLASSMORPHISM)
   ========================================================================== */
.social-floating-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
}

.social-float {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  transition: all 0.4s var(--ease);
  
  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.social-float.whatsapp { color: #25d366; }
.social-float.instagram { color: #e4405f; }
.social-float.tiktok { color: var(--white); }

.social-float:hover {
  transform: translateX(-10px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.float-label {
  position: absolute;
  right: 70px;
  background: var(--primary);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.social-float:hover .float-label {
  opacity: 1;
  transform: translateX(-10px);
}

/* Mobile: App-like Bottom Bar */
@media (max-width: 768px) {
  .social-floating-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
    margin: 0;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px max(10px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    background: var(--primary-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
    gap: 8px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    overflow: clip;
    box-sizing: border-box;
  }

  .social-float {
    width: clamp(42px, 12vw, 48px);
    height: clamp(42px, 12vw, 48px);
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--white) !important; /* Force icons to be white for high contrast */
  }

  .social-float.whatsapp { color: #25d366 !important; } /* Keep original brand colors but ensure visibility */
  .social-float.instagram { color: #e4405f !important; }
  .social-float.tiktok { color: var(--white) !important; }
  
  .social-float:hover {
    transform: none;
    background: transparent;
  }

  .float-label {
    display: none;
  }

  .footer {
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  .social-floating-container {
    width: auto;
    left: auto;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    border-radius: 14px;
    padding: 8px;
    gap: 6px;
    background: rgba(13, 27, 19, 0.85);
  }

  .social-float {
    width: 40px;
    height: 40px;
  }

  .footer {
    padding-bottom: 80px;
  }
}

/* 13. ANIMATIONS
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.fade-in-left.appear {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.fade-in-right.appear {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
