/* ========================================
   TEMATCHACEREMONIAL.COM - CSS AVANZADO PREMIUM
   Diseño de Alto Standing con Efectos 3D
   ======================================== */

/* === ANIMACIONES 3D Y EFECTOS === */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === GLASSMORPHISM === */
.glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-dark {
  background: rgba(76, 175, 80, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(76, 175, 80, 0.2);
}

/* === HERO IMAGE (Estilo Limpio con Imagen de Fondo) === */
.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

/* === CARDS 3D === */
.card-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(76, 175, 80, 0.1);
}

.card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
  z-index: -1;
}

.card-3d:hover::before {
  opacity: 1;
}

/* === BOTONES PREMIUM (Estilo Elegante y Minimalista) === */
.btn-premium {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #2E7D32;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.25);
}

.btn-premium:hover {
  transform: translateY(-2px);
  background: #1B5E20;
  box-shadow: 0 6px 20px rgba(27, 94, 32, 0.35);
}

.btn-premium:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(46, 125, 50, 0.3);
}

/* === IMÁGENES CON PARALLAX === */
.parallax-img {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.parallax-img img {
  transition: transform 0.3s ease;
  will-change: transform;
}

.parallax-img:hover img {
  transform: scale(1.1);
}

/* === SECCIÓN CON EFECTO DEPTH === */
.section-depth {
  position: relative;
  padding: 100px 0;
}

.section-depth::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(232, 245, 233, 0.5));
  pointer-events: none;
}

/* === TESTIMONIALES PREMIUM === */
.testimonial-premium {
  position: relative;
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-premium::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 100px;
  color: rgba(76, 175, 80, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-premium:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

/* === TABLA COMPARATIVA PREMIUM === */
.comparison-table-premium {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comparison-table-premium thead {
  background: #2E7D32;
  color: white;
}

.comparison-table-premium th {
  padding: 1.5rem;
  font-weight: 600;
  text-align: left;
  border: none;
}

.comparison-table-premium td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table-premium tr:hover {
  background: rgba(76, 175, 80, 0.03);
}

/* Estilos de highlight-cell eliminados para neutralidad */

/* === BADGES PREMIUM (Diseño Discreto y Elegante) === */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #2E7D32, #388E3C);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
  transition: all 0.3s ease;
}

.badge-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
}

/* === SCROLL ANIMATIONS === */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.scale-in {
  opacity: 0;
  animation: scaleIn 0.6s ease forwards;
}

/* Delays para animaciones escalonadas */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* === RESPONSIVE ADVANCED === */
@media (max-width: 768px) {
  .card-3d:hover {
    transform: translateY(-5px);
  }
  
  .hero-3d {
    background-size: 200% 200%;
  }
  
  .section-depth {
    padding: 60px 0;
  }
}

/* === SCROLLBAR PERSONALIZADO === */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4CAF50, #66BB6A);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #388E3C, #4CAF50);
}

/* === MENÚ DROPDOWN DE NAVEGACIÓN === */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.75rem 0;
  z-index: 1000;
  margin-top: 0.5rem;
  animation: fadeInDown 0.3s ease;
}

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

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-gray-700);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-dropdown-content a:hover {
  background: var(--color-gray-50);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  padding-left: 1.75rem;
}

.nav-dropdown-content a:last-child {
  border-top: 1px solid var(--color-gray-200);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Responsive: ocultar dropdowns en móvil */
@media (max-width: 768px) {
  .nav-dropdown-content {
    position: static;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    padding: 0;
  }
  
  .nav-dropdown:hover .nav-dropdown-content {
    display: none;
  }
}

/* === SELECTION === */
::selection {
  background: rgba(76, 175, 80, 0.3);
  color: #2E7D32;
}

::-moz-selection {
  background: rgba(76, 175, 80, 0.3);
  color: #2E7D32;
}

/* === FOCUS STATES === */
*:focus {
  outline: 2px solid rgba(76, 175, 80, 0.5);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 3px solid rgba(76, 175, 80, 0.4);
}

/* === PERFORMANCE OPTIMIZATIONS === */
.card-3d,
.btn-premium,
.parallax-img img {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
