:root {
  /* Royal Blue */
  --color-primary: #0074B7;

  /* Neon Blue */
  --color-primary-hover: #1F60F8;

  /* Navy Blue */
  --color-dark: #003B73;

  /* textos */
  --color-text: #353535;

  /* Indigo Dye */
  --color-muted: #284B63;

  /* Platinum */
  --color-background: #D9D9D9;

  /* Baby Blue */
  --color-brand-light: #BFD7ED;

  /* Blue Grotto */
  --color-secondary: #60A3D9;

  /* White */
  --color-light: #FFFFFF;

  /* Bordes */
  --color-border: #D9D9D9;

  /* Ancho máximo */
  --container-width: 1200px;

  /* Redondeado */
  --border-radius: 22px;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  /* Fuentes */
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    Helvetica,
    sans-serif;

  /* Color normal del texto */
  color: var(--color-text);

  /* Fondo */
  background-color: var(--color-light);

  /* Separación entre líneas */
  line-height: 1.6;

  overflow-x: hidden;
}


img {
  /* Evita espacios raros */
  display: block;

  max-width: 100%;
}


a {
  color: inherit;

  /* Quita el subrayado */
  text-decoration: none;
}


button,
input,
textarea {
  font: inherit;
}


button {
  cursor: pointer;
}


/* Evita que el menú tape el comienzo de las secciones */
section {
  scroll-margin-top: 100px;
}



/* ==================================================
   HEADER
================================================== */

.header {
  /* Mantiene la cabecera arriba */
  position: sticky;

  top: 0;

  z-index: 1000;

  /* Fondo casi blanco */
  background-color: rgba(255, 255, 255, 0.96);

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

  backdrop-filter: blur(10px);
}


.header__container {
  /* Ancho del contenido */
  width: min(90%, var(--container-width));

  min-height: 90px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 40px;
}


.header__logo {
  flex-shrink: 0;
}


.header__logo img {
  /* Tamaño del logo */
  width: 180px;

  height: auto;
}


/* Agrupa menú e idiomas */
.header__right {
  display: flex;

  align-items: center;

  gap: 30px;
}


.navigation {
  display: flex;

  align-items: center;

  gap: 36px;

  font-weight: 600;
}


.navigation a {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}


.navigation a.active {
  color: var(--color-primary);

  border-bottom: 2px solid var(--color-primary);

  padding-bottom: 4px;
}



.navigation .navigation__contact.active {
  color: var(--color-light);

  background-color: var(--color-primary-hover);

  border-bottom: none;

  padding: 13px 25px;
}


.navigation a:hover {
  color: var(--color-primary);
}


/* Botón Contact */
.navigation__contact {
  padding: 13px 25px;

  color: var(--color-light);

  background-color: var(--color-dark);

  border-radius: 12px;
}


.navigation .navigation__contact:hover {
  color: var(--color-light);

  background-color: var(--color-primary-hover);

  transform: translateY(-1px);
}



/* ==================================================
   IDIOMAS
================================================== */

.language-selector {
  display: flex;

  align-items: center;

  gap: 6px;

  font-size: 0.85rem;

  font-weight: 600;

  white-space: nowrap;
}


.language-selector a {
  color: var(--color-muted);

  transition: color 0.2s ease;
}


.language-selector a:hover {
  color: var(--color-primary);
}


.language-selector__active {
  color: var(--color-primary);

  font-weight: 800;
}



/* ==================================================
   BOTONES Y TÍTULOS
================================================== */

.button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 52px;

  padding: 13px 24px;

  font-weight: 700;

  border: 1px solid transparent;

  border-radius: 13px;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}


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


.button--primary {
  color: var(--color-light);

  background-color: var(--color-dark);
}


.button--primary:hover {
  background-color: var(--color-primary-hover);
}


.button--secondary {
  color: var(--color-text);

  background-color: var(--color-light);

  border-color: var(--color-border);
}


.button--secondary:hover {
  border-color: var(--color-primary);
}


.section-heading {
  max-width: 720px;

  margin-bottom: 45px;
}


.section-heading__eyebrow,
.hero__eyebrow {
  margin: 0 0 16px;

  color: var(--color-primary);

  font-size: 0.9rem;

  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


.section-heading h2 {
  margin: 0 0 15px;

  color: var(--color-dark);

  font-size: clamp(2rem, 4vw, 3.2rem);

  line-height: 1.15;

  letter-spacing: -0.025em;
}


.section-heading p {
  color: var(--color-muted);
}



/* ==================================================
   PORTADA
================================================== */

.hero {
  position: relative;

  isolation: isolate;

  width: 100%;

  min-height: min(760px, calc(100vh - 90px));

  margin: 0;

  padding: 80px max(5%, calc((100% - var(--container-width)) / 2));

  background-color: var(--color-dark);

  background-image:
    linear-gradient(90deg, rgba(0, 35, 68, 0.9) 0%, rgba(0, 59, 115, 0.68) 48%, rgba(0, 59, 115, 0.38) 100%),
    url("assets/inventivat-hero-background.jpg"),
    url("assets/inventivat-hero-visual.png");

  background-position: center;

  background-size: cover;

  background-repeat: no-repeat;

  display: grid;

  grid-template-columns: minmax(0, 760px);

  align-items: center;

  gap: 0;
}


.hero__content {
  position: relative;

  z-index: 1;

  max-width: 760px;
}


.hero__eyebrow {
  color: var(--color-light);
}


.hero h1 {
  margin: 0;

  color: var(--color-light);

  font-size: clamp(3rem, 5.5vw, 5.2rem);

  line-height: 1.05;

  letter-spacing: -0.04em;
}


.hero__subtitle {
  max-width: 650px;

  margin: 28px 0;

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

  font-size: 1.2rem;
}


.hero__actions {
  display: flex;

  flex-wrap: wrap;

  gap: 15px;
}


.hero__visual {
  display: none;
}


/* Imagen de la portada (ver si queremos mantener esta) */
.hero__visual-image {
  width: 100%;

  height: auto;

  max-width: 540px;

  border-radius: 32px;

  box-shadow:
    0 25px 60px rgba(0, 59, 115, 0.14);
}



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

.services {
  padding:
    100px
    max(5%, calc((100% - var(--container-width)) / 2));

  background-color: rgba(217, 217, 217, 0.35);
}


.services__grid {
  /* Hay 3 servicios, si añadimos más hay que cambiar esto */
  display: grid;

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

  gap: 20px;
}


/*
  Contenedor exterior de la tarjeta.

  perspective es lo que permite que el giro
  tenga profundidad y no parezca un simple cambio.
*/
.service-card {
  min-height: 430px;

  padding: 0;

  background-color: transparent;

  border: 0;

  perspective: 1200px;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}


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

  filter:
    drop-shadow(0 18px 20px rgba(0, 59, 115, 0.08));
}


/*
  Esta es la parte que gira realmente.

  Dentro están la cara delantera y la trasera.
*/
.service-card__inner {
  position: relative;

  width: 100%;

  min-height: 430px;

  transition:
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);

  transform-style: preserve-3d;
}


/*
  JavaScript añade esta clase cuando
  pulsamos Explore projects.
*/
.service-card.is-flipped .service-card__inner {
  transform: rotateY(180deg);
}


/*
  Estilos compartidos por las dos caras.
*/
.service-card__face {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  padding: 30px;

  display: flex;

  flex-direction: column;

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

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

  backface-visibility: hidden;

  -webkit-backface-visibility: hidden;

  overflow: hidden;
}


/* Parte delantera */
.service-card__front {
  background-color: var(--color-light);

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}


/* Al pasar el ratón por cualquier tarjeta */
.service-card:hover .service-card__front {
  background-color: var(--color-brand-light);

  border-color: var(--color-primary);
}





/*
  Parte trasera.

  Está girada desde el principio y aparece
  cuando giramos el contenedor completo.
*/
.service-card__back {
  color: var(--color-light);

  background-color: var(--color-dark);

  transform: rotateY(180deg);
}


.service-card__number {
  color: var(--color-primary);

  font-weight: 800;
}


.service-card h3 {
  margin: 28px 0 12px;

  color: var(--color-dark);

  font-size: 1.3rem;
}


.service-card p {
  margin: 0;

  color: var(--color-muted);
}


/* Título de la parte trasera */
.service-card__back h3 {
  margin: 0 0 24px;

  color: var(--color-light);
}


/*
  Cada bloque de información que aparece
  por detrás de la tarjeta.
*/
.service-card__back-section {
  margin-bottom: 22px;
}


.service-card__back-label {
  display: block;

  margin-bottom: 8px;

  color: var(--color-brand-light);

  font-size: 0.75rem;

  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


.service-card__back ul {
  margin: 0;

  padding-left: 20px;
}


.service-card__back li {
  margin-bottom: 5px;

  color: var(--color-light);

  font-size: 0.9rem;

  line-height: 1.5;
}


/*
  Botones Explore projects y Back.

  Son botones porque ejecutan una acción
  y no llevan a otra página.
*/
.service-card__flip-button {
  width: fit-content;

  margin-top: auto;

  padding: 22px 0 0;

  color: var(--color-primary);

  background: none;

  border: 0;

  font-weight: 700;

  text-align: left;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}


.service-card__flip-button:hover {
  color: var(--color-primary-hover);

  transform: translateX(3px);
}


.service-card__back .service-card__flip-button {
  color: var(--color-brand-light);
}


.service-card__back .service-card__flip-button:hover {
  color: var(--color-light);
}


.service-card__flip-button:focus-visible {
  outline: 2px solid var(--color-primary);

  outline-offset: 5px;

  border-radius: 3px;
}



/* ==================================================
   CÓMO TRABAJAMOS
================================================== */

.process {
  padding:
    100px
    max(5%, calc((100% - var(--container-width)) / 2));

  color: var(--color-light);

  background-color: var(--color-dark);
}


.process .section-heading h2 {
  color: var(--color-light);
}


.process .section-heading__eyebrow {
  color: var(--color-brand-light);
}


.process__steps {
  margin: 50px 0 0;

  padding: 0;

  display: grid;

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

  gap: 35px;

  /* Quita los números automáticos del ol (que numera como 1.1, 1.2...) */
  list-style: none;
}


.process-step {
  position: relative;

  display: flex;

  align-items: center;

  gap: 16px;
}


.process-step__number {
  width: 48px;

  height: 48px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--color-dark);

  background-color: var(--color-secondary);

  font-weight: 800;

  border-radius: 50%;
}


.process-step h3 {
  margin: 0;

  font-size: 1.1rem;
}



/* ==================================================
   EMPRESA
================================================== */

.company {
  width: min(90%, var(--container-width));

  margin: 0 auto;

  padding: 110px 0;

  display: grid;

  grid-template-columns: 1fr 1fr;

  align-items: center;

  gap: 80px;
}


.company__content > p {
  max-width: 600px;

  color: var(--color-muted);

  font-size: 1.1rem;
}


/* Bloques de partners: AVEVA y Microsoft, uno debajo del otro */
.company__visual {
  width: 100%;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 20px;
}


.company__badge-card {
  width: 100%;

  max-width: 520px;

  min-height: 190px;

  padding: 28px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 20px;

  background-color: var(--color-light);

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

  border-radius: 30px;

  box-shadow:
    0 20px 50px rgba(0, 59, 115, 0.08);

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


.company__badge-card:hover {
  transform: translateY(-3px);

  border-color: var(--color-primary);

  box-shadow:
    0 24px 55px rgba(0, 59, 115, 0.12);
}


.company__badge-image {
  width: 100%;

  max-width: 380px;

  max-height: 140px;

  height: auto;

  object-fit: contain;
}


.company__badge-image--microsoft {
  max-width: 280px;

  max-height: 90px;
}


.company__partner-link {
  color: var(--color-primary);

  font-weight: 700;

  text-align: center;

  transition: color 0.2s ease;
}


.company__partner-link:hover {
  color: var(--color-primary-hover);
}

/* ==================================================
   CONTACTO
================================================== */

.contact {
  padding:
    100px
    max(5%, calc((100% - var(--container-width)) / 2));

  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 90px;

  background-color: rgba(217, 217, 217, 0.35);
}


.contact__introduction h2 {
  margin: 0 0 20px;

  color: var(--color-dark);

  font-size: clamp(2.2rem, 4vw, 3.5rem);

  line-height: 1.15;

  letter-spacing: -0.025em;
}


.contact__introduction > p:last-child {
  color: var(--color-muted);
}


.contact-form {
  width: 100%;

  min-width: 0;

  padding: 40px;

  background-color: var(--color-light);

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

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

  box-shadow:
    0 20px 50px rgba(0, 59, 115, 0.07);
}


.form-field {
  margin-bottom: 22px;
}


.form-field label {
  display: block;

  margin-bottom: 7px;

  font-weight: 700;
}


.form-field input,
.form-field textarea {
  width: 100%;

  min-width: 0;

  padding: 13px 15px;

  color: var(--color-text);

  background-color: var(--color-light);

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

  border-radius: 10px;

  outline: none;

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


.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);

  box-shadow:
    0 0 0 3px rgba(0, 116, 183, 0.14);
}


.form-field textarea {
  resize: vertical;
}


/* Checkbox + texto */
.form-field--checkbox {
  display: flex;

  align-items: flex-start;

  gap: 10px;
}


.form-field--checkbox input {
  width: auto;

  margin-top: 5px;
}


.form-field--checkbox label {
  margin: 0;

  font-weight: 400;
}


/* Enlaces de privacidad dentro del formulario */
.form-field--checkbox a {
  color: var(--color-primary);

  text-decoration: underline;
}


.contact-form__status {
  margin: 15px 0 0;
}


/* Captcha del formulario */
.h-captcha {
  max-width: 100%;

  margin: 0 0 22px;

  overflow: hidden;
}

/* ==========================================
   MODAL LEGAL
========================================== */

.legal-modal {
  position: fixed;
  inset: 0;

  z-index: 9999;

  display: none;

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

  padding: 24px;
}


.legal-modal.is-open {
  display: flex;
}


.legal-modal__backdrop {
  position: absolute;
  inset: 0;

  background-color: rgba(0, 20, 40, 0.72);

  backdrop-filter: blur(4px);
}


.legal-modal__dialog {
  position: relative;

  z-index: 1;

  width: min(960px, 100%);
  height: min(820px, 88vh);

  overflow: hidden;

  background-color: var(--color-light);

  border-radius: 28px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.28);
}


.legal-modal__iframe {
  width: 100%;
  height: 100%;

  border: 0;

  background-color: var(--color-light);
}


.legal-modal__close {
  position: absolute;

  top: 16px;
  right: 18px;

  z-index: 2;

  width: 42px;
  height: 42px;

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

  padding: 0;

  color: var(--color-dark);

  background-color: var(--color-light);

  border: 1px solid var(--color-border);
  border-radius: 50%;

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

  cursor: pointer;

  box-shadow:
    0 8px 22px rgba(0, 59, 115, 0.12);

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}


.legal-modal__close:hover {
  transform: scale(1.05);

  background-color: var(--color-brand-light);
}


body.legal-modal-open {
  overflow: hidden;
}


@media (max-width: 700px) {

  .legal-modal {
    padding: 0;
  }


  .legal-modal__dialog {
    width: 100%;
    height: 100%;

    border-radius: 0;
  }


  .legal-modal__close {
    top: 12px;
    right: 12px;
  }

}

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

.footer {
  padding: 45px 0;

  color: var(--color-light);

  background-color: var(--color-dark);
}


.footer__container {
  width: min(90%, var(--container-width));

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 40px;
}


.footer__logo {
  width: 160px;

  padding: 10px;

  background-color: var(--color-light);

  border-radius: 10px;
}


.footer nav {
  display: flex;

  flex-wrap: wrap;

  gap: 25px;

  color: var(--color-brand-light);
}


.footer a {
  transition: color 0.2s ease;
}


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

.footer__cookie-settings {
  padding: 0;

  color: var(--color-brand-light);

  background: none;

  border: 0;

  font: inherit;

  cursor: pointer;

  transition: color 0.2s ease;
}


.footer__cookie-settings:hover {
  color: var(--color-light);
}


/* ==================================================
   TABLETS
================================================== */

@media (max-width: 950px) {

  .header__container {
    gap: 25px;
  }


  .header__right {
    gap: 15px;
  }


  .navigation {
    gap: 18px;

    font-size: 0.92rem;
  }


  .navigation__contact {
    padding: 11px 17px;
  }


  .hero {
    /* Portada en una sola columna */
    grid-template-columns: 1fr;

    min-height: auto;

    padding: 70px 0;

    gap: 55px;
  }


  .hero__content {
    max-width: 760px;
  }


  .hero__visual-image {
    max-width: 500px;
  }


  .services__grid {
    /* Servicios uno debajo de otro si no caben */
    grid-template-columns: 1fr;
  }


  /*
    Las tarjetas siguen necesitando una altura
    fija porque las dos caras están superpuestas.
  */
  .service-card,
  .service-card__inner {
    min-height: 390px;
  }


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


  .process-step::after {
    display: none;
  }


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


  .company {
    gap: 50px;
  }


  .contact {
    gap: 50px;
  }

}



/* ==================================================
   MÓVILES
================================================== */

@media (max-width: 700px) {

  section {
    scroll-margin-top: 85px;
  }


  /* ------------------------------------------
     HEADER
  ------------------------------------------ */

  .header__container {
    width: 92%;

    min-height: 72px;

    padding: 12px 0;

    flex-wrap: wrap;

    gap: 15px;
  }


  .header__logo img {
    width: 130px;
  }


  .header__right {
    display: contents;
  }


  .navigation {
    order: 3;

    width: 100%;

    padding-bottom: 2px;

    justify-content: space-between;

    gap: 4px;

    overflow: hidden;

    font-size: clamp(0.65rem, 3.2vw, 0.78rem);

    white-space: nowrap;
  }


  .navigation a {
    min-width: 0;
  }


  .navigation .navigation__contact,
  .navigation .navigation__contact.active {
    padding: 8px 10px;
  }


  .language-selector {
    order: 2;

    margin-left: auto;

    font-size: 0.8rem;

    gap: 5px;
  }



  /* ------------------------------------------
     HERO
  ------------------------------------------ */

  .hero {
    width: 100%;

    min-height: auto;

    padding: 55px 20px 65px;

    grid-template-columns: 1fr;

    gap: 42px;

    background-position: 62% center;
  }


  .hero__content {
    width: 100%;

    max-width: 100%;
  }


  .hero__eyebrow {
    margin-bottom: 14px;

    font-size: 0.75rem;

    line-height: 1.5;

    letter-spacing: 0.07em;
  }


  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.3rem);

    line-height: 1.04;

    letter-spacing: -0.04em;
  }


  .hero__subtitle {
    margin: 23px 0 27px;

    font-size: 1rem;

    line-height: 1.7;
  }


  .hero__actions {
    width: 100%;

    flex-direction: column;

    gap: 11px;
  }


  .hero__actions .button {
    width: 100%;

    min-height: 52px;

    text-align: center;
  }


  .hero__visual {
    width: 100%;
  }


  .hero__visual-image {
    width: 100%;

    max-width: 430px;

    border-radius: 22px;

    box-shadow:
      0 18px 40px rgba(0, 59, 115, 0.13);
  }



  /* ------------------------------------------
     TÍTULOS DE SECCIÓN
  ------------------------------------------ */

  .section-heading {
    max-width: 100%;

    margin-bottom: 35px;
  }


  .section-heading__eyebrow {
    margin-bottom: 12px;

    font-size: 0.76rem;
  }


  .section-heading h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);

    line-height: 1.08;

    letter-spacing: -0.035em;
  }


  .section-heading p {
    font-size: 0.98rem;

    line-height: 1.7;
  }



  /* ------------------------------------------
     SERVICIOS
  ------------------------------------------ */

  .services {
    padding: 70px 20px;
  }


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

    gap: 16px;
  }


  .service-card {
    min-height: 430px;

    padding: 0;
  }


  .service-card__inner {
    min-height: 430px;
  }


  .service-card__face {
    padding: 25px;
  }


  .service-card:hover {
    /*
      En táctil no necesitamos que la tarjeta
      se mueva tanto como en escritorio.
    */
    transform: none;

    filter: none;
  }


  .service-card h3 {
    margin: 20px 0 10px;

    font-size: 1.25rem;
  }


  .service-card p {
    font-size: 0.95rem;

    line-height: 1.7;
  }


  .service-card__back h3 {
    margin: 0 0 20px;
  }


  .service-card__back-section {
    margin-bottom: 18px;
  }


  .service-card__back li {
    font-size: 0.86rem;

    line-height: 1.45;
  }


  .service-card__flip-button {
    padding-top: 18px;
  }



  /* ------------------------------------------
     CÓMO TRABAJAMOS
  ------------------------------------------ */

  .process {
    padding: 70px 20px;
  }


  .process__steps {
    margin-top: 35px;

    grid-template-columns: 1fr;

    gap: 18px;
  }


  .process-step {
    min-height: 70px;

    padding: 12px 0;

    gap: 18px;
  }


  .process-step::after {
    display: none;
  }


  .process-step__number {
    width: 46px;

    height: 46px;
  }


  .process-step h3 {
    font-size: 1.05rem;
  }



  /* ------------------------------------------
     EMPRESA
  ------------------------------------------ */

  .company {
    width: 100%;

    padding: 70px 20px;

    grid-template-columns: 1fr;

    gap: 38px;
  }


  .company__content > p {
    max-width: 100%;

    font-size: 0.98rem;

    line-height: 1.75;
  }


  .company__visual {
    width: 100%;

    gap: 16px;
  }


  .company__badge-card {
    width: 100%;

    max-width: 100%;

    min-height: 150px;

    padding: 20px;

    border-radius: 22px;
  }


  .company__badge-image {
    max-width: 300px;

    max-height: 110px;
  }


  .company__badge-image--microsoft {
    max-width: 220px;

    max-height: 70px;
  }



  /* ------------------------------------------
     CONTACTO
  ------------------------------------------ */

  .contact {
    padding: 70px 20px;

    grid-template-columns: 1fr;

    gap: 35px;
  }


  .contact__introduction h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);

    line-height: 1.08;
  }


  .contact__introduction > p:last-child {
    font-size: 0.98rem;

    line-height: 1.7;
  }


  .contact-form {
    width: 100%;

    padding: 24px 20px;

    border-radius: 18px;
  }


  .form-field {
    margin-bottom: 19px;
  }


  .form-field label {
    font-size: 0.95rem;
  }


  .form-field input,
  .form-field textarea {
    /*
      Los 16px son importantes porque evitan
      el zoom automático de Safari en iPhone.
    */
    font-size: 16px;

    padding: 12px 13px;
  }


  .form-field--checkbox {
    gap: 9px;
  }


  .form-field--checkbox label {
    font-size: 0.88rem;

    line-height: 1.6;
  }


  .contact-form .button {
    width: 100%;
  }



  /* ------------------------------------------
     hCAPTCHA
  ------------------------------------------ */

  .h-captcha {
    width: 100%;

    max-width: 100%;

    overflow: hidden;
  }



  /* ------------------------------------------
     FOOTER
  ------------------------------------------ */

  .footer {
    padding: 45px 20px;
  }


  .footer__container {
    width: 100%;

    flex-direction: column;

    align-items: flex-start;

    gap: 28px;
  }


  .footer__logo {
    width: 145px;
  }


  .footer nav {
    width: 100%;

    flex-direction: column;

    align-items: flex-start;

    gap: 12px;

    font-size: 0.95rem;
  }

}



/* ==================================================
   MÓVILES MUY PEQUEÑOS
================================================== */

@media (max-width: 380px) {

  .header__logo img {
    width: 115px;
  }


  .language-selector {
    font-size: 0.75rem;
  }


  .hero {
    padding-left: 16px;

    padding-right: 16px;
  }


  .hero h1 {
    font-size: 2.25rem;
  }


  .services,
  .process,
  .company,
  .contact {
    padding-left: 16px;

    padding-right: 16px;
  }


  .service-card,
  .service-card__inner {
    min-height: 450px;
  }


  .service-card__face {
    padding: 22px 20px;
  }


  .contact-form {
    padding: 20px 16px;
  }

}



/* ==================================================
   ANIMACIONES JAVASCRIPT
================================================== */

.fade-in-hidden {
  opacity: 0;

  transform: translateY(40px);

  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}


.fade-in-visible {
  opacity: 1;

  transform: translateY(0);
}



/* ==========================================
   BANNER DE COOKIES
========================================== */

.cookie-banner {
  position: fixed;

  left: 24px;
  right: 24px;
  bottom: 24px;

  z-index: 9999;

  display: flex;

  justify-content: center;
}


.cookie-banner__content {
  width: 100%;

  max-width: 900px;

  padding: 22px 26px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  background-color: var(--color-dark);

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

  box-shadow:
    0 20px 50px rgba(0, 59, 115, 0.25);
}


.cookie-banner p {
  margin: 0;

  color: var(--color-light);

  line-height: 1.6;
}


.cookie-banner a {
  color: var(--color-brand-light);

  text-decoration: underline;
}


.cookie-banner__actions {
  display: flex;

  gap: 12px;

  flex-shrink: 0;
}


.cookie-banner button {
  padding: 11px 18px;

  border-radius: 10px;

  border: 0;

  font: inherit;

  font-weight: 700;

  cursor: pointer;
}


.cookie-banner__accept {
  color: var(--color-light);

  background-color: var(--color-primary);
}


.cookie-banner__reject {
  color: var(--color-dark);

  background-color: var(--color-light);
}



@media (max-width: 700px) {

  .cookie-banner {
    left: 10px;

    right: 10px;

    bottom: 10px;
  }


  .cookie-banner__content {
    padding: 18px;

    flex-direction: column;

    align-items: stretch;

    gap: 16px;

    border-radius: 18px;
  }


  .cookie-banner p {
    font-size: 0.88rem;

    line-height: 1.55;
  }


  .cookie-banner__actions {
    width: 100%;

    display: grid;

    grid-template-columns: 1fr;

    gap: 9px;
  }


  .cookie-banner button {
    width: 100%;

    min-height: 44px;
  }

}