
/*ESTILOS BANDERA*/
.language-button img,
.language-dropdown img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  display: block;
}




html {
  scroll-behavior: smooth;
}
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

/* MENU PRINCIPAL */
/* HEADER */
.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  position: relative;
  z-index: 1000;
}

.navbar {
  width: 100%;
  max-width: 1440px;
  min-height: 100px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 1;
}

.main-nav a {
  color: #003372;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 0 14px;
  transition: color 0.25s ease;
}

.main-nav a:not(:last-child)::after {
  content: "|";
  color: #bdbdbd;
  margin-left: 28px;
}

.main-nav a:hover {
  color: #003372;
  font-weight: 700;
}

/* LANGUAGE SELECTOR */
.language {
  position: relative;
  flex-shrink: 0;
}

.language-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  color: #222222;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.flag {
  font-size: 17px;
  line-height: 1;
}

.arrow {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: -4px 2px 0 3px;
}

/* DROPDOWN */
.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 100px;
  padding: 7px 0;
  background: #ffffff;
  border: 1px solid #eeeeee;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  border-radius: 5px;
}

.language-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #222222;
  text-decoration: none;
  font-size: 13px;
}

.language-dropdown a:hover {
  background: #f4f7f6;
}

.language:hover .language-dropdown,
.language:focus-within .language-dropdown {
  display: block;
}

/* MOBILE MENU */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  width: 27px;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.menu-icon span {
  width: 100%;
  height: 2px;
  background: #222222;
  transition: 0.3s;
}

/* TABLET */
@media (max-width: 1024px) {
  .navbar {
    gap: 20px;
    padding: 0 3%;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 13px;
  }

  .logo img {
    width: 125px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .main-nav a:not(:last-child)::after {
  content: none;
}

.main-nav a {
  padding: 13px 0;
}
  .navbar {
    min-height: 70px;
    padding: 0 22px;
    gap: 15px;
    flex-wrap: wrap;
  }

  .logo img {
    width: 125px;
  }

  .menu-icon {
    display: flex;
    order: 3;
    margin-left: 5px;
  }

  .language {
    margin-left: auto;
    order: 2;
  }

  .main-nav {
    display: none;
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 18px;
  }

  .main-nav a {
    width: 100%;
    padding: 13px 0;
    font-size: 15px;
    border-bottom: 1px solid #eeeeee;
  }

  #menu-toggle:checked ~ .main-nav {
    display: flex;
  }

  /* Animación hamburguesa */
  #menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* SMALL MOBILE */
@media (max-width: 380px) {
  .navbar {
    padding: 0 15px;
  }

  .logo img {
    width: 105px;
  }
}

/* SECCIÓN HEADER PRINCIPAL */

/* BANNER PRINCIPAL */
.hero-banner {
  width: 100%;
  height: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* COLUMNA IZQUIERDA */
.hero-content {
  background-color: #DFF4FD;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 8%;
}

.hero-text {
  width: 100%;
  max-width: 540px;
}

.hero-text h1 {
  margin: 0 0 35px;
  color: #003372;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 4vw, 68px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -2px;
}

.hero-text h1 span {
  display: block;
  font-weight: 300;
}

.hero-text h1 strong {
  display: block;
  font-weight: 800;
}

/* BOTÓN */
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  min-width: 190px;
  padding: 15px 23px;
  background-color: #003372;
  color: #ffffff;
  border: 1px solid #003372;
  border-radius: 40px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-button:hover {
  background-color: transparent;
  color: #003372;
}

.button-arrow {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.hero-button:hover .button-arrow {
  transform: translateX(5px);
}

/* COLUMNA DERECHA: IMAGEN */
.hero-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* TABLET */
@media (max-width: 900px) {
 .hero-banner {
  width: 100%;
  height: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

  .hero-content {
    padding: 35px 7%;
  }

  .hero-text h1 {
    font-size: clamp(36px, 5vw, 52px);
    letter-spacing: -1.5px;
  }

  .hero-button {
    min-width: 170px;
  }
}

/* MÓVIL */
@media (max-width: 600px) {
  .hero-banner {
    height: auto;
    grid-template-columns: 1fr;
  }

  /* Imagen arriba */
  .hero-image {
    height: 260px;
    order: 1;
  }

  /* Texto abajo */
  .hero-content {
    min-height: 280px;
    padding: 45px 8%;
    order: 2;
  }

  .hero-text h1 {
    font-size: clamp(40px, 10vw, 56px);
    margin-bottom: 25px;
  }

  .hero-button {
    padding: 13px 20px;
    font-size: 14px;
  }
}

/* SECCIÓN DATOS 5 COLUMNAS */
.stats-section {
width: 100%;
margin-top: 80px;
}

.stats-container {
width: 100%;
max-width: 80%;
margin: 0 auto;

display: flex;
padding: 24px;
box-sizing: border-box;

/* Fondo envolvente */
background-color: #DFF4FD;
border-radius: 24px;
color: #003372;
}


.stat-column {
flex: 1;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
text-align: left;
padding: 0 24px;
box-sizing: border-box;
}

/* Línea divisoria entre columnas */
.stat-column + .stat-column {
border-left: 1px solid #003372;
}

/* Icono */
.stat-icon {
font-size: 32px;
line-height: 1;
margin-bottom: 12px;
}

/* Número */
.stat-number {
font-size: 80px;
font-weight: 500;
line-height: 1.2;
margin-bottom: 6px;
}

/* Texto */
.stat-text {
font-size: 20px;
line-height: 1.4;
}

/* Tablet */
@media (max-width: 900px) {
.stats-container {
flex-wrap: wrap;
}

.stat-column {
flex: 0 0 33.333%;
padding: 20px;
}

.stat-column + .stat-column {
border-left: none;
}

.stat-column:not(:nth-child(3n + 1)) {
border-left: 1px solid #d9d9d9;
}

.stat-column:nth-child(n + 4) {
border-top: 1px solid #d9d9d9;
}
}

/* Móvil */
@media (max-width: 600px) {
.stat-column {
flex: 0 0 50%;
}

.stat-column:not(:nth-child(3n + 1)) {
border-left: none;
}

.stat-column:nth-child(even) {
border-left: 1px solid #d9d9d9;
}

.stat-column:nth-child(n + 3) {
border-top: 1px solid #d9d9d9;
}
}

@media (max-width: 480px) {
.stat-column {
flex: 0 0 100%;
}

.stat-column:nth-child(even) {
border-left: none;
}

.stat-column + .stat-column {
border-left: none;
border-top: 1px solid #d9d9d9;
}
}

/* SECCIÓN DE 2 COLUMNAS CON IMAGEN */

.two-column-section {
width: 100%;
margin-top: 80px;
background-color: #DFF4FD;
padding-top: 80px;
padding-bottom: 80px;
color: #003372;
}

.two-column-container {
width: 100%;
max-width: 80%;
margin: 0 auto;

display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.91fr);
align-items: center;
gap: 48px;
}

/* Columna izquierda */
.two-column-content {
display: flex;
flex-direction: column;
align-items: flex-start;
}

.content-eyebrow {
font-size: 14px;
font-weight: 600;
line-height: 1.4;
margin-bottom: 12px;
color: #036EBA;
}

.content-title {
margin: 0 0 20px;
font-size: 48px;
line-height: 1.1;
font-weight: 700;
}

.content-paragraph {
margin: 0;
font-size: 18px;
line-height: 1.6;
}

/* Columna derecha */
.two-column-image {
width: 100%;
aspect-ratio: 794 / 415;
overflow: hidden;
border-radius: 24px;
}

.two-column-image img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}

/* Tablet */
@media (max-width: 900px) {
.two-column-container {
gap: 32px;
}

.content-title {
font-size: 40px;
}
}

/* Móvil */
@media (max-width: 700px) {
.two-column-container {
grid-template-columns: 1fr;
gap: 32px;
}

.two-column-image {
width: 100%;
}

.content-title {
font-size: 36px;
}
}

/*CARDS Y CARRUSEL*/
/* ========================================
   SECCIÓN DE CARDS
======================================== */

.cards-section {
  width: 100%;
  background-color: #DFF4FD;
  padding: 40px 0;
  box-sizing: border-box;
}


/* ========================================
   CONTENEDOR
======================================== */

.cards-container {
  width: 100%;
  max-width: 80%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;

  box-sizing: border-box;
}


/* ========================================
   CARD
======================================== */

.info-card {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding: 30px 36px;

  box-sizing: border-box;

  background-color: #ffffff;

  border-radius: 24px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}


/* ========================================
   ICONO
======================================== */

.card-icon {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  margin-bottom: 18px;
}

.card-icon img {
  width: 100px;
  height: 100px;

  display: block;

  object-fit: contain;
}


/* ========================================
   DIVISOR
======================================== */

.card-divider {
  width: 70%;
  height: 2px;

  margin: 0 0 22px;

  background-color: #123b7a;
}


/* ========================================
   CONTENIDO
======================================== */

.card-content {
  width: 100%;

  padding: 0;

  text-align: left;
}


/* ========================================
   TÍTULO
======================================== */

.card-title {
  margin: 0 0 12px;

  color: #003b7d;

  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;

  text-align: left;
}


/* ========================================
   PÁRRAFO
======================================== */

.card-text {
  margin: 0;

  color: #003b7d;

  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;

  text-align: left;
}


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

@media (max-width: 900px) {

  .cards-container {
    max-width: 90%;
    gap: 20px;
  }

  .info-card {
    padding: 28px 24px;
  }

  .card-icon img {
    width: 75px;
    height: 75px;
  }

  .card-divider {
    width: 70%;
    margin-bottom: 20px;
  }

  .card-title {
    font-size: 28px;
  }

  .card-text {
    font-size: 17px;
  }

}


/* ========================================
   MOBILE - CARRUSEL
======================================== */

@media (max-width: 600px) {

  .cards-section {
    padding: 30px 0;
  }


  /* ----------------------------------------
     CARRUSEL
  ---------------------------------------- */

  .cards-container {
    width: 100%;
    max-width: none;

    display: flex;

    gap: 16px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 10px 0 25px 20px;

    box-sizing: border-box;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .cards-container::-webkit-scrollbar {
    display: none;
  }


  /* ----------------------------------------
     CARD
  ---------------------------------------- */

  .info-card {
    flex: 0 0 82%;

    width: 82%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 28px 22px;

    border-radius: 20px;

    box-sizing: border-box;

    scroll-snap-align: start;
  }


  /* ----------------------------------------
     ICONO
  ---------------------------------------- */

  .card-icon {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin-bottom: 16px;
  }

  .card-icon img {
    width: 70px;
    height: 70px;
  }


  /* ----------------------------------------
     DIVISOR
  ---------------------------------------- */

  .card-divider {
    width: 65%;

    height: 2px;

    margin: 0 0 20px;
  }


  /* ----------------------------------------
     CONTENIDO
  ---------------------------------------- */

  .card-content {
    width: 100%;

    padding: 0;

    text-align: left;
  }


  /* ----------------------------------------
     TÍTULO
  ---------------------------------------- */

  .card-title {
    margin: 0 0 10px;

    font-size: 28px;

    line-height: 1.1;

    text-align: left;
  }


  /* ----------------------------------------
     TEXTO
  ---------------------------------------- */

  .card-text {
    margin: 0;

    font-size: 16px;

    line-height: 1.45;

    text-align: left;
  }

}


/* ========================================
   MÓVILES PEQUEÑOS
======================================== */

@media (max-width: 400px) {

  .cards-container {
    padding-left: 15px;

    gap: 14px;

    scroll-padding-left: 15px;
  }

  .info-card {
    flex-basis: 84%;
    width: 84%;

    padding: 25px 20px;
  }

  .card-icon img {
    width: 65px;
    height: 65px;
  }

  .card-title {
    font-size: 26px;
  }

  .card-text {
    font-size: 15px;
  }

}
/*EFECTO FADE IN*/
.info-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.info-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-card:nth-child(1) {
  transition-delay: 0.1s;
}

.info-card:nth-child(2) {
  transition-delay: 0.3s;
}

.info-card:nth-child(3) {
  transition-delay: 0.5s;
}
section.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/*VIDEO SECTION*/
.video-section {
  width: 100%;
  padding: 80px 0;
  text-align: center;
  background-color: #DFF4FD;
}

.video-container {
  width: 80%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.company-video {
  display: block;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/*TITULO VENTAJAS*/
.competitive-section {
  width: 100%;
  padding: 60px 0;
  background-color: #fff;
}
.competitive-section {
  width: 100%;
  padding: 60px 0;
  background-color: #fff;
}

.competitive-content {
  width: 80%;
  max-width: 1600px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
}

/* COLUMNA IZQUIERDA */

.competitive-text {
  min-width: 0;
}

.competitive-label {
  display: block;
  margin-bottom: 18px;

  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1688e8;
}

.competitive-text h2 {
  margin: 0;

  font-family: Arial, sans-serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  color: #073b7a;

  white-space: nowrap;
}

/* COLUMNA DERECHA */

.competitive-image {
  width: 100%;
}

.competitive-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* TEXTO */

.competitive-text {
  flex: 1;
}

.competitive-label {
  display: block;
  margin-bottom: 18px;

  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1688e8;
}

.competitive-text h2 {
  margin: 0;

  font-family: Arial, sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  color: #073b7a;
}

/* IMAGEN */

.competitive-image {
  flex: 0 0 716px;
}

.competitive-image img {
  display: block;
  width: 716px;
  height: 136px;
  object-fit: cover;
}
@media (max-width: 1100px) {

  .competitive-content {
    gap: 30px;
  }

  .competitive-image {
    flex: 0 0 55%;
  }

  .competitive-image img {
    width: 100%;
    height: auto;
  }

  .competitive-text h2 {
    font-size: 42px;
  }
}


@media (max-width: 768px) {

  .competitive-section {
    padding: 40px 0;
  }

  .competitive-content {
    width: 90%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 30px;
  }

  /* IMAGEN ARRIBA */
  .competitive-image {
    order: 1;
    width: 100%;
  }

  .competitive-image img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* TEXTO ABAJO */
  .competitive-text {
    order: 2;
    width: 100%;
  }

  .competitive-text h2 {
    font-size: 36px;
  }

}


/*ESTILOS GRID 4 CARDS*/
/* =========================================
   FEATURES / CARDS
   ========================================= */

.features-section {
  width: 100%;
  padding: 30px 24px 50px;
  box-sizing: border-box;
}

.features-grid {
  width: 80%;
  max-width: 1550px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}


/* =========================================
   CARD
   ========================================= */

.feature-card {
  min-height: 385px;
  padding: 28px 26px 30px;

  background: #e7f5fc;
  border-radius: 16px;

  display: flex;
  flex-direction: column;

  box-sizing: border-box;
}


/* =========================================
   ICONO
   ========================================= */

.feature-icon {
  width: 75px;
  height: 75px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  margin-bottom: 14px;
}

.feature-icon img {
  width: 68px;
  height: 68px;

  object-fit: contain;
  object-position: left center;
}


/* =========================================
   TITULO
   ========================================= */

.feature-card h3 {
  margin: 0 0 12px;

  color: #003f7d;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;

  line-height: 1.25;
}


/* =========================================
   TEXTO
   ========================================= */

.feature-card p {
  margin: 0;

  color: #003f7d;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 400;

  line-height: 1.4;
}

.feature-card strong {
  font-weight: 700;
}


/* =========================================
   TABLET
   2 COLUMNAS
   ========================================= */

@media (max-width: 1100px) {

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .feature-card {
    min-height: 360px;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .feature-card p {
    font-size: 18px;
  }
}


/* =========================================
   MÓVIL
   2 COLUMNAS
   ========================================= */

@media (max-width: 700px) {

  .features-section {
    padding: 20px 15px 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .feature-card {
    min-height: 320px;
    padding: 20px 18px 22px;
    border-radius: 13px;
  }

  .feature-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
  }

  .feature-icon img {
    width: 52px;
    height: 52px;
  }

  .feature-card h3 {
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .feature-card p {
    font-size: 15px;
    line-height: 1.35;
  }
}


/* =========================================
   MÓVILES MUY PEQUEÑOS
   ========================================= */

@media (max-width: 400px) {

  .features-grid {
    gap: 12px;
  }

  .feature-card {
    min-height: 300px;
    padding: 17px 14px 20px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .feature-icon img {
    width: 45px;
    height: 45px;
  }

  .feature-card h3 {
    font-size: 15px;
  }

  .feature-card p {
    font-size: 14px;
  }
}

/*TITULO HISTORIA*/
.history-section {
  width: 100%;
  padding: 60px 0;
  background-color: #fff;
}
.history-section {
  width: 100%;
  padding: 60px 0;
  background-color: #fff;
}

.history-content {
  width: 80%;
  max-width: 1600px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
}

/* COLUMNA IZQUIERDA */

.history-text {
  min-width: 0;
}

.history-label {
  display: block;
  margin-bottom: 18px;

  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1688e8;
}

.history-text h2 {
  margin: 0;

  font-family: Arial, sans-serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  color: #073b7a;

  white-space: nowrap;
}

/* COLUMNA DERECHA */

.history-image {
  width: 100%;
}

.history-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* TEXTO */

.history-text {
  flex: 1;
}

.history-label {
  display: block;
  margin-bottom: 18px;

  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1688e8;
}

.history-text h2 {
  margin: 0;

  font-family: Arial, sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  color: #073b7a;
}

/* IMAGEN */

.history-image {
  flex: 0 0 716px;
}

.history-image img {
  display: block;
  width: 716px;
  height: 136px;
  object-fit: cover;
}
@media (max-width: 1100px) {

  .history-content {
    gap: 30px;
  }

  .history-image {
    flex: 0 0 55%;
  }

  .history-image img {
    width: 100%;
    height: auto;
  }

  .history-text h2 {
    font-size: 42px;
  }
}


@media (max-width: 768px) {

  .history-section {
    padding: 50px 0;
  }

  .history-content {
    width: 90%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
    gap: 35px;
  }

  /* IMAGEN ARRIBA */
  .history-image {
    order: 1;
    width: 100%;
    flex: none;
  }

  .history-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  /* TEXTO ABAJO */
  .history-text {
    order: 2;
    width: 100%;
  }

  .history-label {
    font-size: 14px;
  }

  .history-text h2 {
    font-size: 36px;
  }

  .content-paragraph {
    font-size: 16px;
  }
}

/*ESTILOS LINEA DE TIEMPO*/
/* =========================================
   TIMELINE
========================================= */

.timeline {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;

  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;

  align-items: stretch;
}
.timeline-item {
  position: relative;
  padding-top: 70px;

  display: flex;
  flex-direction: column;
}

.timeline-card {
  width: 100%;
  height: 100%;

  padding: 12px 12px 18px;

  border-radius: 10px;

  background: #e8edf3;

  color: #003b78;
}


/* =========================================
   ITEM
========================================= */

.timeline-item {
  position: relative;
  padding-top: 70px;
}


/* =========================================
   ICONO
========================================= */

.timeline-icon {
  position: absolute;

  top: 0;
  left: 50%;

  transform: translateX(-50%);

  width: 64px;
  height: 64px;

  border-radius: 50%;

  background: #073b78;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2;
}

.timeline-icon img {
  width: 48px;
  height: 48px;

  object-fit: contain;
}


/* =========================================
   LÍNEA VERTICAL
========================================= */

.timeline-item::before {
  content: "";

  position: absolute;

  top: 48px;
  left: 50%;

  width: 2px;
  height: 22px;

  background: #073b78;

  transform: translateX(-50%);
}


/* =========================================
   CARD
========================================= */

.timeline-card {

  padding: 12px 12px 18px;

  border-radius: 10px;

  background: #e8edf3;

  color: #003b78;
}


/* =========================================
   AÑO
========================================= */

.timeline-year {
  font-size: 40px;
  line-height: 1.2;

  font-weight: 500;

  text-align: center;

  margin-bottom: 5px;
}


/* =========================================
   TÍTULO
========================================= */

.timeline-card h3 {
  margin: 0 0 8px;

  font-size: 18px;
  line-height: 1.35;

  font-weight: 600;

  color: #003b78;
}


/* =========================================
   TEXTO
========================================= */

.timeline-card p {
  margin: 0;

  font-size: 14px;
  line-height: 1.5;

  font-weight: 400;

  color: #003b78;
}


/* =========================================
   COLORES ALTERNADOS
========================================= */

.timeline-item:nth-child(2n) .timeline-card {
  background: #e4f0fc;
}

.timeline-item:nth-child(3n) .timeline-card {
  background: #d9f0ef;
}


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

@media (max-width: 1100px) {

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
  }

}


/* =========================================
   MOBILE
   2 CARDS POR FILA
========================================= */

@media (max-width: 768px) {

  .timeline {
    grid-template-columns: repeat(2, 1fr);

    gap: 35px 18px;

    padding: 30px 15px;
  }

  .timeline-item {
    padding-top: 65px;
  }

  .timeline-icon {
    width: 44px;
    height: 44px;
  }

  .timeline-icon img {
    width: 27px;
    height: 27px;
  }

  .timeline-item::before {
    top: 44px;
    height: 21px;
  }

  .timeline-card {
    min-height: 165px;
    padding: 12px 11px 16px;
  }

  .timeline-year {
    font-size: 22px;
  }

  .timeline-card h3 {
    font-size: 10px;
  }

  .timeline-card p {
    font-size: 10px;
  }

}


/* =========================================
   TELÉFONOS PEQUEÑOS
========================================= */

@media (max-width: 480px) {

  .timeline {
    gap: 28px 12px;
    padding: 25px 10px;
  }

  .timeline-item {
    padding-top: 58px;
  }

  .timeline-icon {
    width: 40px;
    height: 40px;
  }

  .timeline-icon img {
    width: 24px;
    height: 24px;
  }

  .timeline-item::before {
    top: 40px;
    height: 18px;
  }

  .timeline-card {
    min-height: 170px;
    border-radius: 8px;
  }

  .timeline-year {
    font-size: 20px;
  }

}.timeline-item:nth-child(1) .timeline-icon {
  background: #073b78;
}

.timeline-item:nth-child(2) .timeline-icon {
  background: #4aa9f5;
}

.timeline-item:nth-child(3) .timeline-icon {
  background: #00aaa8;
}

.timeline-item:nth-child(4) .timeline-icon {
  background: #073b78;
}

.timeline-item:nth-child(5) .timeline-icon {
  background: #4aa9f5;
}

.timeline-item:nth-child(6) .timeline-icon {
  background: #00aaa8;
}

/*HISTORIA 3 CARDS*/
/* ==========================================
   TIMELINE DE 3 CARDS
========================================== */

.timeline-three {
  width: 100%;
  max-width: 1440px;

  margin: 0 auto;
  padding: 40px 20px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  align-items: stretch;
}


/* ==========================================
   ITEM
========================================== */

.timeline-three__item {
  position: relative;

  padding-top: 70px;

  display: flex;
  flex-direction: column;

}

.timeline-three__image {
align-self: flex-end;
padding-top: 16px;

}


/* ==========================================
   ICONO
========================================== */

.timeline-three__icon {
  position: absolute;

  top: 0;
  left: 50%;

  transform: translateX(-50%);

  width: 64px;
  height: 64px;

  border-radius: 50%;

  background: #073b78;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2;
}

.timeline-three__icon img {
  width: 48px;
  height: 48px;

  object-fit: contain;
}


/* ==========================================
   LÍNEA ENTRE ICONO Y CARD
========================================== */

.timeline-three__item::before {
  content: "";

  position: absolute;

  top: 48px;
  left: 50%;

  width: 2px;
  height: 22px;

  background: #073b78;

  transform: translateX(-50%);
}


/* ==========================================
   CARD
========================================== */

.timeline-three__card {
  width: 100%;
  height: 100%;

  padding: 15px 20px 20px;

  border-radius: 10px;

  background: #e5ebf1;

  color: #003b78;
}


/* ==========================================
   AÑO
========================================== */

.timeline-three__year {
  margin-bottom: 7px;

  text-align: center;

  font-size: 40px;
  line-height: 1.2;

  font-weight: 500;

  color: #003b78;
}


/* ==========================================
   TÍTULO
========================================== */

.timeline-three__card h3 {
  margin: 0 0 8px;

  font-size: 18px;
  line-height: 1.35;

  font-weight: 600;

  color: #003b78;
}


/* ==========================================
   TEXTO
========================================== */

.timeline-three__card p {
  margin: 0;

  font-size: 14px;
  line-height: 1.5;

  font-weight: 400;

  color: #003b78;
}


/* ==========================================
   COLORES DE LAS CARDS
========================================== */

.timeline-three__item:nth-child(1)
.timeline-three__card {
  background: #e5ebf1;
}

.timeline-three__item:nth-child(2)
.timeline-three__card {
  background: #e3f0fc;
}

.timeline-three__item:nth-child(3)
.timeline-three__card {
  background: #d9f0ef;
}


/* ==========================================
   COLORES DE LOS ICONOS
========================================== */

.timeline-three__item:nth-child(1)
.timeline-three__icon {
  background: #073b78;
}

.timeline-three__item:nth-child(2)
.timeline-three__icon {
  background: #4aa9f5;
}

.timeline-three__item:nth-child(3)
.timeline-three__icon {
  background: #00aaa8;
}


/* ==========================================
   TABLET / MOBILE
   2 CARDS POR FILA
========================================== */

@media (max-width: 768px) {

  .timeline-three {
    grid-template-columns: repeat(2, 1fr);

    gap: 35px 18px;

    padding: 30px 15px;
  }

}


/* ==========================================
   TELÉFONOS PEQUEÑOS
========================================== */

@media (max-width: 480px) {

  .timeline-three {
    grid-template-columns: repeat(2, 1fr);

    gap: 28px 12px;

    padding: 25px 10px;
  }


  .timeline-three__item {
    padding-top: 58px;
  }


  .timeline-three__icon {
    width: 40px;
    height: 40px;
  }


  .timeline-three__icon img {
    width: 24px;
    height: 24px;
  }


  .timeline-three__item::before {
    top: 40px;
    height: 18px;
  }


  .timeline-three__card {
    padding: 13px 13px 18px;

    border-radius: 8px;
  }


  .timeline-three__year {
    font-size: 21px;
  }


  .timeline-three__card h3 {
    font-size: 11px;
  }


  .timeline-three__card p {
    font-size: 10px;
  }

}

/*LISTADO EN BULLETS - HISTORIA*/
.timeline-list {
  margin: 0;
  padding-left: 25px;
}

.timeline-list li {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.2;
  color: #333;
}

.timeline-list li::marker {
  color: #1688e8;
  font-size: 14px;
}

/*TITULO PORTAFOLIO*/
.portfolio-header {
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 20px;
}

.portfolio-label {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #1688e8;
  text-transform: uppercase;
}

.portfolio-title {
  margin: 0 auto 24px;
  max-width: 850px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #073b7a;
}

.portfolio-description {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  color: #073b7a;
}

/* Responsive */
@media (max-width: 768px) {
  .portfolio-header {
    padding: 60px 20px;
  }

  .portfolio-label {
    font-size: 12px;
    letter-spacing: 2.5px;
  }

  .portfolio-title {
    font-size: 38px;
    letter-spacing: -0.8px;
  }

  .portfolio-description {
    font-size: 16px;
  }
}


/*ESTILOS CARDS DE MEDICAMENTOS*/
/* =========================
   SECCIÓN DE CARDS
========================= */

.cards-section {
  width: 100%;
  padding: 20px 0;
  background-color: #fff;
}

.cards-container-med {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* =========================
   CARD
========================= */

.card {
  display: flex;
  flex-direction: column;

  overflow: hidden;
  border-radius: 15px;

  text-decoration: none;
  color: #fff;

  /* Mantienes tu proporción actual */
  aspect-ratio: auto;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

/* =========================
   IMAGEN
========================= */

.card-image {
  height: 70%;
  flex-shrink: 0;

  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.04);
}

/* =========================
   PLECA INFERIOR
========================= */

.card-caption {
  flex: 1;

  min-height: 30%;

  padding: 10px 16px;

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

  box-sizing: border-box;

  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 400;

  color: #fff;
}

/* Colores de las plecas */

.card-purple {
  background: #56309b;
}

.card-teal {
  background: #007f7d;
}

.card-blue {
  background: #00489c;
}

.card-gold {
  background: #9b7200;
}

/* =========================
   FLECHA
========================= */

.card-arrow {
  align-self: flex-end;

  font-size: 20px;
  line-height: 1;

  margin-bottom: 1px;

  transition: transform 0.25s ease;
}

.card:hover .card-arrow {
  transform: translateX(4px);
}


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

@media (max-width: 900px) {

  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

}


/* =========================
   MOBILE — CARRUSEL
========================= */

@media (max-width: 600px) {

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

@media (max-width: 600px) {

  .cards-container {
    width: 100%;

    display: flex;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 0 16px 12px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .cards-container::-webkit-scrollbar {
    display: none;
  }
}

  /* CARD */

  .card {
    flex: 0 0 78%;
    max-width: 310px;

    /* Importante: quitar la proporción */
    aspect-ratio: auto;

    height: auto;

    display: flex;
    flex-direction: column;

    scroll-snap-align: start;

    overflow: hidden;
  }

  .card {
    border-radius: 15px;
    overflow: hidden;
  }

  .card-image {
    height: 120px;
    flex: 0 0 120px;
  }

  .card-caption {
    border-radius: 0 0 15px 15px;
  }
  


  /* IMAGEN */

  .card-image {
    height: 120px;
    flex: 0 0 120px;

    overflow: hidden;
  }

  .card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
  }


  /* PLECA */

  .card-caption {
    min-height: 65px;
    height: auto;

    flex: 0 0 auto;

    padding: 10px 14px;

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

    gap: 8px;

    box-sizing: border-box;

    font-size: 17px;
    line-height: 1.15;

    /* Muy importante */
    overflow: visible;
  }


  /* El texto puede ocupar varias líneas */
  .card-caption span:first-child {
    min-width: 0;
    overflow-wrap: break-word;
  }


  /* Flecha */
  .card-arrow {
    flex-shrink: 0;
  }



/* =========================
   MOBILE PEQUEÑO
========================= */

@media (max-width: 380px) {

  .card {
    flex-basis: 82%;
  }

  .card-caption {
    font-size: 17px;
  }

}
}


/*TITULO UBICACION*/
.ubicacion-header {
  max-width: 1440px;
  margin: 0 auto;
  text-align: left;
  padding: 80px 20px;
}

.ubicacion-label {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #1688e8;
  text-transform: uppercase;
}

.ubicacion-title {
  max-width: 850px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #073b7a;
  text-align: left;
}

.ubicacion-description {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  color: #073b7a;
}

/* Responsive */
@media (max-width: 768px) {
  .ubicacion-header {
    padding: 60px 20px;
  }

  .ubicacion-label {
    font-size: 12px;
    letter-spacing: 2.5px;
  }

  .ubicacion-title {
    font-size: 38px;
    letter-spacing: -0.8px;
  }

  .ubicacion-description {
    font-size: 16px;
  }
}

/*COLUMNAS UBICACIÓN*/

/* =========================================
   SECCIÓN DE CONTACTO
========================================= */

.contact-section {
  width: 100%;
  padding: 30px 20px;
  box-sizing: border-box;
}

.contact-grid {
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1.15fr 1.35fr;
  gap: 45px;

  align-items: stretch;
}


/* =========================================
   COLUMNAS
========================================= */

.contact-column {
  display: flex;
  flex-direction: column;
}


/* =========================================
   ELEMENTOS DE CONTACTO
========================================= */

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;

  margin-bottom: 55px;
}

.contact-item:last-child {
  margin-bottom: 0;
}


/* =========================================
   ICONOS
========================================= */

.contact-icon {
  width: 70px;
  height: 70px;

  flex: 0 0 70px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon img {
  width: 70px;
  height: 70px;

  display: block;
  object-fit: contain;
}


/* =========================================
   TEXTO
========================================= */

.contact-content {
  color: #003b78;
  font-family: Arial, Helvetica, sans-serif;
}

.contact-content h3 {
  margin: 12px 0 8px;

  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;

  color: #003b78;
}

.contact-content p {
  margin: 0;

  font-size: 21px;
  line-height: 1.25;
  font-weight: 400;

  color: #003b78;
}


/* =========================================
   CORREOS
========================================= */

.contact-email {
  margin-bottom: 0;
}

.contact-email .contact-content h3 {
  margin-top: 12px;
  margin-bottom: 12px;
}

.email-block {
  margin-bottom: 24px;
}

.email-block:last-child {
  margin-bottom: 0;
}

.email-block strong {
  display: block;

  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;

  color: #003b78;

  margin-bottom: 0;
}

.email-block a {
  display: block;

  color: #003b78;
  text-decoration: none;

  font-size: 21px;
  line-height: 1.25;
}

.email-block a:hover {
  text-decoration: underline;
}


/* =========================================
   IMAGEN / MAPA
========================================= */

.contact-map {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: stretch;
}

.contact-map img {
  display: block;

  width: 100%;
  height: 100%;

  min-height: 450px;

  object-fit: cover;

  border-radius: 16px;
}


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

@media (max-width: 1100px) {

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .contact-map {
    grid-column: 1 / -1;
  }

  .contact-map img {
    height: 400px;
    min-height: 0;
  }

  .contact-content h3 {
    font-size: 19px;
  }

  .contact-content p,
  .email-block strong,
  .email-block a {
    font-size: 18px;
  }

}


/* =========================================
   MÓVIL
========================================= */

@media (max-width: 700px) {

  .contact-section {
    padding: 30px 15px;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .contact-column {
    width: 100%;
  }


  /* Todos los textos primero */

  .contact-item {
    gap: 16px;
    margin-bottom: 38px;
  }


  /* Iconos */

  .contact-icon {
    width: 55px;
    height: 55px;
    flex: 0 0 55px;
  }

  .contact-icon img {
    width: 55px;
    height: 55px;
  }


  /* Texto */

  .contact-content h3 {
    margin-top: 4px;
    margin-bottom: 7px;

    font-size: 18px;
  }

  .contact-content p {
    font-size: 16px;
    line-height: 1.35;
  }


  /* Correos */

  .email-block {
    margin-bottom: 20px;
  }

  .email-block strong,
  .email-block a {
    font-size: 16px;
    line-height: 1.35;
  }

  .email-block a {
    word-break: break-word;
  }


  /* Imagen SIEMPRE AL FINAL */

  .contact-map {
    order: 3;

    width: 100%;
    margin-top: 10px;
  }

  .contact-map img {
    width: 100%;
    height: auto;
    min-height: 0;

    aspect-ratio: 4 / 3;
    object-fit: cover;

    border-radius: 12px;
  }

}

/*ESTILOS FOOTER*/

/* =========================================
   FOOTER GENERAL
========================================= */

.site-footer {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;

  background: #063875;

  color: #ffffff;

  font-family: Arial, Helvetica, sans-serif;

  overflow: hidden;

  border-radius: 0 0 28px 28px;
}


/* =========================================
   BANNER
========================================= */

.footer-banner {
  width: 100%;
  line-height: 0;
}

.footer-banner img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: cover;
}


/* =========================================
   NAVEGACIÓN
========================================= */

.footer-navigation {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px 25px 14px;

  box-sizing: border-box;
}

.footer-menu {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0;

  width: 100%;
}

.footer-menu a {
  color: #ffffff;

  text-decoration: none;

  font-size: 21px;
  font-weight: 400;

  white-space: nowrap;

  padding: 0 28px;

  transition: font-weight 0.2s ease,
              opacity 0.2s ease;
}

.footer-menu a:hover {
  font-weight: 700;
}


/* =========================================
   SEPARADORES
========================================= */

.footer-divider {
  width: 1px;
  height: 30px;

  background: rgba(255, 255, 255, 0.8);

  flex-shrink: 0;
}


/* =========================================
   PARTE INFERIOR
========================================= */

.footer-bottom {
  width: 100%;

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

  padding: 12px 165px 28px;

  box-sizing: border-box;

  font-size: 21px;
}

.footer-copyright,
.footer-tagline {
  color: #ffffff;
}


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

@media (max-width: 1200px) {

  .footer-menu a {
    font-size: 18px;
    padding: 0 18px;
  }

  .footer-bottom {
    padding-left: 50px;
    padding-right: 50px;

    font-size: 18px;
  }

}


/* =========================================
   MÓVIL
========================================= */

@media (max-width: 768px) {

  .site-footer {
    border-radius: 0 0 18px 18px;
  }


  /* -----------------------------------------
     BANNER
  ----------------------------------------- */

  .footer-banner {
    width: 100%;
  }

  .footer-banner img {
    width: 100%;
    height: auto;

    object-fit: cover;
  }


  /* -----------------------------------------
     MENÚ VERTICAL
  ----------------------------------------- */

  .footer-navigation {
    padding: 25px 20px 10px;
  }

  .footer-menu {
    flex-direction: column;

    align-items: center;

    gap: 0;
  }

  .footer-menu a {
    display: block;

    width: 100%;

    padding: 10px 0;

    text-align: center;

    font-size: 17px;
  }


  /* -----------------------------------------
     OCULTAR SEPARADORES
  ----------------------------------------- */

  .footer-divider {
    display: none;
  }


  /* -----------------------------------------
     INFORMACIÓN INFERIOR
  ----------------------------------------- */

  .footer-bottom {
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 12px;

    padding: 20px 20px 28px;

    text-align: center;

    font-size: 16px;
    line-height: 1.4;
  }

  .footer-copyright,
  .footer-tagline {
    width: 100%;
  }

}


/* =========================================
   MÓVILES PEQUEÑOS
========================================= */

@media (max-width: 480px) {

  .footer-navigation {
    padding-left: 15px;
    padding-right: 15px;
  }

  .footer-menu a {
    font-size: 16px;
    padding: 9px 0;
  }

  .footer-bottom {
    font-size: 14px;
    padding-left: 15px;
    padding-right: 15px;
  }

}

/*BOTON REGRESAR*/

.back-to-top {
  position: fixed;

  right: 25px;
  bottom: 25px;

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #063875;
  color: #ffffff;

  border-radius: 50%;

  text-decoration: none;

  opacity: 0;
  visibility: hidden;

  transform: translateY(15px);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);

  z-index: 9999;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.back-to-top:hover {
  background: #0b4d91;
  transform: translateY(-4px);
}

.back-to-top span {
  font-size: 30px;
  line-height: 1;
}


/* MÓVIL */

@media (max-width: 768px) {

  .back-to-top {
    width: 45px;
    height: 45px;

    right: 18px;
    bottom: 18px;
  }

  .back-to-top span {
    font-size: 26px;
  }

}