@charset "UTF-8";

/* ==================== FONT FACES ==================== */

/* Lato Font Family */
@font-face {
  font-family: 'Lato';
  src: url('../fonts/latto400-1.woff2') format('woff2'),
       url('../fonts/latto400-2.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/latto700-1.woff2') format('woff2'),
       url('../fonts/latto700-2.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/latto700-1.woff2') format('woff2'),
       url('../fonts/latto700-2.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* BigCaslon Font Family */
@font-face {
  font-family: 'BigCaslon';
  src: url('../fonts/BigCaslon-Medium.woff2') format('woff2'),
       url('../fonts/big-caslon-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BigCaslon';
  src: url('../fonts/BigCaslon-Medium.woff2') format('woff2'),
       url('../fonts/big-caslon-medium.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==================== CSS CUSTOM PROPERTIES ==================== */
:root {
  /* Colors */
  --primary-color: #325f7c;
  --secondary-color: #393434;
  --accent-cyan: #41dbd6;
  --accent-green: #67c947;
  --accent-pink: #f3679d;
  --accent-orange: #ffa200;
  --accent-purple: #b7b9f6;
  --dark-bg: #050505;
  --dark-gray: #202020;
  --light-gray: #838384;
  --white: #ffffff;
  --black: #000000;
  --logos-gray: rgb(57, 52, 52);

  /* Typography */
  --font-primary: "Lato", sans-serif;
  --font-bigcaslon: "BigCaslon", serif;
  --font-size-base: 1rem; /* 16px */
  --font-size-small: 0.875rem; /* 14px */
  --font-size-large: 1.125rem; /* 18px */
  --font-size-xl: 1.625rem; /* 26px */
  --font-size-xxl: 4.375rem; /* 70px */
  --line-height-base: 1.75;
  --line-height-tight: 1.35;
  --line-height-loose: 2;

  /* Spacing */
  --spacing-xs: 0.5rem; /* 8px */
  --spacing-sm: 1rem; /* 16px */
  --spacing-md: 1.5rem; /* 24px */
  --spacing-lg: 2rem; /* 32px */
  --spacing-xl: 3rem; /* 48px */
  --spacing-xxl: 5rem; /* 80px */

  /* Layout */
  --container-max-width: 1760px;
  --container-padding: 1.875rem; /* 30px */
  --header-height: 0;

  /* Transitions */
  --transition-fast: 0.1s ease-in;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  --transition-bounce: cubic-bezier(0.33, 1, 0.68, 1);

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
}

/* ==================== RESET & BASE STYLES ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--dark-gray);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ==================== LAYOUT UTILITIES ==================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: var(--font-size-xxl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-large); }
h4 { font-size: var(--font-size-base); }

.text-center { text-align: center; }
.font-weight-light { font-weight: 300; }
.font-weight-normal { font-weight: 400; }
.font-weight-semibold { font-weight: 500; }
.font-weight-bold { font-weight: 600; }

/* ==================== CANVAS ==================== */
#glCanvas {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 1;
  background-color: var(--dark-gray);
  mix-blend-mode: normal;
  pointer-events: none;
  transition: opacity 1s ease, transform 0.1s var(--transition-bounce);
}

/* ==================== HEADER & NAVIGATION ==================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  color: var(--white);
  font-size: var(--font-size-large);
  font-weight: 400;
  transition: var(--transition-fast);
  z-index: var(--z-fixed);
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  height: var(--header-height);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding); /* Usa el mismo padding que el container global */
}

#header h1 {
  display: none;
}

/* Language selector */
#languages .container {
  display: flex;
  justify-content: flex-end;
  padding-bottom: var(--spacing-xs);
  margin: 0 auto;
}

#languages ul {
  display: flex;
  gap: var(--spacing-xs);
}

#languages ul li {
  padding-right: 0;
}

/* Header elements */
#header #logo-header,
#header .menu-hamburguer {
  position: fixed;
  top: 1.875rem; /* 30px */
  z-index: var(--z-sticky);
  pointer-events: auto;
}

#header #logo-header {
  left: calc(var(--container-padding) + max(0px, (100vw - var(--container-max-width)) / 2));
  top: 1.25rem; /* 20px */
}

#header .menu-hamburguer {
  right: calc(var(--container-padding) + max(0px, (100vw - var(--container-max-width)) / 2));
  height: 0.625rem; /* 10px */
  margin-top: -0.625rem; /* -10px */
  padding-top: 0.625rem; /* 10px */
  cursor: pointer;
}

@media (max-width: 1024px) {
  #header .header-container {
    height: var(--header-height);
    padding: 0 var(--container-padding);
  }

  #header #logo-header,
  #header .menu-hamburguer {
    top: 1.25rem; /* 20px */
  }
}

@media (max-width: 768px) {
  #header .header-container {
    padding: 0 1.25rem; /* 20px */
  }

  #header #logo-header {
    left: 1.25rem; /* 20px */
  }

  #header .menu-hamburguer {
    right: 1.25rem; /* 20px */
  }
}

/* ==================== HAMBURGER MENU ==================== */
.menu-hamburguer {
  display: inline-flex;
  align-items: center;
  justify-content: right;
  cursor: pointer;
  padding: 0.25rem; /* mejora área táctil sin exceso */
}

.span-hamburguer {
  display: block;
  margin-top: 5px;
  width: 1.50rem; 
  height: 0.1875rem; /* 3px */
  background-color: black;
  position: relative;
  --hamburger-color: black;
  transition: transform 0.3s ease;
}

/* Lines - usan variable CSS que GSAP puede controlar */
.span-hamburguer::before,
.span-hamburguer::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.1875rem;
  background-color: var(--hamburger-color);
  transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.span-hamburguer::before {
  bottom: 0.625rem;
}

.span-hamburguer::after {
  top: 0.625rem;
}
/* Active state (X transformation) */
.menu-hamburguer.active .span-hamburguer {
  background-color: transparent !important;
}

.menu-hamburguer.active .span-hamburguer::before {
  bottom: 0;
  transform: rotate(45deg);
  background-color: var(--hamburger-color);
}

.menu-hamburguer.active .span-hamburguer::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: var(--hamburger-color);
}

/* ==================== MENU OVERLAY (Cubre toda la pantalla y centra el contenido) ==================== */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  /* CAMBIOS CLAVE: Centrar el contenido tanto vertical como horizontalmente */
  display: flex;
  align-items: center;   /* Centra verticalmente */
  justify-content: center; /* Centra horizontalmente */

  background-color: rgba(32, 81, 107, 0.65);
  backdrop-filter: blur(13.5px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 100;
}

/* Cuando está activo */
.menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==================== Contenido interno (menu-contenainer - Flexbox para organizar las listas) ==================== */
.menu .menu-contenainer {
  /* No necesitamos width: 50vw; ni paddings que desplacen, queremos que ocupe lo necesario y esté centrado */
  /* Lo importante es que los elementos dentro de este contenedor se centren */
  display: flex;
  flex-direction: column; /* Apila las listas verticalmente */
  align-items: center; /* Centra horizontalmente las listas */
  justify-content: center; /* Centra verticalmente si el contenedor tuviera una altura definida, pero las listas ya ocupan su espacio */
  width: auto; /* Permite que el ancho se ajuste al contenido */
  height: auto; /* Permite que la altura se ajuste al contenido */
  padding: 0; /* Eliminar cualquier padding que desplace */
}

/* ==================== Listas (ul - Centra el texto de los elementos) ==================== */
.menu ul {
  width: 100%; /* Ocupa el 100% del ancho disponible en su contenedor (.menu-contenainer) */
  /* CAMBIO CLAVE: Alinear el texto al centro para los enlaces */
  text-align: center; 
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu ul li:not(:first-of-type) {
  margin-top: var(--spacing-lg);
}

.menu li a {
  color: var(--white);
  font-size: 1.5em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.625rem;
  transition: var(--transition-base);
  position: relative;
  display: inline-block; /* Crucial para centrar el pseudo-elemento ::after */
}

.menu li a::after {
  content: "";
  position: absolute;
  bottom: -0.625rem;
  /* CAMBIOS CLAVE: Centrar el punto debajo del enlace */
  left: 50%; /* Inicia en el centro del enlace */
  transform: translateX(-50%) scale(0); /* Mueve a la izquierda la mitad de su propio ancho para centrarlo */
  right: auto; /* Asegura que no interfiera */
  margin: 0; /* Elimina cualquier margen residual */
  
  width: 0.125rem;
  height: 0.125rem;
  border-radius: 50%;
  background-color: var(--white);
  transition: var(--transition-fast);
  opacity: 0;
}

.menu li a:hover::after,
.menu li a.active1::after {
  transform: translateX(-50%) scale(4); /* Mantiene el centrado al escalar */
  opacity: 1;
}

/* Ajuste específico para la lista de idiomas si está dentro de #languages */
#languages ul {
    /* CAMBIO CLAVE: Asegura que los idiomas también se centren */
    text-align: center;
    /* Puedes ajustar el margin-top para separar la lista de idiomas de la principal */
    margin-top: var(--spacing-xxl); 
    display: flex; /* Para que los ítems de idioma estén en línea */
    justify-content: center; /* Centra los ítems de idioma */
    gap: 1rem; /* Espacio entre los idiomas */
}

/* Para el descolocamiento del primer idioma, a menudo se debe a un margin o padding específico. */
/* Asegúrate de que no haya un padding-left en #languages ul li:first-child o similar. */
#languages ul li {
    margin-top: 0; /* Asegura que no herede el margen superior de la lista principal */
}

/* ==================== HOMEPAGE INTRODUCTION ==================== */
#home-introduction {
  position: relative;
  display: flex;
  overflow: hidden;
  height: 100vh;
  padding-bottom: var(--spacing-xs);
}

#home-introduction .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--white);
  z-index: 2;
}

#home-introduction .title-contorn {
  position: absolute;
  right: 0;
  bottom: 20%;
  padding: 0 var(--container-padding);
}

#home-introduction .title-contorn div:nth-of-type(2) {
  margin-top: 10px;
}

#home-introduction .home-description {
  position: absolute;
  bottom: 6.25rem; /* 100px */
  left: var(--container-padding);
  display: flex;
  flex-direction: column;
  width: 23.8125rem; /* 381px */
}

#home-introduction .home-description a {
  margin-top: var(--spacing-lg);
  color: var(--white);
  width: max-content;
  position: relative;
}

/* Link underline animations - Clase reutilizable */
.link-underline {
  position: relative;
  text-decoration: none;
}

.link-underline::after {
  display: block;
  content: '';
  width: 100%;
  height: 0.1875rem; /* 3px */
  background: var(--white);
  position: absolute;
  bottom: 0;
  left: 0;
  transition: var(--transition-fast);
}

.link-underline:hover::after {
  width: 25%;
}

/* Para enlaces en home-description */
#home-introduction .home-description a {
  position: relative;
}

#home-introduction .home-description a::after {
  display: block;
  content: '';
  width: 100%;
  height: 0.1875rem; /* 3px */
  background: var(--white);
  position: absolute;
  bottom: 0;
  left: 0;
  transition: var(--transition-fast);
}

#home-introduction .home-description a:hover::after {
  width: 25%;
}

/* Versión para enlaces oscuros */
.link-underline-dark {
  position: relative;
  text-decoration: none;
  color: var(--black);
  font-size: 1.175rem ;
  text-transform: uppercase;
}

.link-underline-dark::after {
  display: block;
  content: '';
  width: 100%;
  height: 0.1875rem; /* 3px */
  background: var(--black);
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: var(--transition-fast);
}

.link-underline-dark:hover::after {
  width: 25%;
}

.link-sideline {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
}

.link-sideline::before {
  display: inline-block;
  content: '';
  width: 0.75rem; /* 12px */
  height: 0.125rem; /* 2px */
  margin-right: 0.5rem; /* 8px */
  background: var(--secondary-color);
  vertical-align: middle;
  transition: var(--transition-fast);
}

.link-sideline:hover::before {
  width: 1.5rem; /* 24px */
}

/* Estilo base, igual que .link-sideline */
.link-sideline-right {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
}

/* Pseudo-elemento ::after: Muestra la línea a la derecha */
.link-sideline-right::after {
    display: inline-block;
    content: '';
    width: 0.75rem; /* Ancho inicial */
    height: 0.125rem;
    margin-left: 0.5rem; /* Margen a la izquierda para separarlo del texto */
    background: var(--secondary-color);
    vertical-align: middle;
    transition: var(--transition-fast);
}

/* Efecto hover: Hace que la línea se alargue a 1.5rem */
.link-sideline-right:hover::after {
    width: 1.5rem; /* Ancho más largo en hover */
}

/* Hover effect when hovering over parent .item element */
#portfoli .item:hover .text.link-sideline-right::after {
    width: 1.5rem;
}



/* Homepage titles */
#home-introduction .titles {
  position: absolute;
  text-align: right;
  width: 100%;
  color: var(--black);
}

#home-introduction .titles .title {
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#home-introduction .titles .title.active {
  opacity: 1;
}

#home-introduction .titles .title strong {
  font-size: var(--font-size-xxl);
  font-weight: 600;
  line-height: 1.17;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#home-introduction .divider {
  position: absolute;
  bottom: -0.125rem; /* -2px */
  left: -0.125rem; /* -2px */
  right: -0.125rem; /* -2px */
  width: calc(100% + 4px);
  height: 7.5rem; /* 120px */
  fill: var(--white);
  z-index: 2;
}

.section-home-transition {
  transition: opacity 0.4s ease-out, transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: opacity, transform;
}

#header-home {
  min-height: 50vh;
  color: white;
}
#header-home > div {
  display: grid;
  position: relative;
  margin-top: 20vh;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 60px;
  padding-top: 80px;
  padding-bottom: 50px;
}

#header-home .section-text-content > div:first-child {
  justify-content: center;
  display: flex;
  align-items: end;
  flex-direction: column;
}

#header-home h1 {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 50px;
  text-align: right;
  max-width: 550px;
  justify-self: flex-end;
}
#header-home h2 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  max-width: 1210px;
  margin-top: 0;
}
#header-home .botons {
  grid-column-start: 2;
  display: flex;
  flex-wrap: wrap;
  grid-gap: 1em;
}
#header-home .botons a {
  box-shadow: inset 0 0 0 0 #325f7c;
  color: #325f7c;
  padding: 0 0.25rem;
  margin: 0 -0.25rem;
  transition: color 0.7s ease-in-out, box-shadow 0.7s ease-in-out;
  border: 1px solid #325f7c;
  text-decoration: none;
  border-radius: 10px;
  padding: 20px;
  font-size: 18px;
  min-width: 200px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
}
#header-home .botons a:hover {
  color: #fff;
  box-shadow: inset 400px 0 0 0 #325f7c;
}
#header-home .button {
  color: #555e0b;
  background: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

/* Animación de color en introduction-one, -two y -three */
@keyframes colorChange {
  0%, 29.9% {
    color: #00AA00;
  }
  30%, 99.9% {
    color: #fff;
  }
  100% {
    color: #00AA00;
  }
}

img.scroll-arrow {
  width: 40px !important;
  margin: 0 auto;
  bottom: 20px;
  right: 0;
  left: 0;
  height: auto;
  position: absolute;
  cursor: pointer;
  animation: bounce 6s infinite;
  z-index: 3;
  transition: opacity 0.5s ease;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ==================== AREAS OF FOCUS ==================== */
.areas {
  position: relative;
  display: flex;
  overflow: hidden;
  color: var(--white);
  background-color: var(--black);
  background-image: url('../bg-areas.png');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 4.0625rem var(--container-padding) 5.3125rem; /* 65px 30px 85px */
  margin: 8.125rem 0; /* 130px 0 */
    border-bottom: 1px solid var(--light-gray);
}

.areas .wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.areas .inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
  height: 100%;
  padding: 0 var(--container-padding);
}

.areas-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem; /* 120px */
  overflow: hidden;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.areas-title {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  text-transform: lowercase;
  line-height: 0.9;
  font-size: 2rem; /* 32px */
  font-weight: 400;
  letter-spacing: -0.0625rem; /* -1px */
  z-index: 2;
  white-space: nowrap;
  width: max-content;
  background-color: var(--black);
}

.areas-title .area-titles-upper {
  text-transform: lowercase;
}

.areas-title .area-titles-upper {
  font-weight: 300;
  font-size: 2.1875rem; /* 35px */
  text-transform: uppercase;
}

.areas-items {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll-left 60s linear infinite;
}

.areas-slogan {
  position: absolute;
  bottom: 1.25rem; /* 20px */
}

.areas-items::after {
  content: attr(data-text);
  display: inline-block;
  padding-left: 2rem; /* espacio entre repeticiones */
}

.areas-items span {
  display: inline-block;
  padding: 0 3.75rem; /* 0 60px */
  font-size: 1.5rem; /* 24px */
  font-weight: 400;
  letter-spacing: 0.0625rem; /* 1px */
  opacity: 0.7;
  transition: var(--transition-base);
}

.areas-items span:nth-child(even) {
  opacity: 0.4;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Areas responsive breakpoints */
@media (max-width: 768px) {
  .areas-title {
    font-size: 1.75rem; /* 28px */
    left: var(--container-padding);
  }

  .areas-items {
    padding-left: 15.625rem; /* 250px */
  }

  .areas-items span {
    font-size: 1.125rem; /* 18px */
    padding: 0 2.5rem; /* 0 40px */
  }
}

/* ==================== PORTFOLIO MASONRY ==================== */
#portfoli-list-block {
  background-color: var(--white);
  /*padding: 8.125rem 0;*/
}

#portfoli-list-block .portfolio-masonry-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

#portfoli-list-block .portfolio-header {
  position: relative;
  display: block;
  height: 100%;
  margin-bottom: 0;
}

#portfoli-list-block .portfolio-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  max-width: 400px;
  margin: 0;
  position: relative;
}

.portfolio-header .bigcaslon_medium {
  font-size: 30px;
  letter-spacing: 2px;
}

#portfoli-list-block .portfolio-header .link-underline-dark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  color: var(--black);
  width: max-content;
}

#portfoli-list-block .see-all-work:hover {
  opacity: 0.6;
}

/* Masonry Grid Layout */
#portfoli-list-block .portfolio-masonry-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6.5rem;
  width: 100%;
}

/* Posicionamiento específico para cada item - Layout para 4 proyectos */
#portfoli-list-block .portfolio-item-0 {
  grid-column: 1 / 5;
  grid-row: 2;
}

#portfoli-list-block .portfolio-item-1 {
  grid-column: 6 / 13;
  grid-row: 2 / 3;
}

#portfoli-list-block .portfolio-item-2 {
  grid-column: 1 / 7;
  grid-row: 3;
}

#portfoli-list-block .portfolio-item-3 {
  grid-column: 8 / 13;
  grid-row: 3;
}

#portfoli-list-block .portfolio-item-4 {
  grid-column: 7 / 13;
  grid-row: 4 / 4;
  min-height: 400px;
}

#portfoli-list-block .portfolio-item-5 {
  grid-column: 1 / 4;
  grid-row: 4;
  display: flex;
  align-items: stretch;
  min-height: 400px;
}

/* Estilos específicos para portfolio-footer-link */
#portfoli-list-block .portfolio-footer-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 2rem;
  padding-left: 0;
  width: 100%; 
  flex: 1;
}

#portfoli-list-block .portfolio-footer-link a {
  color: var(--black);
  text-decoration: none;
  width: max-content;
}

/* Estilos de los items */
#portfoli-list-block .portfolio-masonry-item {
  position: relative;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}

/* Excepción para portfolio-item-5 que necesita ser flex */
#portfoli-list-block .portfolio-masonry-item.portfolio-item-5 {
  display: flex !important;
}

#portfoli-list-block .portfolio-image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  border-radius: 0;
}

#portfoli-list-block .portfolio-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#portfoli-list-block .portfolio-masonry-item:hover .portfolio-image-wrapper img {
  transform: scale(1.05);
}

/* Portfolio item text styles - Nombres de proyectos */
#portfoli-list-block .portfolio-masonry-item .text {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  display: inline-block;
  color: var(--secondary-color);
}

/* Hover effect for portfolio items - cuando haces hover en el item, la línea se alarga */
#portfoli-list-block .portfolio-masonry-item:hover .text.link-sideline-right::after {
  width: 1.5rem;
}

.bigcaslon_medium {
  font-family: var(--font-bigcaslon);
}

/* Responsive */
@media (max-width: 992px) {
  #portfoli-list-block .portfolio-masonry-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  #portfoli-list-block .portfolio-item-1 {
    grid-column: 1 / 4;
    grid-row: 1;
  }
  
  #portfoli-list-block .portfolio-item-2 {
    grid-column: 4 / 7;
    grid-row: 1 / 3;
  }
  
  #portfoli-list-block .portfolio-item-3 {
    grid-column: 1 / 4;
    grid-row: 2 / 4;
  }
  
  #portfoli-list-block .portfolio-item-4 {
    grid-column: 4 / 7;
    grid-row: 3;
  }
}

@media (max-width: 992px) {
  /* En tablets, portfolio-item-5 va en penúltima posición */
  #portfoli-list-block .portfolio-item-5 {
    grid-column: 1 / 4;
    grid-row: 3;
  }
  
  #portfoli-list-block .portfolio-item-4 {
    grid-column: 4 / 7;
    grid-row: 4;
  }
}

@media (max-width: 768px) {
  #portfoli-list-block .portfolio-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  #portfoli-list-block .portfolio-header h2 {
    font-size: 2.5rem;
  }
  
  #portfoli-list-block .portfolio-masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  #portfoli-list-block .portfolio-item-0,
  #portfoli-list-block .portfolio-item-1,
  #portfoli-list-block .portfolio-item-2,
  #portfoli-list-block .portfolio-item-3,
  #portfoli-list-block .portfolio-item-4 {
    grid-column: 1;
    grid-row: auto;
  }
  
  /* En móviles, portfolio-item-5 va al final (última posición) */
  #portfoli-list-block .portfolio-item-5 {
    grid-column: 1;
    grid-row: auto;
    order: 999;
  }
  
  #portfoli-list-block .portfolio-image-wrapper {
    min-height: 250px;
  }
  
  #portfoli-list-block .portfolio-footer-link {
    padding-bottom: 1rem;
    padding-top: 1rem;
  }
}


/* ==================== SERVICES ==================== */
#serveis-home-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6.25rem var(--container-padding) 8.125rem; /* 100px 30px 130px */
  background-color: var(--dark-bg);
  color: var(--white);
}

#serveis-home-header h1,
#serveis-home-header h3 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  font-weight: 600;
  max-width: 46.875rem; /* 750px */
  margin-bottom: var(--spacing-xxl);
}

#serveis-home-header h2,
#serveis-home-header p {
  font-size: var(--font-size-large);
  line-height: var(--line-height-tight);
  font-weight: 400;
  max-width: 55.3125rem; /* 885px */
  margin-top: 0;
}

/* New Services Grid Design - HORIZONTAL */
#serveis-home {
  background-color: var(--black);
  padding: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  margin-top: 8.125rem;
  margin-bottom: 8.125rem;
}

#serveis-home .services-grid {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 500px;
  gap: 0;
}

/* Distribución dinámica según cantidad de servicios */
#serveis-home .services-grid[data-service-count="1"] .service-item {
  width: 100%;
  flex: 0 0 100%;
}

#serveis-home .services-grid[data-service-count="2"] .service-item {
  width: 50%;
  flex: 0 0 50%;
}

#serveis-home .services-grid[data-service-count="3"] .service-item {
  width: 33.333%;
  flex: 0 0 33.333%;
}

#serveis-home .service-item {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), flex-basis 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--black);
}

#serveis-home .service-item:last-child {
  border-right: none;
}

/* Video o imagen de fondo */
#serveis-home .service-video,
#serveis-home .service-image {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Aviso sin media */
#serveis-home .service-no-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  z-index: 1;
}

#serveis-home .service-no-media i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Overlay oscuro sobre el vídeo/imagen */
#serveis-home .service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  transition: all 0.6s ease;
  z-index: 2;
}

/* Contenido del servicio */
#serveis-home .service-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: var(--spacing-xl);
  max-width: 450px;
  transition: all 0.6s ease;
}

#serveis-home .service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease;
}

#serveis-home .service-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--white);
}

/* Título siempre visible */
#serveis-home .service-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 1;
  transition: all 0.6s ease;
}

/* Subtítulo siempre visible pero más sutil */
#serveis-home .service-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
  transition: all 0.6s ease;
}

/* Descripción oculta por defecto, solo visible en hover */
#serveis-home .service-description {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0;
  /*max-height: 0;*/
  overflow: hidden;
  /*transition: all 0.6s ease;*/
  margin-top: var(--spacing-md);
}

/* EFECTOS HOVER */

/* El servicio con hover se ensancha */
#serveis-home .services-grid[data-service-count="3"] .service-item:hover {
  width: 50% !important;
  flex: 0 0 50% !important;
}

#serveis-home .services-grid[data-service-count="2"] .service-item:hover {
  width: 60% !important;
  flex: 0 0 60% !important;
}

#serveis-home .services-grid[data-service-count="1"] .service-item:hover {
  width: 100% !important;
  flex: 0 0 100% !important;
}

/* Reducir opacidad del overlay en hover */
#serveis-home .service-item:hover .service-overlay {
  background-color: rgba(0, 0, 0, 0.4);
}

/* Mostrar descripción en hover */
#serveis-home .service-item:hover .service-description {
  opacity: 1;
  max-height: 200px;
}

/* Los servicios sin hover se encogen */
#serveis-home .services-grid[data-service-count="3"]:has(.service-item:hover) .service-item:not(:hover) {
  width: 25% !important;
  flex: 0 0 25% !important;
}

#serveis-home .services-grid[data-service-count="2"]:has(.service-item:hover) .service-item:not(:hover) {
  width: 20% !important;
  flex: 0 0 20% !important;
}

/* Reducir visibilidad del contenido de los no-hover */
#serveis-home .services-grid:has(.service-item:hover) .service-item:not(:hover) .service-content {
  opacity: 0.5;
}

#serveis-home .services-grid:has(.service-item:hover) .service-item:not(:hover) .service-icon {
  transform: scale(0.8);
}

/* Responsive */
@media (max-width: 768px) {
  #serveis-home .services-grid {
    flex-direction: column;
    height: auto;
  }
  
  #serveis-home .services-grid[data-service-count="1"] .service-item,
  #serveis-home .services-grid[data-service-count="2"] .service-item,
  #serveis-home .services-grid[data-service-count="3"] .service-item {
    flex: 1 1 auto;
    height: 400px;
  }
  
  #serveis-home .service-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  #serveis-home .service-item:last-child {
    border-bottom: none;
  }
  
  #serveis-home .service-title {
    font-size: 1.5rem;
  }
  
  #serveis-home .service-icon {
    width: 60px;
    height: 60px;
  }
  
  /* En móvil, la descripción siempre visible */
  #serveis-home .service-description {
    opacity: 1;
    max-height: none;
  }
}

#portfoli-list-block h3 {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
}

#home #portfoli-list-block #portfoli-footer:after {
  background-color: #fff;
  content: "";
  width: 80px;
  height: 40px;
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ==================== BANNER ==================== */
.banner {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-xxl) 0;
  margin-top: var(--spacing-xxl) 0;
  background-color: var(--black);
  background-image: url('../img/banner.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner .text {
  text-align: center;
}

.banner h3 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.banner h4 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.5;
  font-weight: 400;
}

/* ==================== FOOTER ==================== */
footer {
  background-color: #202020;
  color: var(--white);
  padding: 4rem 2rem 2rem;
  position: relative;
}

footer .container {
  max-width: var(--container-max-width);
}

footer .footer-content {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

/* Columnas del footer */
footer .footer-column {
  display: flex;
  flex-direction: column;
}

/* Columna 1: Logo */
footer .footer-logo {
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 3rem;
}

footer .footer-logo svg {
  width: 100%;
  max-width: 450px;
  height: auto;
}

/* Columna 2: Navegación en 2 columnas */
footer .footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  justify-content: end;
}

footer .footer-nav a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s ease;
  position: relative;
  width: fit-content;
  font-size: 13px;
}

footer .footer-nav a:hover::after {
  width: 1.5rem;
  opacity: 1;
}

footer .footer-nav .link-sideline-right::after {
  background: white;
  width: 0;
}

/* Columna 3: Contacto */
footer .footer-contact {
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: right;
}

footer .footer-contact p {
  margin: 0.2rem 0;
}

footer .footer-contact a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

footer .footer-contact a:hover {
  opacity: 0.7;
}

/* Footer Bottom */
footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: left;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

footer .footer-bottom p {
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  footer .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  footer .footer-logo {
    grid-column: 1 / -1;
    justify-content: center;
    align-items: center;
  }
  
  footer .footer-logo svg {
    max-width: 350px;
  }
  
  footer .footer-contact {
    text-align: left;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 3rem 1.5rem 1.5rem;
  }
  
  footer .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  footer .footer-logo {
    justify-content: center;
  }
  
  footer .footer-logo svg {
    max-width: 280px;
  }
  
  footer .footer-nav {
    align-items: center;
    text-align: center;
  }
  
  footer .footer-nav a {
    width: 100%;
    text-align: center;
  }
  
  footer .footer-contact {
    text-align: center;
  }
  
  footer .footer-bottom {
    text-align: center;
  }
}

/* ==================== BUTTONS & INTERACTIVE ELEMENTS ==================== */
.animated-button {
  display: inline-block;
  padding: 0.75rem 1.5rem; /* 12px 24px */
  border: 2px solid var(--primary-color);
  border-radius: 0.25rem; /* 4px */
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  overflow: hidden;
  transition: var(--transition-base);
  position: relative;
}

.animated-button:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

.animated-button.sandy-two {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.animated-button.sandy-two:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

/* Button variants */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.625rem; /* 10px */
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  transition: var(--transition-base);
  cursor: pointer;
  min-width: 12.5rem; /* 200px */
}

.btn-primary {
  color: var(--white);
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-primary:hover {
  box-shadow: inset 400px 0 0 0 var(--primary-color);
  color: var(--white);
}

.btn-secondary {
  color: var(--primary-color);
  background-color: transparent;
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

.btn-outline {
  color: var(--secondary-color);
  background-color: var(--white);
  border: 1px solid var(--secondary-color);
}

.btn-outline:hover {
  color: var(--white);
  background-color: var(--secondary-color);
}


/* Transiciones de fondo y texto */
main {
  transition: background-color 0.2s ease-out;
  background-color: #ffffff; /* Color inicial blanco para todas las páginas */
}

/* Solo en la homepage, el main comienza con fondo oscuro */
.page-home main {
  background-color: rgb(32, 32, 32); /* #202020 - Color oscuro solo para homepage */
}

/* Contenedores de texto para transiciones */
.section-text-content {
  will-change: opacity, color;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.4s ease;
  opacity: 0; /* Inicialmente oculto */
}

/* Cuando el fondo es claro (para sección header-home) */
.main-bg-light .section-text-content,
.main-bg-light #header-home h1,
.main-bg-light #header-home h2,
.main-bg-light #header-home .botons a {
  color: #393434 !important; /* Color oscuro para contraste */
}

/* Estilos específicos para la flecha */
.scroll-arrow {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Estilos para botones en diferentes fondos */
.main-bg-light #header-home .botons a {
  border-color: #393434;
  color: #393434;
}

.main-bg-light #header-home .botons a:hover {
  color: #fff !important;
}

/* Clase para cuando el texto debe ser visible */
.text-visible {
  opacity: 1 !important;
}

/* Responsive styles */
@media (max-width: 1200px) {
  #home-introduction .container .titles .title strong {
    font-size: 50px;
  }
  
  #serveis-home {
    padding: 0 100px;
  }
}

@media (max-width: 992px) {
  #header-home {
    grid-template-columns: 1fr;
    grid-gap: 30px;
  }
  
  #header-home h1 {
    text-align: center;
    justify-self: center;
  }
  
  #header-home .botons {
    grid-column-start: 1;
    justify-content: center;
  }
  
  #portfoli-list-block #portfoli, #portfoli-list-records #portfoli {
    grid-template-columns: repeat(1, 1fr);
  }
  
  #serveis-home {
    padding: 0 50px;
  }
  
  #serveis-home .item {
    max-width: calc(50% - 100px);
  }
}

@media (max-width: 768px) {
  #home-introduction .container .titles .title strong {
    font-size: 36px;
  }
  
  #main-nav {
    display: none;
  }
  
  #main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  #main-nav.active ul {
    flex-direction: column;
  }
  
  #main-nav.active ul li {
    margin: 10px 0;
  }
  
  #menu-mobile {
    display: block;
  }
  
  #portfoli-list-block #portfoli, #portfoli-list-records #portfoli {
    grid-template-columns: 1fr;
  }
  
  #serveis-home .item {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
  
  footer .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Mobile menu */
#menu-mobile {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

#menu-mobile div {
  width: 100%;
  height: 100%;
  position: relative;
}

#menu-mobile span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: currentColor;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

#menu-mobile span:nth-child(1) {
  top: 0px;
}

#menu-mobile span:nth-child(2) {
  top: 8px;
}

#menu-mobile span:nth-child(3) {
  top: 16px;
}

#menu-mobile.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

#menu-mobile.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

#menu-mobile.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-weight-light { font-weight: 300; }
.font-weight-normal { font-weight: 400; }
.font-weight-semibold { font-weight: 500; }
.font-weight-bold { font-weight: 600; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==================== ANIMATIONS ==================== */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.3125rem); /* -5px */
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes colorChange {
  0%, 29.9% {
    color: #00AA00;
  }
  30%, 99.9% {
    color: var(--white);
  }
  100% {
    color: #00AA00;
  }
}

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (max-width: 1200px) {
  #home-introduction .container .titles .title strong {
    font-size: 3.125rem; /* 50px */
  }

  #serveis-home {
    padding: 0 6.25rem; /* 0 100px */
  }
}

@media (max-width: 992px) {
  #header-home {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  #header-home h1 {
    text-align: center;
    justify-self: center;
  }

  #header-home .botons {
    grid-column-start: 1;
    justify-content: center;
  }

  #portfoli {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xxl);
  }

  #serveis-home {
    padding: 0 var(--spacing-xxl); /* 0 80px */
  }

  #serveis-home .item {
    max-width: calc(50% - 6.25rem); /* calc(50% - 100px) */
  }
}

@media (max-width: 768px) {
  #home-introduction .container .titles .title strong {
    font-size: 2.25rem; /* 36px */
  }

  #main-nav {
    display: none;
  }

  #main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: var(--spacing-lg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  #main-nav.active ul {
    flex-direction: column;
  }

  #main-nav.active ul li {
    margin: 0.625rem 0; /* 10px 0 */
  }

  #menu-mobile {
    display: block;
  }

  #portfoli {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  #portfoli .full-width {
    grid-column: 1;
  }

  #portfoli .item:nth-child(2),
  #portfoli .item:nth-child(3) {
    margin-top: 0;
  }

  #serveis-home .item {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  footer .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ==================== FLOATING WHATSAPP BUTTON ==================== */
#whatsapp-float {
  position: fixed;
  bottom: 1.25rem; /* 20px */
  right: 1.25rem; /* 20px */
  z-index: 1050;
  width: 3.75rem; /* 60px */
  height: 3.75rem; /* 60px */
}

.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1050;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background-color: var(--accent-green);
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--white);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.whatsapp-link i {
  transition: transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-link i {
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(67, 219, 214, 0.1);
  }
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}
