:root {
  --light-gray: #cbd3d6;
  --mid-blue: #1d3b57;
  --light-blue: #496a8c;
  --white: #ffffff;
  --green-accent: #35665b;
  --dark-blue: #183753;
  --beige: #f5f0cd;
}

/* Base */
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: var(--light-gray);
  color: var(--dark-blue);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  height: 100%;
}

html {
  overflow-y: scroll; /* Fuerza scrollbar para que no aparezca de golpe */
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Botón principal */
.btn-primary {
  display: inline-block;
  background-color: var(--mid-blue);
  color: var(--light-gray);
  padding: 12px 24px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    padding 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Efecto hover atractivo */
.btn-primary:hover {
  background-color: var(--dark-blue);
  color: var(--white);
  border: 2px solid var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* fondo semi-transparente */
  background-color: rgba(203, 211, 214, 0.5); /* color con opacidad */
  backdrop-filter: blur(12px);
  transition: all 0.4s ease;
  padding: 20px 40px;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1.2rem;
  will-change: transform, padding, background-color;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* línea sutil */
}

.logo {
  height: 3rem;
  transition: height 0.3s ease;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

header.hide {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--dark-blue);
  margin-left: 20px;
  padding: 8px 0;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--mid-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--mid-blue);
}

/* Language Switcher */
.language-switcher-wrapper {
  position: relative;
  display: inline-block;
  font-family: "Montserrat", sans-serif;
}

.lang-btn-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark-blue);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-btn-toggle:hover {
  background-color: rgba(24, 55, 83, 0.08);
  color: var(--mid-blue);
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--white);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border: 1px solid var(--light-blue);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 999;
  min-width: 150px;
}

.language-dropdown li button {
  background: none;
  border: none;
  padding: 10px 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-blue);
  transition: background-color 0.2s ease;
  font-family: "Montserrat", sans-serif;
}

.language-dropdown li button:hover {
  background-color: rgba(24, 55, 83, 0.05);
  color: var(--mid-blue);
}

.language-switcher-wrapper.open .language-dropdown {
  display: block;
}

/* HERO */
.hero {
  position: relative;
  background-image: url("/Images/Pig\ Calc.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-gray);
  overflow: hidden;
}

/* Capa oscura encima de la imagen para mejorar contraste */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* oscurece la imagen */
  z-index: 1;
}

/* Contenedor del texto */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
  animation: fadeIn 1s ease-in;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--light-gray);
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--light-gray);
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* Botón */
.hero-content .btn-primary {
  font-size: 1rem;
  background-color: var(--light-gray);
  color: var(--dark-blue);
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  transition: background-color 0.3s ease;
}

.hero-content .btn-primary:hover {
  background-color: var(--mid-blue);
  color: var(--light-gray);
}

/* Hero CTA buttons */
/* Espaciado y estilos de botones del hero */
.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 1.5rem;
}

/* Versión alternativa del botón primario */
.btn-primary.alt {
  background-color: transparent;
  color: var(--light-gray);
  border: 2px solid var(--light-gray);
}

.btn-primary.alt:hover {
  background-color: var(--light-gray);
  color: var(--dark-blue);
  transform: translateY(-2px);
}

.btn-primary span.material-symbols-outlined {
  font-size: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Estado normal BOTON "Discover...": ícono azul oscuro */
.btn-primary .discover-icon {
  color: var(--dark-blue);
  transition: color 0.3s ease;
}

/* Estado hover: ícono gris claro */
.btn-primary:hover .discover-icon {
  color: var(--light-gray);
}

/* Estado normal BOTONN "Get in...: gris claro */
.btn-primary.alt .get-in-touch-icon {
  color: var(--light-gray);
  transition: color 0.3s ease;
}

/* Estado hover: azul oscuro */
.btn-primary.alt:hover .get-in-touch-icon {
  color: var(--dark-blue);
}

/* ANIMATIONS */
.animate-fadein {
  animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECTION - general container */
.section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  color: var(--dark-blue);
  margin-bottom: 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* ABOUT.html */

.about-hero-overlay {
  position: relative;
  height: 60vh;
  background-image: url("/images/AboutRhemPicture.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--light-gray);
}

.about-hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.about-hero-overlay .slogan-block {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 2;
  text-align: left;
}

.about-hero-overlay .slogan-block h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--light-gray);
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.about-hero-overlay .slogan-block p {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--light-gray);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ÍCONOS en la sección about */
.about i {
  color: var(--mid-blue);
  margin-right: 12px;
  font-size: 1.1rem;
  vertical-align: middle;
  min-width: 20px;
}

.strong-clean {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  border: none !important;
  padding: 0;
  margin: 0;
  font-size: inherit;
  display: inline;
}

/* WHY RHEM */
.why-rhem-section {
  padding: 40px 20px;
  font-size: 1.1em;
  line-height: 1.6;
}

.why-rhem-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.highlight {
  margin-top: 24px;
  font-weight: 600;
  color: #223c60;
}

.why-choose {
  flex: 1 1 45%;
}

.why-rhem-section .why-choose > h2 {
  position: relative;
  font-size: 2.4rem;
  margin-bottom: 32px;
  text-align: center;
  color: var(--dark-blue);
}

.why-rhem-section .why-choose > h2::after {
  content: "";
  display: block;
  width: 20%;
  height: 6px;
  background-color: var(--dark-blue);
  margin: 12px auto 0;
  border-radius: 4px;
}

.reasons-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* siempre 2 columnas en desktop */
  gap: 24px;
}

.reason {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.reason .icon {
  font-size: 26px;
  color: var(--dark-blue);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  flex-shrink: 0;
}

.reason h3 {
  margin: 0;
  color: #223c60;
}

.reason p {
  margin: 8px 0 0;
  color: #444;
}

/* SERVICES PREVIEW section */

/* TODO ESTO ES PARA que funcione bien el carrusel y las flechas para desplazarse */
.carousel-wrapper {
  position: relative;
  overflow: visible; /* ← permite que las flechas salgan del wrapper */
  padding: 0 48px;
}

.carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 24px;
  padding: 20px 0;
  scroll-behavior: smooth;
  list-style: none;
  margin: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--mid-blue);
  border: none;
  border-radius: 50%;
  padding: 8px;
  z-index: 10;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  animation: nudge 2s infinite ease-in-out; /* 👈 AQUÍ VA LA ANIMACIÓN */
}

.carousel-arrow.left {
  left: -20px;
}

.carousel-arrow.right {
  right: -20px;
}

/* Esconder las flechas cuando no son necesarias */
.carousel-arrow .material-symbols-outlined {
  font-size: 28px;
  color: var(--light-gray);
}

.carousel-arrow.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 20px 0;
  list-style: none;
  margin: 0;
  padding-left: 0;
  scrollbar-width: none; /* Firefox */
}
.carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel > .service-card {
  flex: 0 0 calc((100% - 3 * 24px) / 4); /* 4 at a time */
  scroll-snap-align: start;
  min-width: 240px;
}

.carousel-arrow.right.paused {
  animation: none;
}

.service-card h3 {
  hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ABOUT section content */
.about {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.6;
}

.about p {
  color: #444; /* texto normal en gris suave */
  margin-bottom: 1rem;
}

/* Highlighted statement */
.about p strong {
  font-size: 1.2em;
  color: var(--mid-blue) !important;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--mid-blue); /* subrayado sutil */
  padding-bottom: 2px;
}

/* === SERVICES TOOLS SECTION, services.html === */

/* FONDO GENERAL DE LA PÁGINA DE SERVICIOS */
main.services-background {
  background-image: url("/images/BG contact 3.svg"); /* corrige ruta si es necesario */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  z-index: 1;
  padding: 0;
}

/* Primer bloque de contenido sin margen arriba */
.services-tools-section {
  padding: 60px 20px 40px; /* 👈 sin espacio arriba si no quieres separación */
  margin-top: 0; /* 👈 por si lo hereda de otro lado */
}

.services-tools-section h2 {
  margin-top: 0; /* 👈 importante */
}

/* DISTRIBUCIÓN DE TEXTO Y LOGOS */
.services-tools-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* LADO IZQUIERDO: TEXTO */
.services-intro {
  flex: 1 1 40%;
  display: flex;
  align-items: center;
}

.services-intro h2 {
  font-size: 2.2rem;
  color: var(--dark-blue);
  font-weight: 600;
  line-height: 1.3;
}

/* LADO DERECHO: CONTENEDOR CON FONDO PARA LOS LOGOS */
.tools-logo-container {
  flex: 1 1 60%;
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 12px;
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

/* LOGO INDIVIDUAL */
.tool-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.tool-slide img {
  max-height: 25vh;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.tool-slide:hover img {
  transform: scale(1.1);
  filter: none;
  cursor: pointer;
}

/* FUll RANGE of SERVICES */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.service-card {
  background-color: var(--light-gray);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  cursor: default;
}

a.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card h3 {
  margin-top: 12px;
  font-size: 1.2em;
  color: var(--dark-blue);
}

.service-card p {
  font-size: 0.95em;
  color: #444;
  margin-top: 8px;
}

.material-symbols-outlined {
  font-size: 40px;
  color: var(--mid-blue);
}

/* PRICING.html */
/* === BACKGROUND === */
.pricing-background {
  background-image: url("/images/BG contact 3.svg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* === SECTIONS === */
.pricing-page .section {
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 48px 24px;
  background-color: var(--light-gray);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  font-family: "Montserrat", sans-serif;
  color: var(--dark-blue);
  font-size: 1rem;
  line-height: 1.7;
}

.pricing-page .section:first-of-type {
  padding-top: 24px;
  margin-top: 0;
}

/* === HEADINGS === */
.pricing-page h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 32px;
  font-weight: 600;
}

.pricing-page .intro-text {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 1000px;
  margin: 0 auto 32px;
  text-align: center;
  color: #223c60;
}

.pricing-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.4;
  text-transform: none;
  background: none;
  padding: 0;
  border-radius: 0;
}

.pricing-page h2.highlight.green {
  background-color: var(--green-accent);
  color: var(--light-gray);
  border-radius: 8px;
  padding: 8px 16px;
}

/* === TABLES === */
.table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--light-gray);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
}

thead {
  background-color: var(--dark-blue);
  color: var(--light-gray);
  font-weight: 600;
}

th,
td {
  padding: 14px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* === FIXED PRICES GRID === */
.fixed-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  /* Este detalle es clave: */
  align-items: stretch; /* Hace que todos los ítems se estiren verticalmente */
}

/* === Tarjeta individual === */
.fixed-price-item {
  position: relative;
  background-color: var(--light-gray);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  /* NO pongas height o min-height */
}

.fixed-price-item:hover {
  transform: translateY(-4px);
}

/* Ícono en la parte superior */
.fixed-price-item i {
  font-size: 28px;
  color: var(--mid-blue);
}

/* Texto principal */
.fixed-price-item p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-blue);
}

/* Precio en negrita */
.fixed-price-item span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #223c60;
}

/* === Botón de info (con estilo actual, no se modifica) === */
.expand-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.expand-btn:hover {
  transform: scale(1.1);
}

/* === Contenedor del popup === */
.popup-info {
  position: absolute;
  bottom: 50px; /* espacio sobre el botón */
  right: 12px;
  width: 300px;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 10;
  font-size: 0.85rem;
  color: #333;
  text-align: left;
}

/* Flechita del popup */
.popup-info::before {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 20px;
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/* === Clase utilitaria para ocultar === */
.hidden {
  display: none;
}

/* === TASK LIST === */
.task-list {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}

.task-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.task-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.85rem;
  color: var(--mid-blue);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .pricing-page .section {
    padding: 32px 16px;
    margin-bottom: 48px;
  }

  .pricing-page h1 {
    font-size: 1.8rem;
  }

  .pricing-page h2.highlight {
    font-size: 1.1rem;
  }

  .fixed-prices li {
    font-size: 0.95rem;
  }

  .task-list li {
    font-size: 0.95rem;
  }
  .fixed-price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-page h1 {
    font-size: 1.6rem;
  }

  .pricing-page .section {
    padding: 28px 14px;
  }

  .task-list li,
  .fixed-prices li {
    font-size: 0.9rem;
  }

  .fixed-price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pricing-page h1 {
    font-size: 1.4rem;
  }

  .pricing-page h2.highlight {
    font-size: 0.95rem;
  }

  .pricing-page .section {
    padding: 24px 12px;
  }

  .task-list li,
  .fixed-prices li {
    font-size: 0.85rem;
  }
  .fixed-price-grid {
    grid-template-columns: 1fr;
  }
}

/* contact.html */

/* Contact Background */
main.contact-background {
  background-image: url("/images/BG\ contact\ 3.svg"); /* ajusta la ruta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* ← esto hace que el fondo no se mueva */
  position: relative;
  min-height: 100vh;
  z-index: 1;
  padding: 0;
}

/* CONTACT HERO*/
.contact-hero {
  background-size: cover;
  background-position: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--dark-blue);
}

.contact-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--dark-blue);
  margin-bottom: 8px;
}

.contact-underline {
  width: 60px;
  height: 4px;
  background-color: var(--dark-blue);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.contact-intro {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  color: #4a5568; /* tono gris profesional */
  text-align: center;
  line-height: 1.6;
}

/* FORM WRAPPER */
.contact-form-section {
  background-color: var(--light-gray);
  padding: 80px 20px;
}

/* FORM STRUCTURE */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 80px;
  background: var(--light-gray);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* TWO-COLUMN LAYOUT */
.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1; /* ← Esto es lo que hace que cada campo sea 50% */
  display: flex;
  flex-direction: column;
  text-align: left;
}

.full-width {
  width: 100%;
}

/* INPUT STYLING */
.contact-form label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #223c60;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 16px;
  border: none;
  border-bottom: 1px solid var(--dark-blue);
  background: transparent;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--mid-blue);
}

.contact-form textarea {
  resize: none; /* disables bottom-right drag */
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1; /* ← Esto es lo que hace que cada campo sea 50% */
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Asegura que el select no rompa layout */
.contact-form select {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  padding: 16px;
  border: 1px solid var(--dark-blue);
  border-radius: 6px;
  background-color: var(--light-gray);
  color: #223c60;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23223c60' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.contact-form select:focus {
  outline: none;
  border-color: var(--mid-blue);
}

.btn-submit {
  background-color: var(--dark-blue);
  color: var(--light-gray);
  padding: 16px 32px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-self: center; /* ← CENTRA el botón */
  transition: background-color 0.3s ease;
  text-align: center;
}
.btn-submit:hover {
  background-color: var(--mid-blue);
}

/* FOOTER */
.footer {
  background-color: var(--dark-blue);
  color: var(--light-gray);
  padding: 40px 20px 20px;
  font-size: 0.9rem;
}

.footer a {
  color: var(--light-gray);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mid-blue);
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1 1 33%;
  padding: 10px;
}

.footer-left {
  text-align: left;
  max-width: 300px;
  line-height: 1.6;
}

.footer-left h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--light-gray);
}

.highlight-boekhouding {
  color: lightblue; /* or any other color */
  font-weight: 600;
}

.footer-right {
  text-align: right;
}

.footer-right ul {
  list-style: none;
  padding: 0;
}

.footer-right li {
  margin-bottom: 0.5rem;
}

.footer-center {
  display: 1 1 auto;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #aabacf;
}

.footer-logo {
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  padding-left: 0;
}

/* Tooltip container */
.tooltip {
  position: relative;
  z-index: 50;
  cursor: help;
  display: inline-block;
  font-size: 0.95rem;
  color: var(--light-gray);
}

/* Tooltip text (hidden by default) */
.tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: clamp(200px, 50vw, 260px);
  background-color: var(--dark-blue);
  color: var(--light-gray);
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
  z-index: 100;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: normal;
  margin-left: 10px; /* espacio entre el texto y el tooltip */
}

/* Show tooltip on hover */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* MENU TOGGLE */
/* Estilo general del botón */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-blue);
  font-size: 32px;
  margin-left: auto;
}

.service-card {
  background-color: var(--light-gray);
  color: var(--dark-blue);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.service-card p {
  color: var(--dark-blue); /* color del texto normal */
}

/* .service-card:hover {
  background-color: var(--dark-blue);
  color: #d6dde0;
  border: 2px solid var(--mid-blue);
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
} */
/* 
.service-card:hover p, {
  color: #d6dde0;
}

.service-card:hover .material-symbols-outlined {
  color: #d6dde0;
} */

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  /* Separa un poco el header del menu de hamburguesa cuando esta abierto, como un gap entre el menu y el header */
  header {
    padding: 20px 20px;
    justify-content: space-between;
  }

  /* Ajusta el tamaño de los iconos */
  .hamburger {
    display: block;
    z-index: 1000; /* Asegura que esté sobre el contenido */
  }

  .hamburger .hamburger-inner,
  .hamburger .hamburger-inner::before,
  .hamburger .hamburger-inner::after {
    background-color: var(
      --dark-blue
    ); /* o el color que quieras para las líneas */
  }

  .hamburger.is-active .hamburger-inner,
  .hamburger.is-active .hamburger-inner::before,
  .hamburger.is-active .hamburger-inner::after {
    background-color: var(--light-blue); /* o cualquier otro color más claro */
  }

  nav a.active::after {
    width: 0 !important;
  }

  .header-right.active nav a {
    color: var(--light-gray);
  }

  header.scrolled {
    padding: 10px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* puedes ajustar otros estilos si lo deseas */
  }

  header.scrolled .logo {
    height: 2rem;
  }

  header.hide-on-scroll {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }

  .header-right {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--mid-blue);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    z-index: 999;
  }

  .header-right.active {
    max-height: 500px;
    opacity: 1;
    padding: 20px 0;
  }

  .header-right nav a.active {
    color: var(--white);
    font-weight: bolder;
  }

  .header-right nav a {
    position: relative; /* necesario para que ::before se posicione bien */
  }

  .header-right.closing {
    max-height: 0;
    opacity: 0;
    padding: 0;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  nav a {
    margin: 12px 0;
    font-size: 1.1em;
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    z-index: 2;
    position: relative;
  }

  .hero {
    height: 60vh; /* 👈 shorter hero image on mobile */

    background-image: url("/Images/white\ calculator.png"); /* Ajusta la imagen para móvil */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: none;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
    text-shadow: none;
  }

  .hero a.btn-primary {
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 8px;
  }

  /* Hero Buttons */
  .hero-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-cta-buttons a {
    width: 100%;
    text-align: center;
  }

  /* WHY RHEM Responsive */
  .why-rhem-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .why-rhem-section .why-choose > h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 16px;
  }

  .reasons-grid {
    grid-template-columns: 1fr; /* Cambia a una sola columna en móvil */
    padding: 0;
  }

  .reason {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
  }

  .reason .icon {
    font-size: 24px; /* reduce el tamaño del icono */
    width: 32px; /* ajusta el ancho del icono */
    height: 32px; /* ajusta la altura del icono */
    line-height: 32px; /* centra el icono verticalmente */
  }

  .reason h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-weight: 600; /* Black (very bold) */
  }

  .reason p {
    font-size: 1rem;
  }

  /* Services */
  @media (max-width: 768px) {
    .services-tools-container {
      flex-direction: column;
      gap: 32px;
      text-align: center;
    }

    .services-intro {
      justify-content: center;
      text-align: center;
    }

    .services-intro h2 {
      font-size: 1.6rem;
      line-height: 1.4;
    }

    .tools-logo-container {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 24px;
      padding: 20px;
    }

    .tool-slide {
      flex: 1 1 50%;
      max-width: 220px;
      padding: 12px;
    }

    .tool-slide img {
      width: 100%;
      max-height: none;
      height: auto;
      object-fit: contain;
      filter: grayscale(0);
      transition: transform 0.3s ease;
    }

    .services {
      grid-template-columns: 1fr; /* Cambia a una sola columna si deseas */
      gap: 16px; /* O el valor que quieras para reducir el espacio */
    }
  }

  /* FOOTER */
  .footer-content {
    display: flex; /* En lugar de grid */
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: cente;
    text-align: left;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mid-blue);
  }

  /* Oculta la dirección, título y links en móvil */
  .footer-address,
  .footer-title,
  .footer-right {
    display: none;
  }

  .footer-left,
  .footer-center {
    margin-bottom: 10px;
  }

  .footer-logo {
    max-width: 160px;
    height: auto;
    margin: 0 auto 10px;
    padding-left: 0; /* elimina el padding izquierdo en móvil */
    align-content: center;
  }

  .footer-bottom {
    font-size: 0.75rem;
    margin-top: 10px;
  }

  /* Contact form responsive layout */
  @media (max-width: 768px) {
    .contact-form {
      max-width: 100%;
      margin: 0;
      padding: 0;
      background: none;
      border-radius: 0;
      box-shadow: none;
      gap: 18px;
    }

    .contact-form-section {
      padding: 0;
    }

    .form-row {
      flex-direction: column;
      gap: 16px;
    }

    .form-group {
      width: 100%;
      padding: 16px;
      box-sizing: border-box;
    }

    .form-group.full-width {
      width: 100%;
    }

    .btn-submit {
      margin: 16px;
      border-radius: 8px;
    }
  }

  /* para hacer el grid de reasons por filas */
  .reasons-grid {
    grid-template-columns: 1fr; /* cambia a 1 columna en pantallas pequeñas */
  }

  .logo {
    height: 2.8rem; /* reduce el tamaño del logo en móvil */
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* LANGUAGE SWITCHER PHONE */
@media (max-width: 768px) {
  .language-switcher-wrapper.mobile-lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 12px;
    z-index: 999;
  }

  .language-switcher-wrapper.mobile-lang .lang-btn-toggle {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 1.1em;
    font-weight: 600;
    background-color: transparent;
    color: var(--light-gray);
    padding: 12px 0;
    border: none;
  }

  .language-switcher-wrapper.mobile-lang .language-dropdown {
    display: none;
    position: static;
    background-color: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .language-switcher-wrapper.mobile-lang.open .language-dropdown {
    display: block;
  }

  .language-switcher-wrapper.mobile-lang .language-dropdown li button {
    width: 100%;
    padding: 10px 0;
    background: none;
    border: none;
    color: var(--light-gray);
  }
}
