@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* VARIABLES GLOBALES
   Afecta colores, sombras y valores reutilizados en toda la página. */
:root {
  --azul-oscuro: #172033;
  --azul-medio: #2563eb;
  --azul-hover: #1d4ed8;
  --celeste: #38bdf8;
  --celeste-suave: #e0f2fe;
  --blanco: #ffffff;
  --gris-fondo: #f8fafc;
  --gris-texto: #64748b;
  --texto: #0f172a;
  --borde: #e2e8f0;
  --sombra: 0 18px 40px rgba(15, 23, 42, 0.10);
  --sombra-hover: 0 24px 55px rgba(37, 99, 235, 0.18);
}

/* RESET Y BASE
   Limpia estilos por defecto y estabiliza el scroll general del sitio. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--texto);
  background: var(--gris-fondo);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* HEADER Y NAVEGACION
   Afecta el encabezado, logo, menú principal y botón de login. */
header {
  width: 100%;
  min-height: 78px;
  background: rgba(23, 32, 51, 0.97);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.18);
}

.container {
  width: min(1200px, 90%);
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-circle {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  background: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.18);
  transform: translateY(2px);
  overflow: hidden;
}

.logo-circle img {
  width: 125%;
  height: 125%;
  object-fit: contain;
  display: block;
}

.logo-text h2 {
  color: var(--blanco);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  margin-top: 7px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  color: var(--blanco);
  font-weight: 600;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

nav a:not(.btn-primary)::after {
  content: "";
  width: 0;
  height: 2px;
  background: var(--celeste);
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: width 0.3s ease;
}

nav a:not(.btn-primary):hover {
  color: var(--celeste);
}

nav a:not(.btn-primary):hover::after {
  width: 100%;
}

/* BOTONES
   Afecta botones principales, secundarios y botón de acceso/login. */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 7px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--azul-medio);
  color: var(--blanco);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.30);
}

.btn-primary:hover {
  background: var(--azul-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--blanco);
  color: var(--azul-medio);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-secondary:hover {
  background: var(--celeste-suave);
  transform: translateY(-2px);
}

.login-btn {
  padding: 10px 18px;
  min-height: 42px;
  white-space: nowrap;
}

/* HERO PRINCIPAL
   Afecta la primera sección de index.html. */
.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 20px;
  color: var(--blanco);
  text-align: center;
  background:
    linear-gradient(rgba(23, 32, 51, 0.82), rgba(23, 32, 51, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.28), transparent 32%),
    radial-gradient(circle at 80% 25%, rgba(37, 99, 235, 0.30), transparent 30%),
    linear-gradient(135deg, #172033, #1e3a8a);
}

.hero-content {
  width: min(900px, 95%);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.15;
  margin-bottom: 22px;
  font-weight: 800;
}

.hero p {
  width: min(760px, 100%);
  margin: 0 auto 34px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ESTADISTICAS
   Afecta los indicadores de experiencia, proyectos, soporte y compromiso. */
.stats {
  width: min(1100px, 90%);
  margin: -58px auto 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 5;
}

.stat {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}

.stat h2 {
  color: var(--azul-medio);
  font-size: 34px;
  margin-bottom: 4px;
}

.stat p {
  color: var(--gris-texto);
  font-weight: 600;
}

/* SECCIONES GENERALES
   Afecta espaciados y títulos compartidos entre varias secciones. */
section {
  scroll-margin-top: 100px;
}

.services,
.business-solutions,
.why-us,
.portfolio,
.contact,
.work-process,
.use-cases {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 52px;
}

.section-title h2 {
  color: var(--texto);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--gris-texto);
  font-size: 17px;
}

/* SERVICIOS
   Afecta las tarjetas de servicios principales. */
.service-grid {
  width: min(1200px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-box {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 38px 26px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-box::before {
  content: "";
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--azul-medio), var(--celeste));
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-hover);
  border-color: #bfdbfe;
}

.service-box:hover::before {
  transform: scaleX(1);
}

.service-box i {
  color: var(--azul-medio);
  font-size: 46px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.service-box:hover i {
  color: var(--celeste);
  transform: scale(1.08);
}

.service-box h3 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--texto);
}

.service-box p {
  color: var(--gris-texto);
  font-size: 15px;
}

/* SOLUCIONES PYME
   Afecta la lista de soluciones empresariales. */
.business-solutions {
  background: var(--blanco);
}

.solutions-grid {
  width: min(1100px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.solution-item {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  min-height: 76px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--azul-oscuro);
  font-weight: 700;
  transition: all 0.3s ease;
}

.solution-item:hover {
  background: linear-gradient(135deg, var(--azul-medio), var(--celeste));
  color: var(--blanco);
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.22);
}

/* COMO TRABAJAMOS
   Afecta el proceso de trabajo paso a paso. */
.work-process {
  background: linear-gradient(180deg, #f8fafc, #eff6ff);
}

.process-grid {
  width: min(1200px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.process-step {
  position: relative;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 34px 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.process-step::before {
  content: "";
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--azul-medio), var(--celeste));
  position: absolute;
  top: 0;
  left: 0;
}

.process-step:hover {
  transform: translateY(-7px);
  box-shadow: var(--sombra-hover);
  border-color: #bfdbfe;
}

.process-number {
  width: 34px;
  height: 34px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--azul-medio);
  color: var(--blanco);
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.process-step i {
  color: var(--azul-medio);
  font-size: 34px;
  margin-bottom: 18px;
}

.process-step h3 {
  font-size: 18px;
  color: var(--texto);
  margin-bottom: 12px;
}

.process-step p {
  color: var(--gris-texto);
  font-size: 14px;
}

/* POR QUE ELEGIRNOS
   Afecta las tarjetas de ventajas competitivas. */
.why-us {
  background: linear-gradient(180deg, #f8fafc, #eff6ff);
}

.why-grid {
  width: min(1050px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 30px 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sombra-hover);
  border-color: #bfdbfe;
}

.why-card h3 {
  color: var(--azul-medio);
  font-size: 19px;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--gris-texto);
  font-size: 15px;
}

/* CASOS DE USO
   Afecta tarjetas por tipo de negocio: comercios, clínicas, colegios, etc. */
.use-cases {
  background: var(--blanco);
}

.use-cases-grid {
  width: min(1200px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.use-case-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 32px 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.use-case-card::before {
  content: "";
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--azul-medio), var(--celeste));
  position: absolute;
  top: 0;
  left: 0;
}

.use-case-card:hover {
  transform: translateY(-7px);
  border-color: #bfdbfe;
  box-shadow: var(--sombra-hover);
}

.use-case-card i {
  color: var(--azul-medio);
  font-size: 36px;
  margin: 0 auto 18px;
  display: block;
  text-align: center;
}

.use-case-card h3 {
  color: var(--texto);
  font-size: 19px;
  margin-bottom: 12px;
  text-align: center;
}

.use-case-card p {
  color: var(--gris-texto);
  font-size: 15px;
  text-align: center;
}

/* PORTAFOLIO
   Afecta las tarjetas de proyectos destacados. */
.portfolio {
  background: var(--blanco);
}

.portfolio-grid {
  width: min(1100px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portfolio-card {
  min-height: 150px;
  border-radius: 8px;
  padding: 26px;
  color: var(--blanco);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(rgba(23, 32, 51, 0.35), rgba(23, 32, 51, 0.88)),
    linear-gradient(135deg, var(--azul-medio), var(--azul-oscuro));
  box-shadow: var(--sombra);
  transition: all 0.3s ease;
  overflow: hidden;
}

.portfolio-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sombra-hover);
}

.portfolio-card h3 {
  font-size: 21px;
}

/* CONTACTO
   Afecta el formulario, datos de contacto y redes sociales superiores. */
.contact {
  background: linear-gradient(135deg, #172033, #1e3a8a);
}

.contact .section-title h2,
.contact .section-title p {
  color: var(--blanco);
}

.contact-container {
  width: min(1050px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: start;
}

form {
  background: var(--blanco);
  padding: 34px;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

form input,
form textarea {
  width: 100%;
  border: 1px solid var(--borde);
  border-radius: 6px;
  padding: 14px 15px;
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--texto);
  outline: none;
  transition: all 0.3s ease;
}

form textarea {
  min-height: 135px;
  resize: vertical;
}

form input:focus,
form textarea:focus {
  border-color: var(--azul-medio);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

form button {
  width: 100%;
  border: none;
  background: var(--azul-medio);
  color: var(--blanco);
  padding: 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
}

form button:hover {
  background: var(--azul-hover);
  transform: translateY(-2px);
}

.contact-container > div:not(:first-child) {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 32px;
  color: var(--blanco);
}

.contact-info h3 {
  color: var(--blanco);
  font-size: 22px;
  margin-bottom: 20px;
}

.contact-container p {
  margin-bottom: 15px;
  color: #e0f2fe;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.social-icons a {
  width: 42px;
  height: 42px;
  background: var(--blanco);
  color: var(--azul-medio);
  border-radius: 7px;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--celeste);
  color: var(--azul-oscuro);
  transform: translateY(-4px);
}

/* PAGINA NOSOTROS
   Afecta nosotros.html: hero, misión, visión, filosofía, valores y CTA. */
.about-hero {
  min-height: 420px;
  padding: 90px 20px;
  background:
    linear-gradient(rgba(23, 32, 51, 0.86), rgba(23, 32, 51, 0.92)),
    linear-gradient(135deg, #172033, #1e3a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanco);
}

.about-hero-content {
  width: min(850px, 94%);
}

.about-hero-content span {
  display: inline-block;
  color: var(--celeste);
  font-weight: 700;
  margin-bottom: 14px;
}

.about-hero-content h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  margin-bottom: 22px;
}

.about-hero-content p {
  color: #dbeafe;
  font-size: 18px;
}

.about-section {
  position: relative;
  padding: 90px 20px;
  background:
    linear-gradient(rgba(248, 250, 252, 0.94), rgba(248, 250, 252, 0.97)),
    url("../img/guatemala.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-section .section-title h2 {
  color: var(--texto);
}

.about-section .section-title p {
  color: #475569;
  font-weight: 500;
}

.about-grid,
.values-grid {
  width: min(1150px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card,
.value-item {
  border-radius: 8px;
  padding: 34px 28px;
  transition: all 0.3s ease;
  text-align: center;
}

.about-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(191, 219, 254, 0.85);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.value-item {
  background: var(--blanco);
  border: 1px solid var(--borde);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.about-card:hover,
.value-item:hover {
  transform: translateY(-7px);
  box-shadow: var(--sombra-hover);
  border-color: #bfdbfe;
}

.about-card i,
.value-item i {
  color: var(--azul-medio);
  font-size: 38px;
  margin: 0 auto 20px;
  display: block;
  text-align: center;
}

.about-card h3,
.value-item h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--texto);
  text-align: center;
}

.about-card p,
.value-item p {
  color: var(--gris-texto);
  font-size: 15px;
  text-align: center;
}

.values-section {
  padding: 80px 20px;
  background: var(--blanco);
}

.about-cta {
  width: min(1100px, 92%);
  margin: 0 auto 80px;
  padding: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--sombra-hover);
}

.about-cta h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.about-cta p {
  color: #dbeafe;
}

/* LOGIN
   Afecta login.html y sus campos de acceso. */
.login-container {
  width: 100%;
  min-height: 100vh;
  background:
    linear-gradient(rgba(23, 32, 51, 0.88), rgba(23, 32, 51, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.32), transparent 30%),
    linear-gradient(135deg, #172033, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 430px;
  background: var(--blanco);
  padding: 40px 34px;
  border-radius: 8px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h2 {
  color: var(--texto);
  font-size: 28px;
  margin-bottom: 8px;
}

.login-header p {
  color: var(--gris-texto);
  font-size: 15px;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--azul-medio);
}

.input-group input {
  padding-left: 46px;
  margin-bottom: 0;
}

.login-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 14px;
}

.login-options label {
  color: var(--gris-texto);
}

.login-options a {
  color: var(--azul-medio);
  font-weight: 600;
}

.btn-login {
  width: 100%;
  border: none;
  background: var(--azul-medio);
  color: var(--blanco);
  padding: 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: var(--azul-hover);
  transform: translateY(-2px);
}

.login-footer,
.login-back {
  text-align: center;
  margin-top: 20px;
}

.login-footer p {
  color: var(--gris-texto);
  font-size: 13px;
  margin-bottom: 6px;
}

.login-back a {
  color: var(--azul-medio);
  font-size: 14px;
  font-weight: 700;
}

/* FOOTER
   Afecta el pie de página con marca, enlaces, servicios, contacto y redes. */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 20px 0;
}

.footer-container {
  width: min(1200px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-brand h3,
.footer-column h4 {
  color: var(--blanco);
  margin-bottom: 14px;
}

.footer-brand p,
.footer-column p,
.footer-column a {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-column a {
  display: block;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--celeste);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--azul-medio);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 42px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  margin-bottom: 4px;
  color: #94a3b8;
}

/* WHATSAPP FLOTANTE
   Afecta el botón flotante inferior derecho de WhatsApp. */
.whatsapp-float {
  width: 58px;
  height: 58px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #22c55e;
  color: var(--blanco);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  z-index: 999;
  box-shadow: 0 14px 32px rgba(34, 197, 94, 0.35);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-3px);
  background: #16a34a;
}

/* RESPONSIVE TABLET
   Ajusta grillas y navegación en pantallas medianas. */
@media (max-width: 1050px) {
  .service-grid,
  .use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .solutions-grid,
  .why-grid,
  .about-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* RESPONSIVE MOVIL HORIZONTAL
   Reacomoda header, contacto, grillas y footer en pantallas pequeñas. */
@media (max-width: 850px) {
  .container {
    flex-direction: column;
    padding: 18px 0;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .stats,
  .service-grid,
  .portfolio-grid,
  .use-cases-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    margin-top: -38px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-cta {
    flex-direction: column;
    text-align: center;
  }

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

/* RESPONSIVE MOVIL
   Deja todas las grillas a una columna y reduce tamaños en celulares. */
@media (max-width: 560px) {
  .logo {
    gap: 10px;
  }

  .logo-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 8px;
  }

  .logo-text h2 {
    font-size: 20px;
  }

  .logo-text span {
    font-size: 11px;
    margin-top: 4px;
  }

  nav a {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 80px 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .stats,
  .service-grid,
  .solutions-grid,
  .why-grid,
  .portfolio-grid,
  .about-grid,
  .values-grid,
  .process-grid,
  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .services,
  .business-solutions,
  .why-us,
  .portfolio,
  .contact,
  .about-section,
  .values-section,
  .work-process,
  .use-cases {
    padding: 64px 18px;
  }

  .about-hero {
    min-height: calc(70vh - 78px);
    padding: 76px 18px;
  }

  .about-cta {
    padding: 30px 22px;
  }

  .about-cta h2 {
    font-size: 24px;
  }

  form {
    padding: 26px 22px;
  }

  .login-box {
    padding: 34px 24px;
  }

  .login-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

.form-message {
  display: none;
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.form-message.success,
.form-message.error {
  display: block;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}