/* ==========================================================================
   Design System: In The Cup — Dark Premium
   ========================================================================== */

:root {
  /* Colors */
  --bg-dark: #070708;
  --bg-card: #121214;
  --bg-card-hover: #1c1c1f;
  --primary-gold: #c9922a;
  --primary-gold-hover: #e0a73e;
  --text-white: #ffffff;
  --text-gray: #a0a0a5;
  --text-muted: #6e6e73;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(201, 146, 42, 0.3);

  /* Fonts */
  --font-headline: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 15px rgba(201, 146, 42, 0.2);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-gold) var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold-hover);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-white);
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-gold);
  margin-bottom: 1rem;
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-gray);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.gold {
  color: var(--primary-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-gold {
  background-color: var(--primary-gold);
  color: #000;
}

.btn-gold:hover {
  background-color: var(--primary-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  gap: 0.5rem;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.itc-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(7, 7, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.itc-header.scrolled {
  background-color: #070708;
  border-bottom: 1px solid var(--border-gold);
}

.itc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  transition: all 0.3s ease;
}

.itc-header.scrolled .itc-nav {
  height: 5rem;
}

.nav-logo .logo-img {
  height: 3.4rem; /* Increased size for high prominence */
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.itc-header.scrolled .nav-logo .logo-img {
  height: 2.8rem; /* Adjusted scrolled size to maintain header proportions */
}

.nav-logo:hover .logo-img {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-gray);
  letter-spacing: 0.03em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdowns */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .arrow {
  font-size: 0.7rem;
  margin-left: 0.25rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  list-style: none;
  padding: 0.8rem 0;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-gray);
  font-weight: 400;
}

.dropdown-menu a:hover {
  background-color: var(--bg-card-hover);
  color: var(--primary-gold);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 5.5rem;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(7,7,8,0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 850px;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-size: 4.8rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.1s;
  animation-fill-mode: both;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-subtitle strong {
  color: var(--text-white);
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: pulse 2s infinite;
}

.scroll-arrow {
  width: 1px;
  height: 35px;
  background-color: var(--text-muted);
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
}

/* ==========================================================================
   Gluten Free Banner
   ========================================================================== */

.gluten-banner {
  background-color: #0f0f11;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 1.2rem 0;
  text-align: center;
}

.gluten-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text-white);
}

.gluten-banner strong {
  color: var(--primary-gold);
}

.gluten-icon {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1) sepia(100%) saturate(1000%) hue-rotate(330deg);
}

/* ==========================================================================
   Nosotros Section
   ========================================================================== */

.nosotros-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.nosotros-text {
  padding-right: 2rem;
}

.nosotros-text p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.nosotros-features {
  list-style: none;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.nosotros-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.nosotros-features .check {
  color: var(--primary-gold);
  font-weight: bold;
}

.nosotros-images {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nosotros-img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: transform 0.4s ease;
}

.nosotros-img.main-img {
  width: 80%;
  z-index: 2;
  transform: translateX(-10%);
}

.nosotros-img.secondary-img {
  position: absolute;
  width: 50%;
  right: -5%;
  bottom: -15%;
  z-index: 3;
}

.nosotros-images:hover .main-img {
  transform: translateX(-10%) scale(1.02);
}

.nosotros-images:hover .secondary-img {
  transform: translateY(-5px);
}

/* ==========================================================================
   Productos Section
   ========================================================================== */

/* Tabs */
.cat-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.cat-tab {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  padding: 0.7rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cat-tab:hover {
  border-color: var(--primary-gold);
  color: var(--text-white);
}

.cat-tab.active {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  color: #000;
}

/* Category Panels */
.cat-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.cat-panel.active {
  display: block;
}

.cat-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.cat-header h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cat-header p {
  color: var(--text-gray);
  font-size: 1.05rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* Product Card */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  background-color: var(--bg-card-hover);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* square ratio */
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.02);
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.badge-gluten {
  background-color: #2b7a4b;
  color: white;
}

.minsal-seals {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.sello {
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  background-color: #000;
  border: 1.5px solid #fff;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-family: var(--font-body);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-white);
  font-family: var(--font-body);
  font-weight: 600;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 1.2rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-sizes {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.size-tag {
  font-size: 0.7rem;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-gray);
}

.btn-details {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--primary-gold);
  padding: 0.6rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.product-card:hover .btn-details {
  background-color: var(--primary-gold);
  color: #000;
  border-color: var(--primary-gold);
}

/* ==========================================================================
   Recetas Section
   ========================================================================== */

.recetas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

.receta-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.receta-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
}

.receta-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.receta-info {
  padding: 1.5rem;
}

.receta-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.receta-info h4 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.receta-info p {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.receta-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: rgba(43, 122, 75, 0.15);
  color: #4bd180;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ==========================================================================
   Marcas Section
   ========================================================================== */

.marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.marca-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  position: relative;
}

.marca-card:hover {
  border-color: var(--border-gold);
  background-color: var(--bg-card-hover);
  transform: translateY(-3px);
}

.marca-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(201, 146, 42, 0.1);
  color: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
}

.marca-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.marca-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.marca-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--primary-gold);
  transition: transform 0.3s ease;
}

.marca-card:hover .marca-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   Contacto Section
   ========================================================================== */

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacto-text h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.contacto-text p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-gold);
}

.contacto-form-wrap {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-family: var(--font-body);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  background-color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.itc-footer {
  background-color: #040405;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  color: var(--text-muted);
}

.footer-social a:hover {
  color: var(--primary-gold);
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.footer-col ul a:hover {
  color: var(--primary-gold);
}

.footer-col ul li {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-gray);
}

.footer-bottom a:hover {
  color: var(--primary-gold);
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  color: white;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border-gold);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Modals (Premium Glassmorphism & Details)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-gold) var(--bg-card);
}

.modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-white);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding: 3.5rem;
}

.modal-img-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  background-color: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.modal-product-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

.modal-product-img-secondary {
  width: 70%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  opacity: 0.65;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-cat {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-gold);
  letter-spacing: 0.1em;
}

.modal-info-col h2 {
  font-size: 2.2rem;
  line-height: 1.2;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
}

.modal-desc p {
  margin-bottom: 1rem;
}

.modal-ingredients h4, .modal-nutricional h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-white);
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
  border-left: 2px solid var(--primary-gold);
  padding-left: 0.5rem;
}

.modal-ingredients p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.modal-ingredients ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-gray);
}

.modal-ingredients ul li {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-ingredients ul li::before {
  content: '✓';
  color: var(--primary-gold);
  font-weight: bold;
}

.allergen-warning {
  color: #ff6b6b !important;
  margin-top: 0.5rem;
}

/* Nutritional Table */
.nutri-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.8rem;
}

.nutri-table th, .nutri-table td {
  padding: 0.5rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.nutri-table th {
  font-weight: 600;
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.02);
}

.nutri-table td {
  color: var(--text-gray);
}

.nutri-table tr:hover td {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.01);
}

.vd-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
    opacity: 0.9;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.5;
  }
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.8rem;
  }
  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .nosotros-text {
    padding-right: 0;
  }
  .nosotros-images {
    height: 350px;
  }
  .nosotros-img.main-img {
    width: 65%;
  }
  .nosotros-img.secondary-img {
    width: 45%;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .modal-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem;
  }
  .modal-product-img {
    max-height: 220px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    margin-bottom: 1.2rem;
  }
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .itc-nav {
    padding: 0 1.25rem;
  }
  
  /* Mobile Menu */
  .nav-menu {
    position: fixed;
    top: 5.5rem;
    left: -100%;
    width: 100%;
    height: calc(100vh - 5.5rem);
    background-color: #070708;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.5rem;
    gap: 1.8rem;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 0 1.25rem;
    display: none;
  }
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }
  
  /* Fluid Hero Typography */
  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
    margin-bottom: 1.5rem;
  }
  .hero-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    margin-bottom: 2rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 0.8rem;
  }
  .btn {
    width: 100%; /* Full-width mobile buttons for improved touch targets */
  }

  /* Safe responsive grids */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
  }

  /* Overlapping Image Overflow Fix */
  .nosotros-images {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  .nosotros-img.main-img {
    width: 100%;
    transform: none;
  }
  .nosotros-img.secondary-img {
    position: static;
    width: 100%;
    transform: none;
  }

  /* Gluten Banner Fluid Layout */
  .gluten-banner .container {
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  .gluten-icon {
    height: 20px;
  }

  /* Form spacing overflow fix */
  .contacto-form-wrap {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
  }

  /* Floating WhatsApp Button size */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  .whatsapp-tooltip {
    display: none;
  }

  /* Modal Mobile Safe layouts */
  .modal {
    width: 95%;
    max-height: 90vh;
    border-radius: var(--radius-md);
  }
  .modal-body {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .modal-img-col {
    padding: 1rem;
    gap: 1.5rem;
  }
  .modal-product-img {
    max-height: 180px;
  }
  .modal-product-img-secondary {
    width: 50%;
    padding-top: 1rem;
  }
  .modal-info-col h2 {
    font-size: 1.8rem;
  }
  
  /* Horizontal scroll wrapper for nutritional tables to prevent squeezing */
  .modal-nutricional {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nutri-table {
    min-width: 450px; /* Forces readable table width, user scrolls horizontally */
  }
}
