/* =========================================
   DISEÑO OPTIMIZADO PARA DIPROPACK
   ========================================= */

/* VARIABLES Y CONFIGURACIÓN BASE */
:root {
  --primary: #FACC15;
  --primary-dark: #EAB308;
  --primary-light: #FEF08A;
  --black: #000000;
  --dark-gray: #1a1a1a;
  --medium-gray: #333333;
  --light-gray: #f5f5f5;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.loader-container {
  position: relative;
  width: 300px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logos-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  height: 100%;
}

.logo-top,
.logo-bottom {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  opacity: 0;
  animation: 
    fadeInScale 1.5s ease forwards,
    goldenPulseEffect 2.5s ease-in-out infinite 1.5s;
}

.logo-top {
  animation-delay: 0.5s, 2s;
}

.logo-bottom {
  animation-delay: 0.8s, 2.3s;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
    filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0));
  }
  70% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0));
  }
}

@keyframes goldenPulseEffect {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4))
           brightness(1);
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8))
           brightness(1.15)
           contrast(1.15);
  }
}

.loading-text {
  margin-top: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { 
    opacity: 0.7;
    text-shadow: 0 0 5px rgba(250, 204, 21, 0.3);
  }
  50% { 
    opacity: 1;
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.7);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-gray);
  color: var(--medium-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* TIPOGRAFÍA */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-gray);
  z-index: 1000;
  border-bottom: 3px solid var(--primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-main,
.logo-secondary {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--primary);
  color: var(--black) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.nav-cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--black) !important;
}

.nav-cta::after {
  display: none;
}

/* HERO */
.dipropack-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.37), rgba(0, 0, 0, 0.705)),
    url('hero.webp') center/cover no-repeat;
  padding: 100px 20px 60px;
  margin-top: 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
}

.dipropack-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--white);
}

.dipropack-hero h1 span {
  color: var(--primary);
  display: block;
}

.dipropack-hero p {
  font-size: 1.3rem;
  color: #e5e7eb;
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-form-container {
  background: rgba(8, 8, 8, 0.384);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--primary);
  transform: translateY(0);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.form-box {
  text-align: center;
}

.form-box h3 {
  color: var(--black);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--medium-gray);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.hero-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-contact-form textarea,
.hero-contact-form input {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius);
  border: 2px solid #e0e0e0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
}

.hero-contact-form textarea:focus,
.hero-contact-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.hero-contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-hero-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--black);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
}

.submit-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1rem;
  font-style: italic;
}

/* TIRA DE IMÁGENES */
.image-strip {
  overflow: hidden;
  padding: 60px 0 30px;
  background: var(--white);
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}

.strip-title {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.strip-track {
  display: flex;
  width: calc(200px * 22);
  animation: scroll-infinite 40s linear infinite;
}

.strip-track:hover {
  animation-play-state: paused;
}

.strip-track img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin: 0 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.strip-disclaimer {
  text-align: center;
  font-size: 0.7rem;
  color: #888;
  margin-top: 20px;
  padding: 0 20px;
  font-style: italic;
}

@keyframes scroll-infinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 11 - (30px * 11))); }
}

/* CATÁLOGO */
.catalog-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.category-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.category-card i {
  font-size: 40px;
  margin-bottom: 15px;
  color: #facc15;
}

.category-card h3 {
  margin: 0;
  font-weight: 700;
}

.category-card p {
  font-size: 14px;
  opacity: .7;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

/* BENEFICIOS */
.benefits-section {
  padding: 6rem 0;
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.benefits-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(250, 204, 21, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 90%, rgba(250, 204, 21, 0.05) 0%, transparent 20%);
  z-index: 1;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.benefit-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: var(--black);
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background-color: var(--primary);
  transform: rotateY(180deg);
}

.benefit-card h3 {
  margin-bottom: 1rem;
  color: var(--black);
}

.benefit-card p {
  color: #666;
}

/* COTIZACIÓN */
.quote-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(250, 204, 21, 0.1) 0%, transparent 30%);
  z-index: 1;
}

.quote-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.quote-container h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.quote-container h2 span {
  color: var(--primary);
}

.quote-container p {
  text-align: center;
  color: #666;
  margin-bottom: 2.5rem;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group select,
.form-group input {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid #ddd;
  background-color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.submit-btn {
  background-color: var(--primary);
  color: var(--black);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* FOOTER */
.site-footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-column h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
}

.footer-column a,
.footer-column p {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #999;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* BOTTOM NAV MOBILE */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-gray);
  border-top: 3px solid var(--primary);
  z-index: 1000;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.75rem 0.5rem;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
  color: #aaa;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.nav-item.active {
  color: var(--primary);
  background-color: rgba(250, 204, 21, 0.1);
}

.nav-item:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
}

.nav-whatsapp {
  background-color: #25D366;
  color: white !important;
  border-radius: var(--radius-full);
  margin: 0 5px;
}

.nav-whatsapp .nav-icon {
  color: white;
}

/* WHATSAPP FLOTANTE */
.whatsapp-menu {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.whatsapp-main-btn {
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-main-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.whatsapp-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  min-width: 150px;
}

.whatsapp-menu:hover .whatsapp-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-option {
  display: flex;
  align-items: center;
  padding: 10px;
  text-decoration: none;
  color: var(--dark-gray);
  border-radius: 5px;
  transition: background 0.3s ease;
}

.whatsapp-option:hover {
  background-color: var(--light-gray);
}

.whatsapp-option i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.whatsapp-option:nth-child(1) i {
  color: #25D366;
}

.whatsapp-option:nth-child(2) i {
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .nav-links {
    display: none;
  }
  
  .bottom-nav {
    display: block;
  }
  
  body {
    padding-bottom: 70px;
  }
  
  .whatsapp-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .dipropack-hero {
    padding: 100px 15px 60px;
    margin-top: 70px;
    min-height: 60vh;
  }
  
  .dipropack-hero h1 {
    font-size: 2.5rem;
  }
  
  .dipropack-hero p {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-form-container {
    padding: 1.5rem;
  }
  
  .form-box h3 {
    font-size: 1.5rem;
  }
  
  .benefits-section,
  .quote-section {
    padding: 4rem 0;
  }
  
  .quote-container {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .logo-main,
  .logo-secondary {
    height: 50px;
  }
  
  .logo-container {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .dipropack-hero {
    min-height: 50vh;
    padding: 3rem 0 1.5rem;
  }
  
  .dipropack-hero h1 {
    font-size: 2rem;
  }
  
  .dipropack-hero p {
    font-size: 1rem;
  }
  
  .hero-form-container {
    padding: 1.25rem;
  }
  
  .hero-contact-form textarea,
  .hero-contact-form input {
    padding: 0.875rem;
  }
  
  .submit-hero-btn {
    padding: 0.875rem 1.5rem;
  }
  
  .bottom-nav-container {
    padding: 0.5rem;
  }
  
  .nav-icon {
    font-size: 1.1rem;
  }
  
  .nav-label {
    font-size: 0.6rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}