@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* ==============================
   ESTILOS GENERALES
============================== */

:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #20242a;
  background: #ffffff;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ==============================
   ENCABEZADO
============================== */

.site-header {
  background: #272727;
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  width: 110px;
  max-height: 54px;
  object-fit: contain;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 700;
}

.navlinks > a:not(.navcta) {
  color: lightgray;
}

.navlinks > a:not(.navcta):hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.navcta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 100px;
  background: #ffffff;
  color: #25202b;
  font-weight: 800;
  transition: transform 0.2s, background 0.2s;
}

.navcta:hover {
  transform: translateY(-2px);
  background: #eef6ff;
}

/* Menú para pantallas pequeñas */

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  color: #25202b;
  font-weight: 800;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav a {
  color: #25202b;
}

/* ==============================
   PORTADA DE HOLIAPP Y HOLIDRIVE
============================== */

.portada {
  padding: 76px 0 90px;
  background: #ffffff;
}

.portada-intro {
  max-width: 780px;
  margin: 0 auto 46px;
  text-align: center;
}

.portada-etiqueta {
  display: inline-block;
  margin-bottom: 15px;
  color: #e76717;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.portada-intro h1 {
  margin: 0;
  color: #20242a;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.portada-intro p {
  max-width: 680px;
  margin: 20px auto 0;
  color: #596475;
  font-size: 1.1rem;
  line-height: 1.65;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.producto-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8e9ec;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(30, 40, 60, 0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(30, 40, 60, 0.12);
}

.producto-imagen {
  padding: 16px;
  background: lightblue;
}

.producto-card--drive .producto-imagen {
  background: #d0fdd7;
}

.producto-imagen img {
  display: block;
  width: 100%;
  height: 290px;
  border-radius: 17px;
  object-fit: contain;
}

.producto-contenido {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 30px 32px;
}

.producto-etiqueta {
  color: #e76717;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.producto-card--drive .producto-etiqueta {
  color: #128b46;
}

.producto-contenido h2 {
  margin: 10px 0 10px;
  color: #20242a;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.producto-contenido p {
  margin: 0 0 25px;
  color: #596475;
  line-height: 1.65;
}

.producto-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 19px;
  border-radius: 100px;
  background: #ff7410;
  color: #ffffff;
  font-weight: 800;
  transition: background 0.2s, transform 0.2s;
}

.producto-boton:hover {
  background: #e5670d;
  transform: translateY(-2px);
}

.producto-card--drive .producto-boton {
  background: #109a50;
}

.producto-card--drive .producto-boton:hover {
  background: #087e3f;
}


/* ==============================
   SECCIÓN HOLIAPP
============================== */

.holiapp-section {
  padding: 90px 0;
  background: #b3ebf2 ;
}

.holiapp-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.holiapp-logo {
  display: block;
  width: 125px;
  max-height: 65px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.seccion-etiqueta {
  display: block;
  color: #d65c0d;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.holiapp-intro h2 {
  margin: 14px 0 16px;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.holiapp-intro p {
  margin: 0 auto;
  color: #46576b;
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Categorías */

.holiapp-categorias {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.holiapp-categoria {
  min-height: 190px;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  transition: transform 0.25s;
}

.holiapp-categoria:hover {
  transform: translateY(-5px);
}

.categoria-maquinaria {
  background: #ff7410;
}

.categoria-marketplace {
  background: #0869dc;
}

.categoria-vehiculos {
  background: #7041e8;
}

.categoria-servicios {
  background: #0da459;
}

.categoria-icono {
  display: block;
  margin-bottom: 22px;
  font-size: 1.8rem;
  line-height: 1;
}

.holiapp-categoria h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.holiapp-categoria p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Perfil y pantallas */

.holiapp-experiencia {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
  margin-top: 95px;
}

.holiapp-experiencia-texto h3 {
  max-width: 500px;
  margin: 14px 0 20px;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.holiapp-experiencia-texto > p {
  max-width: 520px;
  color: #46576b;
  line-height: 1.7;
}

.holiapp-precio {
  display: grid;
  gap: 7px;
  max-width: 440px;
  margin-top: 26px;
  padding: 20px 22px;
  border-left: 5px solid #ff7410;
  border-radius: 14px;
  background: #ffffff;
}

.holiapp-precio span {
  color: #46576b;
  line-height: 1.5;
}

/* Celulares interactivos */

.holiapp-pantallas {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 500px;
}

.holiapp-celular {
  position: absolute;
  top: 25px;
  width: min(47%, 245px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.celular-login {
  left: 10%;
  transform: rotate(-7deg) translateY(20px);
}

.celular-resena {
  right: 10%;
  transform: rotate(7deg);
}

.holiapp-celular.is-front {
  z-index: 2;
  filter: brightness(1);
}

.holiapp-celular:not(.is-front) {
  z-index: 1;
  filter: brightness(0.94);
}

.celular-login:hover,
.celular-login:focus-visible {
  transform: rotate(-4deg) translateY(5px);
}

.celular-resena:hover,
.celular-resena:focus-visible {
  transform: rotate(4deg) translateY(-15px);
}

.holiapp-celular:focus-visible {
  outline: 3px solid #0869dc;
  outline-offset: 7px;
  border-radius: 34px;
}

.celular-marco {
  position: relative;
  display: block;
  padding: 21px 7px 9px;
  border: 4px solid #272b33;
  border-radius: 31px;
  background: #272b33;
  box-shadow: 0 16px 30px rgba(24, 45, 67, 0.19);
}

.celular-camara {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 27%;
  height: 5px;
  border-radius: 20px;
  background: #555b65;
  transform: translateX(-50%);
}

.celular-marco img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2;
  border-radius: 0 0 21px 21px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.celulares-indicacion {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  margin: 0;
  color: #46576b;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

/* ==============================
   SECCIÓN HOLIDRIVE
============================== */

.holidrive-section {
  padding: 95px 0;
  background: #fffaf5;
}

.holidrive-presentacion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(35px, 6vw, 90px);
}

.holidrive-logo {
  display: block;
  width: 170px;
  max-height: 90px;
  margin-bottom: 23px;
  object-fit: contain;
  object-position: left center;
}

.holidrive-etiqueta {
  display: block;
  color: #118a48;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.holidrive-texto h2 {
  max-width: 600px;
  margin: 15px 0 22px;
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.holidrive-texto p {
  max-width: 540px;
  margin: 0;
  color: #596475;
  font-size: 1.1rem;
  line-height: 1.75;
}

.holidrive-enlace {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  color: #118a48;
  font-weight: 800;
  font-size: 18px;
}

.holidrive-enlace:hover {
  color: #0a6d36;
}

.holidrive-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 25px;
  border-radius: 32px;
  background: #d0fdd7;
}

/* Tarjeta interactiva de HoliDrive */

.holidrive-tarjeta {
  display: block;
  width: min(100%, 350px);
  aspect-ratio: 347 / 570;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
}

.holidrive-tarjeta:focus-visible {
  outline: 3px solid #118a48;
  outline-offset: 7px;
}

.holidrive-tarjeta-interior {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  transform-style: preserve-3d;
  transition: transform 0.65s ease;
}

.holidrive-tarjeta.is-flipped .holidrive-tarjeta-interior {
  transform: rotateY(180deg);
}

.holidrive-cara {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 12px 28px rgba(28, 69, 47, 0.12);
}

.holidrive-cara-imagen {
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #ffffff;
}

.holidrive-cara-imagen img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.holidrive-pista {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #20242a;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.holidrive-cara-info {
  justify-content: center;
  gap: 17px;
  padding: 30px;
  background: #118a48;
  color: #ffffff;
  text-align: left;
  transform: rotateY(180deg);
}

.holidrive-cara-info strong {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.holidrive-cara-info > span {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  line-height: 1.4;
}

.holidrive-cara-info b {
  margin-right: 8px;
}

.holidrive-cara-info small {
  margin-top: 8px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .holidrive-tarjeta-interior {
    transition: none;
  }
}

/* Beneficios */

.holidrive-beneficios {
  margin-top: 105px;
}

.holidrive-titulo {
  max-width: 680px;
  margin-bottom: 30px;
}

.holidrive-titulo h3,
.holidrive-pasos h3 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.holidrive-beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.holidrive-beneficio {
  min-height: 195px;
  padding: 27px;
  border: 1px solid #dcefe2;
  border-radius: 22px;
  background: #ffffff;
  transition: transform 0.25s, box-shadow 0.25s;
}

.holidrive-beneficio:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(28, 69, 47, 0.09);
}

.holidrive-icono {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: #e7f8ea;
  color: #118a48;
  font-size: 1.7rem;
}

.holidrive-beneficio h4 {
  margin: 21px 0 8px;
  font-size: 1.1rem;
}

.holidrive-beneficio p {
  margin: 0;
  color: #596475;
  line-height: 1.6;
}

/* Cómo funciona */

.holidrive-pasos {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 45px;
  margin-top: 100px;
  padding: 40px;
  border-radius: 28px;
  background: #d0fdd7;
  scroll-margin-top: 25px;
}

.holidrive-pasos ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.holidrive-pasos li {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 16px;
  border-radius: 15px;
  background: #ffffff;
  line-height: 1.5;
}

.holidrive-pasos li strong {
  flex: 0 0 auto;
  color: #118a48;
  font-size: 1.15rem;
}

/* ==============================
   ENLACES A LOS SITIOS DE CADA APP
============================== */

.producto-destino {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 70px;
  padding: 28px 32px;
  border-radius: 22px;
}

.producto-destino--app {
  background: #ffffff;
}

.producto-destino--drive {
  background: #d0fdd7;
}

.producto-destino h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.producto-destino p {
  margin: 0;
  color: #596475;
  line-height: 1.5;
}

.producto-destino a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 100px;
  background: #0869dc;
  color: #ffffff;
  font-weight: 800;
  text-align: center;
}

.producto-destino--drive a {
  background: #118a48;
}

.producto-destino a:hover {
  filter: brightness(0.9);
}

/* ==============================
   PIE DE PÁGINA
============================== */

.site-footer {
  background: #272727;
}

.footer-contenido {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
  min-height: 130px;
  padding-block: 24px;
}

.footer-logo {
  justify-self: start;
}

.footer-logo img {
  display: block;
  width: 110px;
  max-height: 54px;
  object-fit: contain;
}

.footer-enlaces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.footer-enlaces a {
  color: #8c8c8c ;
  font-weight: 700;
}

.footer-enlaces a:hover {
  color: white ;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.footer-contenido p {
  justify-self: end;
  margin: 0;
  color: #8c8c8c;
  font-size: 0.85rem;
  text-align: right;
}

/* ==============================
   BOTÓN FLOTANTE: VOLVER ARRIBA
============================== */

.volver-arriba {
  position: fixed;
  z-index: 50;
  right: 26px;
  bottom: 50px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #15297c;
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(100, 54, 23, 0.2);

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.volver-arriba.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.volver-arriba:hover {
  background: #107acc;
  transform: translateY(-3px);
}

.volver-arriba:focus-visible {
  outline: 3px solid #0869dc;
  outline-offset: 4px;
}







/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 32px, 1180px);
  }

  .nav {
    min-height: 72px;
  }

  .brand img {
    width: 94px;
    max-height: 46px;
  }

  .navlinks {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
    color: #25202b;
    font-weight: 700;
  }

  .mobile-menu nav {
    position: absolute;
    z-index: 20;
    top: calc(100% + 16px);
    right: 0;
    display: grid;
    gap: 14px;
    width: min(260px, 85vw);
    padding: 20px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(30, 30, 40, 0.12);
  }

  .portada {
    padding: 54px 0 64px;
  }

  .portada-intro {
    margin-bottom: 32px;
  }

  .portada-intro p {
    font-size: 1rem;
  }

  .productos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .producto-imagen img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }

  .producto-contenido {
    padding: 24px;
  }

  .holiapp-section {
    padding: 65px 0;
  }

  .holiapp-intro {
    margin-bottom: 34px;
  }

  .holiapp-categorias {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holiapp-categoria {
    min-height: 175px;
    padding: 19px;
  }

  .holiapp-experiencia {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 65px;
  }

  .holiapp-pantallas {
    min-height: 400px;
    max-width: 450px;
    margin-inline: auto;
  }

  .holiapp-celular {
    top: 15px;
    width: 46%;
  }

  .celular-login {
    left: 6%;
  }

  .celular-resena {
    right: 6%;
  }

  .celular-marco {
    padding: 16px 5px 7px;
    border-width: 3px;
    border-radius: 24px;
  }

  .celular-camara {
    top: 6px;
    height: 4px;
  }

  .celular-marco img {
    border-radius: 0 0 16px 16px;
  }

    .holidrive-section {
    padding: 65px 0;
  }

  .holidrive-presentacion {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .holidrive-logo {
    width: 145px;
  }

  .holidrive-texto p {
    font-size: 1rem;
  }

  .holidrive-visual {
    padding: 18px;
  }

  .holidrive-tarjeta {
    width: min(100%, 310px);
  }

  .holidrive-cara-info {
    gap: 12px;
    padding: 22px;
  }

  .holidrive-beneficios {
    margin-top: 70px;
  }

  .holidrive-beneficios-grid {
    grid-template-columns: 1fr;
  }

  .holidrive-beneficio {
    min-height: 0;
  }

  .holidrive-pasos {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 70px;
    padding: 25px;
  }

   .producto-destino {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-top: 50px;
    padding: 24px;
  }

  .producto-destino a {
    width: 100%;
  }

    .volver-arriba {
    right: 20px;
    bottom: 38px;
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .holiapp-celular {
    transition: none;
  }
}

@media (max-width: 400px) {
  .holiapp-pantallas {
    min-height: 355px;
  }

  .celulares-indicacion {
    font-size: 0.78rem;
  }
}