/* =========================================================
   SOINBA - STYLES.CSS
   Diseño principal
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --navy: #0b2f63;
  --navy-dark: #08244d;
  --navy-light: #123f7b;

  --blue: #1464c4;
  --blue-light: #eaf3fc;

  --yellow: #f4c400;
  --yellow-light: #fff8d9;

  --green: #18a46a;
  --green-light: #eaf8f2;

  --white: #ffffff;
  --black: #111827;

  --text: #243447;
  --text-light: #64748b;
  --border: #dce4ed;

  --background: #f6f8fb;
  --background-blue: #eef4fa;

  --shadow-sm:
    0 4px 14px rgba(15, 42, 74, 0.07);

  --shadow:
    0 12px 35px rgba(15, 42, 74, 0.10);

  --shadow-lg:
    0 20px 50px rgba(15, 42, 74, 0.14);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --container: 1180px;

  --header-height: 82px;
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  padding: 0;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  color: var(--text);
  background: var(--white);

  font-size: 16px;
  line-height: 1.55;

  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  width: 24px;
  height: 24px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.container {
  width: min(
    calc(100% - 40px),
    var(--container)
  );

  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   CABECERA
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background: var(--white);

  border-bottom: 1px solid rgba(11, 47, 99, 0.08);

  box-shadow:
    0 2px 12px rgba(15, 42, 74, 0.05);
}

.header-inner {
  min-height: var(--header-height);

  display: flex;
  align-items: center;

  gap: 28px;
}


/* LOGO */

.brand {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  width: 280px;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}


/* NAVEGACIÓN */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 26px;

  flex: 1;
}

.main-nav a {
  position: relative;

  display: inline-flex;
  align-items: center;

  gap: 5px;

  color: #334155;

  font-size: 14px;
  font-weight: 600;

  white-space: nowrap;

  transition:
    color 0.2s ease;
}

.main-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -8px;

  height: 2px;

  background: var(--blue);

  transform: scaleX(0);
  transform-origin: center;

  transition:
    transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--navy);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-arrow {
  color: var(--blue);

  font-size: 17px;
  line-height: 1;

  transform: translateY(-1px);
}


/* SUBMENÚ DE SERVICIOS */
.nav-services {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-services-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  min-width: 210px;
  padding: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.12);
  z-index: 1001;
}

.nav-services:hover .nav-submenu,
.nav-services:focus-within .nav-submenu {
  display: flex;
  flex-direction: column;
}

.nav-submenu a {
  display: flex;
  min-height: 40px;
  padding: 8px 12px;
  align-items: center;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-submenu a::after {
  display: none;
}

.nav-submenu a:hover {
  background: #f1f5f9;
}

/* ACCIONES CABECERA */

.header-actions {
  display: flex;
  align-items: center;

  gap: 10px;

  flex: 0 0 auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  color: var(--navy);

  font-size: 15px;

  white-space: nowrap;
}

.header-phone svg {
  width: 20px;
  height: 20px;

  color: var(--blue);
}

.header-phone strong {
  font-weight: 750;
}

.header-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 39px;
  height: 39px;

  border-radius: 50%;

  background: #25d366;

  color: white;

  font-size: 11px;
  font-weight: 800;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.header-whatsapp:hover {
  transform: translateY(-2px);

  box-shadow:
    0 6px 15px rgba(37, 211, 102, 0.30);
}


/* MENÚ MÓVIL */

.menu-toggle {
  display: none;

  border: 0;
  padding: 8px;

  background: transparent;

  color: var(--navy);

  cursor: pointer;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: 555px;

  display: flex;
  align-items: center;

  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      #082b5b 0%,
      #0b376f 43%,
      #164f8e 68%,
      #2c659a 100%
    );
}

.hero-background {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(7, 31, 64, 0.96) 0%,
      rgba(8, 43, 91, 0.90) 38%,
      rgba(8, 43, 91, 0.38) 66%,
      rgba(8, 43, 91, 0.12) 100%
    ),
    url("https://images.pexels.com/photos/33531820/pexels-photo-33531820.jpeg?auto=compress&cs=tinysrgb&w=1800")
      center center / cover no-repeat;

  pointer-events: none;
}

.hero-background::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(8, 36, 77, 0.08) 0%,
      transparent 55%,
      rgba(8, 36, 77, 0.12) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;

  min-height: 555px;
}

.hero-copy {
  max-width: 650px;

  color: white;
}

.hero-copy h1 {
  margin: 0 0 20px;

  font-size: clamp(
    42px,
    5vw,
    68px
  );

  line-height: 1.06;

  letter-spacing: -1.8px;

  font-weight: 800;
}

.hero-services {
  margin: 0 0 7px;

  font-size: 18px;

  font-weight: 600;

  color: rgba(255,255,255,0.96);
}

.hero-area {
  margin: 0;

  color: rgba(255,255,255,0.72);

  font-size: 16px;

  font-weight: 500;
}

.hero-buttons {
  display: flex;
  align-items: center;

  gap: 13px;

  margin-top: 28px;
}

.btn {
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  padding: 0 22px;

  border-radius: 9px;

  font-size: 15px;
  font-weight: 750;

  border: 2px solid transparent;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 20px;
  height: 20px;
}


/* BOTÓN PRINCIPAL */

.btn-primary {
  background: white;
  color: var(--navy);

  box-shadow:
    0 7px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  box-shadow:
    0 10px 25px rgba(0,0,0,0.22);
}


/* WHATSAPP */

.btn-whatsapp {
  background: #25d366;
  color: white;

  box-shadow:
    0 7px 20px rgba(0,0,0,0.13);
}

.btn-whatsapp:hover {
  background: #20bd5a;
}

.wa-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  font-size: 15px;
}


/* EXPERIENCIA */

.experience {
  display: flex;
  align-items: center;

  gap: 8px;

  margin: 25px 0 0;

  color: rgba(255,255,255,0.86);

  font-size: 14px;
  font-weight: 600;
}

.experience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;

  font-size: 12px;
}


/* =========================================================
   BENEFICIOS
   ========================================================= */

.benefits {
  position: relative;
  z-index: 5;

  margin-top: -46px;
  padding-bottom: 30px;
}

.benefits-card {
  min-height: 108px;

  display: grid;
  grid-template-columns:
    repeat(5, 1fr);

  align-items: center;

  background: white;

  border-radius: 15px;

  box-shadow: var(--shadow);

  padding: 18px 25px;
}

.benefit {
  min-width: 0;

  display: flex;
  align-items: center;

  justify-content: center;

  gap: 12px;

  padding: 8px 18px;

  border-right: 1px solid var(--border);
}

.benefit:last-child {
  border-right: 0;
}

.benefit > svg,
.benefit-icon {
  flex: 0 0 auto;

  width: 34px;
  height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--blue);

  font-size: 28px;
}

.benefit strong {
  display: block;

  color: var(--navy);

  font-size: 15px;
  line-height: 1.25;
}

.benefit small {
  display: block;

  margin-top: 3px;

  color: var(--text-light);

  font-size: 12px;
  line-height: 1.25;
}


/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

.section {
  padding: 85px 0;
}

.section > .container > h2,
.section h2 {
  margin-top: 0;
}

.needs {
  background: white;
}

.needs h2 {
  margin-bottom: 38px;

  text-align: center;

  color: var(--navy);

  font-size: 36px;
  line-height: 1.15;

  letter-spacing: -0.7px;
}


/* =========================================================
   NECESIDADES
   ========================================================= */

.needs-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;
}

.need-card {
  display: block;

  min-height: 205px;

  padding: 25px;

  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.need-card:hover {
  transform: translateY(-5px);

  border-color: rgba(20,100,196,0.28);

  box-shadow: var(--shadow);
}

.need-icon {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  margin-bottom: 17px;
}

.need-icon.blue {
  background: var(--blue-light);
  color: var(--blue);
}

.need-icon.yellow {
  background: var(--yellow-light);
  color: #d2a800;
}

.need-icon svg {
  width: 27px;
  height: 27px;
}

.emoji-icon {
  font-size: 25px;
  line-height: 1;
}

.need-card h3 {
  margin: 0 0 9px;

  color: var(--navy);

  font-size: 19px;
  line-height: 1.25;

  letter-spacing: -0.2px;
}

.need-card p {
  margin: 0;

  color: var(--text-light);

  font-size: 14px;
  line-height: 1.55;
}


/* =========================================================
   SERVICIOS PRINCIPALES
   ========================================================= */

.service-columns {
  background: var(--background);
}

.service-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;
}

.service-panel {
  display: flex;
  flex-direction: column;

  min-height: 440px;

  padding: 30px;

  background: white;

  border-radius: var(--radius);

  border: 1px solid var(--border);

  box-shadow: var(--shadow-sm);
}

.service-heading {
  display: flex;
  align-items: center;

  gap: 13px;

  margin-bottom: 18px;
}

.service-icon {
  width: 42px;
  height: 42px;

  padding: 9px;

  border-radius: 11px;
}

.service-icon.blue {
  background: var(--blue-light);
  color: var(--blue);
}

.service-icon.yellow {
  background: var(--yellow-light);
  color: #c59b00;
}

.service-icon.green {
  background: var(--green-light);
  color: var(--green);
}

.service-panel h2 {
  margin: 0;

  color: var(--navy);

  font-size: 22px;

  letter-spacing: 0.2px;
}

.service-intro {
  margin: 0 0 20px;

  color: var(--text-light);

  font-size: 15px;
}

.service-panel ul {
  list-style: none;

  margin: 0 0 25px;

  display: flex;
  flex-direction: column;

  gap: 10px;
}

.service-panel li {
  position: relative;

  padding-left: 22px;

  color: #3b4a5d;

  font-size: 14px;
}

.service-panel li::before {
  content: "✓";

  position: absolute;

  left: 0;
  top: 0;

  color: var(--blue);

  font-weight: 800;
}

.btn-small {
  align-self: flex-start;

  min-height: 42px;

  margin-top: auto;

  padding: 0 18px;

  border-radius: 8px;

  background: var(--navy);

  color: white;

  font-size: 13px;
}

.btn-small:hover {
  background: var(--blue);
}


/* =========================================================
   TRABAJOS DESTACADOS
   ========================================================= */

.works-intro {
  background: white;
}

.works-intro > .container > h2 {
  max-width: 780px;

  margin: 0 auto 42px;

  text-align: center;

  color: var(--navy);

  font-size: 34px;
  line-height: 1.18;

  letter-spacing: -0.6px;
}

.featured-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;
}

.featured-work {
  overflow: hidden;

  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  box-shadow: var(--shadow-sm);
}

.featured-work img {
  width: 100%;
  height: 235px;

  object-fit: cover;

  background: var(--background-blue);
}

.featured-work h3 {
  margin: 20px 22px 8px;

  color: var(--navy);

  font-size: 18px;
  line-height: 1.3;
}

.featured-work p {
  margin: 0 22px 23px;

  color: var(--text-light);

  font-size: 14px;
  line-height: 1.55;
}

.center-action {
  display: flex;
  justify-content: center;

  margin-top: 30px;
}

.btn-outline {
  min-height: 44px;

  border-color: var(--navy);

  color: var(--navy);

  background: white;
}

.btn-outline:hover {
  background: var(--navy);
  color: white;
}


/* =========================================================
   SOBRE SOINBA
   ========================================================= */

.about {
  background: var(--background);
}

.about-grid {
  display: grid;

  grid-template-columns:
    0.95fr 1.05fr;

  gap: 65px;

  align-items: center;
}

.about-image {
  overflow: hidden;

  min-height: 440px;

  border-radius: var(--radius-lg);

  background: var(--background-blue);

  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 440px;

  object-fit: cover;
}

.about-content h2 {
  margin: 0 0 20px;

  color: var(--navy);

  font-size: 37px;
  line-height: 1.15;

  letter-spacing: -0.8px;
}

.about-content > p {
  margin: 0;

  color: #526174;

  font-size: 16px;

  line-height: 1.7;
}

.about-features {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 18px;

  margin-top: 30px;
}

.about-features > div {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 16px;

  background: white;

  border: 1px solid var(--border);

  border-radius: 12px;
}

.about-features span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  flex: 0 0 auto;

  border-radius: 10px;

  background: var(--blue-light);

  color: var(--blue);

  font-size: 19px;
}

.about-features strong {
  color: var(--navy);

  font-size: 13px;

  line-height: 1.3;
}


/* =========================================================
   PORTFOLIO + OPINIONES
   ========================================================= */

.portfolio-reviews {
  background: white;
}

.two-column {
  display: grid;

  grid-template-columns:
    1.1fr 0.9fr;

  gap: 35px;
}

.portfolio-box,
.reviews-box {
  padding: 32px;

  background: var(--background);

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);
}

.portfolio-box h2,
.reviews-box h2 {
  margin: 0 0 28px;

  color: var(--navy);

  font-size: 27px;
  line-height: 1.2;
}

.portfolio-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 13px;
}

.portfolio-grid a {
  position: relative;

  overflow: hidden;

  min-height: 155px;

  border-radius: 11px;

  background: var(--navy);
}

.portfolio-grid img {
  width: 100%;
  height: 155px;

  object-fit: cover;

  transition:
    transform 0.3s ease;
}

.portfolio-grid a:hover img {
  transform: scale(1.05);
}

.portfolio-grid span {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  padding: 30px 11px 10px;

  background:
    linear-gradient(
      transparent,
      rgba(0,0,0,0.82)
    );

  color: white;

  font-size: 12px;
  font-weight: 700;

  line-height: 1.25;
}

.reviews-intro {
  margin: -14px 0 20px;
  color: #536174;
  font-size: 14px;
  line-height: 1.5;
}

.reviews-grid {
  display: flex;
  flex-direction: column;

  gap: 13px;
}

.review {
  padding: 20px;

  background: white;

  border: 1px solid var(--border);

  border-radius: 12px;
}

.stars {
  margin-bottom: 9px;

  color: #f4b400;

  font-size: 16px;

  letter-spacing: 2px;
}

.review p {
  margin: 0;

  color: #536174;

  font-size: 14px;

  line-height: 1.55;
}

.review-author {
  margin-top: 14px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.review-author span {
  color: #6b7788;
  font-weight: 500;
}


/* =========================================================
   SERVICIOS INFERIORES
   ========================================================= */

.lower-services {
  background: var(--background);
}

.lower-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;
}

.lower-card {
  display: flex;
  flex-direction: column;

  min-height: 390px;

  padding: 30px;

  background: white;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  box-shadow: var(--shadow-sm);
}

.lower-icon {
  width: 45px;
  height: 45px;

  margin-bottom: 18px;

  padding: 9px;

  border-radius: 12px;

  background: var(--blue-light);

  color: var(--blue);
}

.lower-card h2 {
  margin: 0 0 13px;

  color: var(--navy);

  font-size: 23px;
  line-height: 1.22;
}

.lower-card p {
  margin: 0 0 22px;

  color: var(--text-light);

  font-size: 14px;

  line-height: 1.55;
}

.check-columns {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 15px;

  margin-bottom: 25px;
}

.check-columns ul,
.simple-checks {
  list-style: none;

  display: flex;
  flex-direction: column;

  gap: 9px;
}

.check-columns li,
.simple-checks li {
  position: relative;

  padding-left: 20px;

  color: #455468;

  font-size: 13px;
}

.check-columns li::before,
.simple-checks li::before {
  content: "✓";

  position: absolute;

  left: 0;

  color: var(--green);

  font-weight: 800;
}

.lower-card > .btn {
  margin-top: auto;
}


/* =========================================================
   CTA FINAL
   ========================================================= */

.final-cta {
  background:
    linear-gradient(
      100deg,
      var(--navy-dark),
      var(--navy)
    );

  color: white;
}

.final-cta-inner {
  min-height: 230px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;
}

.final-cta h2 {
  margin: 0 0 9px;

  color: white;

  font-size: 34px;
  line-height: 1.15;
}

.final-cta p {
  max-width: 600px;

  margin: 0;

  color: rgba(255,255,255,0.74);

  font-size: 15px;
}

.final-actions {
  display: flex;
  align-items: center;

  gap: 13px;

  flex: 0 0 auto;
}

.final-phone {
  display: flex;
  align-items: center;

  gap: 11px;

  padding: 10px 4px;

  color: white;
}

.final-phone svg {
  width: 25px;
  height: 25px;
}

.final-phone strong {
  display: block;

  font-size: 18px;
}

.final-phone small {
  display: block;

  margin-top: 1px;

  color: rgba(255,255,255,0.68);

  font-size: 11px;
}

.final-whatsapp {
  min-height: 48px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #071f40;

  color: rgba(255,255,255,0.70);
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.35fr
    1fr
    1.15fr
    1fr
    1.15fr;

  gap: 35px;

  padding-top: 55px;
  padding-bottom: 45px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-brand img {
  width: 180px;

  opacity: 1;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;

  gap: 9px;
}

.footer-grid h3 {
  margin: 0 0 7px;

  color: white;

  font-size: 14px;

  font-weight: 750;
}

.footer-grid a,
.footer-grid span {
  color: rgba(255,255,255,0.66);

  font-size: 13px;

  line-height: 1.5;

  transition:
    color 0.2s ease;
}

.footer-grid a:hover {
  color: white;
}

.footer-grid a {
  display: inline-flex;
  align-items: center;

  gap: 8px;
}

.footer-grid a svg {
  width: 17px;
  height: 17px;
}

.footer-wa {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  border-radius: 50%;

  background: #25d366;

  color: white !important;

  font-size: 8px !important;
  font-weight: 800;
}

.footer-wa svg {
  width: 13px;
  height: 13px;
  display: block;
}

.footer-bottom {
  min-height: 60px;

  display: flex;
  align-items: center;

  border-top:
    1px solid rgba(255,255,255,0.10);

  color: rgba(255,255,255,0.45);

  font-size: 11px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .header-inner {
    gap: 18px;
  }

  .main-nav {
    gap: 15px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .header-phone {
    font-size: 13px;
  }

  .benefits-card {
    padding-left: 10px;
    padding-right: 10px;
  }

  .benefit {
    padding-left: 10px;
    padding-right: 10px;
  }

  .benefit strong {
    font-size: 13px;
  }

  .benefit small {
    font-size: 11px;
  }

  .about-grid {
    gap: 40px;
  }

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

}


/* =========================================================
   RESPONSIVE - TABLET PEQUEÑO
   ========================================================= */

@media (max-width: 900px) {

  :root {
    --header-height: 72px;
  }

  .container {
    width: min(
      calc(100% - 32px),
      var(--container)
    );
  }


  /* CABECERA */

  .brand {
    width: 220px;
  }

  .main-nav {
    display: none;

    position: fixed;

    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 999;

    flex-direction: column;
    align-items: stretch;

    justify-content: flex-start;

    gap: 0;

    padding: 20px;

    background: white;

    overflow-y: auto;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-services {
    display: block;
    width: 100%;
  }

  .nav-services-trigger {
    width: 100%;
    min-height: 54px;
  }

  .nav-submenu {
    position: static;
    transform: none;
    display: flex;
    min-width: 0;
    padding: 0 0 8px 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-submenu a {
    min-height: 42px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .nav-services-trigger::after {
    display: none;
  }

  .main-nav a {
    min-height: 54px;

    display: flex;

    border-bottom: 1px solid var(--border);

    font-size: 16px;
  }

  .main-nav a::after {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-phone strong {
    display: none;
  }

  .menu-toggle {
    display: block;
  }


  /* HERO */

  .hero,
  .hero-content {
    min-height: 500px;
  }

  .hero-copy h1 {
    font-size: clamp(
      40px,
      7vw,
      58px
    );
  }


  /* BENEFICIOS */

  .benefits {
    margin-top: -30px;
  }

  .benefits-card {
    grid-template-columns:
      repeat(3, 1fr);

    row-gap: 10px;
  }

  .benefit:nth-child(3) {
    border-right: 0;
  }

  .benefit:nth-child(4),
  .benefit:nth-child(5) {
    border-top: 1px solid var(--border);
    padding-top: 15px;
  }


  /* GRIDS */

  .needs-grid,
  .service-grid,
  .featured-grid,
  .lower-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .about-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 360px;
  }

  .about-image img {
    min-height: 360px;
  }

  .final-cta-inner {
    flex-direction: column;
    align-items: flex-start;

    padding-top: 45px;
    padding-bottom: 45px;
  }

}


/* =========================================================
   RESPONSIVE - MÓVIL
   ========================================================= */

@media (max-width: 640px) {

  :root {
    --header-height: 68px;
  }

  .container {
    width: calc(100% - 28px);
  }


  /* CABECERA */

  .brand {
    width: 190px;
  }

  .header-inner {
    min-height: var(--header-height);

    gap: 10px;
  }

  .header-whatsapp {
    width: 36px;
    height: 36px;
  }

  .menu-toggle {
    padding: 6px;
  }


  /* HERO */

  .hero {
    min-height: 520px;
  }

  .hero-content {
    min-height: 520px;

    align-items: flex-start;

    padding-top: 75px;
    padding-bottom: 55px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-background {
    background-position: 66% center;
  }

  .hero-copy h1 {
    margin-bottom: 17px;

    font-size: 41px;

    line-height: 1.07;

    letter-spacing: -1.1px;
  }

  .hero-services {
    max-width: 340px;

    font-size: 15px;

    line-height: 1.45;
  }

  .hero-area {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;

    align-items: stretch;

    gap: 10px;

    max-width: 290px;
  }

  .btn {
    width: 100%;
  }


  /* BENEFICIOS */

  .benefits {
    margin-top: 0;

    padding-top: 15px;

    background: var(--background);
  }

  .benefits-card {
    grid-template-columns:
      1fr 1fr;

    gap: 0;

    padding: 8px;

    border-radius: 13px;
  }

  .benefit {
    min-height: 72px;

    justify-content: flex-start;

    padding: 10px;

    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .benefit:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .benefit:nth-child(4),
  .benefit:nth-child(5) {
    border-top: 0;
  }

  .benefit:nth-child(5) {
    grid-column: 1 / -1;

    border-right: 0;
    border-bottom: 0;
  }

  .benefit strong {
    font-size: 12px;
  }

  .benefit small {
    font-size: 10px;
  }

  .benefit > svg,
  .benefit-icon {
    width: 27px;
    height: 27px;

    font-size: 22px;
  }


  /* SECCIONES */

  .section {
    padding: 58px 0;
  }

  .needs h2 {
    margin-bottom: 27px;

    font-size: 30px;
  }


  /* NECESIDADES */

  .needs-grid {
    grid-template-columns: 1fr;

    gap: 13px;
  }

  .need-card {
    min-height: auto;

    padding: 21px;
  }

  .need-icon {
    width: 46px;
    height: 46px;

    margin-bottom: 13px;
  }

  .need-card h3 {
    font-size: 18px;
  }


  /* SERVICIOS */

  .service-grid {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .service-panel {
    min-height: auto;

    padding: 25px;
  }

  .service-panel ul {
    margin-bottom: 24px;
  }


  /* TRABAJOS */

  .works-intro > .container > h2 {
    margin-bottom: 28px;

    font-size: 28px;
  }

  .featured-grid {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .featured-work img {
    height: 215px;
  }


  /* SOBRE */

  .about-grid {
    gap: 28px;
  }

  .about-image {
    min-height: 270px;
  }

  .about-image img {
    min-height: 270px;
  }

  .about-content h2 {
    font-size: 29px;
  }

  .about-content > p {
    font-size: 15px;
  }

  .about-features {
    grid-template-columns: 1fr;

    gap: 10px;
  }


  /* PORTFOLIO */

  .two-column {
    gap: 20px;
  }

  .portfolio-box,
  .reviews-box {
    padding: 21px;
  }

  .portfolio-box h2,
  .reviews-box h2 {
    font-size: 24px;
  }

  .portfolio-grid {
    grid-template-columns:
      1fr 1fr;

    gap: 9px;
  }

  .portfolio-grid a,
  .portfolio-grid img {
    min-height: 135px;
    height: 135px;
  }


  /* SERVICIOS INFERIORES */

  .lower-grid {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .lower-card {
    min-height: auto;

    padding: 25px;
  }

  .check-columns {
    grid-template-columns: 1fr;

    gap: 8px;
  }


  /* CTA */

  .final-cta-inner {
    gap: 25px;

    padding-top: 42px;
    padding-bottom: 42px;
  }

  .final-cta h2 {
    font-size: 29px;
  }

  .final-actions {
    width: 100%;

    flex-direction: column;

    align-items: stretch;
  }

  .final-phone {
    justify-content: center;
  }

  .final-whatsapp {
    width: 100%;
  }


  /* FOOTER */

  .footer-grid {
    grid-template-columns: 1fr 1fr;

    gap: 32px 22px;

    padding-top: 42px;
    padding-bottom: 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-wa svg {
  width: 13px;
  height: 13px;
  display: block;
}

.footer-bottom {
    min-height: 70px;

    text-align: center;

    justify-content: center;
  }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 420px) {

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-services {
    font-size: 14px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid a,
  .portfolio-grid img {
    height: 180px;
    min-height: 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(20,100,196,0.35);

  outline-offset: 3px;
}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

}
/* =========================================================
   SUBPÁGINAS - COMPONENTES COMPARTIDOS
   Mantienen exactamente la misma identidad visual que inicio.
   ========================================================= */

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-kicker,
.hero-kicker {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.section-intro {
  max-width: 720px;
  margin: -20px auto 32px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.service-page-hero .hero-copy h1 {
  max-width: 760px;
}

.service-detail-intro {
  background: var(--background);
}

.service-detail-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.service-detail-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
}

.service-detail-icon {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 12px;
}

.service-detail-icon.blue {
  background: var(--blue-light);
  color: var(--blue);
}

.service-detail-text,
.service-detail-intro p {
  max-width: 820px;
  margin: 0;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.75;
}

.service-detail-cards {
  background: #fff;
}

.service-detail-cards > .container > h2 {
  margin: 0 0 34px;
  color: var(--navy);
  text-align: center;
  font-size: 34px;
}

.service-detail-cards .needs-grid {
  margin-top: 0;
}

.service-process {
  background: var(--background);
}

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

.process-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 17px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.process-card h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 18px;
}

.process-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

.service-detail-cards .service-detail-heading,
.service-detail-cards .service-detail-text {
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.contact-actions .btn {
  min-width: 180px;
}

@media (max-width: 800px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .service-detail-cards > .container > h2 {
    font-size: 29px;
  }
}

/* =========================================================
   MEJORA VISUAL + FOTOGRAFÍA DE SERVICIOS
   ========================================================= */

.hero-background {
  background-image:
    linear-gradient(
      90deg,
      rgba(7, 31, 64, 0.96) 0%,
      rgba(8, 43, 91, 0.88) 38%,
      rgba(8, 43, 91, 0.48) 66%,
      rgba(8, 43, 91, 0.16) 100%
    ),
    var(--hero-photo, url("../img/fotos/home-tecnico.jpg"), url("https://images.pexels.com/photos/33531820/pexels-photo-33531820.jpeg?auto=compress&cs=tinysrgb&w=1800"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Más color en la portada, sin perder el aspecto profesional. */
.benefits-card {
  background:
    linear-gradient(120deg, #0b2f63 0%, #1259a2 55%, #1464c4 100%);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 42px rgba(11,47,99,.18);
}

.benefit {
  color: #fff;
  border-color: rgba(255,255,255,.16);
}

.benefit strong,
.benefit small {
  color: #fff;
}

.benefit small {
  opacity: .78;
}

.benefit svg,
.benefit-icon {
  color: #f4c400;
}

.needs {
  background:
    linear-gradient(180deg, #eef5fc 0%, #f8fbff 100%);
}

.needs > .container > h2,
.works-intro > .container > h2 {
  position: relative;
}

.needs > .container > h2::after,
.works-intro > .container > h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin: 13px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #1464c4, #18a46a);
}

.need-card {
  position: relative;
  overflow: hidden;
  border-top: 4px solid #1464c4;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,42,74,.08);
}

.need-card:nth-child(4n + 2) { border-top-color: #18a46a; }
.need-card:nth-child(4n + 3) { border-top-color: #f4c400; }

/* Fotografías de las necesidades de la portada. Cada archivo puede sustituirse
   sin tocar el HTML: basta con mantener el mismo nombre en img/fotos/. */
.need-photo {
  width: calc(100% + 48px);
  height: 128px;
  margin: -24px -24px 18px;
  overflow: hidden;
  background: #dbe8f5;
}

.need-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.need-card:hover .need-photo img {
  transform: scale(1.04);
}

@media (max-width: 800px) {
  .need-photo {
    width: calc(100% + 48px);
    height: 150px;
  }
}

.need-card:nth-child(4n + 4) { border-top-color: #0b2f63; }

.need-card:hover {
  transform: translateY(-5px);
  border-color: #1464c4;
  box-shadow: 0 18px 36px rgba(11,47,99,.14);
}

.need-icon.blue {
  background: #e4f0fc;
}

.need-icon.yellow {
  background: #fff5bf;
}

.service-columns {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
}

.service-panel {
  border-top: 5px solid #1464c4;
  box-shadow: 0 14px 34px rgba(15,42,74,.09);
}

.service-panel:nth-child(2) { border-top-color: #f4c400; }
.service-panel:nth-child(3) { border-top-color: #18a46a; }

.works-intro {
  background: #eef5fc;
}

.featured-work {
  border-top: 4px solid #1464c4;
  box-shadow: 0 12px 30px rgba(15,42,74,.08);
}

.featured-work:nth-child(2) { border-top-color: #18a46a; }
.featured-work:nth-child(3) { border-top-color: #f4c400; }

.about {
  background:
    linear-gradient(120deg, #ffffff 0%, #edf5fc 100%);
}

.about-content h2 {
  color: #0b2f63;
}

.about-features > div {
  padding: 13px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dce8f5;
  box-shadow: 0 6px 18px rgba(15,42,74,.05);
}

.portfolio-reviews {
  background:
    linear-gradient(180deg, #eaf3fc 0%, #f7f9fc 100%);
}

.portfolio-box,
.reviews-box {
  box-shadow: 0 12px 30px rgba(15,42,74,.08);
}

.lower-services {
  background: #f5f9fd;
}

.lower-card {
  border-top: 4px solid #1464c4;
}

.lower-card:nth-child(2) { border-top-color: #18a46a; }
.lower-card:nth-child(3) { border-top-color: #f4c400; }

/* Fotografía editorial común en todas las subpáginas. */
.page-photo-strip {
  padding: 34px 0;
  background: #eef5fc;
}

.page-photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 30px;
  align-items: center;
}

.page-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #dce8f5;
  box-shadow: 0 16px 36px rgba(11,47,99,.14);
}

.page-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.page-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(7,31,64,.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.page-photo-copy {
  padding: 10px 8px;
}

.page-photo-copy h2 {
  margin: 0 0 12px;
  color: #0b2f63;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.page-photo-copy p {
  margin: 0;
  color: #5f7085;
  font-size: 15px;
  line-height: 1.75;
}

@media (max-width: 800px) {
  .page-photo-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .page-photo img {
    height: 235px;
  }
}


/* WhatsApp: icono SVG real en páginas de servicios */
.header-whatsapp svg { width: 22px; height: 22px; }
.btn-whatsapp .wa-symbol, .final-whatsapp .wa-symbol { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; }
.btn-whatsapp .wa-symbol svg, .final-whatsapp .wa-symbol svg { width:20px; height:20px; }


/* V13 - tres servicios principales con las fotografías usadas en v10 */
.main-services{background:#f7f9fc}.main-services-heading{max-width:760px;margin:0 auto 28px;text-align:center}.main-services-heading h2{margin:0 0 10px;color:#142d50;font-size:clamp(28px,3vw,38px);line-height:1.15}.main-services-heading>p:last-child{margin:0;color:#68768a}.main-services-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.main-service-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 8px 28px rgba(16,44,78,.07);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.main-service-card:hover{transform:translateY(-4px);border-color:#cbd8e8;box-shadow:0 16px 34px rgba(16,44,78,.12)}.main-service-photo{height:190px;overflow:hidden;background:#dbe8f5}.main-service-photo img{width:100%;height:100%;object-fit:cover;display:block}.main-service-content{display:flex;flex-direction:column;flex:1;padding:22px 22px 24px}.main-service-icon{width:42px;height:42px;display:flex;align-items:center;justify-content:center;margin-bottom:12px;border-radius:11px}.main-service-icon svg{width:23px;height:23px}.main-service-icon.blue{background:#e4f0fc;color:#0b5da7}.main-service-icon.yellow{background:#fff5bf;color:#d69a00}.main-service-icon.green{background:#e4f7ee;color:#18a46a}.main-service-content h2{margin:0 0 8px;color:#142d50;font-size:21px;line-height:1.2}.main-service-content p{margin:0 0 18px;color:#68768a;font-size:14px;line-height:1.55}.main-service-link{margin-top:auto;color:#0b2f63;font-weight:800;font-size:14px}@media(max-width:800px){.main-services{padding-top:34px;padding-bottom:34px}.main-services-heading{margin-bottom:22px}.main-services-heading h2{font-size:27px}.main-services-grid{grid-template-columns:1fr;gap:16px}.main-service-photo{height:165px}.main-service-content{padding:18px 18px 20px}}

/* V13 - etiquetas de trabajos dentro de cada página de servicio */
.service-tags-wrap{background:#fff;padding:0 0 26px}.service-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}.service-tag{display:inline-flex;align-items:center;min-height:38px;padding:7px 13px;background:#f3f7fb;border:1px solid #dce6f0;border-radius:999px;color:#173a66;font-size:13px;font-weight:750}.service-tag:hover{background:#e8f1fa;border-color:#c7d8ea}@media(max-width:800px){.service-tags-wrap{padding-bottom:20px}.service-tags{justify-content:flex-start}.service-tag{font-size:12.5px;min-height:36px;padding:6px 11px}}
