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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


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

:root {
  color-scheme: light;
  --dark: #111111;
  --light: #ffffff;
  --cream: #f6f3ee;
  --accent: #d2ad62;
  --accent-dark: #a77f38;
  --red: #ff5f63;
  --text: #222222;
  --muted: #666666;
  --radius: 22px;
  --primary: rgb(0, 0, 0);
  --secondary: rgb(52, 114, 207);
  --second: rgb(24, 53, 95);
  --bg-tra: rgba(255, 255, 255, 0.9);
  --bg-solid: rgba(255, 255, 255, 0.7);
  --primary-gradient: radial-gradient(rgb(255, 255, 255), rgb(0, 0, 0));
}

/* Selector de idioma del menú */
.language-switcher {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
}

/* Selector de idiomas visible junto a la hamburguesa */
.mobile-language-list {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar .nav-links {
  gap: 20px;
}

.nav-links .language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 5px;
  opacity: 0.78;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.nav-links .language-flag:hover,
.nav-links .language-flag:focus-visible,
.nav-links .language-flag.is-active {
  border-color: var(--secondary);
  opacity: 1;
  transform: translateY(-1px);
}

.language-flag img {
  display: block;
  width: 22px;
  height: 15px;
  object-fit: cover;
}

.campo-form select {
  width: 100%;
  height: 62px;
  padding: 0 28px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background-color: #ffffff;
  color: var(--primary);
  font-family: inherit;
  font-size: 1.1rem;
  outline: none;

  -webkit-appearance: none;
  appearance: none;

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

.campo-form select:hover,
.campo-form select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(237, 102, 103, 0.14);
}

.campo-form input[type="file"] {
  height: auto;
  min-height: 62px;
  padding: 13px 18px;
  border-radius: 28px;
}

@media (max-width: 1100px) {
    
      /* Oculta las banderas que estaban dentro del desplegable */
  .nav-links > .language-switcher {
    display: none;
  }

  /* Muestra las banderas junto al botón de hamburguesa */
  .mobile-language-list {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1001;
  }

  .mobile-language-list .language-switcher {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .mobile-language-list .language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 22px;
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 5px;
    opacity: 0.78;
  }

  .mobile-language-list .language-flag:hover,
  .mobile-language-list .language-flag:focus-visible,
  .mobile-language-list .language-flag.is-active {
    border-color: var(--secondary);
    opacity: 1;
  }

  .mobile-language-list .language-flag img {
    display: block;
    width: 20px;
    height: 14px;
    object-fit: cover;
  }
    
  .language-switcher {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-links .language-flag {
    width: 34px;
    height: 26px;
  }

  .language-flag img {
    width: 27px;
    height: 18px;
  }
}

html,
body,
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100vw;
}

html {
  scroll-behavior: smooth;
  width: 100vw;
  min-height: 100vh;
}

body {
  width: 100vw;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  color: #111;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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


/* =========================
   NAVBAR
========================= */

header {
  width: 100%;
}

.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;

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

  padding: 26px 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.logo img {
  width: 190px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a,
.nav-links button.dropdown-toggle {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  transition: all 0.3s ease-in-out;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links .nav-active {
  color: var(--secondary);
}

.nav-links button.submenu-toggle:hover {
  color: var(--light);
}

.btn-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 22px;
  border-radius: 999px;

  color: var(--dark);
  font-weight: 800;
  text-decoration: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;

  background-color: transparent;
  background-image: radial-gradient(circle, transparent 0 50%, transparent 51%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0 0;

  overflow: hidden;
  transition:
    background-size 0.35s ease-out,
    color 0s ease;
}

/* Hover de todos los botones */
.btn-menu:hover {
  background-size: 250% 250%;
  color: var(--light);
}

/* El activo NO tiene fondo */
.btn-menu.nav-active {
  background-size: 0 0;
  background-color: transparent;
  color: var(--secondary);
}

/* Pero si pasas el ratón por el activo, también anima */
.btn-menu.nav-active:hover {
  background-size: 250% 250%;
  color: var(--secondary);
}

.btn-menu.btn-cta {
  padding: 15px 48px;

  background-color: var(--secondary);
  background-image: radial-gradient(circle, var(--second) 0 50%, transparent 51%);

  color: var(--light);
}

.btn-menu.btn-cta:hover {
  background-size: 250% 250%;
  color: var(--light);
}

.btn-menu.btn-mas {
  padding: 15px 48px;

  background-color: var(--light);
  background-image: radial-gradient(
    circle,
    var(--secondary) 0 50%,
    transparent 51%
  );

  color: var(--dark);
  border: rgb(0, 0, 0) 1px solid;
}

.btn-menu.btn-mas:hover {
  background-size: 250% 250%;
  color: var(--dark);
}

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

.nav-item {
  position: relative;
}

.has-dropdown .dropdown-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.has-dropdown.is-open .dropdown-toggle::after,
.has-dropdown:hover .dropdown-toggle::after,
.has-dropdown:focus-within .dropdown-toggle::after {
  transform: rotate(45deg) translateY(-2px);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);

  min-width: 210px;
  padding: 14px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.has-dropdown:hover .submenu,
.has-dropdown:focus-within .submenu,
.has-dropdown.is-open .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.submenu a,
.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
  padding: 11px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.submenu a:hover,
.submenu a:focus,
.submenu-toggle:hover,
.submenu-toggle:focus,
.has-subdropdown.is-open > .submenu-toggle {
  background: var(--secondary);
  color: var(--light);
}

.has-subdropdown.is-open > .submenu-toggle::after {
  color: var(--light);
}
/* =========================
   SUBDESPLEGABLE SERVICIO 5
========================= */

.has-subdropdown {
  position: relative;
}

.submenu-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
  transition: transform 0.25s ease;
}

.has-subdropdown.is-open .submenu-toggle::after,
.has-subdropdown:hover .submenu-toggle::after,
.has-subdropdown:focus-within .submenu-toggle::after {
  transform: rotate(-45deg);
}

.subsubmenu {
  position: absolute;
  top: 0;
  left: calc(100%);

  min-width: 210px;
  padding: 14px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateX(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.has-subdropdown:hover .subsubmenu,
.has-subdropdown:focus-within .subsubmenu,
.has-subdropdown.is-open .subsubmenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.subsubmenu a {
  display: block;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.subsubmenu a:hover,
.subsubmenu a:focus {
  background: var(--secondary);
  color: var(--light);
}

/* =========================
   HAMBURGUESA
========================= */

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--dark);
  z-index: 1001;

  position: relative;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease-in-out,
    opacity 0.2s ease-in-out;
}

.hamburger span {
  position: absolute;
  width: 34px;
  height: 4px;
  background: var(--muted);
  border-radius: 999px;
  transition:
    transform 0.3s ease-in-out,
    opacity 0.2s ease;
}
.hamburger:hover {
  transition: all 0.2s ease-in-out;
}

.hamburger:hover span {
  transition: all 0.3s ease-in-out;
  background: var(--secondary);
}

.hamburger span:nth-child(1) {
  transform: translateY(-11px);
}

.hamburger span:nth-child(3) {
  transform: translateY(11px);
}

.hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}

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

main {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

section {
  width: 100vw;
  height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* =========================
   MAIN - TOCAR SÓLO ESTO
========================= */
#bg-video {
  position: fixed;
  top: 0;
  right: 50%;
  transform: translateX(50%) translateY(-20%);

  height: 150vh;
  width: 150%;
  object-fit: cover;
  z-index: -2;
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
}

.portada {
  height: 90vh;
  background: rgba(255, 255, 255, 1);
  justify-content: center;
  align-items: start;
  padding: 20vh 10vw 0 10vw;
}

h1 {
  font-size: max(5vw, 60px);
  text-align: left;
  margin: 50px 0;
}

.portada p {
  font-size: max(1vw, 20px);
  width: max(50vw, 200px);
  margin: 10px 0 50px 0;
}

.portada div {
  display: flex;
  width: max(50vw, 200px);
  justify-content: space-between;
  gap: 10px;
}

.portada div a {
  width: 80vw;
}

/* =========================
   ABOUT
========================= */

.about,
.porque,
.experiencia {

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  padding: 10vw;
}

.about,
.esperiencia {
    background: var(--light);
}

.porque {
    padding: 0 10vw;  
}

.experiencia {
    padding: 10vw;  
}

.porque {
  background: linear-gradient(var(--bg-tra), rgb(255, 255, 255));    
}

.ventajas-lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

.ventaja-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 14px 16px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.ventaja-check {
  flex-shrink: 0;
  color: var(--secondary);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.ventaja-item p {
  margin: 0;
  color: #222;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}

@media screen and (min-width: 768px) {
  .ventajas-lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 26px;
  }

  .ventaja-item {
    padding: 16px;
  }
}

.about-descripcion {
  display: flex;
  flex-direction: column;
  width: 80vw;
}

.experiencia p, 
.porque p {
    text-align: left;
}

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

.idiomas-descripcion {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 50px;
  background: var(--light);
}

.idiomas-descripcion ul {
  display: flex;
  flex-direction: row;
}

.about p {
  font-size: 1.5em;
}

.about h3 {
  font-size: 2em;
  margin: 20px;
}

.idiomas-descripcion li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  width: 150px;
  height: 100px;
}

.idiomas-descripcion .flag-ico {
  display: flex;

  height: 30px;
  margin: 10px;
}

h2 {
  margin-bottom: 62px;
  padding-top: 50px;
  text-align: center;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
  font-weight: 900;
  color: var(--primary);
}

/* =========================
   RESEÑAS
========================= */

.opiniones {
  background: linear-gradient(var(--bg-tra), var(--light));
}

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

.servicios {
  width: 100%;
  min-height: auto;
  height: auto;
  display: block;
  border: none;
  background: linear-gradient(
    var(--light),
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.5),
    var(--bg-tra)
  );
  padding: 90px 7vw 95px;
}

.especialidades-contenedor {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.especialidades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 64px;
}

.especialidad-card {
  border: 2px solid rgb(0, 0, 0);
  min-height: 315px;
  display: flex;
  flex-direction: column;
  padding: 50px 42px 34px;
  border-radius: 34px;
  background: #ffffff;
}

.especialidad-card h3 {
  margin-bottom: 38px;
  text-align: center;
  font-size: clamp(1.55rem, 2.15vw, 2.45rem);
  line-height: 1.08;
  font-weight: 400;
  color: var(--primary);
}

.especialidad-card p {
  margin-bottom: 30px;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  line-height: 1.18;
  font-weight: 400;
  color: var(--primary);
}

.especialidad-card a {
  margin-top: auto;
  align-self: flex-end;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1;
  font-weight: 400;
  color: var(--secondary);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.especialidad-card a:hover {
  opacity: 0.75;
  transform: translateX(4px);
}

/* TABLET */

@media (max-width: 950px) {
  .servicios {
    padding: 74px 7vw 82px;
  }

  .especialidades-contenedor h2 {
    margin-bottom: 44px;
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .especialidades-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .especialidad-card {
    min-height: 280px;
    padding: 42px 34px 30px;
    border-radius: 30px;
  }

  .especialidad-card h3 {
    margin-bottom: 28px;
  }
}

/* MÓVIL */

@media (max-width: 600px) {
  h2 {
    margin-bottom: 34px;
    padding: 0 20px;
    text-align: center;
    line-height: 1.1;
  }

  .servicios {
    padding: 34px 0 46px;
  }

  .especialidades-contenedor {
    max-width: 100%;
  }

  .especialidades-grid {
    width: min(82vw, 360px);
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .especialidad-card {
    min-height: 0;
    padding: 28px 22px 22px;
    border: 1px solid var(--primary);
    border-radius: 17px;
  }

  .especialidad-card h3 {
    margin-bottom: 24px;
    font-size: 2rem;
    line-height: 1.08;
  }

  .especialidad-card p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.08;
  }

  .especialidad-card a {
    font-size: 0.75rem;
  }
}

/* PREGUNTAS */

.preguntas {
background: rgb(255,255,255);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0px;
}

.preguntas h2 {
  text-align: center;
  margin: 30px 80px 20px 80px;
}

.ppreguntas {
  text-align: justify;
  margin: 30px 10px 10px 10px;
  font-size: large;
}

details {
  background: var(--light);
  color: var(--dark);
  padding: 15px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  margin: 10px 20vw;
  padding: 25px;
  cursor: pointer;
  width: 80%;
  transition: all 0.2s ease-in-out;
}

details:hover {
  background: var(--light);
  color: var(--secondary);
}

details[open] {
  background: var(--light);
  color: var(--dark);
}

summary {
  font-size: 1.5em;
}

summary::before {
  padding-right: 20px;
}

@media screen and (min-width: 900px) {
}

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

.contacto {
  width: 100%;
  min-height: auto;
  height: auto;
  display: block;
  border: none;
  background: #ffffff;
  padding: 72px 0;
}

.contacto-contenedor {
  width: 100%;
  margin: 0 auto;
  padding: 0 10vw;
}

.contacto-contenedor h2 {
  margin-bottom: 42px;
  text-align: center;
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  color: var(--primary);
}

.contacto-form {
  width: 100%;
}

.campo-form {
  margin-bottom: 24px;
}

.campo-form label {
  display: block;
  margin-bottom: 14px;
  padding-left: 42px;
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  line-height: 1.1;
  font-weight: 900;
  color: var(--primary);
}

.campo-form input,
.campo-form textarea {
  width: 100%;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary);
  font-family: inherit;
  font-size: 1.1rem;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.campo-form input {
  height: 62px;
  padding: 0 28px;
}

.campo-form textarea {
  min-height: 190px;
  padding: 24px 28px;
  border-radius: 28px;
  resize: vertical;
}

.campo-form input:hover,
.campo-form textarea:hover,
.campo-form input:focus,
.campo-form textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(237, 102, 103, 0.14);
}

.btn-enviar {
  width: 100%;
  font-size: larger;
}

/* TABLET */

@media (max-width: 950px) {
  .contacto {
    padding: 64px 0;
  }

  .contacto-contenedor h2 {
    margin-bottom: 36px;
    font-size: clamp(2rem, 5vw, 3rem);
  }

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

  .campo-form label {
    padding-left: 28px;
    font-size: 1.35rem;
  }

  .campo-form input {
    height: 56px;
  }

  .campo-form textarea {
    min-height: 170px;
  }
}

/* MÓVIL */

@media (max-width: 600px) {
  .contacto {
    padding: 42px 0;
  }

  .contacto-contenedor h2 {
    margin-bottom: 30px;
    font-size: 1.65rem;
  }

  .campo-form {
    margin-bottom: 20px;
  }

  .campo-form label {
    margin-bottom: 10px;
    padding-left: 18px;
    font-size: 1.05rem;
  }

  .campo-form input {
    height: 48px;
    padding: 0 18px;
  }

  .campo-form textarea {
    min-height: 145px;
    padding: 18px;
    border-radius: 22px;
  }
}

/* =========================
   FOOTER - NO TOCAR A PARTIR DE AQUI
========================= */

.footer {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  width: 100vw;
  color: #070707;
  background: #ffffff;
  padding: 3vw 5vw 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 26% 37% 21.5% 15.5%;
  width: 100%;
}

.footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  min-height: 214px;
  padding: 36px 42px;
}

.footer-brand {
  text-align: center;
  margin-top: -10px;
  margin-left: 3vw;
}

.footer-business,
.footer-legal,
.footer-social {
  align-items: start;
  text-align: left;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 3.2vw, 3.95rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.footer h2 {
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 2.1vw, 1.95rem);
  line-height: 1.05;
  font-weight: 900;
}

.footer h3 {
  margin-bottom: 22px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
  font-weight: 900;
  text-align: left;
  width: 100%;
}

.footer address,
.footer a,
.footer p {
  font-size: 0.95rem;
  line-height: 1.35;
  font-style: normal;
  font-weight: 400;
  color: #070707;
}

.footer a {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.footer a:hover {
  opacity: 0.68;
}

.footer-menu {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(8, auto);
  grid-auto-columns: max-content;
  gap: 12px 58px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-social-list a {
  display: flex;
  align-items: center;
  background: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  gap: 16px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bolder;
}

.footer-social-list .logo-rrss {
  width: 15px;
  height: 15px;
  display: inline-block;
  flex: 0 0 15px;
}

.footer-bottom {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px 28px;
  background: #ffffff;
  text-align: center;
}

.footer-bottom p {
  max-width: 320px;
}

.coppyright {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 100vw;
}

footer .coppyright a {
  text-decoration: none;
  font-weight: bolder;
  font-size: medium;
  color: rgb(0, 0, 0);
}

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

@media (max-width: 1100px) {
  .navbar {
    padding: 22px 34px;
  }

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

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

  .footer {
    padding: 0 0 0 0;
  }

  .footer-business,
  .footer-legal,
  .footer-social {
    align-items: left;
    text-align: left;
  }
  
  .footer-social {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }

  .footer h3 {
    text-align: center;
  }
}

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

@media (min-width: 601px) and (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    order: 1;
  }

  .footer-social {
    order: 2;
  }

  .footer-business {
    order: 3;
  }

  .footer-legal {
    order: 4;
  }

  .footer-block {
    min-height: 260px;
    padding: 44px 14%;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-menu {
    grid-template-rows: repeat(11, auto);
    gap: 12px 46px;
  }
}

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

@media (max-width: 1100px) {
  .navbar {
    padding: 15px 22px;
  }

  .logo img {
    width: 150px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    padding: 110px 10px 70px 10px;
    top: 0;
    right: 0;

    width: 78%;
    max-width: 330px;
    height: 100vh;

    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    gap: 30px;

    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    background: rgba(255, 255, 255, 0.98);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.16);

    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;

    transition:
      transform 0.35s ease,
      opacity 0.35s ease;
  }

  .nav-links.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a,
  .nav-links button.dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 1.1rem;
  }

  .btn-menu {
    padding: 13px 30px;
  }

  .nav-item.has-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .submenu {
    position: static;
    min-width: 0;
    width: min(240px, 100%);
    max-height: 0;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(246, 243, 238, 0.75);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition:
      max-height 0.3s ease,
      margin-top 0.3s ease,
      padding 0.3s ease;
  }

  .has-dropdown:hover .submenu,
  .has-dropdown:focus-within .submenu,
  .has-dropdown.is-open .submenu {
    transform: none;
  }

  .has-dropdown.is-open .submenu {
    max-height: 560px;
    margin-top: 10px;
    padding: 10px;
  }

  .submenu a,
  .submenu-toggle {
    justify-content: space-between;
    padding: 10px 14px;
    text-align: left;
    font-size: 0.98rem;
  }
  
  .submenu {
  width: 100%;
}

.submenu a,
.submenu-toggle {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.25;
  align-items: flex-start;
  text-align: left;
}

.has-dropdown.is-open .submenu {
  max-height: 760px;
}

  .has-subdropdown {
    width: 100%;
  }

  .submenu-toggle::after {
    transform: rotate(45deg);
  }

  .has-subdropdown.is-open .submenu-toggle::after {
    transform: rotate(-135deg);
  }

  .subsubmenu {
    position: static;
    min-width: 0;
    width: 100%;
    max-height: 0;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition:
      max-height 0.3s ease,
      margin-top 0.3s ease,
      padding 0.3s ease;
  }

  .has-subdropdown:hover .subsubmenu,
  .has-subdropdown:focus-within .subsubmenu,
  .has-subdropdown.is-open .subsubmenu {
    transform: none;
  }

  .submenu-toggle::after {
    transform: rotate(-135deg);
  }

  .has-subdropdown.is-open .submenu-toggle::after,
  .has-subdropdown:hover .submenu-toggle::after,
  .has-subdropdown:focus-within .submenu-toggle::after {
    transform: rotate(45deg);
  }

  .has-subdropdown.is-open .subsubmenu {
    max-height: 240px;
    margin-top: 8px;
    padding: 8px;
  }

  .subsubmenu a {
    text-align: left;
    font-size: 0.92rem;
    padding: 9px 12px;
  }

  .menu-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 30px;
  }

  .btn-menu-cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .portada {
    height: 80vh;
    width: 100vw;
    background: rgb(255, 255, 255);
    justify-content: end;
    align-items: center;
    padding: 0 10vw 10vh 10vw;
  }

  .portada div {
    display: flex;
    flex-direction: column;
    width: 80vw;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .portada div a {
    width: 80vw;
  }

h1 {
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
  padding: 0;
  text-align: center;
  font-size: clamp(2.2rem, 11vw, 4.5rem);
  line-height: 1.05;
}

  h2,
  .servicios h2,
  .preguntas h2,
  .contacto h2 {
    font-size: 3em;
  }
  
  .contacto h2 {
    margin-bottom: 0;
    margin-bottom: 0;
  }
  
.contacto p {
  width: 100%;
  width: 80vw;
  margin: 0 auto 50px;
  text-align: center;
}

  .about {
    background: rgba(255, 255, 255);
    text-align: center;
  }

  .about-descripcion {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: rgb(255, 255, 255);
    padding: 50px 10vw 50px 10vw;
  }

  .idiomas-descripcion {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100vw;
    padding: 50px 10vw;
  }

  .idiomas-descripcion ul {
    display: flex;
    flex-direction: column;
  }

  .campo-form label {
    font-size: 1.5em;
  }

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

  .footer-block {
    min-height: auto;
    padding: 38px 15%;
  }

  .footer-brand {
    order: 1;
    min-height: 226px;
    margin-top: 0;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-social {
    order: 2;
  }

  .footer-business {
    order: 3;
  }

  .footer-legal {
    order: 4;
  }

  .footer-social,
  .footer-business,
  .footer-legal {
    padding-top: 40px;
    padding-bottom: 44px;
  }

  .footer-menu {
    grid-template-rows: repeat(11, auto);
    grid-auto-columns: max-content;
    gap: 12px 48px;
  }

  .footer-bottom {
    min-height: 100px;
    padding-top: 26px;
    padding-bottom: 30px;
  }
  
  
  .portada {
  padding: 0 8vw 8vh;
}

.portada h1 {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  font-size: clamp(1.7rem, 9vw, 2.4rem);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h2,
.servicios h2,
.preguntas h2,
.contacto h2 {
  font-size: clamp(1.8rem, 10vw, 2.5rem);
  overflow-wrap: normal;
  word-break: normal;
}
}

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

@media (max-width: 480px) {
    
      .mobile-language-list {
    margin-right: auto;
  }

  .mobile-language-list .language-switcher {
    gap: 2px;
  }

  .mobile-language-list .language-flag {
    width: 22px;
    height: 20px;
    padding: 1px;
  }

  .mobile-language-list .language-flag img {
    width: 18px;
    height: 12px;
  }
  .navbar {
    padding: 12px 18px;
  }

  .logo img {
    width: 135px;
  }

  .btn {
    width: 100%;
  }

.portada h1 {
  font-size: clamp(2rem, 10.5vw, 2.8rem);
  line-height: 1.05;
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
}
  .section h2 {
    font-size: 2rem;
  }

  .footer-block {
    padding-left: 15%;
    padding-right: 10%;
  }

  .footer-menu {
    gap: 12px 38px;
  }

  .footer-logo {
    font-size: 2.7rem;
  }
}

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

@media (max-width: 350px) {
  .navbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .logo img {
    width: 105px;
  }

  .hamburger {
    width: 36px;
    height: 36px;
  }
}

/* =========================
   ANIMACIÓN AL HACER SCROLL
   Solo CSS
========================= */

@supports (animation-timeline: view()) {
  .about h2,
  .porque h2,
  .experiencia h2,
  .about p,
  .porque p,
  .experiencia p,
  .ventaja-item,
  .idiomas-descripcion h2,
  .idiomas-descripcion li,
  .especialidades-contenedor h2,
  .especialidad-card,
  .preguntas h2,
  details {
    opacity: 0;
    transform: translateY(46px);
    animation-name: aparecer-scroll;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
    animation-timeline: view();
    animation-range: entry 0% cover 34%;
  }

  .especialidades-contenedor h2 {
    transform: translateY(28px);
  }

  .especialidad-card:nth-child(1) {
    animation-range: entry 0% cover 28%;
  }

  .especialidad-card:nth-child(2) {
    animation-range: entry 4% cover 32%;
  }

  .especialidad-card:nth-child(3) {
    animation-range: entry 8% cover 36%;
  }

  .especialidad-card:nth-child(4) {
    animation-range: entry 0% cover 28%;
  }

  .especialidad-card:nth-child(5) {
    animation-range: entry 4% cover 32%;
  }

  .especialidad-card:nth-child(6) {
    animation-range: entry 8% cover 36%;
  }
}

@keyframes aparecer-scroll {
  from {
    opacity: 0;
    transform: translateY(46px) scale(0.1);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   ACCESIBILIDAD: REDUCIR MOVIMIENTO
========================= */

@media (prefers-reduced-motion: reduce) {
  .especialidades-contenedor h2,
  .especialidad-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* =========================
   PÁGINAS DE SERVICIOS
========================= */

.service-main {
  background: transparent;
  color: var(--dark);
}
.service-main > section {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  position: relative;
  align-items: stretch;
  justify-content: flex-start;
}
.service-hero {
  min-height: 620px;
  padding: 170px max(7vw, 24px) 90px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.6) 55%, rgba(255, 255, 255, 1) 100%);
  color: var(--dark);
}
.service-hero:after {
  content: none;
}
.service-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}
.service-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 18px;
}
.service-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 900px;
  margin: 0 0 28px;
}
.service-hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 38px;
  color: rgba(17, 17, 17, 0.78);
}
.service-section {
  background: var(--light);
  padding: 95px max(7vw, 24px);
}

.service-section__inner {
  display: flex;
  align-items: flex-start;
  gap: 70px;
  max-width: 1160px;
  margin: auto;
}
.service-intro {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.service-intro > div:first-child,
.service-intro > div:last-child {
  flex: 0 0 auto;
  width: 100%;
}
.service-section__inner > div:first-child {
  flex: 0 1 38%;
  min-width: 0;
}
.service-section__inner > div:last-child {
  flex: 1 1 62%;
  min-width: 0;
}
.service-section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
  justify-content: center;
  align-items: center;
  padding-top: 0;
}
.service-copy p {
  font-size: 1.08rem;
  line-height: 1.8;
  margin: 0 0 20px;
  color: var(--text);
}
.service-documents {
  background: linear-gradient(rgba(255,255,255,9), rgba(255,255,255,.95),rgba(255,255,255,1));
}
.service-documents .service-section__inner {
  display: flex;
  gap: 75px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-list li {
  flex: 1 1 calc(50% - 14px);
  min-width: 250px;
  position: relative;
  padding: 17px 16px 17px 42px;
  background: var(--light);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}
.service-list li:before {
  content: "✓";
  position: absolute;
  left: 17px;
  color: var(--secondary);
  font-weight: 900;
}
.service-note {
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.7;
}
.service-process .service-section__inner {
  display: flex;
  gap: 75px;
}
.service-process-card {
  border-left: 4px solid var(--secondary);
  padding: 8px 0 8px 35px;
}

.service-process-card p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 18px;
}
.service-cta {
  padding: 110px max(7vw, 24px);
  background: var(--light);
  color: var(--dark);
  text-align: center;
}
.service-cta__inner {
  max-width: 780px;
  margin: auto;
}
.service-cta h2 {
  margin-bottom: 24px;
}
.service-cta p {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--dark);
  margin: 0 auto 34px;
}
.service-main + .footer {
  margin-top: 0;
}
@media (max-width: 750px) {
  .service-hero {
    min-height: 560px;
    padding-top: 135px;
  }
  .service-intro,
  .service-documents .service-section__inner,
  .service-process .service-section__inner {
    flex-direction: column;
    gap: 36px;
  }
  .service-section__inner > div:first-child,
  .service-section__inner > div:last-child {
    flex-basis: auto;
    width: 100%;
  }
  .service-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .service-list {
    flex-direction: column;
  }
  .service-list li {
    flex-basis: auto;
    min-width: 0;
    width: 100%;
  }
  .service-hero h1 {
    font-size: 2.7rem;
  }
  .service-cta {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (max-width: 240px) {
  body {
    font-size: 12px;
  }

  section {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .navbar {
    padding: 8px 10px;
  }

  .logo img {
    width: 90px;
  }

  .hamburger {
    width: 32px;
    height: 32px;
  }

  .hamburger span {
    width: 24px;
    height: 3px;
  }

  .portada {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 70px 12px 24px;
    justify-content: center;
  }

  .portada h1 {
    width: 100%;
    max-width: 100%;
    margin: 12px 0 18px;
    font-size: 1.05rem;
    line-height: 1.12;
    text-align: center;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .portada div {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .portada div a {
    width: 100%;
    padding: 9px 6px;
    font-size: 0.65rem;
  }

  h2,
  .servicios h2,
  .preguntas h2,
  .contacto h2 {
    margin-bottom: 18px;
    padding: 0 6px;
    font-size: 1.2rem;
    line-height: 1.12;
  }

  h3,
  .especialidad-card h3 {
    font-size: 1rem;
    line-height: 1.15;
  }

  p,
  .about p,
  .porque p,
  .experiencia p,
  .especialidad-card p,
  .service-copy p,
  .service-process-card p {
    width: 100%;
    margin-bottom: 12px;
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: left;
  }

  .about,
  .porque,
  .experiencia,
  .idiomas-descripcion,
  .servicios,
  .preguntas,
  .contacto {
    padding: 26px 12px;
  }

  .idiomas-descripcion ul {
    width: 100%;
  }

  .idiomas-descripcion li {
    width: 100%;
    height: auto;
    padding: 8px 0;
    font-size: 0.75rem;
  }

  .idiomas-descripcion .flag-ico {
    height: 20px;
    margin: 5px;
  }

  .especialidades-grid {
    width: 100%;
    gap: 16px;
  }

  .especialidad-card {
    width: 100%;
    padding: 18px 12px 14px;
    border-radius: 14px;
  }

  .especialidad-card h3 {
    margin-bottom: 14px;
  }

  .especialidad-card a {
    font-size: 0.7rem;
  }

  .ventajas-lista {
    gap: 8px;
  }

  .ventaja-item {
    min-height: 0;
    padding: 9px;
    gap: 8px;
  }

  .ventaja-check {
    font-size: 16px;
  }

  .ventaja-item p {
    font-size: 0.68rem;
  }

  details {
    width: 100%;
    margin: 6px 0;
    padding: 10px;
    border-radius: 14px;
  }

  summary {
    font-size: 0.75rem;
  }

  .ppreguntas {
    margin: 10px 0 0;
    font-size: 0.68rem;
  }

  .contacto-contenedor {
    padding: 0;
  }

  .campo-form {
    margin-bottom: 12px;
  }

  .campo-form label {
    margin-bottom: 6px;
    padding-left: 4px;
    font-size: 0.72rem;
  }

  .campo-form input {
    height: 36px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .campo-form textarea {
    min-height: 80px;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.7rem;
  }

  .footer-block {
    padding: 20px 12px;
  }

  .footer h3 {
    font-size: 1rem;
  }

  .footer address,
  .footer a,
  .footer p {
    font-size: 0.68rem;
  }

  .footer-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }


.footer-social-list a {
    padding: 7px 10px;
    font-size: 0.65rem;
  }

  .footer-bottom {
    min-height: 60px;
    padding: 12px;
  }
}

@media (min-width: 1101px) {
  .nav-links .language-switcher {
    gap: 8px;
  }

  .nav-links .language-flag {
    width: 32px;
    height: 25px;
  }

  .nav-links .language-flag img {
    width: 26px;
    height: 18px;
  }
}

/* =========================
   FIX ANCHO MÓVIL
   Las secciones ocupan todo el ancho sin dejar huecos laterales
========================= */

@media (max-width: 450px) {
  html,
  body,
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  section,
  .portada,
  .about,
  .idiomas-descripcion,
  .servicios,
  .porque,
  .experiencia,
  .preguntas,
  .contacto,
  .footer,
  .footer-bottom,
  .coppyright {
    width: 100%;
    max-width: 100%;
  }

  .portada {
    background: #ffffff;
  }

  .about,
  .idiomas-descripcion,
  .servicios,
  .porque,
  .experiencia,
  .preguntas,
  .contacto {
    position: relative;
    z-index: 1;
  }

  .portada h1 {
    width: 100%;
    max-width: 100%;
  }

  .portada div {
    width: 100%;
    max-width: 100%;
  }

  .portada div a {
    width: 100%;
  }
}

/* =========================
   FALLBACK ANIMACIONES MÓVIL
   Para navegadores móviles donde animation-timeline falla
========================= */

@media (max-width: 768px) {
  .about h2,
  .porque h2,
  .experiencia h2,
  .about p,
  .porque p,
  .experiencia p,
  .ventaja-item,
  .idiomas-descripcion h2,
  .idiomas-descripcion li,
  .especialidades-contenedor h2,
  .especialidad-card,
  .preguntas h2,
  details {
    opacity: 1;
    transform: none;
    animation-name: aparecer-mobile;
    animation-duration: 0.75s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
    animation-timeline: auto;
  }

  .especialidad-card:nth-child(1),
  .ventaja-item:nth-child(1),
  details:nth-of-type(1) {
    animation-delay: 0.05s;
  }

  .especialidad-card:nth-child(2),
  .ventaja-item:nth-child(2),
  details:nth-of-type(2) {
    animation-delay: 0.12s;
  }

  .especialidad-card:nth-child(3),
  .ventaja-item:nth-child(3),
  details:nth-of-type(3) {
    animation-delay: 0.19s;
  }

  .especialidad-card:nth-child(4),
  .ventaja-item:nth-child(4),
  details:nth-of-type(4) {
    animation-delay: 0.26s;
  }

  .especialidad-card:nth-child(5),
  .ventaja-item:nth-child(5) {
    animation-delay: 0.33s;
  }

  .especialidad-card:nth-child(6),
  .ventaja-item:nth-child(6) {
    animation-delay: 0.4s;
  }

  .especialidad-card:nth-child(7),
  .ventaja-item:nth-child(7) {
    animation-delay: 0.47s;
  }

  .ventaja-item:nth-child(8) {
    animation-delay: 0.54s;
  }
}

@keyframes aparecer-mobile {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   ACCESIBILIDAD: REDUCIR MOVIMIENTO
========================= */

@media (prefers-reduced-motion: reduce) {
  .about h2,
  .porque h2,
  .experiencia h2,
  .about p,
  .porque p,
  .experiencia p,
  .ventaja-item,
  .idiomas-descripcion h2,
  .idiomas-descripcion li,
  .especialidades-contenedor h2,
  .especialidad-card,
  .preguntas h2,
  details {
    opacity: 1;
    transform: none;
    animation: none;
  }
}


/* =========================
   PAGINA EQUIPO
========================= */

.equipo-main {
  width: 100%;
  background: transparent;
}

.equipo-main section {
  width: 100%;
  height: auto;
}

.equipo-hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 10vw 90px;
  background: linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.6) 55%, rgba(255, 255, 255, 1) 100%);
  text-align: center;
}

.equipo-hero-contenido {
  max-width: 880px;
  margin: 0 auto;
}

.equipo-kicker {
  margin-bottom: 22px;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}

.equipo-hero h1 {
  width: 100%;
  max-width: 100%;
  margin: 0 0 32px;
  padding: 0;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  font-weight: 900;
  text-align: center;
  color: var(--primary);
}

.equipo-intro {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  color: var(--text);
}

.equipo-directiva {
  padding: 95px 10vw;
  background: var(--light);
}

.equipo-directiva-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) 1.4fr;
  gap: 70px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.equipo-foto {
  display: flex;
  justify-content: center;
  align-items: center;
}

.equipo-foto-card {
  width: min(100%, 360px);
  aspect-ratio: auto;
  margin: 0;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
}

.equipo-foto-card {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 87%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 87%, transparent 100%);
}

.equipo-foto-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.equipo-bio h2,
.equipo-cv h2,
.equipo-colaboradores h2,
.equipo-cta h2 {
  margin-bottom: 34px;
  padding-top: 0;
  text-align: left;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  color: var(--primary);
}

.equipo-bio p,
.equipo-colaboradores p,
.equipo-cta p {
  margin-bottom: 22px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--text);
}

.equipo-cv {
  padding: 95px 10vw;
  background: linear-gradient(
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0.86),
    rgba(255, 255, 255, 1)
  );
}

.equipo-cv-contenedor {
  max-width: 1180px;
  margin: 0 auto;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.cv-card {
  min-height: 220px;
  padding: 38px 34px;
  border: 2px solid var(--primary);
  border-radius: 30px;
  background: #ffffff;
}

.cv-card h3 {
  margin-bottom: 24px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
  font-weight: 900;
  color: var(--primary);
}

.cv-card p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
}

.equipo-colaboradores {
  padding: 95px 10vw;
  background: var(--light);
}

.equipo-colaboradores-contenido {
  max-width: 1180px;
  margin: 0 auto;
}

.colaboradores-lista {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  margin-top: 42px;
}

.colaborador-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.colaborador-item span {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--secondary);
}

.colaborador-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.equipo-cta {
  padding: 95px 10vw 110px;
  background: #ffffff;
  text-align: center;
}

.equipo-cta-contenido {
  max-width: 780px;
  margin: 0 auto;
}

.equipo-cta h2 {
  text-align: center;
}

.equipo-cta p {
  max-width: 620px;
  margin: 0 auto 36px;
  text-align: center;
}

@media (max-width: 950px) {
  .equipo-hero {
    min-height: 62vh;
    padding: 135px 8vw 75px;
  }

  .equipo-directiva,
  .equipo-cv,
  .equipo-colaboradores,
  .equipo-cta {
    padding: 78px 8vw;
  }

  .equipo-directiva-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .equipo-bio h2,
  .equipo-cv h2,
  .equipo-colaboradores h2 {
    text-align: center;
  }

  .equipo-bio p,
  .equipo-colaboradores p {
    text-align: center;
  }

  .equipo-foto-card {
    max-width: 330px;
  }

  .cv-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .cv-card {
    padding: 32px 28px;
  }
}

@media (max-width: 600px) {
  .equipo-main,
  .equipo-main section {
    width: 100%;
    max-width: 100%;
  }

  .equipo-hero {
    min-height: 72vh;
    padding: 120px 8vw 60px;
  }

  .equipo-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .equipo-hero h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
    line-height: 1;
  }

  .equipo-intro {
    font-size: 1rem;
  }

  .equipo-directiva,
  .equipo-cv,
  .equipo-colaboradores,
  .equipo-cta {
    padding: 58px 7vw;
  }

  .equipo-foto-card {
    width: min(82vw, 280px);
    border-radius: 0;
  }

  .equipo-bio h2,
  .equipo-cv h2,
  .equipo-colaboradores h2,
  .equipo-cta h2 {
    margin-bottom: 26px;
    font-size: clamp(1.9rem, 10vw, 2.6rem);
    text-align: center;
  }

  .equipo-bio p,
  .equipo-colaboradores p,
  .equipo-cta p {
    font-size: 0.98rem;
    line-height: 1.55;
    text-align: center;
  }

  .cv-grid,
  .colaboradores-lista {
    grid-template-columns: 1fr;
  }

  .cv-card {
    min-height: auto;
    padding: 30px 24px;
    border-width: 1px;
    border-radius: 22px;
  }

  .cv-card h3 {
    text-align: center;
    font-size: 1.35rem;
  }

  .cv-card p {
    text-align: center;
    font-size: 0.95rem;
  }

  .colaborador-item {
    align-items: flex-start;
    padding: 16px;
  }

  .colaborador-item p {
    text-align: left;
  }

  .equipo-cta .btn-menu {
    width: 100%;
    max-width: 310px;
  }
}

/* Selector de cantidad del formulario */
.cantidad-selector { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cantidad-selector label { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; }
.cantidad-selector input { width: auto; }
.idiomas-consulta { text-align: center; margin: 1.5rem auto 0; }
.idiomas-consulta a.btn-menu.btn-cta { display: inline-flex; }

.campo-form[hidden] { display: none !important; }

/* v48: idiomas en filas equilibradas, sin desbordamiento horizontal */
.idiomas-descripcion { box-sizing: border-box; width: 100%; max-width: 100%; }
.idiomas-descripcion ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 12px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.idiomas-descripcion li {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: auto;
  padding: 10px 2px;
  text-align: center;
}
.idiomas-descripcion .flag-ico {
  width: auto;
  max-width: 80%;
  height: 30px;
  object-fit: contain;
}
@media (max-width: 650px) {
  .idiomas-descripcion ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .idiomas-descripcion li { font-size: 1rem; }
  .idiomas-descripcion .flag-ico { height: 25px; }
}

/* v49: banderas de idiomas con dimensiones uniformes */
.idiomas-descripcion .flag-ico {
  display: block;
  width: 60px;
  height: 40px;
  max-width: 100%;
  margin: 10px auto;
  object-fit: fill;
  flex: 0 0 auto;
}
@media (max-width: 650px) {
  .idiomas-descripcion .flag-ico {
    width: 54px;
    height: 36px;
  }
}

/* v51: dimensiones visuales iguales sin deformar las banderas */
.idiomas-descripcion .flag-ico {
  width: 60px;
  height: 40px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 650px) {
  .idiomas-descripcion .flag-ico {
    width: 54px;
    height: 36px;
  }
}

/* v52: banderas vectoriales normalizadas a proporcion 3:2; sin recortes ni deformaciones */
.idiomas-descripcion .flag-ico {
  display: block;
  width: 60px;
  height: 40px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
@media (max-width: 650px) {
  .idiomas-descripcion .flag-ico { width: 54px; height: 36px; }
}

/* v53: todas las banderas con el mismo lienzo y sin recorte */
.idiomas-descripcion .flag-ico { width: 60px; height: 40px; min-width: 60px; min-height: 40px; max-width: none; object-fit: contain; object-position: center; }
@media (max-width: 650px) { .idiomas-descripcion .flag-ico { width: 54px; height: 36px; min-width: 54px; min-height: 36px; } }

/* v54: banderas originales conservadas; cinco nuevas con el mismo formato visual 2:1 */
.idiomas-descripcion .flag-ico { display:block; width:60px; height:40px; min-width:60px; min-height:40px; object-fit:contain; object-position:center; }
@media(max-width:650px){.idiomas-descripcion .flag-ico{width:54px;height:36px;min-width:54px;min-height:36px;}}

/* Soltrad v63 */
.soltrad-trap { position:absolute !important;left:-10000px !important;width:1px;height:1px;overflow:hidden; }
.contacto-form [hidden] { display:none !important; }
.contacto-form .st-check { display:flex;align-items:flex-start;gap:10px; }
.contacto-form .st-check input { width:auto;flex:0 0 auto;margin-top:5px; }
.st-legal-links { text-align:center;margin-top:20px; }
.formulario-exito { padding:16px;color:#155724;background:#dff5e3;border-radius:8px; }
.formulario-error { padding:16px;color:#8a1824;background:#fde9eb;border-radius:8px; }

/* v74: firma de desarrollo con el logo junto al año. */
.footer-bottom .coppyright{width:100%;height:auto;min-height:50px}
.footer-bottom .footer-signature{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 18px;max-width:100%;line-height:1.5}
.footer-signature .footer-developer-logo{display:block;width:142px;max-width:100%;height:auto;flex:0 0 auto}
@media(max-width:600px){.footer-bottom .footer-signature{font-size:12px;gap:10px 12px}.footer-signature .footer-developer-logo{width:122px}}
