* {
  font-family: 'Lato', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Twemoji', 'EmojiOne Color', 'OpenMoji';
}

html,
body {
  margin: 0 auto;
  cursor: default;
  scroll-behavior: smooth;
}

::selection {
  background-color: #4E6688;
  color: #EAEFEF;
}

img {
  -webkit-user-drag: none !important;
}

.section {
  text-align: center;
  font-size: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fp-watermark {
  display: none !important;
}

/* Navbar */
header {
  width: 100%
}

#menu {
  clip-path: circle(0% at 100% 0);
  transition: clip-path 0.7s ease-in-out, opacity 0.7s ease-in-out;
}

.plyr {
  border-radius: 20px !important;
  width: 470px;
  height: 474px;
}

.plyr__control--overlaid {
  width: 80px !important;
  height: 80px !important;
  font-size: 32px;
  background-color: transparent !important;
  border: 1px solid white !important;
  color: white;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.plyr button {}

.plyr__control--overlaid:hover {
  background-color: orange !important;
}

#menu.active {
  clip-path: circle(150% at 50% 50%);
  pointer-events: auto;
}

#menu ul li a {
  transition: color 0.3s;
}

#menu.active ul li a:hover,
#menu.active ul li a:active {
  color: #E88D67;
}

#menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/bg-contacto.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;
}

header .cabecera {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  /*position: fixed;*/
  z-index: 100;
}

.logo {
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 120;
}

#renata-container {
  width: 207px;
  background-image: url(assets/images/fig.gif);
  background-size: cover;
  background-repeat: no-repeat;
  object-fit: cover;
  transition: height 0.6s ease, background-position 0.6s ease;
  /* <- la magia */
  overflow: hidden;
}

#close-renata:hover {
  cursor: pointer;
}

@media (max-width: 1360px) {
  .logo {
    padding-left: 0
  }
}

.logo.scroll {
  opacity: 0;
  z-index: -1
}

header .rectangulo {
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 99;
  width: 75px;
  height: 8vh;
  /* background: #333446; */
}

header nav {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100vh;
  z-index: 95;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.65s ease-in-out;
}

header nav.active {
  left: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  transition: all 0.65s ease-in-out;
  overflow-y: hidden !important;
}

header nav img {
  align-self: center;
  margin-right: 60px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

header nav.active img {
  opacity: 1;
}

header nav ul, header nav div div .contact { /* Revisar */
  margin-left: 0px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

header nav.active ul {
  opacity: 1;
}

@media (max-width: 640px) {
  header nav {
    right: -195%
  }
}

header nav img {
  -ms-flex-item-align: center;
  align-self: center;
  margin-right: 60px;
  opacity: 0;
  -webkit-transition: all 2.5s ease-in-out;
  transition: all 2.5s ease-in-out
}

@media (max-width: 940px) {
  header nav img {
    display: none
  }
}

header nav ul {
  margin-bottom: 0;
  margin-left: 0px;
  opacity: 0;
  -webkit-transition: all 2s ease-in-out;
  transition: all 2s ease-in-out
}

header nav ul li a {
  color: #EAEFEF;
  font-size: 55px;
  line-height: 80px
}

header nav ul li a:hover,
header nav ul li a.active {
  color: #E88D67
}

@media (max-width: 460px) {
  header nav ul li a {
    font-size: 40px;
    line-height: 65px
  }
}

header nav ul .contact {
  padding-top: 50px;
}

header nav ul .contact .redes {
  margin-top: 20px
}

header nav ul .contact .redes a:not(:first-child) {
  margin-left: 20px
}

.hamburger {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-item-align: center;
  align-self: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  width: 55px;
  height: 25px;
  padding-right: 10px;
  margin-top: 18px;
  cursor: pointer;
  z-index: 100;
  opacity: 1;
}

.hamburger {
  margin-right: -7px;
}

.hamburger div {
  -ms-flex-item-align: end;
  align-self: flex-end;
  height: 3px;
  width: 100%;
  background: #E88D67;
  -webkit-transition: all 400ms ease-in-out;
  transition: all 400ms ease-in-out
}

.hamburger .meat {
  width: 75%;
  opacity: 1;
  -webkit-transition: all 400ms ease-in-out;
  transition: all 400ms ease-in-out
}

.hamburger .bottom-bun {
  width: 50%;
  opacity: 1;
  -webkit-transition: all 400ms ease-in-out;
  transition: all 400ms ease-in-out
}

.hamburger:hover div {
  width: 100%;
}

.hamburger:hover .top-bun {
  -webkit-animation: burger-hover .5s ease-in-out alternate;
  animation: burger-hover .5s ease-in-out alternate
}

.hamburger:hover .meat {
  -webkit-animation: burger-hover .5s ease-in-out alternate forwards 200ms;
  animation: burger-hover .5s ease-in-out alternate forwards 200ms
}

.hamburger:hover .bottom-bun {
  -webkit-animation: burger-hover .5s ease-in-out alternate forwards 400ms;
  animation: burger-hover .5s ease-in-out alternate forwards 400ms
}

.hamburger.clicked .meat {
  width: 90%;
  -webkit-transform: translate3d(3px, 6px, 0) rotate(48deg);
  transform: translate3d(3px, 6px, 0) rotate(48deg)
}

.hamburger.clicked .bottom-bun {
  width: 90%;
  -webkit-transform: translate3d(3px, -9px, 0) rotate(-43deg);
  transform: translate3d(3px, -9px, 0) rotate(-43deg)
}

.hamburger.clicked .top-bun {
  opacity: 0
}

.hamburger div {
  width: 100%
}

.hamburger .meat {
  width: 75%;
  -webkit-animation: none !important;
  animation: none !important
}

.hamburger .bottom-bun {
  width: 50%;
  -webkit-animation: none !important;
  animation: none !important
}

@-webkit-keyframes burger-hover {
  0% {
    width: 100%
  }

  50% {
    width: 50%
  }

  100% {
    width: 100%;
  }
}

@keyframes burger-hover {
  0% {
    width: 100%
  }

  50% {
    width: 50%
  }

  100% {
    width: 100%;
  }
}

.logo-somos,
.logo-marcas {
  width: 100px;
  display: block;
}


/* Hero */
.hover-expand {
  transition: all 0.65s ease-in-out !important;
}

.column {
  width: 33.3333%;
}

/* Video */
.overlay-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  /* height: 100vh; */
  height: 56.25vw;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  user-select: none !important;
}

/* Marcas */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 0rem;
  align-items: center;
  justify-items: center;
  min-height: fit-content;
}

@media (min-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    padding: 0rem;
    min-height: 220px;
  }
}

@media (min-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
    min-height: 250px;
  }
}

@media (min-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 2.5rem;
    min-height: 320px;
  }

}

@media (min-width: 1024px) and (max-height: 600px) {
  .brands-grid {
    gap: 0;
    padding: 0;
    min-height: 100%;
    margin-top: 10px;
  }

  .logo-somos,
  .logo-marcas {
    width: 70px;
  }


  .contact {
    margin-top: 40px !important;
  }

  header nav ul li a {
    color: #EAEFEF;
    font-size: 35px;
    line-height: 0px
  }

  #somos h2 {
    font-size: 2.2rem;
  }

  .logo-somos {
    display: none;
  }
}



@media (min-width: 1280px) {}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.brand-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  width: 100%;
  height: auto;
  min-height: 80px;
}

@media (min-width: 640px) {
  .brand-container {
    padding: 0.75rem;
    min-height: 100px;
  }
}

@media (min-width: 1024px) {
  .brand-container {
    padding: 1rem;
    min-height: 150px;
  }
}

@media (min-width: 1280px) {
  .brand-container {
    padding: 1.25rem;
    min-height: 175px;
  }
}

.brand-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 60px;
  /* Tamaño por defecto para móviles */
  object-fit: contain;
  filter: grayscale(1);
  transition: all 0.3s ease;
  cursor: default;
}

@media (min-width: 480px) {
  .brand-logo {
    max-height: 80px;
  }
}

@media (min-width: 768px) {
  .brand-logo {
    max-height: 100px;
  }
}

@media (min-width: 1024px) {
  .brand-logo {
    max-height: 140px;
  }
}

@media (min-width: 1280px) {
  .brand-logo {
    max-height: 200px;
  }
}


.brand-container:hover .brand-logo {
  filter: grayscale(0);
  transform: scale(1.05);
}

.brand-container:hover .brand-logo {
  filter: grayscale(0);
  transform: scale(1.05);
}

.clientsSwiper {
  width: 100%;
  padding-bottom: 2rem;
}

.clientsSwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.clientsSwiper .swiper-pagination {
  position: relative;
  margin-top: 1rem;
}

.clientsSwiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(51, 52, 70, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .clientsSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
}

.clientsSwiper .swiper-pagination-bullet-active {
  background: #333446;
  transform: scale(1.2);
}

.clientsSwiper .swiper-button-next,
.clientsSwiper .swiper-button-prev {
  color: #333446;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.clientsSwiper .swiper-button-next:hover,
.clientsSwiper .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.clientsSwiper .swiper-button-next::after,
.clientsSwiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

@media (max-width: 320px) {
  .brands-grid {
    gap: 0.5rem;
    padding: 0.5rem;
    min-height: 180px;
  }

  .brand-logo {
    max-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .brand-logo,
  .brand-container,
  .clientsSwiper .swiper-pagination-bullet {
    transition: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .brand-container:active .brand-logo {
    filter: grayscale(0);
    transform: scale(1.02);
  }
}

/* Blogs */
#blog-content {
  overflow-y: auto;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post {
  transition: all 0.3s ease;
}

.blog-post.hidden {
  display: none !important;
}

.blog-post.show {
  display: block;
  animation: fadeIn 0.65s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nosotros */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradient-x {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-gradient {
  background-size: 300% 300%;
  animation: gradient 8s ease infinite;
}

.animate-gradient-x {
  background-size: 300% 300%;
  animation: gradient-x 8s ease infinite;
}

.bg-300\% {
  background-size: 300% 300%;
}

.group:hover .floating-element {
  animation: float 3s ease-in-out infinite;
}

.counter {
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  .animate-float {
    animation-duration: 4s;
  }
}

.fp-section {
  position: relative;
}

.fp-tableCell {
  vertical-align: top;
  padding: 0;
}

.backdrop-blur-sm {
  backdrop-filter: blur(8px);
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.hover\:shadow-2xl:hover {
  box-shadow: 0 25px 50px -12px rgba(51, 52, 70, 0.25);
}

.hover\:shadow-3xl:hover {
  box-shadow: 0 35px 60px -12px rgba(51, 52, 70, 0.3);
}

/* Nosotros - Timeline */

.timeline-container {
  position: relative;
  width: 100%;
}

.timeline-line {
  position: absolute;
  height: 4px;
  background: #EAEFEF;
  top: 50px;
  left: 0;
  right: 0;
  z-index: 1;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(51, 52, 70, 0.2);
}

.timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(to right, #4E6688, #E88D67);
  border-radius: 2px;
  transition: width 0.6s ease-out;
  box-shadow: 0 0 15px rgba(51, 52, 70, 0.4);
}

.timeline-line.animated::after {
  width: 100%;
}

.timeline-items {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #EAEFEF;
  margin-top: 42px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 3;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to right, #4E6688, #EAEFEF, #E88D67);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item.active .timeline-dot::after,
.timeline-item.completed .timeline-dot::after,
.timeline-dot:hover::after {
  opacity: 1;
}

.timeline-item.active .timeline-dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 0 0 8px rgba(51, 52, 70, 0.2);
}

.timeline-item.completed .timeline-dot {
  background: linear-gradient(to right, #4E6688, #EAEFEF, #E88D67);
}

.timeline-date {
  font-weight: 900;
  font-size: 1.1rem;
  color: #333446;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-date {
  font-size: 1.25rem;
  color: #333446;
}

.timeline-content {
  position: absolute;
  top: 110px;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.timeline-item.active .timeline-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.timeline-card {
  background: #EAEFEF;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(51, 52, 70, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-card {
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.2);
}

.timeline-details {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-details {
  max-height: 100px;
  display: block;
}

@media (max-width: 1024px) {
  .timeline-items {
    padding: 0 20px;
  }

  .timeline-content {
    max-width: 180px;
  }

  .plyr {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .timeline-container {
    margin-top: 60px;
  }

  .timeline-line {
    top: 40px;
  }

  .timeline-dot {
    margin-top: 32px;
    width: 14px;
    height: 14px;
  }

  .timeline-date {
    font-size: 0.875rem;
    margin-top: 8px;
  }

  .timeline-content {
    top: 80px;
    width: fit-content;
  }

  .timeline-card {
    padding: 0.75rem;
  }
}

@media (max-width: 640px) {
  .timeline-container {
    margin-top: 40px;
    height: 60vh;
    overflow-x: auto;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

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

  .timeline-items {
    width: 200%;
    padding: 0 40px;
  }

  .timeline-line {
    width: 200%;
  }

  .timeline-item {
    min-width: 120px;
  }

  .timeline-content {
    max-width: fit-content;
    padding-left: 5px;
    padding-right: 5px;
  }
}

@media (max-width: 480px) {
  .timeline-container {
    margin-top: 30px;
  }

  .timeline-items {
    width: 300%;
  }

  .timeline-line {
    width: 300%;
  }

  .timeline-item {
    min-width: 100px;
  }

  .timeline-content {
    max-width: fit-content;
  }

  .timeline-card {
    padding: 0.5rem;
  }

  .logo-somos,
  .logo-marcas {
    width: 70px;
  }

  .titulo-somos {
    margin-top: 40px;
  }

  #renata-container {
    display: none;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .timeline-container {
    margin-top: 20px;
    height: 50vh;
  }

  .timeline-content {
    top: 70px;
  }
}

/* Blogpost */
.glass-effect {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.content-style {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.content-style p {
  margin-bottom: 1.5rem;
}

.content-style h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
}

.content-style h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #334155;
}

.ql-toolbar.ql-snow {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border: none !important;
  background-color: white !important;
}

.ql-container.ql-snow {
  border: none !important;
}

.ql-editor.ql-blank:focus-visible {
  outline: none !important;
}

.ql-editor:focus-visible {
  outline: none !important;
}

.ql-editor {
  font-family: 'Lato', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Twemoji', 'EmojiOne Color', 'OpenMoji' !important;
}

.ql-toolbar {
  font-family: 'Lato', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Twemoji', 'EmojiOne Color', 'OpenMoji' !important;
}