:root {
  --red: #df040b;
  --red-dark: #b50309;
  --red-soft: #fff1f2;

  --ink: #202020;
  --muted: #666666;

  --white: #ffffff;
  --soft: #f7f7f5;
  --line: #e7e7e3;

  --radius: 12px;
  --shadow: 0 12px 35px rgba(40, 30, 30, 0.05);
}

/* BASE */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 700;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

::selection {
  color: var(--ink);
  background: #ffdadd;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: 96px;
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  max-width: 730px;
  margin-bottom: 46px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.6;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 20px;
  z-index: 200;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--red);
  border-radius: 6px;
}

.skip-link:focus {
  top: 14px;
}

/* ENCABEZADO */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 30px;
}

.brand {
  display: block;
  flex-shrink: 0;
  width: 185px;
  text-decoration: none;
}

.brand img {
  width: 100%;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 27px;
}

.navigation a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navigation a:hover {
  color: var(--red);
}

.navigation .nav-contact {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.navigation .nav-contact:hover {
  color: var(--red);
  background: var(--red-soft);
  border-color: #f0c5c8;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
}

.menu-button:hover {
  background: var(--soft);
}

/* BOTONES */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 13px 22px;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  color: var(--white);
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}

.button-outline {
  color: var(--ink);
  background: var(--white);
  border-color: #d7d7d2;
}

.button-outline:hover {
  color: var(--ink);
  background: var(--soft);
  border-color: #bdbdb7;
}

/* INICIO */

.hero {
  padding-block: 104px;
  background: linear-gradient(
    135deg,
    var(--white) 35%,
    #f7f7f4 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 68px;
}

.hero-description {
  max-width: 550px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 24px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-brand img {
  width: 100%;
}

/* NOSOTROS */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
  gap: 80px;
}

.about-grid h2 {
  max-width: 480px;
}

.section-copy {
  color: var(--muted);
}

.section-copy p {
  margin-bottom: 20px;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

/* MISIÓN Y VISIÓN */

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.purpose-card {
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.purpose-card h3 {
  max-width: 430px;
  margin-top: 0;
  margin-bottom: 22px;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.purpose-card > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.values {
  margin-top: 42px;
}

.values h3 {
  margin-bottom: 20px;
  font-size: 23px;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.values-list li {
  padding: 10px 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14px;
}

/* SERVICIOS */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  padding: 31px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.service-card:hover {
  border-color: #edc7c9;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  margin-bottom: 23px;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* PROCESO */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-grid li {
  padding-top: 25px;
  border-top: 1px solid #dcdcd6;
}

.process-grid li > span {
  display: block;
  margin-bottom: 23px;
  color: var(--red);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.process-grid h3 {
  margin-bottom: 16px;
  font-size: 21px;
}

.process-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* SUCURSALES */

.branches-section {
  color: var(--ink);
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.branch-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.branch-label {
  margin-bottom: 16px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.branch-card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.branch-card address {
  min-height: 58px;
  color: var(--muted);
  font-style: normal;
}

.phone {
  display: block;
  width: fit-content;
  margin-top: 24px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.phone:hover {
  color: var(--red);
}

.branch-card .button {
  margin-top: auto;
}

/* CONTACTO */

.contact-section {
  background: var(--white);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 55px;
}

.contact-inner > div {
  max-width: 650px;
}

.contact-inner h2 {
  margin-bottom: 22px;
}

.contact-inner p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-inner > .button {
  flex-shrink: 0;
}

/* PIE DE PÁGINA */

.footer {
  padding-block: 34px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner > a:first-child {
  flex-shrink: 0;
}

.footer img {
  width: 160px;
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--red);
}

/* INTRODUCCIÓN */

.intro[hidden] {
  display: none;
}

.intro,
.intro.is-dark {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 35px;
  background: var(--white);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.intro img {
  width: min(460px, 78vw);
}

.intro.is-leaving {
  opacity: 0;
}

/* TABLET */

@media (max-width: 1050px) {
  .navigation {
    gap: 17px;
  }

  .brand {
    width: 165px;
  }

  .hero-grid {
    gap: 40px;
  }

  .about-grid {
    gap: 45px;
  }

  .hero-brand {
    padding: 30px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-inner {
    gap: 30px;
  }
}

/* CELULARES Y TABLETS PEQUEÑAS */

@media (max-width: 800px) {
  html {
    scroll-padding-top: 95px;
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: 82px;
    gap: 0;
  }

  .brand {
    width: 155px;
    margin-block: 15px;
  }

  .menu-button {
    display: inline-flex;
  }

  .navigation {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
    padding-bottom: 18px;
  }

  .navigation a {
    padding: 10px 12px;
  }

  .navigation .nav-contact {
    padding: 9px 14px;
  }

  .js .navigation {
    display: none;
  }

  .js .navigation.is-open {
    display: flex;
  }

  .hero {
    padding-block: 64px;
  }

  .hero-grid,
  .about-grid,
  .purpose-grid,
  .branches-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero-description {
    max-width: 620px;
  }

  .hero-brand {
    min-height: 260px;
    padding: 40px;
  }

  .hero-brand img {
    max-width: 440px;
  }

  .section {
    padding-block: 66px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .about-grid {
    gap: 22px;
  }

  .about-grid h2 {
    max-width: 600px;
    margin-bottom: 0;
  }

  .purpose-card {
    padding: 29px;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* CELULARES PEQUEÑOS */

@media (max-width: 480px) {
  .container {
    width: calc(100% - 36px);
  }

  h1 {
    font-size: clamp(38px, 10vw, 48px);
  }

  h2 {
    font-size: 32px;
  }

  .hero {
    padding-block: 48px;
  }

  .hero-description {
    font-size: 16px;
  }

  .actions {
    gap: 11px;
    margin-top: 27px;
  }

  .actions .button {
    width: 100%;
  }

  .hero-note {
    font-size: 12px;
  }

  .hero-brand {
    min-height: 210px;
    padding: 28px;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .branch-card,
  .purpose-card {
    padding: 26px;
  }

  .purpose-card h3 {
    font-size: 29px;
  }

  .values-list {
    gap: 9px;
  }

  .values-list li {
    padding: 9px 13px;
    font-size: 13px;
  }

  .branch-card h3 {
    font-size: 29px;
  }

  .branch-card address {
    min-height: auto;
  }

  .branch-card .button {
    width: 100%;
  }

  .phone {
    font-size: 23px;
  }

  .contact-inner > .button {
    width: 100%;
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* Entrada animada sobre fondo blanco */
.intro {
  background: #fff;
  pointer-events: auto;
}

.intro img {
  width: min(460px, 78vw);
  transform-origin: center;
}