@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Sora:wght@600;700;800&display=swap');

:root {
  /* Marca */
  --navy:        #1E3A5F;
  --navy-dark:   #162D49;
  --blue:        #3B82A0;
  --blue-light:  #EAF2F7;
  --gold:        #D4A84F;
  --gold-dark:   #B88D35;
  --success:     #7FAF8A;

  /* Superficies y texto */
  --bg:          #F5F7FA;
  --surface:     #FFFFFF;
  --text:        #263238;
  --border:      #E1E7EC;

  /* Escala de grises */
  --gray-1:  #F7F9FB;
  --gray-2:  #E8EDF2;
  --gray-3:  #D7DEE5;
  --gray-4:  #C5CFD8;
  --gray-5:  #B2BDC7;
  --gray-6:  #9AA7B2;
  --gray-7:  #8A969F;
  --gray-8:  #6F7C86;
  --gray-9:  #4F5D68;
  --gray-10: #263238;

  /* Tipografía */
  --font-heading: "Sora", "Nunito", sans-serif;
  --font-body:    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif:   Georgia, Times, serif;

  /* Forma y movimiento */
  --radius:       10px;
  --radius-lg:    18px;
  --border-soft:  rgba(30, 58, 95, .10);
  --shadow-card:  0 1px 2px rgba(16, 32, 56, .06), 0 12px 28px -12px rgba(16, 32, 56, .18);
  --shadow-lift:  0 2px 4px rgba(16, 32, 56, .06), 0 22px 40px -16px rgba(16, 32, 56, .28);
  --ease:         cubic-bezier(.4, 0, .2, 1);
  --t-fast:       .2s var(--ease);
  --t-base:       .3s var(--ease);
  --t-slow:       .8s var(--ease);

  /* Sombras */
  --shadow-sm:    0 2px 10px -2px rgba(30, 58, 95, .12);
  --shadow-md:    0 6px 15px rgba(30, 58, 95, .20);
  --shadow-gold:  0 6px 15px rgba(212, 168, 79, .30);
  --shadow-nav:   4px 0 20px -5px rgba(30, 58, 95, .15);

  /* Anillo de foco */
  --focus-ring:   0 0 0 3px rgba(59, 130, 160, .45);
}


/* =========================================================
   02. BASE
   ========================================================= */

body {
  color: var(--text);
  background: var(--surface);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: var(--navy);
  transition: var(--t-base);
}

a:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-heading);
}

::selection {
  background: var(--navy);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}


/* =========================================================
   03. UTILIDADES
   ========================================================= */

/* Tamaños de fuente: .font-size-10 … .font-size-30 */
.font-size-10 { font-size: 10px; }
.font-size-11 { font-size: 11px; }
.font-size-12 { font-size: 12px; }
.font-size-13 { font-size: 13px; }
.font-size-14 { font-size: 14px; }
.font-size-15 { font-size: 15px; }
.font-size-16 { font-size: 16px; }
.font-size-17 { font-size: 17px; }
.font-size-18 { font-size: 18px; }
.font-size-19 { font-size: 19px; }
.font-size-20 { font-size: 20px; }
.font-size-21 { font-size: 21px; }
.font-size-22 { font-size: 22px; }
.font-size-23 { font-size: 23px; }
.font-size-24 { font-size: 24px; }
.font-size-25 { font-size: 25px; }
.font-size-26 { font-size: 26px; }
.font-size-27 { font-size: 27px; }
.font-size-28 { font-size: 28px; }
.font-size-29 { font-size: 29px; }
.font-size-30 { font-size: 30px; }

/* Color de texto */
.font-gray-1  { color: var(--gray-1); }
.font-gray-2  { color: var(--gray-2); }
.font-gray-3  { color: var(--gray-3); }
.font-gray-4  { color: var(--gray-4); }
.font-gray-5  { color: var(--gray-5); }
.font-gray-6  { color: var(--gray-6); }
.font-gray-7  { color: var(--gray-7); }
.font-gray-8  { color: var(--gray-8); }
.font-gray-9  { color: var(--gray-9); }
.font-gray-10 { color: var(--gray-10); }

/* Color de borde */
.border-gray-1  { border-color: var(--gray-1); }
.border-gray-2  { border-color: var(--gray-2); }
.border-gray-3  { border-color: var(--gray-3); }
.border-gray-4  { border-color: var(--gray-4); }
.border-gray-5  { border-color: var(--gray-5); }
.border-gray-6  { border-color: var(--gray-6); }
.border-gray-7  { border-color: var(--gray-7); }
.border-gray-8  { border-color: var(--gray-8); }
.border-gray-9  { border-color: var(--gray-9); }
.border-gray-10 { border-color: var(--gray-10); }

/* Color de fondo */
.bg-gray-1  { background-color: var(--gray-1); }
.bg-gray-2  { background-color: var(--gray-2); }
.bg-gray-3  { background-color: var(--gray-3); }
.bg-gray-4  { background-color: var(--gray-4); }
.bg-gray-5  { background-color: var(--gray-5); }
.bg-gray-6  { background-color: var(--gray-6); }
.bg-gray-7  { background-color: var(--gray-7); }
.bg-gray-8  { background-color: var(--gray-8); }
.bg-gray-9  { background-color: var(--gray-9); }
.bg-gray-10 { background-color: var(--gray-10); }

/* Espaciado de letras */
.letter-spacing-1 { letter-spacing: .1em; }
.letter-spacing-2 { letter-spacing: .2em; }

/* Grosor de borde */
.border-w-1 { border-width: 1px; }
.border-w-2 { border-width: 2px; }
.border-w-3 { border-width: 3px; }
.border-w-4 { border-width: 4px; }
.border-w-5 { border-width: 5px; }
.border-2   { border-width: 2px; }

/* Misceláneas */
.line-height-1            { line-height: 1 !important; }
.text-black               { color: var(--text) !important; }
.bg-black                 { background: var(--navy) !important; }
.color-black-opacity-5,
.text-black-opacity-05    { color: rgba(38, 50, 56, .5); }
.color-white-opacity-5,
.text-white-opacity-05    { color: rgba(255, 255, 255, .5); }

.bg-text-line {
  display: inline;
  background: var(--navy);
  box-shadow: 20px 0 0 var(--navy), -20px 0 0 var(--navy);
}

.overlap-to-top {
  margin-top: -150px;
}


/* =========================================================
   04. BOTONES
   ========================================================= */

/* --- Base compartida --------------------------------------- */
.btn.btn-primary,
.main-cta-button,
.section-button,
.cta-button,
.btn-gold,
.btn-outline-primary,
.btn-white-outline,
.btn.btn-white-outline {
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  transition:
    background-color var(--t-base),
    border-color var(--t-base),
    color var(--t-base),
    box-shadow var(--t-base),
    transform var(--t-base);
}

/* --- Principal --------------------------------------------- */
.btn.btn-primary,
.main-cta-button,
.section-button,
.cta-button {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn.btn-primary:hover:not(:disabled):not(.disabled),
.main-cta-button:hover,
.section-button:hover,
.cta-button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Dorado (CTA destacado) -------------------------------- */
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.btn-gold:hover:not(:disabled):not(.disabled) {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* --- Outline ----------------------------------------------- */
.btn-outline-primary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-primary:hover:not(:disabled):not(.disabled) {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Blanco sobre fondo oscuro ------------------------------ */
.btn-white-outline,
.btn.btn-white-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-white-outline:hover:not(:disabled):not(.disabled),
.btn.btn-white-outline:hover:not(:disabled):not(.disabled) {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
  transform: translateY(-2px);
}

/* --- Foco visible (teclado) -------------------------------- */
.btn:focus-visible,
.main-cta-button:focus-visible,
.section-button:focus-visible,
.cta-button:focus-visible,
.btn-gold:focus-visible,
.btn-outline-primary:focus-visible,
.btn-white-outline:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* --- Deshabilitado ----------------------------------------- */
.btn:disabled,
.btn.disabled {
  background: var(--gray-4);
  border-color: var(--gray-4);
  color: var(--gray-8);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Variantes con hover (utilidades heredadas) ------------- */
.primary-black--hover,
.primary-dark--hover,
.primary-primary-outline--hover {
  background: var(--navy);
  color: #fff;
}

.primary-black--hover:hover        { background: var(--navy-dark); }
.primary-dark--hover:hover         { background: var(--blue); }

.primary-primary-outline--hover:hover {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.primary-outline-primary--hover {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.primary-outline-primary--hover:hover {
  background: var(--navy);
  color: #fff;
}


/* =========================================================
   05. FORMULARIOS
   ========================================================= */

.form-control {
  height: 55px;
  background: var(--surface) !important;
  font-family: var(--font-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-control:hover {
  box-shadow: none !important;
}

.form-control:focus,
.form-control:active {
  border-color: var(--blue);
  box-shadow: var(--focus-ring) !important;
}

/* Select / input con icono */
.select-wrap,
.wrap-icon {
  position: relative;
}

.select-wrap .icon,
.wrap-icon .icon {
  position: absolute;
  top: 50%;
  right: 10px;
  font-size: 22px;
  transform: translateY(-50%);
  pointer-events: none;
}

.select-wrap select,
.wrap-icon select {
  width: 100%;
  appearance: none;
}

/* Buscador */
.search-form {
  padding: 10px;
  background: var(--bg);
}

.search-form .form-group {
  position: relative;
}

.search-form .form-group input {
  padding-right: 50px;
}

.search-form .icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}


/* =========================================================
   06. LAYOUT
   ========================================================= */

/* --- Secciones --------------------------------------------- */
.site-section {
  padding: 7rem 0;
}

.site-section.site-section-sm {
  padding: 4em 0;
}

@media (max-width: 991.98px) {
  .site-section {
    padding: 3rem 0;
  }
}

.section-title {
  font-size: 4rem !important;
  color: var(--navy);
}

@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem !important;
  }

  .display-1,
  .display-3 {
    font-size: 3rem;
  }
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  padding: 4em 0;
  background: var(--navy);
}

@media (min-width: 768px) {
  .site-footer {
    padding: 8em 0;
  }
}

.site-footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, .15) !important;
}

.site-footer p,
.site-footer a {
  color: var(--gray-4);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5 {
  color: #fff;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer .footer-heading {
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .2rem;
}

.top-bar {
  border-bottom: 1px solid var(--border) !important;
}

/* --- Offcanvas (capa oscura detrás del menú móvil) ---------- */
.site-wrap:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2000;
  background: rgba(16, 32, 56, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: var(--t-base);
}

.offcanvas-menu .site-wrap {
  width: 100%;
  height: 100%;
  z-index: 2;
}

.offcanvas-menu .site-wrap:before {
  opacity: 1;
  visibility: visible;
}

/* --- Imágenes de fondo -------------------------------------- */
.bg-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* El fondo fijo (parallax) solo en pantallas grandes con puntero:
   en móviles/iOS provoca saltos y problemas de rendimiento. */
@media (min-width: 992px) and (hover: hover) {
  .bg-image {
    background-attachment: fixed;
  }
}

.bg-image.overlay {
  position: relative;
}

.bg-image.overlay:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  background: rgba(30, 58, 95, .88);
}

.bg-image > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .img-md-fluid {
    max-width: 100%;
  }
}

/* --- Zoom de imagen al pasar el cursor ---------------------- */
.hover-bg-enlarge {
  position: relative;
  overflow: hidden;
}

.hover-bg-enlarge > div {
  transform: scale(1);
  transition: transform var(--t-slow);
}

.hover-bg-enlarge:hover > div,
.hover-bg-enlarge:focus > div,
.hover-bg-enlarge:active > div {
  transform: scale(1.2);
}

@media (max-width: 991.98px) {
  .hover-bg-enlarge {
    height: auto !important;
  }

  .hover-bg-enlarge .bg-image-md-height {
    height: 300px !important;
  }
}

/* --- Imágenes hero ----------------------------------------- */
.hero-img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

@media (max-width: 991px) {
  .hero-img { height: 400px; }
}

@media (max-width: 576px) {
  .hero-img { height: 230px; }
}


/* =========================================================
   07. NAVBAR (ESCRITORIO)
   ========================================================= */

.site-navbar {
  position: relative;
  z-index: 1999;
  width: 100%;
  margin-bottom: 0;
  padding: 1rem;
}

@media (max-width: 991.98px) {
  .site-navbar {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.site-navbar .toggle-button {
  position: absolute;
  right: 0;
}

.site-navbar .site-navigation.border-bottom {
  border-bottom: 1px solid #E5EAF0 !important;
}

.site-navbar .site-menu {
  margin-bottom: 0;
}

.site-navbar .site-menu a {
  display: inline-block;
  text-decoration: none !important;
}

.site-navbar .site-menu .active {
  display: inline-block;
  color: var(--blue) !important;
}

.site-navbar .site-menu > li {
  display: inline-block;
}

.site-navbar .site-menu > li > a {
  display: inline-block;
  margin: 0 15px;
  padding: 20px 0;
  color: var(--text) !important;
  border-bottom: 2px solid transparent;
}

.site-navbar .site-menu > li > a:hover {
  color: var(--blue) !important;
}

/* --- Dropdown ---------------------------------------------- */
.site-navbar .site-menu .has-children {
  position: relative;
}

.site-navbar .site-menu .has-children:hover {
  cursor: pointer;
}

.site-navbar .site-menu .has-children > a {
  position: relative;
  padding-right: 20px;
}

.site-navbar .site-menu .has-children > a:before {
  content: "\e313";
  position: absolute;
  top: 50%;
  right: 0;
  font-family: "icomoon";
  font-size: 16px;
  transform: translateY(-50%);
}

.site-navbar .site-menu .has-children:hover > a,
.site-navbar .site-menu .has-children:focus-within > a {
  color: var(--blue) !important;
}

.site-navbar .site-menu .has-children .dropdown {
  position: absolute;
  top: 100%;
  margin: 20px 0 0;
  padding: 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transition: var(--t-fast);
}

/* Se abre con hover y también con teclado (focus-within) */
.site-navbar .site-menu .has-children:hover > .dropdown,
.site-navbar .site-menu .has-children:focus-within > .dropdown {
  margin-top: 0;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.site-navbar .site-menu .has-children .dropdown.arrow-top:before {
  content: " ";
  position: absolute;
  bottom: 100%;
  left: 20%;
  width: 0;
  height: 0;
  margin-left: -10px;
  border: 10px solid transparent;
  border-bottom-color: var(--surface);
  pointer-events: none;
}

.site-navbar .site-menu .has-children .dropdown > li {
  min-width: 200px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navbar .site-menu .has-children .dropdown > li > a {
  display: block;
  padding: 9px 20px;
  color: #343A40;
  letter-spacing: normal;
  text-transform: none;
  transition: none;
}

.site-navbar .site-menu .has-children .dropdown > li > a:hover,
.site-navbar .site-menu .has-children .dropdown > li.has-children:hover > a {
  background: var(--blue-light);
  color: var(--navy) !important;
}

.site-navbar .site-menu .has-children .dropdown .active > a {
  color: var(--blue) !important;
}

.site-navbar .site-menu .has-children .dropdown > li.has-children > a:before {
  content: "\e315";
  right: 20px;
}

.site-navbar .site-menu .has-children .dropdown > li.has-children > .dropdown,
.site-navbar .site-menu .has-children .dropdown > li.has-children > ul {
  top: 0;
  left: 100%;
}


/* =========================================================
   08. MENÚ MÓVIL (PANEL LATERAL)
   ---------------------------------------------------------
   El JS (js-clone-nav) copia los <li> del menú principal
   dentro de .site-mobile-menu-body > ul.site-nav-wrap.
   ========================================================= */

/* --- Panel ------------------------------------------------- */
.site-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  padding-top: 0;
  overflow: hidden;
  background: var(--surface);
  border-radius: 20px 0 0 20px;
  box-shadow: -24px 0 50px -24px rgba(16, 32, 56, .45);
  transform: translateX(110%);
  transition: transform .35s var(--ease);
}

.offcanvas-menu .site-mobile-menu {
  transform: translateX(0);
}

/* Franja de color superior */
.site-mobile-menu::before {
  content: "";
  flex: none;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 100%);
}

/* --- Cabecera (logo + cerrar) -------------------------------- */
.site-mobile-menu .site-mobile-menu-header {
  flex: none;
  float: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.site-mobile-menu .site-mobile-menu-logo {
  float: none;
  margin: 0;
}

.site-mobile-menu .site-mobile-menu-logo a {
  display: inline-block;
  text-transform: uppercase;
}

.site-mobile-menu .site-mobile-menu-logo a:hover {
  text-decoration: none;
}

.site-mobile-menu .site-mobile-menu-logo a img {
  max-width: 70px;
}

.site-mobile-menu .site-mobile-menu-close {
  float: none;
  margin: 0;
}

/* Botón cerrar: círculo suave */
.site-mobile-menu .site-mobile-menu-close span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-base);
}

.site-mobile-menu .site-mobile-menu-close span:hover {
  background: var(--blue-light);
  color: var(--blue);
  transform: rotate(90deg);
}

/* --- Cuerpo con scroll --------------------------------------- */
.site-mobile-menu .site-mobile-menu-body {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding: 16px 16px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-mobile-menu .site-nav-wrap {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-mobile-menu .site-nav-wrap li {
  position: relative;
  display: block;
}

.site-mobile-menu .site-nav-wrap > li {
  float: none;
  width: 100%;
}

/* --- Enlaces principales ------------------------------------- */
.site-mobile-menu .site-nav-wrap > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--navy);
  border-radius: 12px;
  transition: background-color var(--t-fast), color var(--t-fast);
}

/* Marcador dorado a la izquierda */
.site-mobile-menu .site-nav-wrap > li > a::before {
  content: "";
  flex: none;
  width: 4px;
  height: 20px;
  background: var(--gold);
  border-radius: 4px;
  opacity: 0;
  transform: scaleY(.3);
  transition: opacity var(--t-fast), transform var(--t-base);
}

.site-mobile-menu .site-nav-wrap > li > a:hover,
.site-mobile-menu .site-nav-wrap > li > a:focus-visible,
.site-mobile-menu .site-nav-wrap > li > a.active {
  background: var(--blue-light);
  color: var(--navy);
}

.site-mobile-menu .site-nav-wrap > li > a:hover::before,
.site-mobile-menu .site-nav-wrap > li > a:focus-visible::before,
.site-mobile-menu .site-nav-wrap > li > a.active::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Último enlace (Contact) como botón dorado */
.site-mobile-menu .site-nav-wrap:not([data-class="social"]) > li:last-child > a {
  justify-content: center;
  margin-top: 20px;
  padding: 15px 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 10px 20px -10px rgba(212, 168, 79, .8);
}

.site-mobile-menu .site-nav-wrap:not([data-class="social"]) > li:last-child > a::before {
  display: none;
}

.site-mobile-menu .site-nav-wrap:not([data-class="social"]) > li:last-child > a:hover,
.site-mobile-menu .site-nav-wrap:not([data-class="social"]) > li:last-child > a.active {
  background: var(--gold-dark);
  color: #fff;
}

/* --- Submenús ------------------------------------------------ */
.site-mobile-menu .site-nav-wrap ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-mobile-menu .site-nav-wrap > li > ul > li > a {
  display: block;
  padding: 10px 16px 10px 40px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-9);
  border-radius: 10px;
}

.site-mobile-menu .site-nav-wrap > li > ul > li > ul > li > a {
  display: block;
  padding: 10px 16px 10px 60px;
  font-size: .95rem;
  color: var(--gray-9);
  border-radius: 10px;
}

.site-mobile-menu .site-nav-wrap > li > ul a:hover {
  background: var(--blue-light);
  color: var(--blue);
}

/* Flecha de colapsar */
.site-mobile-menu .site-nav-wrap .arrow-collapse {
  position: absolute;
  top: 9px;
  right: 8px;
  z-index: 20;
  width: 36px;
  height: 36px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--t-fast);
}

.site-mobile-menu .site-nav-wrap .arrow-collapse:hover {
  background: var(--blue-light);
}

.site-mobile-menu .site-nav-wrap .arrow-collapse:before {
  content: "\f078";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 20;
  font-family: "icomoon";
  font-size: 12px;
  color: var(--navy);
  transform: translate(-50%, -50%) rotate(-180deg);
  transition: var(--t-base);
}

.site-mobile-menu .site-nav-wrap .arrow-collapse.collapsed:before {
  transform: translate(-50%, -50%);
}

/* --- Redes sociales ------------------------------------------ */
.site-mobile-menu .site-nav-wrap[data-class="social"] {
  float: left;
  width: 100%;
  margin-top: 30px;
  padding-bottom: 5em;
}

.site-mobile-menu .site-nav-wrap[data-class="social"] > li {
  width: auto;
}

.site-mobile-menu .site-nav-wrap[data-class="social"] > li:first-child a {
  padding-left: 15px !important;
}


/* =========================================================
   09. NAVBAR STICKY
   ========================================================= */

.sticky-wrapper {
  position: relative;
  z-index: 100;
  width: 100%;
}

.sticky-wrapper .site-navbar {
  background: var(--surface);
  transition: var(--t-base);
}

.sticky-wrapper.is-sticky .site-navbar {
  box-shadow: var(--shadow-nav);
}

.sticky-wrapper .site-navbar .site-logo a {
  color: var(--navy);
}

.sticky-wrapper .site-navbar ul li a {
  color: var(--text) !important;
}

.sticky-wrapper .site-navbar ul li a.active {
  color: var(--blue) !important;
}

.sticky-wrapper .shrink {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 991.98px) {
  .sticky-wrapper .shrink {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
}


/* =========================================================
   10. HERO Y SLIDER
   ========================================================= */

.site-section-cover {
  position: relative;
  z-index: 2;
  background-position: center;
}

.site-section-cover,
.site-section-cover .container > .row {
  height: 100vh;
  min-height: 700px;
}

.site-section-cover .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 991.98px) {
  .site-section-cover,
  .site-section-cover .container > .row {
    height: 70vh;
    min-height: 400px;
  }
}

.site-section-cover.overlay:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(30, 58, 95, .30);
}

.site-section-cover.inner-page,
.site-section-cover.inner-page .container > .row {
  height: auto;
  min-height: auto;
  padding: 2em 0;
}

.site-section-cover.img-bg-section {
  background-repeat: no-repeat;
  background-size: cover;
}

.site-section-cover h1 {
  font-size: 3rem;
  line-height: 1;
  color: #fff;
}

.site-section-cover p {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, .85);
}

@media (max-width: 991.98px) {
  .site-section-cover h1 {
    font-size: 2rem;
  }
}

/* --- Slider (Owl Carousel) ---------------------------------- */
#home-section {
  overflow: hidden;
}

.slide-one-item .owl-nav .owl-prev,
.slide-one-item .owl-nav .owl-next {
  position: absolute;
  top: 50%;
  font-size: 5rem;
  color: rgba(255, 255, 255, .5);
  transform: translateY(-50%);
  transition: color var(--t-base), transform var(--t-base);
}

.slide-one-item .owl-nav .owl-prev { left: 20px; }
.slide-one-item .owl-nav .owl-next { right: 20px; }

.slide-one-item .owl-nav .owl-prev:hover,
.slide-one-item .owl-nav .owl-next:hover {
  color: var(--gold);
}

.slide-one-item .owl-nav .owl-prev:hover {
  transform: translateY(-50%) translateX(-5px);
}

.slide-one-item .owl-nav .owl-next:hover {
  transform: translateY(-50%) translateX(5px);
}

#home-section .owl-item img {
  transition: transform 1.2s ease, opacity .8s ease;
}

#home-section .owl-item.active img {
  animation: heroZoom 6s ease-in-out both;
}


/* =========================================================
   11. COMPONENTES
   ========================================================= */

/* --- Intro engage (3 tarjetas) ------------------------------ */
.intro-engage > div {
  position: relative;
  padding: 33px;
  animation: fadeUp-lg .8s ease backwards;
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Marco interno decorativo */
.intro-engage > div:before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(255, 255, 255, .35);
  pointer-events: none;
}

.intro-engage > div:nth-of-type(1) { background-color: var(--navy);  animation-delay: .15s; }
.intro-engage > div:nth-of-type(2) { background-color: #3B6075;      animation-delay: .30s; }
.intro-engage > div:nth-of-type(3) { background-color: #447A94;      animation-delay: .45s; }

.intro-engage > div *:last-child {
  margin-bottom: 0;
}

.intro-engage > div h2 {
  font-family: var(--font-heading);
  letter-spacing: .1rem;
  text-transform: uppercase;
  color: #fff;
  transition: transform .35s ease;
}

.intro-engage > div p {
  color: rgba(255, 255, 255, .85);
  transition: opacity .35s ease;
}

@media (hover: hover) and (min-width: 768px) {
  .intro-engage > div:hover {
    transform: translateY(-7px);
  }

  .intro-engage > div:hover h2 {
    transform: translateX(5px);
  }

  .intro-engage > div:hover p {
    opacity: .8;
  }
}

/* --- Video ------------------------------------------------- */
.block-img-video-1-wrap .block-img-video-1 {
  position: relative;
  margin-top: -10rem;
}

.block-img-video-1 > a {
  position: relative;
  display: block;
  cursor: pointer;
}

.block-img-video-1 > a .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-block;
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.block-img-video-1 > a .icon > span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: .8rem;
  color: var(--navy);
  transform: translate(-50%, -50%);
}

/* Botón de play grande */
.play-single-big {
  position: relative;
  display: inline-block;
  width: 90px;
  height: 90px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff !important;
  transition: transform var(--t-base);
}

.play-single-big > span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 50px;
  transform: translate(-40%, -50%);
}

/* Se escala con transform en vez de width/height para evitar saltos de layout */
.play-single-big:hover {
  transform: scale(1.33);
}

/* --- Contador ---------------------------------------------- */
.block-counter-1 {
  text-align: center;
}

.block-counter-1 .number,
.block-counter-1 .caption {
  display: block;
  line-height: 1;
}

.block-counter-1 .number {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--blue);
}

.block-counter-1 .number:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 50px;
  height: 3px;
  background: var(--gold);
  transform: translateX(-50%);
}

.block-counter-1.block-counter-1-sm {
  text-align: left;
}

.block-counter-1.block-counter-1-sm .number:after {
  left: 0;
  transform: none;
}

/* --- Redes sociales ---------------------------------------- */
.block-social-1 > a {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
}

.block-social-1 > a span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --- Testimonios ------------------------------------------- */
.block-testimony-1 {
  padding: 20px;
}

.block-testimony-1 blockquote {
  padding: 30px;
  background: var(--surface);
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text);
}

.block-testimony-1 figure {
  position: relative;
  padding-top: 20px;
}

.block-testimony-1 figure img {
  max-width: 60px;
}

.block-testimony-1 h3 {
  font-size: 18px;
}

/* --- Equipo ------------------------------------------------ */
.block-team-member-1 {
  padding: 30px;
  border: 1px solid var(--border);
}

.block-team-member-1 figure img {
  width: 130px;
}

/* --- Sidebar y categorías ---------------------------------- */
.sidebar-box {
  float: left;
  width: 100%;
  margin-bottom: 30px;
  padding: 25px;
  background: var(--surface);
  font-size: 15px;
}

.sidebar-box *:last-child {
  margin-bottom: 0;
}

.sidebar-box h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.categories li,
.sidelink li {
  position: relative;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #DEE2E6;
  list-style: none;
}

.categories li:last-child,
.sidelink li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.categories li a,
.sidelink li a {
  display: block;
}

.categories li a span,
.sidelink li a span {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--gray-6);
}

.categories li.active a,
.sidelink li.active a {
  color: var(--navy);
  font-style: italic;
}

/* --- Comentarios ------------------------------------------- */
.comment-form-wrap {
  clear: both;
}

.comment-list {
  margin: 0;
  padding: 0;
}

.comment-list .children {
  float: left;
  width: 100%;
  margin: 0;
  padding: 50px 0 0 40px;
}

.comment-list li {
  clear: both;
  float: left;
  width: 100%;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.comment-list li .vcard {
  float: left;
  width: 80px;
}

.comment-list li .vcard img {
  width: 50px;
  border-radius: 50%;
}

.comment-list li .comment-body {
  float: right;
  width: calc(100% - 80px);
}

.comment-list li .comment-body h3 {
  font-size: 20px;
  color: var(--navy);
}

.comment-list li .comment-body .meta {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-6);
}

.comment-list li .comment-body .reply {
  padding: 5px 10px;
  background: var(--blue-light);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--navy);
}

.comment-list li .comment-body .reply:hover {
  background: var(--blue);
  color: #fff;
}

/* --- Meta de posts ----------------------------------------- */
.post-meta {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.post-meta a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
}

/* --- Lista con check --------------------------------------- */
.ul-check {
  margin-bottom: 50px;
}

.ul-check li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 35px;
  line-height: 1.5;
}

.ul-check li:before {
  content: "\e5ca";
  position: absolute;
  top: -.3rem;
  left: 0;
  font-family: "icomoon";
  font-size: 20px;
}

.ul-check.white li:before   { color: #fff; }
.ul-check.success li:before { color: var(--success); }
.ul-check.primary li:before { color: var(--blue); }

/* --- Servicios --------------------------------------------- */
.service-feature {
  animation: fadeUp .8s ease backwards;
  transition: transform .35s ease;
}

.service-feature:nth-child(1) { animation-delay: .05s; }
.service-feature:nth-child(2) { animation-delay: .15s; }
.service-feature:nth-child(3) { animation-delay: .25s; }
.service-feature:nth-child(4) { animation-delay: .35s; }
.service-feature:nth-child(5) { animation-delay: .45s; }
.service-feature:nth-child(6) { animation-delay: .55s; }

.service-icon {
  display: inline-block !important;
  color: var(--blue);
  transition: transform .4s ease, opacity .4s ease;
}

.service-feature:hover {
  transform: translateY(-4px);
}

.service-feature:hover .service-icon {
  animation: serviceIconFloat 1.2s ease-in-out infinite;
}

/* --- Sección "Por qué" (#why-ibs-section) ------------------- */
#why-ibs-section .section-title {
  animation: fadeDown .8s ease backwards;
}

#why-ibs-section .row.mb-5 p {
  animation: fadeUp .8s ease .15s backwards;
}

#why-ibs-section .col-lg-4 {
  animation: fadeUp .8s ease backwards;
}

#why-ibs-section .col-lg-4:nth-child(1) { animation-delay: .15s; }
#why-ibs-section .col-lg-4:nth-child(2) { animation-delay: .30s; }
#why-ibs-section .col-lg-4:nth-child(3) { animation-delay: .45s; }

#why-ibs-section .display-3 {
  display: inline-block;
  color: var(--blue);
  transition: transform .4s ease;
}

#why-ibs-section .col-lg-4 > div {
  transition: transform .35s ease;
}

#why-ibs-section .col-lg-4:hover .display-3 {
  transform: translateY(-8px) scale(1.08);
}

#why-ibs-section .col-lg-4:hover > div {
  transform: translateY(-5px);
}


/* =========================================================
   12. LOGO
   ========================================================= */
.site-navbar .site-logo {
position: relative;
z-index: 3;
margin: 0;
padding: 0;
font-family: var(--font-heading);
font-size: 2rem;
font-weight: 900;
letter-spacing: .2rem;
line-height: 0;
text-transform: uppercase;
}

.site-logo {
display: flex;
align-items: center;
}

.site-logo a {
display: flex;
align-items: center;
font-size: 20px;
font-weight: 500;
line-height: 1.1;
white-space: nowrap;
color: var(--navy);
text-decoration: none;
}

.site-logo img {
display: block;
width: 80px;
height: 92px;
object-fit: contain;
}

.site-logo .text-primary {
width: 80px;
height: 92px;
margin-left: 8px;
color: var(--navy) !important;
}
@media (max-width: 991px) {

    .site-navbar .site-logo {
        position: relative;
        float: left;
        z-index: 1;
        max-width: calc(100% - 70px);
        min-width: 0;
    }

    .site-logo a {
        display: flex;
        align-items: center;
        font-size: 13px;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: break-word;
        min-width: 0;
    }

    .site-logo img {
        width: 65px;
        height: 65px;
        flex-shrink: 0;
    }

    .site-logo .text-primary {
        width: auto;
        height: auto;
        margin-left: 8px;
        align-self: center;
        font-size: 13px;
        line-height: 1.2;
    }

    /* Botón hamburguesa */
    .site-navbar .navbar-toggler {
        position: relative;
        z-index: 10;
        flex-shrink: 0;
        cursor: pointer;
    }
}

/* =========================================================
   13. ANIMACIONES
   ---------------------------------------------------------
   Nota: se usa animation-fill-mode "backwards" (no "both")
   para que, al terminar la entrada, el elemento vuelva a su
   estilo normal y los efectos :hover con transform funcionen.
   Con "both" la animación bloqueaba el transform del hover.
   ========================================================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp-lg {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-25px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroZoom {
  from { opacity: .85; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.04); }
}

@keyframes serviceIconFloat {
  0%, 100% { transform: translateY(-5px)  scale(1.08); }
  50%      { transform: translateY(-11px) scale(1.08); }
}


/* =========================================================
   14. ACCESIBILIDAD — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hover-bg-enlarge:hover > div,
  .play-single-big:hover {
    transform: none;
  }
}


/* =========================================================
   15. TEMA VISUAL PROFESIONAL — CALL CENTER
   ---------------------------------------------------------
   Capa de diseño: tipografía, tarjetas, hero, navbar,
   formularios y footer. Va al final para sobrescribir lo
   anterior sin tocar la estructura.
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- Tipografía -------------------------------------------- */
h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-transform: none;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3rem) !important;
  font-weight: 800;
  line-height: 1.1;
}

/* Barra dorada de marca bajo cada título de sección */
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: .9rem;
  background: var(--gold);
  border-radius: 4px;
}

.text-center .section-title::after,
.section-title.text-center::after {
  margin-inline: auto;
}

/* --- Ritmo de secciones ------------------------------------ */
.site-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.bg-light {
  background-color: var(--bg) !important;
}

/* --- Barra superior ---------------------------------------- */
.top-bar {
  background: var(--bg);
  font-size: .875rem;
}

.top-bar a:hover {
  color: var(--blue);
}

/* --- Botones: forma y tipografía --------------------------- */
.btn.btn-primary,
.main-cta-button,
.section-button,
.cta-button,
.btn-gold,
.btn-outline-primary,
.btn-white-outline,
.btn.btn-white-outline {
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .01em;
}

.btn-gold {
  background-image: linear-gradient(135deg, #E3BC66 0%, var(--gold) 100%);
}

/* El anillo de foco debe ganar a cualquier sombra */
.btn:focus-visible,
.btn.btn-primary:focus-visible,
.btn.btn-white-outline:focus-visible {
  box-shadow: var(--focus-ring);
}

/* --- Navbar ------------------------------------------------ */
.sticky-wrapper .site-navbar {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.sticky-wrapper.is-sticky .site-navbar {
  box-shadow: 0 10px 30px -14px rgba(16, 32, 56, .28);
}

.site-navbar .site-menu > li > a {
  position: relative;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
}

/* Subrayado dorado animado */
.site-navbar .site-menu > li > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.site-navbar .site-menu > li > a:hover::after,
.site-navbar .site-menu > li > a.active::after,
.site-navbar .site-menu > li.active > a::after {
  transform: scaleX(1);
}

/* Opcional: <li class="nav-cta"> convierte el enlace en botón dorado */
.site-navbar .site-menu > li.nav-cta > a {
  margin-left: 12px;
  padding: 11px 24px;
  background: var(--gold);
  color: var(--navy) !important;
  border-radius: var(--radius);
  transition: background-color var(--t-base), transform var(--t-base);
}

.site-navbar .site-menu > li.nav-cta > a::after {
  display: none;
}

.site-navbar .site-menu > li.nav-cta > a:hover {
  background: var(--gold-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Dropdown más limpio */
.site-navbar .site-menu .has-children .dropdown {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-lift);
}

.site-navbar .site-menu .has-children .dropdown.arrow-top:before {
  display: none;
}

.site-navbar .site-menu .has-children .dropdown > li > a {
  font-weight: 600;
  transition: background-color var(--t-fast), padding-left var(--t-fast), color var(--t-fast);
}

.site-navbar .site-menu .has-children .dropdown > li > a:hover {
  padding-left: 26px;
}

/* --- Hero -------------------------------------------------- */
/* Degradado de izquierda a derecha: el texto siempre se lee */
.site-section-cover.overlay:before {
  background: linear-gradient(
    100deg,
    rgba(12, 28, 50, .88) 0%,
    rgba(30, 58, 95, .68) 45%,
    rgba(30, 58, 95, .20) 100%
  );
}

.site-section-cover h1 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.site-section-cover p {
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}

.hero-img {
  filter: saturate(1.05) contrast(1.02);
}

/* --- Intro engage (3 bloques) ------------------------------ */
.intro-engage > div {
  padding: clamp(28px, 3vw, 44px);
}

.intro-engage > div:nth-of-type(1) { background: linear-gradient(145deg, #1E3A5F 0%, #2A4C78 100%); }
.intro-engage > div:nth-of-type(2) { background: linear-gradient(145deg, #2B5573 0%, #356A8A 100%); }
.intro-engage > div:nth-of-type(3) { background: linear-gradient(145deg, #3A7391 0%, #447A94 100%); }

.intro-engage > div:before {
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
}

.intro-engage > div h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
}

@media (min-width: 768px) {
  .intro-engage > div:first-of-type { border-top-left-radius: var(--radius-lg);  border-bottom-left-radius: var(--radius-lg); }
  .intro-engage > div:last-of-type  { border-top-right-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }
}

/* --- Tarjetas de servicios --------------------------------- */
.service-feature {
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.service-feature:hover {
  border-color: rgba(59, 130, 160, .35);
  box-shadow: var(--shadow-lift);
}

/* Icono dentro de una "ficha" suave */
.service-icon {
  display: inline-flex !important;
  padding: 16px;
  margin-bottom: 1rem;
  background: var(--blue-light);
  border-radius: 16px;
  line-height: 1;
  transition: background-color .35s ease, color .35s ease, transform .4s ease;
}

.service-feature:hover .service-icon {
  background: var(--navy);
  color: #fff;
}

.service-feature h3,
.service-feature h4 {
  font-size: 1.2rem;
  color: var(--navy);
}

/* --- "Por qué elegirnos" ----------------------------------- */
#why-ibs-section {
  background: var(--bg);
}

#why-ibs-section .col-lg-4 > div {
  height: 100%;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .35s ease, box-shadow .35s ease;
}

#why-ibs-section .col-lg-4:hover > div {
  box-shadow: var(--shadow-lift);
}

#why-ibs-section .display-3 {
  color: var(--blue);
}

/* --- Contadores / métricas --------------------------------- */
.block-counter-1 .number {
  font-size: clamp(2.6rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy);
}

.block-counter-1 .number:after {
  height: 4px;
  border-radius: 4px;
}

.block-counter-1 .caption {
  margin-top: .25rem;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gray-8);
}

/* --- Testimonios ------------------------------------------- */
.block-testimony-1 blockquote {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: normal;
  line-height: 1.75;
}

.block-testimony-1 blockquote::before {
  content: "\201C";
  display: block;
  margin-bottom: .75rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: .6;
  color: var(--gold);
}

.block-testimony-1 figure img {
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(16, 32, 56, .18);
}

/* --- Equipo ------------------------------------------------ */
.block-team-member-1 {
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}

.block-team-member-1:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.block-team-member-1 figure img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 4px solid var(--blue-light);
  border-radius: 50%;
}

/* --- Sidebar, buscador, comentarios ------------------------- */
.sidebar-box {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.search-form {
  border-radius: var(--radius);
}

.comment-list li .comment-body .reply {
  border-radius: 999px;
  font-weight: 700;
}

/* --- Formularios ------------------------------------------- */
.form-control {
  height: 54px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-3);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
}

textarea.form-control {
  height: auto;
  min-height: 150px;
  resize: vertical;
}

.form-control::placeholder {
  color: var(--gray-7);
}

.form-control:hover {
  border-color: var(--gray-5);
}

.form-control:focus {
  border-color: var(--blue);
}

label {
  margin-bottom: .4rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
}

/* --- Footer ------------------------------------------------ */
.site-footer {
  padding: clamp(3rem, 6vw, 5.5rem) 0 2.5rem;
  background: linear-gradient(180deg, #1E3A5F 0%, #142B47 100%);
  border-top: 4px solid var(--gold);
}

.site-footer .footer-heading {
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
}

.site-footer a {
  display: inline-block;
  transition: color var(--t-fast), transform var(--t-fast);
}

.site-footer ul a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

/* --- Utilidades nuevas (opcionales) ------------------------- */

/* Tarjeta genérica: <div class="card-pro"> */
.card-pro {
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform .35s ease, box-shadow .35s ease;
}

.card-pro:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* Etiqueta con punto "en vivo": <span class="pill-live">Agentes en línea 24/7</span> */
.pill-live {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .9rem;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.pill-live::before {
  content: "";
  width: 9px;
  height: 9px;
  background: #4ADE80;
  border-radius: 50%;
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
  100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}

/* Los hover con elevación se desactivan en pantallas táctiles */
@media (hover: none) {
  .service-feature:hover,
  .block-team-member-1:hover,
  .card-pro:hover {
    transform: none;
  }
}

/* =====================================================
   SERVICES - CUSTOM ILLUSTRATIONS
   ATOZ SOLUTIONS
===================================================== */

.service-illustration {
    position: relative;
    width: 100%;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    overflow: hidden;
    border-radius: 22px;
    background: #f2f6fa;
}

/* =====================================================
   CONTACT CENTER BACKGROUND
===================================================== */

.contact-illustration {
    background: linear-gradient(145deg, #f3f7fb, #e8f0f7);
}

.illustration-orbit {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: #dce8f1;
}

/* =====================================================
   CUSTOMER SUPPORT AGENT
===================================================== */

.support-agent-card {
    position: relative;
    z-index: 2;
    width: 270px;
    padding: 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(13, 27, 42, .12);
    text-align: center;
}

.support-agent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0D1B2A;
    font-size: 12px;
    font-weight: 700;
}

.support-agent-header i {
    margin-left: auto;
    font-size: 18px;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    background: #82E111;
    border-radius: 50%;
}

.support-agent-avatar {
    width: 170px;
    margin: 10px auto 0;
}

.support-agent-avatar svg {
    display: block;
    width: 100%;
    height: auto;
}

.support-agent-info h4 {
    margin: 5px 0;
    color: #0D1B2A;
    font-size: 17px;
    font-weight: 800;
}

.support-agent-info p {
    margin: 0;
    color: #7b8794;
    font-size: 12px;
}

.support-agent-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #edf0f3;
    color: #536273;
    font-size: 11px;
    font-weight: 600;
}

/* =====================================================
   FLOATING SERVICE CARDS
===================================================== */

.service-floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(13, 27, 42, .12);
}

.service-floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    border-radius: 9px;
}

.service-floating-text strong,
.service-floating-text span {
    display: block;
}

.service-floating-text strong {
    color: #0D1B2A;
    font-size: 11px;
    font-weight: 700;
}

.service-floating-text span {
    margin-top: 3px;
    color: #89939e;
    font-size: 9px;
}

/* =====================================================
   CONTACT CENTER ICON COLORS
===================================================== */

.phone-icon {
    background: #e5f5ff;
    color: #1685c5;
}

.chat-icon {
    background: #eaf8df;
    color: #559b18;
}

.email-icon {
    background: #fff0e6;
    color: #e58a37;
}

.live-badge {
    color: #36a853;
    font-size: 9px;
    font-weight: 800;
}

/* CONTACT CENTER CARD POSITIONS */

.inbound-card {
    top: 65px;
    left: 12px;
}

.livechat-card {
    top: 190px;
    right: 5px;
}

.email-card {
    bottom: 55px;
    left: 5px;
}

/* =====================================================
   MARKETING ILLUSTRATION
===================================================== */

.marketing-illustration {
    background: linear-gradient(145deg, #edf5ed, #e3eee6);
}

.marketing-orbit {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: #d6e8d5;
}

/* =====================================================
   MARKETING DASHBOARD
===================================================== */

.marketing-dashboard {
    position: relative;
    z-index: 2;
    width: 320px;
    padding: 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(13, 27, 42, .12);
}

.marketing-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.marketing-dashboard-header span {
    color: #89939e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.marketing-dashboard-header h4 {
    margin: 5px 0 0;
    color: #0D1B2A;
    font-size: 17px;
    font-weight: 800;
}

.dashboard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background: #0D1B2A;
    border-radius: 11px;
}

.marketing-chart {
    height: 145px;
    margin-top: 25px;
    padding: 15px 8px 0;
    border-bottom: 1px solid #e9edf0;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    gap: 10px;
}

.chart-bars span {
    width: 24px;
    height: var(--bar-height);
    background: linear-gradient(180deg, #82E111, #4e9910);
    border-radius: 5px 5px 0 0;
}

.marketing-metrics {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
}

.marketing-metrics div span,
.marketing-metrics div strong {
    display: block;
}

.marketing-metrics div span {
    color: #89939e;
    font-size: 11px;
}

.marketing-metrics div strong {
    margin-top: 4px;
    color: #0D1B2A;
    font-size: 19px;
    font-weight: 800;
}

/* =====================================================
   MARKETING ICON COLORS
===================================================== */

.sales-icon {
    color: #e58a37;
    background: #fff0e6;
}

.strategy-icon {
    color: #1685c5;
    background: #e5f5ff;
}

.customer-icon {
    color: #559b18;
    background: #eaf8df;
}

/* MARKETING CARD POSITIONS */

.sales-card {
    top: 55px;
    left: 5px;
}

.strategy-card {
    top: 195px;
    right: 3px;
}

.customer-card {
    bottom: 50px;
    left: 5px;
}

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

@media (max-width: 991px) {

    .service-illustration {
        min-height: 450px;
    }

}

/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width: 575px) {

    .service-illustration {
        min-height: 390px;
        padding: 15px;
        border-radius: 16px;
    }

    .illustration-orbit,
    .marketing-orbit {
        width: 260px;
        height: 260px;
    }

    .support-agent-card {
        width: 220px;
        padding: 14px;
    }

    .support-agent-avatar {
        width: 135px;
    }

    .marketing-dashboard {
        width: 245px;
        padding: 17px;
    }

    .marketing-chart {
        height: 110px;
    }

    .chart-bars {
        gap: 7px;
    }

    .chart-bars span {
        width: 18px;
    }

    .service-floating-card {
        gap: 7px;
        padding: 9px;
        max-width: 175px;
    }

    .service-floating-icon {
        width: 29px;
        height: 29px;
        font-size: 12px;
    }

    .service-floating-text strong {
        font-size: 9px;
    }

    .service-floating-text span {
        font-size: 8px;
    }

    .live-badge {
        font-size: 8px;
    }

    /* CONTACT CENTER */

    .inbound-card {
        top: 20px;
        left: 2px;
    }

    .livechat-card {
        top: 165px;
        right: 2px;
    }

    .email-card {
        bottom: 15px;
        left: 2px;
    }

    /* MARKETING */

    .sales-card {
        top: 20px;
        left: 2px;
    }

    .strategy-card {
        top: 165px;
        right: 2px;
    }

    .customer-card {
        bottom: 15px;
        left: 2px;
    }

}