/*
 * CSS extraído de index.html
 * Puedes seguir organizando y modularizando este archivo según se requiera.
 */

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 2002;
    background: rgba(252, 251, 248, 0.97);
    border-bottom: 1.5px solid #e7e2d8;
    box-shadow: 0 2px 18px rgba(0,0,0,0.07);
    transition: background 0.3s;
  }
  .site-header.menu-open {
    background: #181818 !important;
    box-shadow: 0 2px 18px rgba(0,0,0,0.13);
    border-bottom: none;
  }
  .site-header.menu-open {
    background: #181818 !important;
  }
  .nav-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.2em;
    width: 100%;
    padding: 0.5em 1em;
    min-height: 64px;
  }
  .nav-mobile-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7em;
    width: 100%;
  }
  .brand {
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0;
  }
  .brand-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .brand-text {
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
}

/* Drawer lateral para menú móvil */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.38);
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.active {
  display: block;
  pointer-events: auto;
}
@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 82vw;
    max-width: 340px;
    height: 100vh;
    background: #101012;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.08rem;
    font-size: 0.41rem;
    z-index: 1001;
    transform: translateX(-100vw);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(.7,1.7,.6,1);
    box-shadow: 4px 0 32px rgba(0,0,0,0.28);
    padding: 0.4rem 0.2rem 0.2rem 0.2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .site-nav.nav-open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .site-nav a {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.18em 0.3em;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    width: 100%;
    display: block;
    text-align: left;
    font-size: 1em;
    margin-bottom: 0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
  }
  .site-nav a:hover {
    background: #ef7d12;
    color: #fff;
    box-shadow: 0 2px 18px rgba(239,125,18,0.13);
  }
  .desktop-cta {
    display: none !important;
  }
}

/* Animación pulsante y brillo para el botón Cotiza ya */
.cotiza-ya-anim {
  position: relative;
  animation: pulse-cotiza 1.7s infinite;
  overflow: hidden;
}
@keyframes pulse-cotiza {
  0% {
    box-shadow: 0 0 0 0 rgba(239,125,18,0.18);
    transform: scale(1);
  }
  20% {
    transform: scale(1.08);
  }
  40% {
    transform: scale(1.13);
  }
  60% {
    transform: scale(1.08);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(239,125,18,0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239,125,18,0.18);
    transform: scale(1);
  }
}
.cotiza-ya-anim::after {
  content: "";
  position: absolute;
  left: -80%;
  top: 0;
  width: 80%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.72) 50%, rgba(255,255,255,0.32) 100%);
  transform: skewX(-24deg);
  animation: brillo-cotiza 5.5s infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes brillo-cotiza {
  0%, 93% { left: -80%; opacity: 0; }
  97% { left: 110%; opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* NAV MOBILE extra */
.nav-mobile-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.2em;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 0.2em;
  z-index: 1002;
}
.nav-toggle-bar {
  width: 28px;
  height: 4px;
  background: #ef7d12;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 900px) {
  .nav-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
  }
  .brand {
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
    margin-bottom: 0.2em;
  }
  .brand-logo {
    margin-bottom: 0.2em;
  }
  .brand-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.2em;
  }
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #181818;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    font-size: 1.35rem;
    z-index: 1001;
    transform: translateY(-100vh);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(.7,1.7,.6,1), opacity 0.38s;
    touch-action: auto;
    user-select: auto;
  }
  .site-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.7em 1.2em;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
  }
  .site-nav a:hover {
    background: #ef7d12;
    color: #fff;
  }
  .desktop-cta {
    display: none !important;
  }
}
