/* ==================================================
   EL PACIFICO SECURITY
   DESIGN SYSTEM v1.0
================================================== */
/* =====================
   RESET
===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =====================
   VARIABLES
===================== */
:root {
  --color-primary: #0160fd;
  --color-primary-dark: #0A1E3A;
  --color-primary-light: #06B6D4;

  --color-success: #10B981;
  --color-accent: #7C3AED;

  --color-text: #0F172A;
  --color-text-light: #334155;
  --color-text-muted: #64748B;

  --color-border: #E2E8F0;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;

  --color-hover: #1E40AF;

  /* -- TYPOGRAPHY -- */
  --font-heading: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;

  /* -- SHADOWS -- */
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow-md: 0 8px 25px rgba(15,23,42,.08);
  --shadow-lg: 0 15px 35px rgba(15,23,42,.12);
}

/* =====================
   BASE
===================== */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--color-text);
  line-height: 1.5;
}

/* =====================
   MEDIA DEFAULT
===================== */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* =====================
   FORM RESET
===================== */
input,
button,
textarea,
select {
  font: inherit;
}

/* =====================
   LINKS & BUTTONS
===================== */
a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}


/*--------------------------------------------------------------------------------*/
/* ==========================================
   DESARROLLO DE LA PÁGINA WEB
========================================== */
header{
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

header .container {
  padding: 0 1rem;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

/* ==========================================
   LOGO
========================================== */

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.site-logo img {
  height: 64px;
  height: 34px;

  border-radius: 0rem;
  object-fit: cover;
}

/* ==========================================
   NAV DESKTOP
========================================== */
.site-nav {
  margin-left: 2rem;
  background: #ffffff;
}
/* Agregado*/
.site-nav::before{
    display:none;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 2rem);
  gap: 2rem;
  gap: 1.2rem;
  list-style: none;
  width: 100%;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-body);
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition:
    color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.site-nav__link:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.45rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.site-nav__link.is-active {
   color: var(--color-primary);
   font-weight: 600;
}

/* ==========================================
   ACTIONS
========================================== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  border-radius: 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.header-btn--search {
  padding: 0 1rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  box-shadow: none;
}

.header-btn--search:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
}

.header-btn__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.header-btn--cta {
  padding: 0 1.2rem;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  background: #25D366;
}

.header-btn--cta:hover {
  background: #3bef55;
  transform: translateY(-1px);
}

/* ==========================================
   HAMBURGUESA
========================================== */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 0.85rem;
  border: 1px solid var(--color-border);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-toggle__line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #000000;
  background: var(--color-primary);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1199px) {
  .site-header {
    gap: 0.85rem;
  }

  .site-nav__menu {
    gap: 1rem;
  }

  .site-nav__link {
    font-size: 0.88rem;
  }

  .header-btn {
    font-size: 0.88rem;
  }

  .header-btn--search {
    padding: 0 0.85rem;
  }

  .header-btn--cta {
    padding: 0 1rem;
  }
}

/* ==========================================
   MOBILE / TABLET COLAPSADO
========================================== */

@media (max-width: 991px) {
  .header-btn{
    display: none;
  }

  /* HAMBURGUESA visible */
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  /* CONTENEDOR FULLSCREEN */
  .site-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.35s ease;
    z-index: 999;
    margin-left: 0rem;
    margin-left: auto;
    margin-right: auto;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* MENU CENTRADO */
  .site-nav__menu {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  /* LINKS GRANDES */
  .site-nav__link {
    font-size: 1.2rem;
    font-weight: 600;
    justify-content: center;
    padding: 0;
  }

  .site-nav__link::after {
    bottom: -6px;
  }

  /* BOTONES ABAJO */
  .header-actions {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s ease;
  }

  .header-actions.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header-btn {
    width: 100%;
    height: 52px;
    font-size: 1rem;
    border-radius: 999px;
  }

  /* OPCIONAL: BOTON CERRAR MÁS GRANDE */
  .nav-toggle {
    position: relative;
    z-index: 1001;
  }

  .site-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%,rgba(1, 96, 253, 0.15),transparent 40%  ),
    radial-gradient(circle at 80% 70%,rgba(6, 182, 212, 0.12),transparent 40%  );
    z-index: -1;
  }
}


/* ==========================================
   MOBILE FINO
========================================== */

@media (max-width: 575px) {
  header .container {
    padding: 0 0.75rem;
  }

  .site-header {
    min-height: 68px;

  }

  .site-logo__text {
    font-size: 1.08rem;
  }

  .site-logo__badge {
    min-height: 24px;
    padding: 0.15rem 0.35rem;
    font-size: 0.78rem;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .site-nav__menu {
    padding: 0.9rem;
  }

  .header-actions {
    padding: 0 0.9rem 0.9rem;
  }
}
