* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== TEMA (variables de color) =====
   El verde oliva de marca (--brand) es igual en claro y oscuro.
   El resto de los colores cambian segun [data-theme]. */
:root {
  --brand: #828854;

  --bg-header: #ffffff;
  --bg-section: #f4f5ef;
  --bg-surface: #ffffff;
  --bg-input: #ffffff;
  --bg-alterna: #eceee3;

  --text-primary: #1e1e1e;
  --text-secondary: #4a4a4a;
  --text-nav: #2b2b2b;

  --overlay-fondo: rgba(255, 255, 255, 0.15);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg-header: #14161a;
  --bg-section: #1a1d21;
  --bg-surface: #20242a;
  --bg-input: #20242a;
  --bg-alterna: #14161a;

  --text-primary: #f2f2f0;
  --text-secondary: #b7bcc4;
  --text-nav: #e4e6ea;

  --overlay-fondo: rgba(8, 12, 9, 0.82);

  color-scheme: dark;
}

/* header */

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--bg-header);
  padding: 20px 0;
  z-index: 1000;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

}

.logo{
    align-items: center;
    display: flex;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

.logo-text{
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    color: #828854;
    margin: 0;
    line-height: 1;
}  

.nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
}

.nav a {
    text-decoration: none;
    color: var(--text-nav);
    font-size: 15px;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
}

.nav a:hover {
    color: #828854;
}

.menu {
  display: flex;
  gap: 24px;
  list-style: none;
  position: relative;
  padding-bottom: 10px;
}

.menu::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #828854;
}

.btn-header {
    background-color: #828854;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.btn-header:hover {
    opacity: 0.85;
}

.switch-tema {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;

    border: 1px solid var(--brand);
    border-radius: 999px;
    background-color: transparent;
    padding: 0;
    cursor: pointer;
}

.switch-tema-icono {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--brand);
    pointer-events: none;
}

.switch-tema-icono-sol { left: 7px; }
.switch-tema-icono-luna { right: 7px; }

.switch-tema-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--brand);
    transition: transform 0.3s ease;
}

:root[data-theme="dark"] .switch-tema-thumb {
    transform: translateX(24px);
}

/* seccion nosotros */

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;

   padding-left: 5px;
  padding-right: 60px;
  position: relative;
  z-index: 2;
}

.hero-izquierda {
  max-width: 600px;
}

.hero-derecha {
    width: 350px;
    height: auto;
    align-items: center;
    display: flex;
    gap: 12px;

}

.hero-derecha img {
    height: 70px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

.hero-derecha span{
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    color: #828854;
    margin: 0;
    line-height: 1;
} 

.hero-contenido {
  width: 100%;
  height: 100vh;
  background-image: url("../assets/imgs/fondo de nosotros.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 30px; /* separa del borde izquierdo */
  position: relative;
}

.hero-contenido::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-fondo);
  transition: background-color 0.3s ease;
}

.hero-contenido > * {
  position: relative;
  z-index: 1;
}

.hero-contenido h1 {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 700;
  max-width: 600px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-contenido h1::after {
  content: "";
  display: block;
  width: 220px;
  height: 3px;
  background-color: #828854; /* verde oliva */
  margin-top: 15px;
}

.descripcion {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  max-width: 500px;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.btn-asesoramiento {
  background-color: #828854;
  color: white;
  padding: 12px 28px;
  margin-left: 120px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-bottom: 30px;
  margin-top: 70px;
   transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
   transition: all 0.3s ease;
   
}

.btn-asesoramiento:hover {
    opacity: 0.85;
}

.datos{
    display: flex;
    flex-direction: column;
    margin-top: 60px; 

}
.datos p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin:  0;
  color: var(--text-secondary);
}

/* seccion sobre nosotros */

.nosotros {
  background-color: var(--bg-alterna);
  padding: 80px 0;
  text-align: center;
  transition: background-color 0.3s ease;
}

.nosotros-contenedor {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
}

.nosotros h2 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.linea-nosotros {
  width: 60px;
  height: 3px;
  background-color: var(--brand);
  margin: 0 auto 26px;
}

.nosotros p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
}

.nosotros-highlights {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.nosotros-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 150px;
}

.nosotros-highlight i {
  font-size: 24px;
  color: var(--brand);
}

.nosotros-highlight span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* seccion de servicios */

.servicios {
  background-color: var(--bg-section);
  padding: 80px 0 110px;
}

.servicios-header {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto 60px;
}

.servicios-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.servicios-header p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 540px;
}

.linea-servicios {
  width: 170px;
  height: 2px;
  background-color: #828854;
  margin-top: 12px;
}

.servicios-grid {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
}

.servicios-fila {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 70px 60px;
}

.carrusel-dots {
  display: none;
}

/* ===== CARD ===== */

.card-servicio {
  width: 230px;
  height: 340px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: white;
  background-color: transparent;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-servicio:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

/* Imagen más centrada y más lejana */
.card-servicio img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: center center;
  display: block;

  transform: translateY(0);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-servicio:hover img {
  transform:  translateY(-120px);
}

/* Oscurecido para que texto se lea */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.12) 100%
  );
  pointer-events: none;
}

/* Bloque título + línea: anclado a una altura fija desde el fondo de la
   card, igual en las 7, sin importar cuánto texto tenga el párrafo */
.card-texto {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 45px;
  z-index: 3;

  transform: translateY(0);
  transition: transform 0.65s ease;
}

.card-servicio:hover .card-texto {
  transform: translateY(-40px);
}

.card-texto h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  max-width: 200px;
}

.card-texto span {
  display: block;
  width: 42px;
  height: 3px;
  background-color: #828854;
  margin: 9px 0 0;
}

/* Texto oculto al inicio: posicionado fuera del flujo, justo debajo de la
   línea, para que su largo no mueva la posición del título/línea */
.card-texto p {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;

  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  line-height: 1.35;
  max-width: 200px;
  margin: 12px 0 0;

  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease 0.25s, transform 0.45s ease 0.25s;
}

.card-servicio:hover .card-texto p {
  opacity: 1;
  transform: translateY(0);
}


/* Flechita */
.flecha-card {
  position: absolute;
  right: 10px;
  bottom: 10px;

  width: 28px;
  height: 28px;
  border-radius: 9px;

  background: rgba(130, 136, 84, 0.18);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  z-index: 4;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: bottom 1.2s cubic-bezier(0.4, 0, 0.2, 1),
  transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
  background 0.3s ease;
}

.flecha-card span {
  width: 9px;
  height: 9px;

  border-top: 2px solid white;
  border-left: 2px solid white;

  transform: rotate(45deg);
  margin-top: 3px;
}

.card-servicio:hover .flecha-card {
  bottom: 82px;
  transform: rotate(180deg);

  background: rgba(130, 136, 84, 0.32);
}

/* Formas */

.formas-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-servicio:hover .formas-card {
  transform: translateY(-120px);
}

.forma {
  position: absolute;

  background: rgba(130, 136, 84, 0.12);

  backdrop-filter: blur(2px);

  border: 1px solid rgba(255,255,255,0.03);
}

.marketing-formas .forma-1 {
  width: 160px;
  height: 220px;

  right: -20px;
  top: 40px;

  transform: rotate(32deg);
}

.marketing-formas .forma-2 {
  width: 90px;
  height: 140px;

  left: -30px;
  bottom: 20px;

  transform: rotate(-18deg);
}

.impresion-formas .forma-1 {
  width: 70px;
  height: 300px;

  right: 30px;
  top: -20px;

  transform: rotate(12deg);
}

.impresion-formas .forma-2 {
  width: 140px;
  height: 120px;

  left: -40px;
  bottom: 50px;

  transform: rotate(-35deg);
}

.web-formas .forma-1 {
  width: 120px;
  height: 260px;

  right: -10px;
  top: 10px;

  transform: rotate(24deg);
}

.web-formas .forma-2 {
  width: 60px;
  height: 180px;

  left: 20px;
  bottom: -20px;

  transform: rotate(-18deg);
}

.redes-formas .forma-1 {
  width: 80px;
  height: 280px;

  left: -20px;
  top: 30px;

  transform: rotate(-12deg);
}

.redes-formas .forma-2 {
  width: 120px;
  height: 120px;

  right: -30px;
  bottom: 60px;

  transform: rotate(32deg);
}

.ia-formas .forma-1 {
  width: 60px;
  height: 320px;

  left: 40px;
  top: -40px;

  transform: rotate(35deg);
}

.ia-formas .forma-2 {
  width: 60px;
  height: 320px;

  right: 40px;
  top: -30px;

  transform: rotate(-35deg);
}

.ia-formas .forma-3 {
  width: 160px;
  height: 80px;

  left: 30px;
  bottom: 80px;

  transform: rotate(8deg);
}

.consorcios-formas .forma-1 {
  width: 100px;
  height: 260px;

  right: -10px;
  top: -30px;

  transform: rotate(-22deg);
}

.consorcios-formas .forma-2 {
  width: 150px;
  height: 100px;

  left: -40px;
  bottom: 40px;

  transform: rotate(20deg);
}

.salud-formas .forma-1 {
  width: 130px;
  height: 130px;

  left: -30px;
  top: -20px;

  transform: rotate(15deg);
}

.salud-formas .forma-2 {
  width: 70px;
  height: 290px;

  right: 20px;
  bottom: -30px;

  transform: rotate(-28deg);
}

/* seccion testimonios */

.testimonios {
  background-color: var(--bg-alterna);
  padding: 80px 0;
  text-align: center;
  transition: background-color 0.3s ease;
}

.testimonios-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.linea-testimonios {
  width: 60px;
  height: 3px;
  background-color: var(--brand);
  margin: 0 auto 46px;
}

.testimonios-grid {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonios-track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

/* Carrusel automatico: se activa por JS cuando hay mas de 3 reseñas */
.testimonios-grid.carrusel-auto {
  overflow: hidden;

  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.testimonios-grid.carrusel-auto .testimonios-track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: scrollTestimonios 55s linear infinite;
}

@keyframes scrollTestimonios {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonio-card {
  width: 300px;
  flex-shrink: 0;
  background-color: var(--bg-surface);
  border: 1px solid rgba(130, 136, 84, 0.25);
  border-radius: 14px;
  padding: 26px 24px;
  text-align: left;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.testimonio-estrellas {
  color: var(--brand);
  font-size: 13px;
  margin-bottom: 14px;
}

.testimonio-estrellas i {
  margin-right: 2px;
}

.testimonio-card p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.testimonio-autor {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.link-dejar-resena {
  display: inline-block;
  margin-top: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.link-dejar-resena:hover {
  transform: translateX(4px);
}

/* seccion casos de exito */

.casos-exito {
  background-color: var(--bg-section);
  padding: 80px 0;
  text-align: center;
  transition: background-color 0.3s ease;
}

.casos-exito-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.linea-casos-exito {
  width: 60px;
  height: 3px;
  background-color: var(--brand);
  margin: 0 auto 46px;
}

.casos-exito-grid {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.caso-exito-card {
  width: 300px;
  background-color: var(--bg-surface);
  border-radius: 14px;
  padding: 26px 24px;
  text-align: left;
  transition: background-color 0.3s ease;
}

.caso-exito-servicio {
  display: inline-block;
  background-color: rgba(130, 136, 84, 0.15);
  color: var(--brand);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.caso-exito-card p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* seccion contacto */


.contacto {
  min-height: 100vh;
  background-image: url("../assets/imgs/fondo de nosotros.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 28px 0 70px;
  font-family: 'Inter', sans-serif;
  position: relative;
}

/* En modo oscuro se oscurece la misma imagen de fondo (no se toca el modo claro) */
:root[data-theme="dark"] .contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-fondo);
}

.contacto-contenedor {
  width: 70%;
  max-width: 970px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contacto h2 {
  color: white;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 18px;
}

.linea-contacto {
  width: 135%;
  max-width: none;
  height: 4px;
  background-color: #828854;
  margin: 13px 0 22px;
  transform: translateX(-10%);
}

.contacto h3::after {
  content: "";
  display: block;
  width: 820px;
  height: 4px;
  background-color: #828854;
  margin-top: 18px;
  margin-left: -200px;
}

.contacto h3 {
  font-size: 34px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.contacto-subtitulo {
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.form-contacto {
  width: 100%;
}

.fila {
  display: grid;

  grid-template-columns: 1fr 1fr 1.4fr;

  gap: 14px;

  margin-bottom: 18px;
}

.fila:nth-of-type(2) {
  grid-template-columns: 1fr 1fr;
}

.form-contacto input,
.form-contacto textarea,
.form-contacto select {
  width: 100%;
  border: 3px solid var(--brand);
  border-radius: 5px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  background-color: var(--bg-input);
  color: #177c86;
}

.form-contacto input::placeholder,
.form-contacto textarea::placeholder {
  color: #177c86;
  font-size: 12px;
}

.telefono-container {
  display: grid;

  grid-template-columns: 120px 1fr;

  gap: 10px;

  width: 100%;
}

.codigo-pais {
  width: 120px;

  border: 3px solid var(--brand);
  border-radius: 5px;

  padding: 10px;

  background-color: var(--bg-input);

  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #177c86;

  outline: none;
}

.telefono-container input {
  width: 100%;
}

textarea {
  height: 210px;
  resize: none;
  margin-bottom: 22px;
}

.contacto-footer {
  display: flex;
  align-items: flex-start;
  gap: 34px;
  text-align: left;
}

.contacto-footer button {
  min-width: 260px;
  background-color: #828854;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.contacto-footer p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin: 0;
  max-width: 520px;
}

/* pagina: dejar resena */

.resena-form-seccion {
  min-height: 100vh;
  background-color: var(--bg-section);
  padding: 160px 0 90px;
  transition: background-color 0.3s ease;
}

.resena-form-contenedor {
  width: 90%;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.resena-form-contenedor h1 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.linea-resena {
  width: 60px;
  height: 3px;
  background-color: var(--brand);
  margin: 0 auto 20px;
}

.resena-subtitulo {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.4;
}

.form-resena {
  text-align: left;
}

.fila-resena {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.form-resena input,
.form-resena textarea {
  width: 100%;
  border: 3px solid var(--brand);
  border-radius: 5px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  background-color: var(--bg-input);
  color: #177c86;
  margin-bottom: 18px;
}

.form-resena input::placeholder,
.form-resena textarea::placeholder {
  color: #177c86;
  font-size: 12px;
}

.form-resena textarea {
  height: 150px;
  resize: none;
}

.resena-estrellas-campo {
  margin-bottom: 22px;
}

.resena-estrellas-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.estrellas-radio {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 6px;
}

.estrellas-radio input {
  display: none;
}

.estrellas-radio label {
  font-size: 30px;
  color: rgba(130, 136, 84, 0.25);
  cursor: pointer;
  transition: color 0.2s ease;
}

.estrellas-radio input:checked ~ label,
.estrellas-radio label:hover,
.estrellas-radio label:hover ~ label {
  color: var(--brand);
}

.resena-form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.resena-form-footer button {
  min-width: 220px;
  background-color: var(--brand);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.resena-form-footer p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin: 0;
}

/* pie de pagina*/

.footer {
  background-color: #0f332c;
  padding: 80px 0 120px;
  font-family: 'Inter', sans-serif;
}

.footer-contenedor {
  width: 84%;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 80px;
}



.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 18px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  margin: 0;
}

.footer-col a {
  display: block;
  color: #177c86;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 13px;
  transition: 0.3s ease;
}

.footer-col a:hover {
  color: #828854;
  transform: translateX(4px);
}

.footer-redes {
  display: flex;
  gap: 12px;
}

.red-social {
  width: 30px;
  height: 30px;
  border-radius: 8px;

  background-color: #828854;
  color: #10231f !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  margin-bottom: 0 !important;

  transition: transform 0.6s ease, background-color 0.3s ease;
}

.red-social:hover {
  transform: rotate(360deg) scale(1.08);
  background-color: #a0a866;
}

.footer-linea {
  width: 84%;
  max-width: 1200px;
  height: 2px;
  background-color: #828854;
  margin: 90px auto 0;
}

.footer-logo{
    align-items: center;
    display: flex;
    gap: 12px;

  margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

.footer-Ltext{
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    color: #828854;
    margin: 0;
    line-height: 1;
}  

/* ================= RESPONSIVE ================= */

#menu-toggle {
  display: none;
}

.hamburguesa {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 2000;
}

.hamburguesa span {
  width: 28px;
  height: 3px;
  background-color: #828854;
  border-radius: 3px;
  transition: 0.3s ease;
}

/* SERVICIOS: por debajo de este ancho la fila de 4 cards ya no entra
   completa en una sola línea, así que las 2 filas se "aplanan" en una
   sola secuencia que se acomoda sola (2 o 3 por línea) en vez de forzar
   una agrupación fija que puede quedar desalineada o partida */
@media (max-width: 1240px) {
  .servicios-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .servicios-fila {
    display: contents;
  }
}

/* TABLET */
@media (max-width: 1024px) {
  .nav ul {
    gap: 25px;
  }

  .hero-container {
    padding: 0 40px;
  }

  .hero-contenido h1 {
    font-size: 40px;
  }

  .hero-derecha {
    width: 280px;
  }

  .hero-derecha span {
    font-size: 16px;
  }

  .fila {
    grid-template-columns: 1fr 1fr;
  }

  .telefono-container {
    grid-column: span 2;
  }

  .footer-contenedor {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
}

/* CELULAR */
@media (max-width: 768px) {
  .header {
    padding: 14px 0;
  }

  .container {
    width: 90%;
    justify-content: space-between;
    gap: 0;
  }

  .logo img {
    height: 42px;
  }

  .logo-text {
    font-size: 12px;
  }

  .hamburguesa {
    display: flex;
    margin-left: auto;
  }

  .switch-tema {
    margin-left: 14px;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-header);
    padding: 25px 0;
    display: none;
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-left: 0;
  }

  .menu::after {
    display: none;
  }

  #menu-toggle:checked ~ .nav {
    display: block;
  }

  #menu-toggle:checked + .hamburguesa span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  #menu-toggle:checked + .hamburguesa span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .hamburguesa span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .btn-header {
    display: none;
  }

  /* HERO */
  .hero-contenido {
    height: auto;
    min-height: 100vh;
    padding: 120px 24px 70px;
  }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 50px;
  }

  .hero-contenido h1 {
    font-size: 34px;
  }

  .descripcion {
    font-size: 15px;
  }

  .btn-asesoramiento {
    margin-left: 0;
    margin-top: 25px;
  }

  .datos {
    margin-top: 35px;
  }

  .hero-derecha {
    width: 100%;
    justify-content: center;
  }

  .hero-derecha img {
    height: 55px;
  }

  .hero-derecha span {
    font-size: 15px;
  }

  /* SERVICIOS */
  .servicios {
    padding: 70px 0;
  }

  .servicios-header {
    width: 88%;
  }

  .servicios-header h2 {
    font-size: 28px;
  }

  /* Carrusel horizontal con scroll-snap: reemplaza el apilado vertical.
     justify-content:flex-start (no center): en un contenedor con scroll,
     centrar contenido que desborda puede recortar el inicio en algunos
     navegadores. */
  .servicios-grid {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;

    padding: 0 24px;
  }

  .servicios-grid::-webkit-scrollbar {
    display: none;
  }

  .card-servicio {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .carrusel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
  }

  .carrusel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background-color: rgba(130, 136, 84, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .carrusel-dots .dot.activo {
    background-color: var(--brand);
    transform: scale(1.3);
  }

  /* CONTACTO */
  .contacto-contenedor {
    width: 88%;
  }

  .linea-contacto {
    width: 100%;
    margin: 12px 0 22px;
    transform: none;
  }

  .contacto h3 {
    font-size: 28px;
  }

  .contacto h3::after {
    width: 100%;
    margin-left: 0;
  }

  .fila,
  .fila:nth-of-type(2) {
    grid-template-columns: 1fr;
  }

  .fila-resena {
    grid-template-columns: 1fr;
  }

  .resena-form-seccion {
    padding-top: 120px;
  }

  .telefono-container {
    grid-column: auto;
    grid-template-columns: 110px 1fr;
  }

  .contacto-footer {
    flex-direction: column;
    gap: 20px;
  }

  .contacto-footer button {
    width: 100%;
    min-width: auto;
  }

  /* FOOTER */
  .footer {
    padding: 60px 0 80px;
  }

  .footer-contenedor {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-logo {
    flex-wrap: wrap;
  }

  .footer-linea {
  width: 86%;
  max-width: 1200px;
  height: 2px;
  background-color: #828854;
  margin: 90px auto 0;
  }
  
}

/* CELULAR CHICO */
@media (max-width: 480px) {

    .btn-whatsapp {
    width: 45px;
    height: 45px;

    font-size: 22px;

    bottom: 12px;
    right: 12px;
     opacity: 0.95;
  }

  .hero-contenido h1 {
    font-size: 30px;
  }

  .card-servicio {
    width: 230px;
    height: 340px;
  }

  .telefono-container {
    grid-template-columns: 100px 1fr;
  }

  .codigo-pais {
    width: 100px;
  }
}

.card-servicio.card-activa img {
  transform: translateY(-120px);
}

.card-servicio.card-activa .formas-card {
  transform: translateY(-120px);
}

.card-servicio.card-activa .card-texto {
  transform: translateY(-40px);
}

.card-servicio.card-activa .card-texto p {
  opacity: 1;
  transform: translateY(0);
}

.card-servicio.card-activa .flecha-card {
  bottom: 82px;
  transform: rotate(180deg);
  background: rgba(130, 136, 84, 0.32);
}

html {
  scroll-behavior: smooth;
}

/* Evita que el header fijo tape el titulo de la seccion al navegar por anclas */
#inicio,
#servicios,
#nosotros,
#contacto {
  scroll-margin-top: 100px;
}

/*header ninja*/

.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.activo {
  opacity: 1;
  transform: translateY(0);
}

.header.header-oculto {
  transform: translateY(-100%);
}

.header.header-scroll {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* luz en las cards*/


.card-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(130, 136, 84, 0.35);
  filter: blur(35px);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.card-servicio:hover .card-glow {
  opacity: 1;
}

/* pantalla de carga*/

.loader {
  position: fixed;
  inset: 0;
  background-color: #0f332c;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.oculto {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  align-items: center;
  gap: 16px;

  animation: loaderPulse 1.6s ease-in-out infinite;
}

.loader-content img {
  height: 70px;
  border-radius: 12px;
}

.loader-content span {
  font-family: 'Orbitron', sans-serif;
  color: #828854;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 22px;
}

@keyframes loaderPulse {
  0%, 100% {
    opacity: 0.65;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/*fondo animado*/

.fondo-animado {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur();
  opacity: 0.30;

  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.blob-1 {
  width: 340px;
  height: 340px;

  background: #828854;

  top: 10%;
  left: -80px;

   animation: blobMove1 18s linear infinite;
}

.blob-2 {
  width: 260px;
  height: 260px;

  background: #177c86;

  bottom: 0;
  right: 10%;

  animation: blobMove2 22s linear infinite;
}

.blob-3 {
  width: 180px;
  height: 180px;

  background: #6f7350;

  top: 50%;
  right: 30%;

  animation: blobMove3 16s linear infinite; 
}

@keyframes blobMove1 {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, 30px) scale(1.08); }
  50% { transform: translate(80px, 0) scale(1); }
  75% { transform: translate(40px, -30px) scale(1.12); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobMove2 {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, -40px) scale(1.1); }
  50% { transform: translate(-70px, 0) scale(1); }
  75% { transform: translate(-30px, 40px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobMove3 {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(25px, -25px) scale(1.15); }
  50% { transform: translate(50px, 0) scale(1); }
  75% { transform: translate(25px, 25px) scale(1.12); }
  100% { transform: translate(0, 0) scale(1); }
}

.alerta-formulario {
  position: fixed;
  top: 90px;
  right: 25px;
  background-color: #828854;
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  z-index: 999999;
}

@keyframes aparecerAlerta {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

/* boton de whatsapp*/

.btn-whatsapp {
  position: fixed;

  bottom: 25px;
  right: 25px;

  width: 65px;
  height: 65px;

  border-radius: 50%;

  background-color: #25D366;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 34px;

  text-decoration: none;

  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);

  z-index: 9998;

  transition: all 0.3s ease;
   opacity: 0.95;
}

.btn-whatsapp:hover {
  transform: translateY(-5px) scale(1.08);

  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.55);
}

.btn-whatsapp::before {
  content: "";

  position: absolute;

  width: 100%;
  height: 100%;

  border-radius: 50%;

  border: 2px solid #25D366;

  animation: pulseWhatsapp 2s infinite;
}

@keyframes pulseWhatsapp {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.45);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .card-servicio {
    overflow: hidden !important;
  }

  .card-servicio img,
  .card-servicio .formas-card,
  .card-servicio .card-texto,
  .card-servicio .flecha-card {
    transition: 0.45s ease !important;
  }

  /* Estado cerrado */
  .card-servicio .card-texto {
    bottom: 45px !important;
    transform: none !important;
  }

  .card-servicio .card-texto p {
    opacity: 0 !important;
    transform: translateY(12px) !important;
  }

  .card-servicio .flecha-card {
    bottom: 10px !important;
    transform: rotate(180deg) !important;
  }

  .card-servicio img {
    transform: scale(1) !important;
  }

  .card-servicio::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 13, 0.18);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    transition: 0.45s ease;
  }

  /* Estado abierto */
  .card-servicio.card-mobile-abierta {
    transform: scale(0.98) !important;
  }

  .card-servicio.card-mobile-abierta img {
    transform: scale(1.08) !important;
    filter: brightness(0.75);
  }

  .card-servicio.card-mobile-abierta .formas-card {
    transform: translateY(-50px) !important;
  }

  .card-servicio.card-mobile-abierta .card-texto {
    bottom: 100px !important;
    transform: none !important;
  }

  .card-servicio.card-mobile-abierta .card-texto p {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .card-servicio.card-mobile-abierta .flecha-card {
    bottom: 82px !important;
    transform: rotate(180deg) !important;
    background: rgba(130, 136, 84, 0.32);
  }

  .card-servicio.card-mobile-abierta::after {
    opacity: 1;
  }

  .card-servicio.card-mobile-abierta .card-texto,
  .card-servicio.card-mobile-abierta .flecha-card {
    z-index: 5;
  }

  .card-servicio:hover {
    transform: none !important;
  }

  .card-servicio:hover img,
  .card-servicio:hover .formas-card,
  .card-servicio:hover .card-texto {
    transform: none;
  }
}
