/* ===== GRUPO GAMYC - Custom Styles ===== */

/* Animaciones personalizadas */
@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}

/* Focus visible para accesibilidad */
:focus-visible {
  outline: 2px solid #003366;
  outline-offset: 2px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #003366; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0052a3; }

/* Selección de texto */
::selection { background: #ff6b00; color: white; }

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 4.5rem; /* header height */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
}

.hero-title .highlight {
  background: linear-gradient(90deg, #ff6b00 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.95;
}

.hero-trust-item strong {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
}

/* Value Props */
.value-prop-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-prop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.value-prop-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Service Cards */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card-icon {
  height: 160px;
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-link {
  transition: gap 0.2s ease;
}

.service-card:hover .service-card-link {
  gap: 0.75rem;
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* Filter Buttons */
.filter-btn {
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #003366;
  border-color: #003366;
  color: white;
}

/* Portfolio */
.portfolio-item {
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
}

.portfolio-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: min(94vw, 1400px);
  max-height: 90vh;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-image {
  display: block;
  max-width: min(94vw, 1400px);
  max-height: calc(90vh - 3.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Forms */
.form-input, .form-select, .form-textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2);
}

.form-input:invalid:not(:placeholder-shown), .form-textarea:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg, #ff6b00 0%, #ff8c00 100%);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(255, 107, 0, 0.4), 0 4px 6px -2px rgba(255, 107, 0, 0.2);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-outline-primary {
  border: 2px solid #003366;
  color: #003366;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: #003366;
  color: white;
}

.btn-outline-white {
  border: 2px solid white;
  color: white;
  transition: all 0.2s ease;
}

.btn-outline-white:hover {
  background: white;
  color: #003366;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
}

/* Section Headers */
.section-title {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

.section-subtitle {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  color: #6c757d;
}

/* Back to Top */
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Header Scrolled */
#site-header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

/* Mobile Menu */
#mobile-menu.open {
  transform: translateX(0);
}

#mobile-menu-overlay.visible {
  display: block;
}

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

/* Print Styles */
@media print {
  .no-print { display: none !important; }
  .hero-section { min-height: auto; padding: 2rem 0; }
  .hero-overlay { opacity: 0; }
  .hero-title { color: #003366; }
  .hero-title .highlight { -webkit-text-fill-color: #003366; }
  a { text-decoration: none; color: #003366; }
}

/* Utility Classes */
.text-balance { text-wrap: balance; }
.container-custom { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.section-py { padding: 5rem 0; }
@media (max-width: 768px) { .section-py { padding: 3.5rem 0; } }

/* Schema.org Service Cards */
.service-schema { display: none; }