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

:root {
  --ink: #454343;
  --muted: #696666;
  --red: #d9283b;
  --red-dark: #aa1d31;
  --light: #f7f6f6;
  --border: #e6e2e2;
  --white: #fff;
  --navy: #454343;
  --radius: 18px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: white;
  line-height: 1.65
}

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

button,
input,
textarea,
select {
  font: inherit
}

button {
  cursor: pointer
}

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

h1,
h2,
h3,
p {
  margin-top: 0
}

h1,
h2,
h3 {
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: -.035em
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.5rem)
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem)
}

h3 {
  font-size: 1.3rem
}

.container {
  max-width: 1180px;
  padding: 0 24px;
  margin: auto
}

.muted {
  color: var(--muted)
}

.eyebrow {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red)
}

.text-red {
  color: var(--red)
}

.section {
  padding: 105px 0
}

.section-sm {
  padding: 70px 0
}

.surface {
  background: var(--light)
}

.dark {
  background: var(--navy);
  color: white
}

.dark .muted {
  color: #eeeaea
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 100px;
  padding: 13px 24px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .2s, background .2s;
  text-align: center
}

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

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

.btn-primary:hover {
  background: var(--red-dark)
}

.btn-outline {
  border-color: #d2cbcb;
  background: transparent
}

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

.btn-small {
  padding: 9px 18px;
  font-size: .88rem
}

.site-header {
  height: 82px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border)
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Manrope, sans-serif;
  font-size: 1.23rem;
  font-weight: 800;
  letter-spacing: -.05em
}

.brand-symbol {
  display: grid;
  place-items: center;
  background: var(--red);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 1.25rem
}

.brand span:last-child {
  color: var(--red)
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center
}

.main-nav>a {
  font-size: .92rem;
  font-weight: 650
}

.main-nav>a:hover,
.main-nav>a[aria-current=page] {
  color: var(--red)
}

.menu-toggle {
  display: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 1.4rem
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 72px;
  background: linear-gradient(140deg, #fff, #faf8f8 65%, #eeeaea)
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 55px
}

.hero h1 {
  margin: 14px 0 24px
}

.hero p.lead {
  font-size: 1.18rem;
  max-width: 590px;
  color: var(--muted)
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px
}

.hero-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(69, 67, 67, .16);
  border: 7px solid white
}

.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 10%
}

.hero-note {
  margin-top: 17px;
  font-size: .88rem;
  color: var(--muted)
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px
}

.section-head h2 {
  margin: 8px 0 18px
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  padding: 30px;
  box-shadow: 0 12px 35px rgba(69, 67, 67, .035)
}

.card p {
  color: var(--muted)
}

.card .arrow {
  margin-top: 22px;
  display: inline-flex;
  font-weight: 800;
  color: var(--red)
}

.card.accent {
  background: var(--navy);
  color: white;
  border-color: var(--navy)
}

.card.accent p {
  color: #eeeaea
}

.card.accent .arrow {
  color: white
}

.card-icon {
  font-size: 1.7rem;
  margin-bottom: 23px;
  display: block
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start
}

.mini-list {
  padding: 0;
  list-style: none
}

.mini-list li {
  margin: 14px 0;
  padding-left: 28px;
  position: relative
}

.mini-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold
}

.contact-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px
}

.contact-info a {
  text-decoration: underline;
  text-decoration-color: #d0d3d9;
  text-underline-offset: 4px
}

.form-card {
  background: white;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 50px #4543430b
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px
}

.field label {
  font-size: .9rem;
  font-weight: 700
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid #cfc9c9;
  background: #fff;
  color: var(--ink)
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid #e99ca7;
  outline-offset: 1px
}

.checkbox-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 22px;
  font-size: .91rem
}

.checkbox-line input {
  margin-top: 6px
}

.checkbox-line a,
.legal a {
  text-decoration: underline;
  color: var(--red)
}

.form-status {
  margin-top: 14px;
  font-weight: 650;
  min-height: 24px
}

.form-status.error {
  color: #a51b2b
}

.form-status.success {
  color: #16724c
}

.cta {
  padding: 60px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background: var(--navy);
  color: white
}

.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 12px
}

.footer {
  background: #353333;
  color: #fff;
  padding: 55px 0 25px
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px
}

.footer a {
  color: #eeeaea;
  display: block;
  margin: 8px 0
}

.footer a:hover {
  color: white
}

.footer small {
  color: #c6bfbf
}

.footer-bottom {
  border-top: 1px solid #5a5656;
  margin-top: 35px;
  padding-top: 20px
}

.cookie-banner {
  position: fixed;
  z-index: 100;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 1000px;
  margin: auto;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 15px 50px #0003;
  border-radius: 17px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between
}

.cookie-banner p {
  font-size: .9rem;
  margin: 0
}

.cookie-banner .actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0
}

.cookie-banner[hidden] {
  display: none
}

.floating-jobs {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  background: var(--red);
  border-radius: 100px;
  color: white;
  padding: 13px 19px;
  font-size: .86rem;
  font-weight: 700;
  box-shadow: 0 12px 30px #b51b3a50
}

.legal {
  max-width: 850px;
  margin: auto
}

.legal h4,
.legal h2 {
  font-size: 1.2rem;
  margin: 28px 0 11px
}

.legal p {
  color: #555151;
  line-height: 1.85;
  white-space: pre-line
}

.legal ul {
  padding-left: 24px
}

.legal li {
  margin-bottom: 8px
}

.pill {
  display: inline-block;
  padding: 7px 14px;
  background: #fff0f1;
  color: #aa1d31;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 800
}

.feature-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--red)
}

.subhero {
  padding: 110px 0 95px;
  background: linear-gradient(135deg, #454343, #302e2e);
  color: white
}

.subhero h1 {
  max-width: 900px
}

.subhero p {
  font-size: 1.15rem;
  max-width: 710px;
  color: #e9e5e5
}

.subhero .eyebrow {
  color: #ffadb8
}

.anchor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.anchor-links a {
  border: 1px solid #d2cbcb;
  border-radius: 100px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: .9rem
}

@media(max-width:850px) {
  .main-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 24px #45434312
  }

  .main-nav.open {
    display: flex
  }

  .menu-toggle {
    display: block
  }

  .hero-grid,
  .split,
  .contact-layout {
    grid-template-columns: 1fr
  }

  .hero {
    padding: 65px 0
  }

  .hero-media img {
    height: 300px
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr
  }

  .cta {
    padding: 36px;
    flex-direction: column;
    align-items: start
  }

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

  .cookie-banner {
    flex-direction: column;
    align-items: stretch
  }
}

@media(max-width:600px) {
  .section {
    padding: 70px 0
  }

  .section-sm {
    padding: 48px 0
  }

  .grid-2,
  .grid-3,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr
  }

  .card,
  .form-card {
    padding: 23px
  }

  .hero-actions .btn {
    width: 100%
  }

  .cookie-banner .actions .btn {
    flex: 1
  }

  .floating-jobs {
    right: 12px;
    bottom: 12px
  }

  .footer {
    padding-bottom: 75px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

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


/* CABECERA NEGOZIA: menú desplegable siempre accesible, logotipo y contacto */
.site-header {
  height: 84px
}

.nav-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  justify-self: start;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  z-index: 2
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  border-radius: 4px;
  background: currentColor;
  transition: transform .2s, opacity .2s
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7.5px) rotate(45deg)
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7.5px) rotate(-45deg)
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: #f1eded
}

.brand {
  justify-self: center;
  white-space: nowrap;
  gap: 9px;
  letter-spacing: -.035em
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain
}

.brand-name {
  font-size: 1.2rem;
  color: var(--ink)
}

.brand-name strong {
  color: var(--red)
}

.header-contact {
  justify-self: end;
  white-space: nowrap
}

.main-nav {
  position: absolute;
  display: none;
  top: calc(100% + 1px);
  left: 24px;
  right: auto;
  width: min(350px, calc(100vw - 48px));
  padding: 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 45px rgba(69, 67, 67, .18);
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  z-index: 80
}

.main-nav.open {
  display: flex
}

.main-nav a {
  display: block;
  padding: 12px 15px;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 650
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: #faf0f1;
  color: var(--red)
}

.menu-heading {
  margin: 4px 15px 9px;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7b7777
}

@media(max-width:850px) {
  .main-nav {
    top: calc(100% + 1px);
    left: 24px;
    right: auto;
    align-items: stretch;
    padding: 15px;
    box-shadow: 0 20px 45px rgba(69, 67, 67, .18);
    border: 1px solid var(--border)
  }
}

@media(max-width:520px) {
  .site-header {
    height: 72px
  }

  .nav-inner {
    padding: 0 14px;
    gap: 6px
  }

  .brand img {
    width: 34px;
    height: 34px
  }

  .brand-name {
    font-size: .96rem
  }

  .header-contact {
    padding: 9px 11px;
    font-size: .76rem
  }

  .header-contact span {
    display: none
  }

  .main-nav {
    left: 14px;
    width: min(350px, calc(100vw - 28px))
  }
}

/* Prioridad sobre el antiguo selector del nombre de marca */
.brand .brand-name {
  color: var(--ink)
}

.brand .brand-name strong {
  color: var(--red)
}


/* ==========================================
   NEGOZIA BUSINESS - IMAGEN DE FONDO
   ========================================== */

.subhero-business {
  background-image:
    linear-gradient(
      90deg,
      rgba(30, 30, 30, 0.25) 0%,
      rgba(30, 30, 30, 0.10) 55%,
      rgba(30, 30, 30, 0.05) 100%
    ),
    url("/assets/business-hero.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

/* Mantener el texto por encima del fondo */
.subhero-business .container {
  position: relative;
  z-index: 1;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
  .subhero-business {
    background-position: 60% center;

    background-image:
      linear-gradient(
        rgba(30, 30, 30, 0.80),
        rgba(30, 30, 30, 0.70)
      ),
      url("/assets/business-hero.jpg");
  }
}

/* ==========================================
   NEGOZIA RESIDENCIAL - HERO CON IMAGEN
   ========================================== */

.subhero-residencial {
  background-image:
    linear-gradient(
      90deg,
      rgba(35, 33, 33, 0.82) 0%,
      rgba(35, 33, 33, 0.65) 40%,
      rgba(35, 33, 33, 0.12) 100%
    ),
    url("/assets/residencial-hero.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

/* Asegurar legibilidad del contenido */
.subhero-residencial .container {
  position: relative;
  z-index: 1;
}

/* Adaptación para tablets y móviles */
@media (max-width: 768px) {
  .subhero-residencial {
    background-position: 58% center;

    background-image:
      linear-gradient(
        90deg,
        rgba(35, 33, 33, 0.88),
        rgba(35, 33, 33, 0.65)
      ),
      url("/assets/residencial-hero.jpg");
  }
}


/* Campo de actividad empresarial */

.field textarea {
  width: 100%;
  min-height: 125px;
  padding: 14px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #ffffff;
  color: #454343;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.field textarea:focus {
  outline: none;
  border-color: #d9283b;
  box-shadow: 0 0 0 3px rgba(217, 40, 59, 0.12);
}

.field-help {
  display: block;
  margin-top: 7px;
  font-size: 0.82rem;
  color: #777;
  line-height: 1.5;
}

/* LOGOTIPO CENTRAL DE LA HOME */

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 40px;
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
}

.hero-media .hero-logo {
  display: block;
  width: 260px;
  max-width: 70%;
  height: auto;
  object-fit: contain;
  clip-path: none;
  transform: none;
}
