/* Custom Design System & Corporate Styles for MiContador */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --altura-del-header: 140px; /* Sincronizada dinámicamente por JavaScript */
  --primary-navy: #012a53;
  --primary-navy-dark: #001026;
  --primary-blue: #06396e;
  --accent-gold: #d19a3c;
  --accent-gold-light: #ecc478;
  --accent-gold-dark: #b5822c;
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --bg-light: #F8FAFC;
  --card-bg: #FFFFFF;
  --whatsapp-color: #25D366;
  --whatsapp-hover: #20bd5a;
  --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

html {
  scroll-behavior: smooth;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-body);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Glassmorphism & Header */
.glass-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(0, 16, 38, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(209, 154, 60, 0.2);
}

/* Prominent Header Logo Styling */
.header-logo {
  height: 6rem; /* ~96px in mobile */
  width: auto;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(1, 42, 83, 0.12));
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .header-logo {
    height: 8.5rem; /* 136px in desktop - Prominent & Large */
  }
}

.footer-logo {
  height: 5.5rem;
  width: auto;
  object-fit: contain;
}

/* Gradient Texts & Accents */
.text-gradient {
  background: linear-gradient(135deg, #012a53 0%, #06396e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #d19a3c 0%, #f5dba4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-corporate-gradient {
  background: linear-gradient(135deg, #001026 0%, #012a53 55%, #06396e 100%);
}

.bg-light-gradient {
  background: linear-gradient(180deg, #F8FAFC 0%, #FDF8EE 100%);
}

/* Corporate Buttons */
.btn-primary {
  background: linear-gradient(135deg, #012a53 0%, #06396e 100%);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(1, 42, 83, 0.25);
  border: 1px solid rgba(209, 154, 60, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #001026 0%, #012a53 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(1, 42, 83, 0.35);
  border-color: rgba(209, 154, 60, 0.6);
}

.btn-accent {
  background: linear-gradient(135deg, #d19a3c 0%, #b5822c 100%);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(209, 154, 60, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #e0ae55 0%, #d19a3c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(209, 154, 60, 0.45);
}

/* Social Media Specific Colors */
.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.05);
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
}

.icon-instagram {
  background: var(--instagram-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-instagram {
  background: var(--instagram-gradient);
}

/* Floating WhatsApp Pulse Animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  animation: pulse-ring 2s infinite;
}

/* Hero Carousel Slider Styles */
.hero-slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(20px);
}

.hero-slide.active-slide {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: translateX(0);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-dot.active-dot {
  width: 36px;
  background-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(209, 154, 60, 0.8);
}

/* Uniform Hero Image Container with 100% object-fit: cover */
/* Hero Section Dynamic Height & Desktop Scroll-Free Alignment */
#heroSliderContainer {
  margin-top: var(--altura-del-header);
  height: calc(100vh - var(--altura-del-header));
  height: calc(100dvh - var(--altura-del-header));
  min-height: calc(100vh - var(--altura-del-header));
}

@media (min-width: 1024px) {
  #heroSliderContainer {
    height: calc(100vh - var(--altura-del-header));
    max-height: calc(100vh - var(--altura-del-header));
    overflow: hidden; /* Encaje perfecto sin scroll en escritorio */
  }
}

/* Enmarcado de imágenes del Hero: Proporción exacta 16:9 y object-fit contain para CERO recortes */
.hero-img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 42vh;
  overflow: hidden;
  background-color: #001026;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

/* Service Card Hover Animations */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #E2E8F0;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #ecc478;
  box-shadow: 0 20px 30px -10px rgba(1, 42, 83, 0.12);
}

.service-card:hover .service-icon {
  background-color: #012a53;
  color: #d19a3c;
  transform: scale(1.1) rotate(2deg);
}

.service-icon {
  transition: all 0.3s ease;
}

/* Client Card Logo Hover Animation */
.client-card img {
  transition: transform 0.3s ease;
}

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

/* Image Showcase Hover */
.team-img-card {
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 15px 30px -10px rgba(1, 42, 83, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-img-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(1, 42, 83, 0.25);
}

/* Seal Card Hover */
.seal-card {
  transition: all 0.3s ease;
}

.seal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(1, 42, 83, 0.15);
}

/* Modal Transitions */
.modal-backdrop {
  transition: opacity 0.3s ease-in-out;
}

.modal-content {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Typography Custom Sizing for Menu */
.nav-link {
  font-size: 1.15rem; /* 18.4px - clear & legible */
  font-weight: 500;
  color: #1E293B;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #012a53;
  font-weight: 700;
}

/* Custom Dropdown Animation */
.dropdown-menu {
  transition: all 0.2s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}

.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
