/*==================== FUENTES Y VARIABLES ====================*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  /* Colors */
  --header-height: 4rem;
  --body-color: hsl(0, 0%, 96%);
  --white-color: hsl(0, 0%, 100%);
  --first-color: #ce3d36;
  --first-color-alt: hsl(2, 67%, 93%);
  --text-color: hsl(0, 0%, 31%);
  --text-color-lighten: hsl(0, 0%, 70%);
  --black-color: hsl(0, 0%, 11%);
  --body-second-color: hsl(210, 100%, 35%);

  /* Variables del nuevo slider */
  --accent-color: #ff2519;
  --background-color-slider: #000000;
  --overlay-color: rgba(0, 0, 0, 0.6);

  /* Typography */
  --body-font: "Montserrat", sans-serif;
  --biggest-font-size: 4.5rem;
  --big-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;

  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;

  /* Other */
  --shadow-img: -8px 8px 16px hsla(0, 0%, 0%, 0.2);
}

/* Media query for desktop */
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 10.5rem;
    --big-font-size: 5.5rem;
    --h1-font-size: 3rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*==================== REGLAS BASE ====================*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--black-color);
  /* CORRECCIÓN: Añadido padding-top para compensar el header fijo */
  padding-top: var(--header-height);
}

input,
button {
  border: none;
  outline: none;
}
/* ... (existing code) ... */
h1,
h2,
h3,
h4 {
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/*==================== CLASES REUTILIZABLES ====================*/
.container {
  /* ... (existing code) ... */
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  /* ... (existing code) ... */
  display: grid;
  gap: 1.5rem;
}

.section {
  /* ... (existing code) ... */
  padding-block: 7rem 2rem;
}

/* CORRECCIÓN: La primera sección (slider) no necesita el padding-top */
#home.section {
  padding-block: 0;
}

.section__title,
.section__title2,
.section__subtitle {
  text-align: center;
}
/* ... (existing code) ... */
.section__title,
.section__title2 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-extra-bold);
  margin-bottom: 3rem;
}

.section__title {
  color: var(--first-color);
}

.section__title2 {
  color: var(--white-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.main {
  overflow: hidden;
}
/* ... (existing code) ... */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 0.75rem 2rem;
  font-weight: var(--font-semi-bold);
  box-shadow: 0 4px 12px hsla(3, 61%, 40%, 0.4);
  cursor: pointer;
}

.button i {
  font-weight: initial;
  font-size: 1.5rem;
  transition: transform 0.4s;
}

.button:hover i {
  transform: translateX(0.5rem);
}
/* ... (existing code) ... */
/* Estilos para los mensajes del formulario */
.form-message {
  margin-top: 1rem;
  /* ... (existing code) ... */
  font-weight: var(--font-semi-bold);
  text-align: center;
}

.form-message.success {
  /* ... (existing code) ... */
  color: #4caf50;
  /* Un verde para éxito */
}

.form-message.error {
  /* ... (existing code) ... */
  color: #f44336;
  /* Un rojo para error */
}

/*==================== HEADER & NAV ====================*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  /* CORRECCIÓN: Sólido por defecto */
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.1);
  z-index: calc(var(--z-fixed) + 1);
  transition: transform 0.5s ease-out, background-color 0.4s, box-shadow 0.4s;
  /* CORRECCIÓN: Visible por defecto */
  transform: translateY(0);
}

/* CORRECCIÓN: Eliminadas las clases .show-header y .bg-header */

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav__logo {
  /* CORRECCIÓN: Negro por defecto */
  color: var(--black-color);
  font-weight: var(--font-bold);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  transition: color 0.4s;
}

.nav__toggle,
.nav__close {
  display: inline-flex;
  font-size: 1.5rem;
  cursor: pointer;
  /* CORRECCIÓN: Negro por defecto */
  color: var(--black-color);
  margin-left: auto;
  z-index: 1;
  transition: color 0.4s;
}

/* CORRECCIÓN: Eliminada la regla .header.bg-header... */

/* CORRECCIÓN: Ajustes para el menú móvil */
.nav__menu {
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  width: 100%;
  padding-block: 6rem 4rem;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.1);
  /* Oculto por defecto */
  transform: translateY(-100%);
  transition: transform 0.4s;
  z-index: var(--z-fixed);
}

.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.nav__link {
  position: relative;
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
  font-size: var(--h3-font-size);
}

.nav__link:after {
  content: "";
  width: 0;
  height: 2px;
  background-color: var(--black-color);
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  transition: width 0.4s;
}

.nav__link:hover:after {
  width: 60%;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--black-color);
}

.show-menu {
  transform: translateY(0);
}

.active-link:after {
  width: 60%;
}

/*==================== NUEVO SLIDER PREMIUM (HOME) ====================*/
/* CORRECCIÓN: El slider ahora usa 100vh MENOS la altura del header */
#home {
  /* ... */
}
.slider-container {
  position: relative;
  /* CORRECCIÓN: Altura ajustada */
  height: calc(100vh - var(--header-height));
  width: 100%;
  font-family: "Inter", sans-serif;
  background-color: var(--background-color-slider);
  color: var(--white-color);
  overflow: hidden;
}

.side-nav {
  /* ... (existing code) ... */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-nav {
  /* ... (existing code) ... */
  left: 3rem;
  align-items: center;
}

.slide-indicators {
  /* ... (existing code) ... */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.indicator {
  /* ... (existing code) ... */
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  padding: 0.5rem;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.indicator.active {
  /* ... (existing code) ... */
  opacity: 1;
  color: var(--accent-color);
}

.indicator::before {
  /* ... (existing code) ... */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1rem;
  transform: translateX(-50%);
  width: 1px;
  height: 1rem;
  background-color: var(--white-color);
}

.indicator:last-child::before {
  display: none;
}

.scroll-indicator {
  /* ... (existing code) ... */
  position: absolute;
  bottom: -5rem;
  writing-mode: vertical-rl;
  font-size: 0.8rem;
  letter-spacing: 2px;
  opacity: 0.7;
}

.scroll-indicator::after {
  /* ... (existing code) ... */
  content: "↓";
  display: block;
  margin-top: 1rem;
}

.right-nav {
  right: 3rem;
}

.slides-wrapper {
  /* ... (existing code) ... */
  position: absolute;
  inset: 0;
}

.slide {
  /* ... (existing code) ... */
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  visibility: hidden;
}

.slide::before {
  /* ... (existing code) ... */
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--overlay-color);
}

.slide-content {
  /* ... (existing code) ... */
  position: relative;
  max-width: 800px;
  padding: 2rem;
}

.proverb {
  /* ... (existing code) ... */
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.quote {
  /* ... (existing code) ... */
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 1rem 0 2rem;
  text-transform: uppercase;
}

.explore-btn {
  /* ... (existing code) ... */
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border: 1px solid var(--accent-color);
  color: var(--white-color);
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.explore-btn:hover {
  /* ... (existing code) ... */
  background-color: var(--accent-color);
  color: var(--white-color);
}

/*==================== ABOUT ====================*/
.about {
  /* ... (existing code) ... */
  background-color: var(--body-second-color);
}

.about__span {
  /* ... (existing code) ... */
  color: var(--first-color);
}

.about__container {
  /* ... (existing code) ... */
  padding-bottom: 3rem;
  row-gap: 3rem;
}

.about__title {
  /* ... (existing code) ... */
  color: var(--white-color);
  margin-bottom: 1rem;
}

.about__title span {
  /* ... (existing code) ... */
  color: var(--first-color);
}

.about__data {
  text-align: center;
}

.about__description {
  /* ... (existing code) ... */
  margin-bottom: 1.5rem;
  text-align: justify;
  color: var(--white-color);
}

.about__video {
  /* ... (existing code) ... */
  position: relative;
  width: 250px;
  height: 320px;
  justify-self: center;
  box-shadow: var(--shadow-img);
  display: grid;
  overflow: hidden;
}

.about__file {
  /* ... (existing code) ... */
  max-width: initial;
  height: 320px;
  transform: skew(12deg);
  position: absolute;
  justify-self: center;
}

/*==================== SERVICES (NEW SECTION) ====================*/
.services {
  background: var(--body-color);
}
.services__container {
  /* ... (existing code) ... */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  gap: 1.5rem;
}

.services__card {
  /* ... (existing code) ... */
  min-height: 250px;
  padding: 25px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--white-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  margin: 0;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.services__card::before {
  /* ... (existing code) ... */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--white-color);
  transition: opacity 0.4s ease;
  z-index: 1;
}

.services__card > * {
  /* ... (existing code) ... */
  position: relative;
  z-index: 2;
}

.services__card i,
.services__card h2,
.services__card p {
  /* ... (existing code) ... */
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease;
}

.services__card i {
  /* ... (existing code) ... */
  margin-bottom: 20px;
  color: var(--first-color);
  font-size: 3rem;
}

.services__card h2 {
  /* ... (existing code) ... */
  margin-bottom: 10px;
  text-align: center;
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--black-color);
}

.services__card p {
  /* ... (existing code) ... */
  color: var(--text-color);
  text-align: center;
  font-size: var(--small-font-size);
}

.services__card:hover {
  /* ... (existing code) ... */
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.services__card:hover::before {
  opacity: 0;
}

.services__card:hover i,
.services__card:hover h2,
.services__card:hover p {
  /* ... (existing code) ... */
  opacity: 1;
  transform: translateY(0);
  color: var(--white-color);
}

/* Fondos específicos para cada tarjeta (se revelan al hacer hover) */
.services__card:nth-child(1) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/balanceo-de-llantas.png");
}
.services__card:nth-child(2) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/istockphoto-1364951753-612x612.jpg");
}
.services__card:nth-child(3) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/cambio-aceite.jpg");
}
.services__card:nth-child(4) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/refacciones.jpg");
}
.services__card:nth-child(5) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/afinacion.jpg");
}
.services__card:nth-child(6) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/suspension.png");
}
.services__card:nth-child(7) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/Bridgestone_Potenza_Sport_spr22_hamilton_02528.jpg");
}
.services__card:nth-child(8) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/rotacion.jpg");
}
.services__card:nth-child(9) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/montaje.png");
}
/*==================== INFO ====================*/
.info__container {
  /* ... (existing code) ... */
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.info__title {
  margin-bottom: 2rem;
}

.info__content {
  /* ... (existing code) ... */
  position: relative;
  width: 100%;
}

.info__number {
  display: none;
}

.info__img {
  /* ... (existing code) ... */
  width: 100%;
  justify-self: center;
  z-index: 5;
}

.info__data {
  /* ... (existing code) ... */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.info__group {
  text-align: center;
}

.info__group h3 {
  /* ... (existing code) ... */
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
}

.info__group p {
  /* ... (existing code) ... */
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.info__map {
  /* ... (existing code) ... */
  width: 100%;
  height: 450px;
  border: none;
}

/*==================== CONTACT (ACTUALIZADO: sucursales 2x2 y espaciado reducido) ====================*/
.contact {
  background-color: var(--body-second-color);
}

.contact__container {
  /* ... (existing code) ... */
  row-gap: 2rem;
  padding-bottom: 1.5rem;
  align-items: center;
}

.contact__title {
  /* ... (existing code) ... */
  color: var(--white-color);
  margin-bottom: 0.75rem;
  font-size: var(--h1-font-size);
  text-align: center;
}

.contact__subtitle {
  /* ... (existing code) ... */
  color: var(--white-color);
  margin: 0.25rem 0 0.5rem;
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
}

.contact__text {
  /* ... (existing code) ... */
  color: var(--white-color);
  margin: 0 0 0.75rem 0;
  font-size: var(--small-font-size);
  line-height: 1.25;
}

.contact__branches {
  /* ... (existing code) ... */
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact__branch {
  /* ... (existing code) ... */
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact__branch .branch-name {
  /* ... (existing code) ... */
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  font-size: var(--small-font-size);
  margin-bottom: 0.25rem;
}

.contact__branch .branch-contact {
  /* ... (existing code) ... */
  color: var(--white-color);
  font-size: var(--smaller-font-size);
  margin: 0;
}

.icono__wsp {
  /* ... (existing code) ... */
  font-size: 2.25rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.contact__img {
  /* ... (existing code) ... */
  width: 250px;
  transform: skew(-12deg);
  justify-self: center;
  box-shadow: var(--shadow-img);
  margin-left: 0.5rem;
}

.contact__content .footer__social-link {
  /* ... (existing code) ... */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px hsla(145, 63%, 42%, 0.5);
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
  font-size: 1.2rem;
  color: var(--white-color);
}

.contact__content .footer__social-link:hover {
  /* ... (existing code) ... */
  background-color: #1ebe58;
  transform: scale(1.03);
  box-shadow: 0 6px 20px hsla(145, 63%, 42%, 0.6);
  animation-play-state: paused;
}

.contact__content .footer__social-link .contact__text {
  /* ... (existing code) ... */
  color: var(--white-color);
  font-weight: var(--font-bold);
  font-size: 1.2rem;
  margin: 0 0 0 0.5rem;
  line-height: 1;
}

.contact__content .footer__social-link .icono__wsp {
  /* ... (existing code) ... */
  font-size: 1.8rem;
  color: var(--white-color);
  vertical-align: middle;
  margin-right: 0;
  line-height: 1;
}

.contact__button {
  /* ... (existing code) ... */
  cursor: pointer;
  margin-top: 0.5rem;
}

@media screen and (min-width: 576px) {
  .contact__branches {
    /* ... (existing code) ... */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact__container {
    row-gap: 2.25rem;
  }

  .contact__img {
    width: 300px;
  }
}

@media screen and (min-width: 1150px) {
  .contact__container {
    align-items: start;
  }

  .contact__img {
    width: 450px;
  }
}

/*==================== FOOTER ====================*/
.footer {
  /* ... (existing code) ... */
  background-color: var(--body-second-color);
  padding-block: 2rem;
}

.footer__container {
  row-gap: 3rem;
}

.footer__logo {
  /* ... (existing code) ... */
  justify-self: flex-start;
  color: var(--white-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
}

.footer__links {
  /* ... (existing code) ... */
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.footer__link {
  color: var(--white-color);
}

.footer__social {
  /* ... (existing code) ... */
  display: flex;
  column-gap: 0.75rem;
}

.footer__social-link {
  /* ... (existing code) ... */
  color: var(--white-color);
  font-size: 1.5rem;
  transition: transform 0.4s;
}

.footer__social-link:hover {
  transform: translateY(-0.25rem);
}

.footer__copy {
  /* ... (existing code) ... */
  display: block;
  margin-top: 6rem;
  color: var(--white-color);
  text-align: center;
  font-size: var(--small-font-size);
}

/*==================== SCROLLBAR ====================*/
::-webkit-scrollbar {
  /* ... (existing code) ... */
  width: 0.6rem;
  background-color: hsl(0, 0%, 80%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 60%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 50%);
}

/*==================== SCROLLUP ====================*/
.scrollup {
  /* ... (existing code) ... */
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.1);
  color: var(--black-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.5rem);
}

.show-scroll {
  bottom: 1rem;
}

/*==================== CLASES ESPECÍFICAS ====================*/
.header__logo-img {
  /* ... (existing code) ... */
  height: 3.5rem;
  width: auto;
  transition: height 0.3s;
}

.footer__logo-img {
  /* ... (existing code) ... */
  height: 2.5rem;
  width: auto;
  transition: height 0.3s, filter 0.3s;
  justify-self: flex-start;
}

.footer__logo-img:hover {
  /* ... (existing code) ... */
  filter: brightness(1.4);
  transform: scale(1.05);
}

/*==================== ANIMACIONES ====================*/
@keyframes fadeInUp {
  from {
    /* ... (existing code) ... */
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    /* ... (existing code) ... */
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-whatsapp {
  0% {
    /* ... (existing code) ... */
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    /* ... (existing code) ... */
    transform: scale(1.03);
    box-shadow: 0 0 10px 20px rgba(37, 211, 102, 0);
  }
  100% {
    /* ... (existing code) ... */
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.services__card {
  /* ... (existing code) ... */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, color 0.4s ease;
}

.services__card.is-visible {
  /* ... (existing code) ... */
  opacity: 1;
  transform: translateY(0);
}

.info__group {
  /* ... (existing code) ... */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.info__group.is-visible {
  /* ... (existing code) ... */
  opacity: 1;
  transform: translateY(0);
}

.footer {
  /* ... (existing code) ... */
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.footer.is-visible {
  /* ... (existing code) ... */
  transform: translateY(0);
  opacity: 1;
}

.scrollup {
  /* ... (existing code) ... */
  transition: bottom 0.4s, transform 0.3s ease, opacity 0.3s;
  opacity: 0;
}

.show-scroll {
  /* ... (existing code) ... */
  bottom: 3rem;
  opacity: 1;
}

.footer__social-link {
  /* ... (existing code) ... */
  transition: transform 0.25s ease, filter 0.25s ease;
}

.footer__social-link:focus,
.footer__social-link:hover {
  /* ... (existing code) ... */
  transform: translateY(-4px) rotate(-2deg);
  filter: brightness(1.25);
}

/*==================== BOTÓN FLOTANTE WHATSAPP ====================*/
.whatsapp-float {
  /* ... (existing code) ... */
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 100px;
  right: 40px;
  background-color: #25d366;
  color: var(--white-color);
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: var(--z-fixed);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float i {
  line-height: 1;
}

.whatsapp-float:hover {
  /* ... (existing code) ... */
  transform: scale(1.1);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 768px) {
  .whatsapp-float {
    /* ... (existing code) ... */
    width: 50px;
    height: 50px;
    bottom: 80px;
    right: 20px;
    font-size: 25px;
  }
  .show-scroll {
    bottom: 20px;
  }
}

/*==================== MEDIA QUERIES ====================*/
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }
  /* CORRECCIÓN: padding-top del body ya se encarga de esto */

  .about__video {
    /* ... (existing code) ... */
    width: 200px;
    height: 250px;
  }

  .services__container {
    grid-template-columns: 200px;
  }

  .info__data {
    /* ... (existing code) ... */
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
  }

  .info__map {
    /* ... (existing code) ... */
    width: 100%;
    height: 300px;
  }

  .contact__img {
    width: 200px;
  }
}

@media screen and (min-width: 576px) {
  .about__container,
  .contact__container {
    /* ... (existing code) ... */
    grid-template-columns: 400px;
    justify-content: center;
  }

  .footer__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }
}

@media screen and (min-width: 768px) {
  .services__container {
    /* ... (existing code) ... */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .info__data {
    /* ... (existing code) ... */
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__links {
    /* ... (existing code) ... */
    flex-direction: row;
    column-gap: 1rem;
  }

  .footer__logo-img {
    height: 3.5rem;
  }
}

@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  /* CORRECCIÓN: Ajustar el padding-top del body para el header más alto */
  body {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .section {
    /* ... (existing code) ... */
    padding-block: 8rem 4rem;
  }
  /* CORRECCIÓN: La primera sección (slider) no necesita el padding-top */
  #home.section {
    padding-block: 0;
  }

  .services.section {
    padding-inline: 0;
  }

  .section__title,
  .section__title2 {
    margin-bottom: 4rem;
  }

  .nav {
    /* ... (existing code) ... */
    height: calc(var(--header-height) + 2rem);
    justify-content: space-between;
  }

  .nav__logo {
    /* ... (existing code) ... */
    position: static;
    left: auto;
    transform: none;
    z-index: auto;
    color: var(--black-color); /* CORRECCIÓN: Negro por defecto */
  }

  .nav__menu {
    /* ... (existing code) ... */
    position: static;
    top: auto;
    left: auto;
    width: auto;
    padding-block: 0;
    box-shadow: none;
    background-color: transparent;
    z-index: auto;
    transition: none;
    transform: none;
  }

  .nav__toggle,
  .nav__close {
    /* ... (existing code) ... */
    display: none;
    margin-left: 0;
    z-index: auto;
  }

  .nav__list {
    /* ... (existing code) ... */
    flex-direction: row;
    column-gap: 4rem;
  }

  .nav__link {
    color: var(--black-color); /* CORRECCIÓN: Negro por defecto */
    font-size: var(--normal-font-size);
  }

  /* CORRECCIÓN: Eliminadas las reglas .bg-header */

  .nav__link:after {
    background-color: var(--black-color);
  }

  .about__container {
    /* ... (existing code) ... */
    grid-template-columns: 400px 450px;
    align-items: center;
    column-gap: 12rem;
    padding-bottom: 5rem;
  }

  .about__title,
  .about__data {
    text-align: initial;
  }

  .about__title {
    margin-bottom: 1rem;
  }

  .about__description {
    /* ... (existing code) ... */
    margin-bottom: 3.5rem;
  }

  .about__video {
    /* ... (existing code) ... */
    width: 450px;
    height: 570px;
  }

  .about__file {
    height: 580px;
  }

  .services__container {
    /* ... (existing code) ... */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .info__container {
    /* ... (existing code) ... */
    padding-bottom: 4rem;
    gap: 3rem;
  }

  .info__title {
    margin-bottom: 4rem;
  }

  .info__img {
    width: 100%;
  }

  .info__data {
    /* ... (existing code) ... */
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
  }

  .info__group h3 {
    /* ... (existing code) ... */
    font-size: var(--h3-font-size);
  }

  .info__group p {
    font-size: var(--normal-font-size);
  }

  .info__map {
    /* ... (existing code) ... */
    width: 100%;
    height: 600px;
  }

  .contact__container {
    /* ... (existing code) ... */
    grid-template-columns: 450px 500px;
    align-items: center;
    column-gap: 8rem;
    padding-bottom: 4rem;
  }

  .contact__img {
    /* ... (existing code) ... */
    order: -1;
    width: 450px;
  }

  .contact__title {
    text-align: initial;
  }

  .contact__button {
    /* ... (existing code) ... */
    justify-self: flex-start;
  }

  .footer {
    padding-top: 3rem;
  }

  .footer__container {
    /* ... (existing code) ... */
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    align-items: center;
  }

  .footer__logo {
    /* ... (existing code) ... */
    font-size: var(--normal-font-size);
  }

  .footer__links {
    /* ... (existing code) ... */
    flex-direction: row;
    column-gap: 2rem;
  }

  .footer__social {
    column-gap: 1rem;
  }

  .scrollup {
    right: 3rem;
  }

  .show-scroll {
    bottom: 1rem;
  }

  .header__logo-img {
    height: 5rem;
  }

  /* CORRECCIÓN: Ajuste de altura del slider en desktop */
  .slider-container {
    height: calc(100vh - (var(--header-height) + 2rem));
  }
}

@media screen and (min-width: 2048px) {
  body {
    zoom: 1.4;
  }
}

/*==================== OPTIMIZACIÓN DE RENDIMIENTO ====================*/
@media (prefers-reduced-motion: reduce) {
  * {
    /* ... (existing code) ... */
    animation: none !important;
    transition: none !important;
  }
}

/* CORRECCIÓN: Media queries para slider en pantallas pequeñas */
@media screen and (max-width: 768px) {
  .quote {
    font-size: 1.8rem; /* Ajuste probado */
    line-height: 1.3;
  }
  .proverb {
    font-size: 0.9rem;
  }
  .left-nav {
    left: 1rem; /* Ajuste probado */
  }
  .right-nav {
    display: none;
  }
  .slide-content {
    width: 80%;
    margin: 0 auto;
    padding: 2rem 0;
  }
}

@media screen and (max-width: 375px) {
  .quote {
    font-size: 1.6rem; /* Ajuste más pequeño para móviles */
  }
  .left-nav {
    left: 1rem;
  }
}
