/* ============================================================
   VITRIALUM DE ORIENTE — Global Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ============================================================
   VARIABLES
   ============================================================ */

:root {
  --primary: #0d3fa6;
  --primary-light: #1a5fc8;
  --primary-dark: #092c78;
  --electric: #2979ff;
  --silver: #b8c4d4;
  --silver-light: #dce4ef;
  --white: #ffffff;
  --off-white: #f4f7fc;
  --dark: #0a0e1a;
  --dark-mid: #121827;
  --text-body: #3a4460;
  --text-muted: #6b7a9e;
  --wa-green: #25d366;
  --border: rgba(13, 63, 166, 0.12);

  --ease-fluid: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: all 0.45s var(--ease-fluid);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  --shadow-sm: 0 4px 16px rgba(13, 63, 166, 0.08);
  --shadow-md: 0 12px 40px rgba(13, 63, 166, 0.12);
  --shadow-lg: 0 24px 64px rgba(13, 63, 166, 0.16);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================================
   CONTAINER
   ============================================================ */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   LOADER
   ============================================================ */

#loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#loader-overlay.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
}

.loader-bar-wrap {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--electric),
    var(--silver)
  );

  animation: loaderSweep 1.2s ease-in-out infinite;
}

@keyframes loaderSweep {
  0% {
    width: 0%;
    margin-left: 0;
  }

  50% {
    width: 100%;
    margin-left: 0;
  }

  100% {
    width: 0%;
    margin-left: 100%;
  }
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;

  width: 60px;
  height: 60px;

  border-radius: 50%;

  background: var(--wa-green);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;

  z-index: 9000;

  box-shadow: 0 8px 24px rgba(37,211,102,0.4);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  animation: waPulse 2.4s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
}

@keyframes waPulse {
  0%,100% {
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  }

  50% {
    box-shadow: 0 8px 40px rgba(37,211,102,0.7);
  }
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 8000;

  height: 88px;

  background: rgba(255,255,255,0.96);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid var(--border);

  transition: var(--transition);
}

.header.scrolled {
  height: 68px;
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

/* ============================================================
   LOGO
   ============================================================ */

.logo-box {
  display: flex;
  align-items: center;
  gap: 14px;

  flex-shrink: 0;
}

.logo-img {
  height: 200px;
  width: auto;

  object-fit: contain;

  transition: var(--transition);
}

.header.scrolled .logo-img {
  height: 46px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand-main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;

  letter-spacing: 2px;
  text-transform: uppercase;

  color: var(--primary);
}

.logo-text .brand-sub {
  font-size: 0.65rem;
  font-weight: 500;

  letter-spacing: 3px;
  text-transform: uppercase;

  color: var(--text-muted);
}

/* ============================================================
   DESKTOP NAV
   ============================================================ */

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;

  display: inline-flex;
  align-items: center;

  padding: 9px 16px;

  border-radius: var(--radius-sm);

  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: var(--text-body);

  overflow: hidden;

  transition: all 0.3s ease;
}

.nav-link::before {
  content: '';

  position: absolute;
  inset: 0;

  background: var(--primary);

  opacity: 0;

  transform: scale(0.8);

  transition: all 0.3s ease;

  z-index: -1;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::before {
  opacity: 0.08;
  transform: scale(1);
}

.nav-link.active {
  background: var(--primary);
  color: var(--white);

  box-shadow: 0 6px 20px rgba(13,63,166,0.3);
}

/* ============================================================
   MOBILE BUTTON
   ============================================================ */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;

  background: none;
  border: none;

  cursor: pointer;

  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;

  background: var(--dark);

  border-radius: 10px;

  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */

.mobile-menu {
  display: none;

  position: fixed;
  top: 88px;
  left: 0;
  right: 0;

  background: var(--white);

  padding: 20px 28px 28px;

  z-index: 7999;

  transform: translateY(-10px);

  opacity: 0;
  visibility: hidden;

  transition: all 0.35s var(--ease-fluid);
}

.mobile-menu.open {
  transform: translateY(0);

  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 18px;

  border-radius: var(--radius-md);

  font-size: 0.9rem;
  font-weight: 600;

  letter-spacing: 1px;
  text-transform: uppercase;

  transition: all 0.25s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--primary);
  color: white;
}

.mobile-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-top: 16px;
  padding: 16px;

  border-radius: var(--radius-md);

  background: var(--wa-green);
  color: white;

  font-size: 0.85rem;
  font-weight: 700;

  text-transform: uppercase;
}

.mobile-wa-btn {
  border: none;
  outline: none;
  box-shadow: none;
}

/* =========================
   MOBILE WHATSAPP DROPDOWN
========================= */

.mobile-wa-menu{
  position: relative;
}

.mobile-wa-options{
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: 12px;

  opacity: 0;
  visibility: hidden;

  transform: translateY(-10px);

  transition: all .3s ease;

  max-height: 0;
  overflow: hidden;
}

.mobile-wa-options.active{
  opacity: 1;
  visibility: visible;

  transform: translateY(0);

  max-height: 300px;
}

.mobile-wa-option{
  display: flex;
  align-items: center;
  gap: 10px;

  background: #f4f7fc;
  color: var(--dark);

  padding: 14px 16px;

  border-radius: var(--radius-md);

  font-weight: 600;

  transition: all .25s ease;
}

.mobile-wa-option:hover{
  background: var(--wa-green);
  color: white;
}

/* ============================================================
   HERO SMALL
   ============================================================ */

.hero-sm {
  position: relative;

  height: 42vh;
  min-height: 320px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  text-align: center;
  color: white;
}

.hero-sm-bg {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;

  filter: brightness(0.35);
}

.hero-sm-content {
  position: relative;
  z-index: 2;
}

.hero-sm h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;

  text-transform: uppercase;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.section-padding {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.bg-off-white {
  background: var(--off-white);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;

  text-transform: uppercase;

  color: var(--dark);
}

.section-label {
  display: inline-block;

  margin-bottom: 14px;

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 3px;
  text-transform: uppercase;

  color: var(--electric);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 32px;

  border: none;
  border-radius: 999px;

  cursor: pointer;

  font-size: 0.82rem;
  font-weight: 700;

  letter-spacing: 1.5px;
  text-transform: uppercase;

  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-wa {
  background: var(--wa-green);
  color: white;
}

.btn-lg {
  padding: 18px 44px;
  font-size: 0.9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);

  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;

  padding-bottom: 48px;

  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .brand-main {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;

  letter-spacing: 2px;
  text-transform: uppercase;

  color: white;
}

.footer-brand .brand-sub {
  margin-bottom: 18px;

  font-size: 0.65rem;

  letter-spacing: 3px;
  text-transform: uppercase;

  color: rgba(255,255,255,0.4);
}

.footer-col h4 {
  margin-bottom: 18px;

  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;

  letter-spacing: 3px;
  text-transform: uppercase;

  color: white;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin-bottom: 12px;
}

.footer-bottom {
  padding-top: 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  flex-wrap: wrap;

  gap: 12px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 36px;
  height: 36px;

  border-radius: 50%;

  border: 1px solid rgba(255,255,255,0.15);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.25s ease;
}

.footer-social-link:hover {
  background: var(--electric);
  border-color: var(--electric);
  color: white;
}

/* ============================================================
   AOS FIX
   ============================================================ */

[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {

  .nav-list {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {

  .container {
    padding: 0 18px;
  }

  .section-padding {
    padding: 64px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .logo-text .brand-main {
    font-size: 0.95rem;
  }

  .logo-img {
    height: 46px;
  }
}

/* =========================
   WHATSAPP MULTI BUTTON
========================= */

.whatsapp-container{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.whatsapp-options{
  position: absolute;
  bottom: 80px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: all .3s ease;
}

.whatsapp-options.active{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-option{
  display: flex;
  align-items: center;
  gap: 10px;

  background: #25D366;
  color: white;

  padding: 12px 18px;
  border-radius: 100px;

  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;

  box-shadow: 0 10px 30px rgba(0,0,0,.2);

  transition: all .25s ease;
}

.whatsapp-option:hover{
  transform: translateX(-4px) scale(1.03);
  background: #1ebe5d;
}

.whatsapp-option i{
  font-size: 1.1rem;
}

/* botón principal */
.whatsapp-float{
  width: 64px;
  height: 64px;

  border: none;
  border-radius: 50%;

  background: #25D366;
  color: white;

  font-size: 2rem;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 30px rgba(0,0,0,.25);

  transition: all .3s ease;
}

.whatsapp-float:hover{
  transform: scale(1.08);
  background: #1ebe5d;
}

/* =========================
   WHATSAPP MODAL
========================= */

.whatsapp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;

  z-index: 99999;

  padding: 20px;
}

.whatsapp-modal.active {
  opacity: 1;
  visibility: visible;
}

.whatsapp-modal-content {
  width: 100%;
  max-width: 420px;

  background: #ffffff;

  border-radius: 24px;

  padding: 32px;

  position: relative;

  animation: modalUp 0.3s ease;
}

@keyframes modalUp {

  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }

}

.whatsapp-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;

  border: none;
  background: none;

  font-size: 28px;

  cursor: pointer;

  color: #888;
}

.whatsapp-modal h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.whatsapp-modal p {
  color: #666;
  margin-bottom: 24px;
}

.whatsapp-modal-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.whatsapp-modal-option {
  display: flex;
  align-items: center;
  gap: 16px;

  text-decoration: none;

  padding: 16px;

  border-radius: 18px;

  background: #f5f5f5;

  transition: 0.25s ease;

  color: #111;
}

.whatsapp-modal-option:hover {
  background: #25D366;
  color: white;

  transform: translateY(-2px);
}

.whatsapp-modal-avatar {
  width: 52px;
  height: 52px;

  border-radius: 50%;

  background: #25D366;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;

  font-weight: 700;
  font-size: 18px;

  flex-shrink: 0;
}

.whatsapp-modal-info {
  flex: 1;
}

.whatsapp-modal-info h3 {
  margin: 0;
  font-size: 18px;
}

.whatsapp-modal-info span {
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 600px) {

  .whatsapp-modal-content {
    padding: 24px;
  }

}

.btn-outline-white{
  background: var(--primary);
  color: white;
  border: none;
}

.btn-outline-white:hover{
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ==========================================
   FIJAR MENÚ MÓVIL AL HACER SCROLL
   ========================================== */
#mobile-menu.mobile-menu.open {
    position: fixed !important;
    top: 67px !important; /* Ajusta este número si queda muy arriba o muy abajo de la barra azul */
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
}