/* ========================================
   LAYOUT - Header, Footer, Navigation
   ======================================== */

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 240px;
  height: auto;
  padding: 20px 0;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-body);
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  background: transparent;
}

.nav-link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: var(--transition);
  filter: brightness(0) saturate(100%) invert(30%) sepia(8%) saturate(500%) hue-rotate(200deg) brightness(95%) contrast(90%);
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover {
  color: var(--primary-red);
  background: rgba(196, 30, 58, 0.08);
}

.nav-links a:hover .nav-link-icon {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(18%) sepia(89%) saturate(3000%) hue-rotate(340deg) brightness(0.8) contrast(1.1);
}

.nav-links a.active {
  color: #fff;
  background: var(--primary-red);
  font-weight: 600;
}

.nav-links a.active .nav-link-icon {
  transform: scale(1.1);
  filter: brightness(0) invert(1);
}

.nav-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-icon-link:hover {
  color: var(--primary-red);
  background: rgba(196, 30, 58, 0.06);
}

.nav-icon-link .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(30%) sepia(8%) saturate(500%) hue-rotate(200deg) brightness(95%) contrast(90%);
  transition: var(--transition);
}

.nav-icon-link:hover .nav-icon {
  filter: brightness(0) saturate(100%) invert(18%) sepia(89%) saturate(3000%) hue-rotate(340deg) brightness(0.8) contrast(1.1);
}

/* Language Switcher */
.language-switcher {
  position: relative;
}

.language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  padding: 0.5rem 1rem;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  min-width: 120px;
  z-index: 1000;
  overflow: hidden;
}

.language-option {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-body);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.language-option:hover {
  background: var(--light-bg-alt);
  color: var(--primary-red);
}

.language-option.active {
  background: rgba(196, 30, 58, 0.1);
  color: var(--primary-red);
  font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* Footer */
footer {
  background: var(--text-dark);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-column-merged {
  display: flex;
  flex-direction: column;
}

.footer-merged-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-merged-item {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .logo {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-brand .logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
}

.footer-brand p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-column h4 {
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--primary-red-light);
}

/* Contact Info in Footer */
.footer-column .contact-info {
  list-style: none;
}

.footer-column .contact-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-column .contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary-red-light);
}

.footer-column .contact-info span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* WhatsApp Chat Button */
.whatsapp-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}

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

.whatsapp-chat-btn .whatsapp-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-column-merged .footer-platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-platform h4 {
  text-align: left;
  color: #FFFFFF !important;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.platform-logo {
  display: flex;
  justify-content: center;
}

.platform-logo img {
  max-width: 100%;
  height: auto;
  display: block;
  width: auto;
  object-fit: contain;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Page Header (for inner pages) */
.page-header {
  padding: 9.5rem 0 4rem;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(196, 30, 58, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196, 30, 58, 0.05) 0%, transparent 50%);
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(248, 249, 252, 0.75) 0%, rgba(248, 249, 252, 0.65) 100%);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-header h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.3;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

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

.breadcrumb a:hover {
  color: var(--primary-red);
}

.breadcrumb span {
  color: var(--text-dark);
}