/*
Theme Name: Solvem - Broker de seguros
Author: <a href="https://emalderete.com" target="_blank">Emanuel Alderete Dev</a> & IDE Comunicación Digital
Description: Plantilla personalizada para el cliente, desarrollada casi en su totalidad desde el código para un mayor control sobre cada componente de la web.
Version: 26.1.0.1
Template: twentytwenty
Text Domain: solvem
*/

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Paleta de colores del sitio */

:root {
  --dark-color: #333333;
  --dark-gray-color: #555555;
  --gray-color: #aaaaaa;
  --light-gray-color: #e7e7e7;
  --light-color: #ffffff;
  --primary-color: #175099;
  --secondary-color: #fe730a;
  --terciary-color: #fe730a; /* Este color se usa para hacer énfasis. Si no hay un color terciario se puede duplicar el primario o secundario */
  --light-shadow: #00000038;
  --transition: 250ms;
  --font-primary: 'Montserrat';
  --font-secondary: 'Montserrat'; /* Esta fuente se usa para textos en general, si no hay una fuente secundaria se puede duplicar la fuente para conservar la estructura CSS */
}

/* Declaraciones Generales */

html {
  font-size: 14px;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  font-family: var(--font-secondary);
}

/* Fix para evitar scroll jump cuando se cierra el offcanvas */
body.modal-open {
  padding-right: 0 !important;
}

.offcanvas-backdrop {
  backdrop-filter: blur(2px);
}

main {
  color: var(--dark-gray-color);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: normal;
}

h1 {
  font-size: 4em;
}

h2 {
  font-size: 3.2em;
}

h3 {
  font-size: 2.4em;
}

h4 {
  font-size: 1.6em;
}

h5 {
  font-size: 1.4em;
}

h6 {
  font-size: 1.2em;
}

.title {
  text-transform: uppercase;
  letter-spacing: 3px;
  a {
    text-decoration: none;
    color: inherit;
  }
}

/* Módulos reutilizables */
.buttons-center,
.buttons-left,
.buttons-right {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.buttons-left {
  justify-content: flex-start;
}

.buttons-right {
  justify-content: flex-end;
}

.buttons-center {
  justify-content: center;
}

.buttons, .buttons-primary, .buttons-light, .buttons-secondary {
  padding: 0.5rem 2rem;
  border-radius: 99px;
  transition: var(--transition);
  text-decoration: none;
}

.buttons-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: 2px solid var(--primary-color);
  &:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
  }
}

.buttons-light {
  background-color: var(--light-color);
  color: var(--dark-color);
  border: 2px solid var(--light-color);
  &:hover {
    background-color: transparent;
    color: var(--light-color);
    box-shadow: 0 0 10px var(--light-color);
  }
}

.buttons-secondary {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border: 2px solid var(--secondary-color);
  &:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
    box-shadow: 0 0 10px var(--secondary-color);
  }
}

.light-separator, .primary-separator {
  margin: 2rem auto;
  width: 100%;
  max-width: 1200px;
  height: 2px;
}

.light-separator {
  background-color: var(--light-color);
}

.primary-separator {
  background-color: var(--primary-color);
}

/* Efectos */
.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

.primary-text {
  color: var(--primary-color);
}

.secondary-text {
  color: var(--secondary-color);
}

.dark-gray-text {
  color: var(--dark-gray-color);
}

.bg-pattern-animate {
  animation: slowSliding infinite linear 3000ms;
	background-position: center;
}

@keyframes slowSliding {
	0% {
		transform: translate(63.3px, -10px);
	}
	100% {
		transform: translate(-63.3px, 10px);
	}
}

#header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--light-color);
  box-shadow: 0 3px 10px var(--light-shadow);
  .header__content {
    width: 100%;
    max-width: 1600px;
    padding: 1.3rem 2rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.header__brand {
  width: 100%;
  max-width: 170px;
  .header__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.main-menu {
  list-style: none;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  li {
    a, button {
      color: var(--dark-color);
      text-decoration: none;
      text-transform: uppercase;
      border: none;
      background-color: transparent;
    }
  }
  .menu-item {
    margin: 0 0.6rem;
    letter-spacing: 1.2px;
  }
  .menu-item::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    margin: 0 auto;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  .menu-item:hover::after {
    width: 100%;
  }
  .main-menu__submenu {
    position: relative;
    ul {
      padding: 0;
      margin: 0;
      list-style: none;
      position: absolute;
      transition: var(--transition);
      opacity: 0;
      pointer-events: none;
      background-color: var(--light-color);
      border: 1px solid var(--light-gray-color);
      box-shadow: 2px 2px 10px var(--light-shadow);
      border-radius: 15px;
      width: max-content;
      overflow: hidden;
      .submenu-item {
        a {
          color: var(--dark-color);
          padding: 0.4rem 0.5rem;
          display: block;
          text-decoration: none;
          text-transform: uppercase;
          border: none;
          background-color: transparent;
        }
        &:hover {
          background-color: var(--primary-color);
          a {
            color: var(--light-color);
          }
        }
      }
    }
    &:hover {
      ul {
        opacity: 1;
        pointer-events: all;
      }
    }
    &:hover .menu-item::after {
      width: 100%;
    }
  }
}

.header__mobile-button {
  display: none;
  button {
    background-color: transparent;
    color: var(--primary-color);
    font-size: 1.8em;
    border: none;
    padding: 1.5rem;
  }
}

.mobile-menu {
  .offcanvas-header {
    .mobile-menu__brand {
      width: 100%;
      max-width: 170px;
      .mobile-menu__logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
  }
  .offcanvas-body {
    .mobile-nav {
      width: 100%;
      list-style: none;
      .mobile-menu__submenu {
        .accordion-button {
          font-family: var(--font-secondary);
          font-weight: 400;
          font-size: 0.8em;
          color: var(--dark-color);
        }
        .accordion-button::before {
          content: '';
          display: inline-block;
          width: 0;
          height: 3px;
          background-color: var(--primary-color);
          transition: var(--transition);
        }
        .accordion-button:hover::before {
          width: 1.5rem;
          margin: 0 0.7rem 0 0;
        }
        .accordion-button:not(.collapsed)::before {
          width: 1.5rem;
          margin: 0 0.7rem 0 0;
        }
        .accordion-button:not(.collapsed) {
          background-color: transparent;
          color: var(--dark-color);
        }
        .accordion-header {
          font-size: calc(1.5em + 5.625px);
        }
        .accordion-body {
          display: flex;
          align-items: flex-start;
          justify-content: flex-start;
          flex-wrap: wrap;
          a {
            text-decoration: none;
            color: var(--dark-color);
            font-size: 1em;
            padding: 0.5rem 1rem;
            display: inline-block;
            width: 100%;
            display: flex;
            align-items: center;
            font-family: var(--font-secondary);
            &:hover {
              background-color: var(--primary-color);
              color: var(--light-color);
            }
          }
          a::before {
            content: '';
            display: inline-block;
            width: 1.5rem;
            height: 3px;
            background-color: var(--primary-color);
            margin-right: 1rem;
          }
          a:hover::before {
            background-color: var(--light-color);
          }
        }
      }
      .mobile-menu__item {
        padding: 1rem 1.25rem;
        font-size: 1.5em;
        display: flex;
        align-items: center;
        font-family: var(--font-secondary);
        a {
          text-decoration: none;
          color: var(--dark-color);
        }
      }
      .mobile-menu__item::before {
        content: '';
        display: inline-block;
        width: 0;
        height: 3px;
        background-color: var(--primary-color);
        transition: var(--transition);
      }
      .mobile-menu__item:hover::before {
        width: 1.5rem;
        margin: 0 0.7rem 0 0;
      }
    }
  }
}

/* Redes sociales: Fixed */
.c-social-media {
  width: max-content;
  position: fixed;
  top: 50%;
  right: 3.5rem;
  transform: translateY(-50%) rotateZ(-90deg);
  transform-origin: top right;
  z-index: 8;
  background-color: var(--light-color);
  border-radius: 99px;
  padding: 0.3rem;
  .c-social-media__content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    .c-social-media__item {
      color: var(--primary-color);
      font-size: 1.4em;
      display: inline-block;
      margin: 0.1rem 0;
      transform: rotateZ(90deg);
      width: 30px;
      height: 30px;
      border-radius: 99px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      text-align: center;
    }
    span {
      color: var(--primary-color);
      width: max-content;
      white-space: nowrap;
      font-weight: 600;
      &::after {
        content: '';
        width: 20px;
        height: 2px;
        display: inline-block;
        background-color: var(--primary-color);
        border-radius: 2px;
        margin: 3px 5px 3px 10px;
      }
    }
  }
}

/* Main */
#main {
  width: 100%;
}

/* Main Slider */
#main-slider {
  width: 100%;
  border-bottom: 4px solid var(--primary-color);
}

/* Who / Somos Solvem */
.who {
  width: 100%;
  background-color: var(--light-color);
  position: relative;
  margin: 15rem 0;
  .who__content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 5rem;
    position: relative;
  }
  .who__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--light-gray-color);
  }
  .who__intro-left {
    flex: 1.4;
    .who__tag {
      color: var(--secondary-color);
      font-size: 0.8em;
      margin-bottom: 1.5rem;
    }
    .who__title {
      line-height: 1.1;
      span {
        color: var(--primary-color);
      }
    }
  }
  .who__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .who__stat {
    padding: 0 2.5rem;
    border-left: 2px solid var(--primary-color);
    &:first-child {
      padding-left: 0;
      border-left: none;
    }
    .who__stat-number {
      display: block;
      font-size: 2.8em;
      font-weight: 700;
      font-family: var(--font-primary);
      color: var(--primary-color);
      line-height: 1;
      margin-bottom: 0.4rem;
    }
    .who__stat-label {
      display: block;
      font-size: 0.8em;
      line-height: 1.4;
    }
  }
}

.who__graphic-element {
  position: absolute;
  top: 50%;
  z-index: 0;
  left: -3rem;
  width: 400px;
  height: auto;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: var(--transition);
  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* Seguros */
.insurancers {
  width: 100%;
  margin: 15rem 0;
}

.insurancers__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 2rem;
  width: 100%;
  .insurancers__tag {
    color: var(--secondary-color);
    font-size: 1.2em;
    font-weight: 800;
    margin-bottom: 0.8rem;
  }
  .insurancers__title {
    margin: 0;
  }
  .insurancers__graphic-element {
    width: 200px;
    height: auto;
    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
}

.insurancers__body {
  width: 100%;
  max-width: 992px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 5rem 2rem 0;
}

.insurancers-item {
  width: 150px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  .insurancers-item__icon {
    width: 100%;
    height: 100%;
    transition: var(--transition);
    filter: grayscale(1) brightness(1.5);
    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
}

.insurancers-item__icon:hover {
  filter: grayscale(0) drop-shadow(4px 4px 1px var(--light-shadow)) brightness(1);
}

/* Coberturas */
.coverages {
  width: 100%;
  margin: 15rem 0;
  position: relative;
  overflow: hidden;
  .coverages__content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
}

.coverages__graphic-element {
  position: absolute;
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.coverages__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: auto auto 3rem;
  padding: 0 2rem;
  .coverages__tag {
    color: var(--secondary-color);
    font-size: 1.2em;
    font-weight: 800;
    margin-bottom: 0.8rem;
  }
  .coverages__title {
    margin: 0;
  }
}

.coverages__body {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0 2rem;
}

.coverages-item {
  position: relative;
  flex: 1;
  min-width: 260px;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--dark-color);
  background-size: cover;
  background-position: center;
  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 600ms ease;
    z-index: 0;
  }
  &::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.45) 45%,
      rgba(0, 0, 0, 0.10) 100%
    );
    z-index: 1;
    transition: background var(--transition);
  }
  &:hover::before {
    transform: scale(1.08);
  }
  &:hover::after {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.55) 55%,
      rgba(0, 0, 0, 0.15) 100%
    );
  }
  .coverages-item__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 2rem;
    a {
      text-decoration: none;
      color: var(--light-color);
      display: flex;
      flex-direction: column;
      h4 {
        margin: 0;
        font-size: 1.35em;
        line-height: 1.3;
        transition: color var(--transition);
      }
    }
  }
}

.coverages-item__reveal {
  overflow: hidden;
  max-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: max-height 450ms ease, padding-top 450ms ease;
  p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.65;
    color: color-mix(in srgb, var(--light-color) 80%, transparent);
  }
  span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--secondary-color);
    i {
      font-size: 0.9em;
      transition: transform var(--transition);
    }
  }
}

.coverages-item:hover .coverages-item__reveal {
  max-height: 200px;
  padding-top: 0.75rem;
}

.coverages-item:hover .coverages-item__content a h4 {
  color: var(--secondary-color);
}

.coverages-item:hover .coverages-item__reveal span i {
  transform: translateX(5px);
}

/* Buscador */
.search {
  background-color: var(--light-color);
  margin: 15rem 0;
  .search__content {
    max-width: 740px;
    text-align: center;
    margin: 0 auto;
  }
  .search__tag {
    color: var(--secondary-color);
    font-size: 0.8em;
    margin-bottom: 1rem;
  }
  .search__title {
    margin-bottom: 2.5rem;
  }
  .search__form {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border: 2px solid var(--light-gray-color);
    border-radius: 99px;
    padding: 0.3rem 0.3rem 0.3rem 1.5rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    &:focus-within {
      border-color: var(--primary-color);
      box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 12%, transparent);
    }
    .search__icon {
      color: var(--gray-color);
      font-size: 1em;
      flex-shrink: 0;
      margin-right: 0.8rem;
      transition: color var(--transition);
    }
    &:focus-within .search__icon {
      color: var(--primary-color);
    }
    .search__input {
      flex: 1;
      border: none;
      outline: none;
      font-family: var(--font-secondary);
      font-size: 1em;
      background-color: transparent;
      min-width: 0;
      &::placeholder {
        color: var(--gray-color);
      }
    }
    .search__button {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      background-color: var(--primary-color);
      color: var(--light-color);
      border: none;
      padding: 0.75rem 1.6rem;
      font-family: var(--font-primary);
      font-size: 0.85em;
      font-weight: 600;
      letter-spacing: 0.5px;
      border-radius: 99px;
      cursor: pointer;
      transition: background-color var(--transition);
      white-space: nowrap;
      &:hover {
        background-color: color-mix(in srgb, var(--primary-color) 82%, var(--dark-color));
      }
    }
  }
}

/* news */
.news {
  width: 100%;
  background-color: color-mix(in srgb, var(--light-gray-color), #ffffff 50%);
  margin: 15rem 0;
  .news__content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
  }
  .news__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
    .news__tag {
      color: var(--secondary-color);
      font-size: 1.2em;
      font-weight: 800;
      margin-bottom: 0.8rem;
    }
    .news__title {
      margin: 0;
    }
    .news__cta {
      flex-shrink: 0;
      margin-bottom: 0.3rem;
    }
  }
  .news__group {
    display: flex;
    align-items: stretch;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 2rem;
  }
}

/* Cards de archivo (news, categorías) */
.news-item {
  background-color: var(--light-color);
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--light-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  width: 100%;
  max-width: 320px;
  &:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px color-mix(in srgb, var(--light-shadow) 60%, transparent 40%);
    .news-item__thumbnail-overlay {
      opacity: 0.25;
    }
    .news-item__image img {
      transform: scale(1.05);
    }
  }
  .news-item__content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .news-item__image {
    width: 100%;
    height: 210px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 500ms ease;
    }
    .news-item__thumbnail-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        transparent 40%,
        color-mix(in srgb, var(--secondary-color) 30%, #000 70%) 100%
      );
      opacity: 0.1;
      transition: opacity var(--transition);
    }
  }
  .news-item__info {
    padding: 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .news-item__title {
    font-size: 1.15em;
    line-height: 1.35;
    margin-bottom: 0.5rem !important;
    transition: color var(--transition);
    &:hover {
      color: var(--secondary-color) !important;
    }
  }
  .news-item__date {
    p {
      color: var(--gray-color);
      font-size: 0.82em;
      display: flex;
      align-items: center;
      margin: 0;
    }
    i {
      color: var(--secondary-color);
    }
  }
  p {
    line-height: 1.7;
    font-size: 0.9em;
  }
  .news-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid var(--light-gray-color);
    .news-item__share {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
  }
}

.share-icon {
  width: 34px;
  height: 34px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  transition: transform var(--transition), box-shadow var(--transition);
  &:hover {
    transform: scale(1.15);
  }
  &.facebook {
    background-color: #1877f2;
    color: var(--light-color);
    &:hover {
      box-shadow: 0 0 10px #1877f280;
    }
  }
  &.whatsapp {
    background-color: #25d366;
    color: var(--light-color);
    &:hover {
      box-shadow: 0 0 10px #25d36680;
    }
  }
}

#footer {
  width: 100%;
  .footer__graphic-element {
    width: 100%;
    height: auto;
    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
  .footer__content {
    background-color: var(--primary-color);
    padding: 3rem 2rem;
    color: var(--light-color);
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 2rem;
  }
}

.footer-copyright {
  background-color: color-mix(in srgb, var(--primary-color) 75%, #000);
}

.footer-copyright__content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2rem;
  img {
    width: 27px;
    height: auto;
    margin-right: 0.4rem;
  }
  small {
    color: var(--light-color) !important;
    font-weight: 600;
    font-size: 0.8em;
  }
}

.footer__brand {
  width: 28%;
  min-width: 200px;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  .footer__brand-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      max-width: 150px;
    }
    .footer__tagline {
      margin: 0;
      font-size: 0.85em;
      color: color-mix(in srgb, var(--light-color) 75%, transparent);
      line-height: 1.5;
    }
  }
  .footer__social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    a {
      width: 34px;
      height: 34px;
      border-radius: 99px;
      border: 1px solid color-mix(in srgb, var(--light-color) 30%, transparent);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--light-color);
      font-size: 0.9em;
      text-decoration: none;
      transition: background-color var(--transition), border-color var(--transition);
      &:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
      }
    }
  }
}

.footer__interest {
  width: 28%;
  min-width: 180px;
  padding: 0;
}

.footer__data {
  width: 28%;
  min-width: 200px;
  padding: 0;
}

.footer__col-title {
  font-size: 0.9em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--light-color);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--secondary-color);
  width: fit-content;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  li a {
    color: color-mix(in srgb, var(--light-color) 75%, transparent);
    text-decoration: none;
    font-size: 0.88em;
    transition: color var(--transition), padding-left var(--transition);
    display: inline-block;
    &:hover {
      color: var(--secondary-color);
      padding-left: 6px;
    }
  }
}

.footer__contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.88em;
    color: color-mix(in srgb, var(--light-color) 75%, transparent);
    i {
      color: var(--secondary-color);
      font-size: 1em;
      margin-top: 2px;
      flex-shrink: 0;
    }
    a {
      color: color-mix(in srgb, var(--light-color) 75%, transparent);
      text-decoration: none;
      transition: color var(--transition);
      &:hover {
        color: var(--secondary-color);
      }
    }
  }
}

/*
###################################################################################
                DEFINICIONES DE PÁGINAS, CATEGORÍAS Y ENTRADAS
###################################################################################
*/
.entry {
  width: 100%;
  padding: 4rem 2rem;
  margin-top: 7rem;
  color: var(--dark-gray-color);
  .entry__content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    background-color: var(--light-color);
    box-shadow: 10px 10px 10px var(--light-shadow);
    padding: 2rem;
    border: 1px solid var(--light-gray-color);
    .entry__box:first-child {
      width: 65%;
      padding: 0 0.5rem;
      .entry__header {
        width: 100%;
        .entry__att-image {
          width: 100%;
          height: calc((1200px - (1200px * 0.4)) / 1.5);
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
        .breadcrumbs {
          font-weight: 700;
          margin: 0;
          a {
            color: var(--primary-color);
            text-decoration: none;
          }
          .breadcrumb_last {
            color: var(--dark-gray-color);
          }
        }
        .entry__date {
          margin-bottom: 2rem;
        }
        .entry__title {
          color: var(--primary-color);
          margin-bottom: 0;
          margin-top: 2rem;
        }
      }
      .entry__excerpt {
        p {
          width: 100%;
          padding: 1.5rem;
          border: 3px dashed var(--primary-color);
          font-size: 1.5em;
          border-radius: 25px 25px 25px 5px;
          margin: 2rem 0;
        }
      }
      .entry__body {
        h1, h2, h3, h4, h5, h6 {
          color: var(--primary-color);
          margin: 2rem 0 0.7rem 0;
        }
      }
      .entry-tags {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        .entry-tags__title {
          margin-right: 1rem;
          color: var(--primary-color);
        }
        ul {
          list-style: none;
          margin: 0;
          padding: 0;
          display: flex;
          align-items: center;
          justify-content: flex-start;
          flex-wrap: wrap;
          li {
            margin: 0.3rem;
            a {
              display: block;
              color: var(--primary-color);
              text-decoration: none;
              border: 1px solid var(--primary-color);
              background-color: transparent;
              padding: 0.3rem 0.5rem;
              border-radius: 99px;
              font-size: 0.8em;
              &:hover {
                background-color: var(--primary-color);
                color: var(--light-color);
              }
            }
          }
        }
      }
    }
    .entry__box:last-child {
      width: 35%;
      padding: 0 0.5rem;
      .entry-box__content {
        position: sticky;
        top: 1rem;
        .entry-search {
          position: relative;
          width: 100%;
          .entry-search__form {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            .entry-search__field {
              padding: 0.5rem 1rem;
              border: 1px solid var(--light-gray-color);
              width: 100%;
              &:focus {
                outline: 4px solid rgb(from var(--primary-color) r g b / 30%);
              }
            }
            .entry-search__submit {
              width: 3rem;
              height: 2.7rem;
              font-size: 1.2em;
              border: 2px solid var(--primary-color);
              background-color: var(--primary-color);
              color: var(--light-color);
            }
          }
        }
        .entry-related {
          width: 100%;
          margin: 1rem 0;
          .entry-related__title {
            color: var(--primary-color);
            margin-bottom: 1rem;
          }
          .entry-related__body {
            li {
              a {
                color: var(--primary-color);
                text-decoration: none;
                display: block;
                padding: 0.4rem;
                border-bottom: 1px dashed var(--primary-color);
                &:hover {
                  background-color: var(--primary-color);
                  color: var(--light-color);
                }
              }
            }
          }
        }
      }
      .entry-follow {
        width: 100%;
        .entry-follow__content {
          width: 100%;
          .entry-follow__title {
            color: var(--primary-color);
          }
          .entry-follow__list {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            list-style: none;
            margin: 0;
            padding: 0;
            .entry-follow__item {
              margin: 0 0.3rem;
              a {
                text-decoration: none;
                color: var(--light-color);
                display: flex;
                background-color: var(--primary-color);
                border-radius: 99px;
                width: 3.5rem;
                height: 3.5rem;
                font-size: 1.6em;
                justify-content: center;
                align-items: center;
                border: 2px solid var(--primary-color);
                transition: var(--transition);
                &:hover {
                  background-color: var(--light-color);
                  color: var(--primary-color);
                  box-shadow: 0 0 10px var(--primary-color);
                }
              }
            }
          }
        }
      }
    }
  }
}

/* Categorías */
.categories {
  width: 100%;
  padding: 7rem 2rem 4rem;
  .categories__content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    .categories__header {
      width: 100%;
      .categories__title {
        color: var(--primary-color);
        margin-bottom: 1rem;
      }
      .categories__description {
        color: var(--dark-gray-color);
        margin-bottom: 2rem;
        width: 100%;
        max-width: 700px;
        margin-inline: auto;
        line-height: 1.7;
      }
    }
  }
}

.categories__body {
  width: 100%;
}

.categories__loop, .results__loop {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-evenly;
}

/* Pages */
.page {
  width: 100%;
  background-color: var(--light-gray-color);
  padding: 7rem 2rem 4rem;
  .page__content {
    width: 100%;
    .page-header {
      width: 100%;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      display: flex;
      align-items: flex-end;
      justify-content: flex-start;
      flex-wrap: wrap;
      width: 100%;
      height: 100%;
      position: relative;
      .page-header__overlay {
        position: absolute;
        z-index: 2;
        padding: 2rem;
        top: 0;
        height: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        background: linear-gradient(180deg, rgba(255,255,255, 0) 11%, rgba(0,0,0,0.6194852941176471) 77%);
      }
      .page-header__content {
        position: relative;
        z-index: 3;
        width: 100%;
        max-width: 1200px;
        padding: 2rem;
        margin: 0 auto;
        .page__title {
          color: var(--dark-color);
        }
        #breadcrumbs {
          font-weight: 700;
          a {
            color: var(--primary-color);
            text-decoration: none;
          }
          .breadcrumb_last {
            color: var(--light-color);
          }
        }
        #breadcrumbs.primary-color-last .breadcrumb_last {
          color: var(--dark-color);
        }
      }
    }
    .page__body {
      width: 100%;
      margin-bottom: 5rem;
      .page__content {
        background-color: var(--light-color);
        box-shadow: 2px 2px 5px var(--light-shadow);
        border: 1px solid var(--light-gray-color);
        border-radius: 25px;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
        h1, h2, h3, h4, h5, h6 {
          color: var(--primary-color);
        }
      }
    }
  }
}

.not-found {
  width: 100%;
  .not-found__content {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    margin: 0 auto;
    color: var(--dark-gray-color);
    .not-found__inner {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      .not-found__box {
        width: calc(50% - 10px);
      }
      .not-found__box:first-child {
        img {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }
      }
    }
  }
}

/* Redes sociales - sección home */
.social {
  width: 100%;
  margin: 10rem 0;
  .social__content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .social__tag {
    color: var(--secondary-color);
    font-size: 1.2em;
    font-weight: 800;
    margin-bottom: 0.8rem;
  }
  .social__title {
    margin: 0 0 1rem;
  }
  .social__description {
    color: var(--dark-gray-color);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 3rem;
  }
  .social__links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
  }
}

.social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 2rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
  i {
    font-size: 1.2em;
  }
  &:hover {
    transform: translateY(-4px);
  }
  &.social__link--facebook {
    background-color: #1877f2;
    color: var(--light-color);
    border-color: #1877f2;
    &:hover {
      background-color: var(--light-color);
      color: #1877f2;
      box-shadow: 0 8px 24px #1877f240;
    }
  }
  &.social__link--instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: var(--light-color);
    border-color: transparent;
    &:hover {
      background: var(--light-color);
      color: #dd2a7b;
      border-color: #dd2a7b;
      box-shadow: 0 8px 24px #dd2a7b40;
    }
  }
  &.social__link--linkedin {
    background-color: #0a66c2;
    color: var(--light-color);
    border-color: #0a66c2;
    &:hover {
      background-color: var(--light-color);
      color: #0a66c2;
      box-shadow: 0 8px 24px #0a66c240;
    }
  }
  &.social__link--youtube {
    background-color: #ff0000;
    color: var(--light-color);
    border-color: #ff0000;
    &:hover {
      background-color: var(--light-color);
      color: #ff0000;
      box-shadow: 0 8px 24px #ff000040;
    }
  }
}

/* Search page */
.results {
  width: 100%;
  margin: 8rem 0;
  .results__content {
    width: 100%;
    max-width: 1440px;
    padding: 5rem 2rem;
    margin: 0 auto;
  }
}

/* Contact Form 7 */
.wpcf7 {
  width: 100%;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wpcf7-form p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wpcf7-form label {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--dark-gray-color);
}

.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-tel,
.wpcf7-form .wpcf7-number,
.wpcf7-form .wpcf7-date,
.wpcf7-form .wpcf7-url,
.wpcf7-form .wpcf7-select,
.wpcf7-form .wpcf7-textarea {
  width: 100%;
  font-family: var(--font-secondary);
  color: var(--dark-color);
  background-color: var(--light-color);
  border: 2px solid var(--light-gray-color);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-tel:focus,
.wpcf7-form .wpcf7-number:focus,
.wpcf7-form .wpcf7-date:focus,
.wpcf7-form .wpcf7-url:focus,
.wpcf7-form .wpcf7-select:focus,
.wpcf7-form .wpcf7-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.wpcf7-form .wpcf7-textarea {
  resize: vertical;
  min-height: 120px;
}

.wpcf7-form .wpcf7-text.wpcf7-not-valid,
.wpcf7-form .wpcf7-email.wpcf7-not-valid,
.wpcf7-form .wpcf7-tel.wpcf7-not-valid,
.wpcf7-form .wpcf7-textarea.wpcf7-not-valid {
  border-color: #e53935;
  box-shadow: 0 0 0 4px color-mix(in srgb, #e53935 12%, transparent);
}

.wpcf7-not-valid-tip {
  color: #e53935;
  margin-top: 0.2rem;
}

.wpcf7-form .wpcf7-submit {
  align-self: flex-start;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: 2px solid var(--primary-color);
  border-radius: 99px;
  padding: 0.6rem 2rem;
  font-family: var(--font-primary);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.wpcf7-form .wpcf7-submit:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.wpcf7-form .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wpcf7-spinner {
  margin-left: 0.5rem;
  vertical-align: middle;
}

.wpcf7-response-output {
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: none !important;
}

.wpcf7-mail-sent-ok {
  background-color: color-mix(in srgb, #2e7d32 10%, transparent);
  color: #2e7d32;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background-color: color-mix(in srgb, #e53935 10%, transparent);
  color: #e53935;
}

/*
###################################################################################
    DEFINICIONES DE OPTIMIZACIÓN Y ADAPTABILIDAD DEL SITIO EN DIFERENTES PANTALLAS
###################################################################################
*/

@media (width < 1441px) {
  .who__graphic-element {
    opacity: 0.3;
  }
  .entry {
    .entry__content {
      max-width: 1024px;
      .entry__box:first-child {
        .entry__header {
          .entry__att-image {
            height: calc((1024px - (1024px * 0.4)) / 1.5);
          }
        }
      }
    }
  }
}

@media (width < 1200px) {
  .where {
    .where__content {
      .where__map {
        max-width: 94vw;
        max-height: 21.5vw;
        .ornament__location-pin {
          font-size: 13vw;
          max-width: 21vw;
          max-height: 22vw;
        }
      }
    }
  }
}

@media (width < 1100px) {
  .entry {
    .entry__content {
      .entry__box:first-child {
        .entry__header {
          .entry__att-image {
            height: 37vw;
          }
        }
      }
    }
  }
}

@media (width < 992px) {
  .main-menu {
    display: none;
  }
  .header__mobile-button {
    display: block;
  }
  #header {
    .header__content {
      padding: 0 2rem;
    }
  }
}
@media (width < 900px) {
  .entry {
    .entry__content {
      .entry__box:first-child {
        width: 100%;
        .entry__header {
          .entry__att-image {
            height: 53vw;
          }
        }
      }
      .entry__box:last-child {
        width: 100%;
        padding-top: 3rem;
        border-top: 3px dashed var(--primary-color);
      }
    }
  }
}

@media (width < 768px) {
  .coverages-item {
    flex: none;
    width: 100%;
    height: 300px;
  }
  .news {
    .news__header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1.5rem;
    }
    .news__grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  .who {
    .who__intro {
      flex-direction: column;
      align-items: flex-start;
      gap: 2rem;
      margin-bottom: 3rem;
      padding-bottom: 3rem;
    }
    .who__stats {
      grid-template-columns: 1fr 1fr;
      gap: 2rem 0;
    }
    .who__stat {
      padding: 0 1.5rem;
      &:nth-child(odd) {
        padding-left: 0;
        border-left: none;
      }
      &:nth-child(even) {
        border-left: 2px solid var(--primary-color);
      }
    }
  }
}



@media (width < 620px) {}

@media (width < 576px) {
  /* Headings */
  h1 {
    font-size: 2.4em;
  }
  .news {
    .news__content {
      padding: 4rem 1.5rem;
    }
    .news__grid {
      grid-template-columns: 1fr;
    }
    .news-item {
      max-width: 480px;
      margin-inline: auto;
    }
  }
  .who {
    .who__stats {
      grid-template-columns: 1fr;
      gap: 1.5rem 0;
    }
    .who__stat {
      padding: 1.5rem 0 0;
      border-left: none;
      border-top: 1px solid var(--light-gray-color);
      &:first-child {
        border-top: none;
        padding-top: 0;
      }
    }
  }
  h2 {
    font-size: 2em;
  }
  h3 {
    font-size: 1.6em;
  }
  h4 {
    font-size: 1.3em;
  }
  h5 {
    font-size: 1.1em;
  }
  h6 {
    font-size: 0.9em;
  }
}

@media (width < 512px) {
  .solutions__inner {
    .solutions-inner__body {
      padding: 2rem 1.5rem;
    }
    .solutions-inner__features {
      .solutions-inner__item {
        font-size: 1em;
        font-weight: 600;
      }
    }
  }
}

@media (width < 480px) {
  #buscador {
    .search__form {
      padding: 0.25rem 0.25rem 0.25rem 1rem;
      .search__icon {
        display: none;
      }
      .search__button span {
        display: none;
      }
      .search__button {
        padding: 0.75rem 1rem;
      }
    }
  }
  /* Headings */
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.8em;
  }
  h3 {
    font-size: 1.5em;
  }
  h4 {
    font-size: 1.3em;
  }
  h5 {
    font-size: 1em;
  }
  h6 {
    font-size: 0.8em;
  }
  p, span {
    font-size: 0.8em;
  }

  .entry {
    padding: 0;
    .entry__content {
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 1rem;
    }
  }
}

@media (width < 420px) {
  .insurancers__header {
    .insurancers__graphic-element {
      width: 70px;
    }
  }
}

@media (width < 768px) {
  .footer__brand,
  .footer__interest,
  .footer__data {
    width: 100%;
    min-width: unset;
  }
  .footer__brand {
    align-items: center;
    .footer__brand-inner {
      align-items: center;
      text-align: center;
    }
    .footer__social {
      justify-content: center;
    }
  }
}