/* === VARIABLES (COLORES Y TIPOGRAFÍA) === */
:root {
  --nima-purple: #6f1952;
  --nima-blue: #a4ddeb;
  --nima-light-blue: #cdf1fa;
  --nima-turquoise: #008580;
  --nima-turquoise-dark: #006f6b;
  --nima-white: #ffffff;
  
  --font-primary: 'EpundaSlab', sans-serif;
  --font-titles: 'Oswald', sans-serif;
}

/* === FUENTES === */
@font-face {
  font-family: 'EpundaSlab';
  src: url('./fonts/EpundaSlab-Regular.ttf') format('truetype');
  font-weight: 300;
}
@font-face {
  font-family: 'EpundaSlab';
  src: url('./fonts/EpundaSlab-Bold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Oswald';
  src: url('./fonts/Oswald-Bold.ttf') format('truetype');
  font-weight: 600;
}

/* === RESET BÁSICO === */
/* === TEXTO SOLO PARA LECTORES DE PANTALLA === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* === ESTILOS BASE (MÓVIL = DISEÑO POR DEFECTO) === */
body {
  font-family: var(--font-primary);
  background-color: var(--nima-blue);
  color: var(--nima-purple);
  font-size: 1.3rem; /* ~18px */
  font-weight: 300;
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-titles);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  padding: 3rem 1rem;
  text-align: center;
}

h1 {
  font-size: 2.7rem;
}

h3 {
  font-size: 1.4rem;
  text-align: left;
  padding: 2rem 1.4rem 0;
}

h4 {
  font-size: 1.4rem;
  padding: 0 1.4rem 2rem;
}

p {
  text-align: left;
  padding: 1rem 1.4rem;
}

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

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

b {
  font-weight: 600;
}

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

.hero {
  padding:  0;
}

.hero-turquoise {
  background-image: url('assets/bg-turquoise.svg');
  background-attachment: fixed;
  background-size: cover;
  background-color: var(--nima-turquoise);
  color: var(--nima-white);
  display: flex;
  flex-direction: column;
}

.hero-blue {
  background-image: url('assets/bg-blue.svg');
  background-attachment: fixed;
  background-size: cover;
  background-color: var(--nima-blue);
  color: var(--nima-purple);
  display: flex;
  flex-direction: column;
}

/* === FOOTER === */
.footer {
  background-color: var(--nima-purple);
  font-size: 0.8rem;
  align-items: center;
  position: sticky;
  bottom: 0;
  width: 100%;
  z-index: 1000;
}

.footer p {
  color: var(--nima-blue);
  text-align: center;
  padding: 0.7rem 0;
  margin: 0;
}

/* === MENÚ BURGUER NIMA (COMÚN) === */

/* Posición flotante */
.nima-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* Ocultar triángulo */
.nima-menu-toggle::-webkit-details-marker {
  display: none;
}

/* Botón cuadrado con 3 líneas */
.nima-menu-toggle {
  width: 46px;
  aspect-ratio: 1;
  background: var(--nima-purple);
  border: 4px solid var(--nima-blue);
  border-radius: 20%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  gap: 5px;
}

/* Las líneas */
.nima-menu-toggle::before,
.nima-menu-toggle::after,
.nima-menu-toggle span {
  content: "";
  display: block;
  width: 24px;
  height: 4px;
  background: var(--nima-blue);
  border-radius: 999px;
}

/* Contenedor panel */
.nima-menu-options {
  position: absolute;
  right: 0;
  padding: 4px;
  list-style: none;
  background: var(--nima-blue);
  text-align: center;
  font-family: "EpundaSlab";
  font-size: 1.2rem;
  font-weight: bold;
}

/* Separación entre opciones */
.nima-menu-options li + li {
  margin-top: 4px;
}

/* Caja morada + texto */
.nima-menu-options a {
  display: block;
  white-space: nowrap;
  padding: 7px 15px;
  background: var(--nima-purple);
  color: var(--nima-blue);
  text-decoration: none;
}

/* color activo AUTOMÁTICO */
:is(
  .nima-inicio      a[href="index.html"],
  .nima-quien       a[href="nima-quien-soy.html"],
  .nima-servicios   a[href="nima-servicios.html"],
  .nima-tarifas     a[href="nima-tarifas.html"],
  .nima-condiciones a[href="nima-condiciones.html"],
  .nima-contacto    a[href="nima-contacto.html"],
  .nima-about-me    a[href="nima-about-me.html"],
  .nima-services    a[href="nima-services.html"],
  .nima-prices      a[href="nima-prices.html"],
  .nima-terms-and-conditions       a[href="nima-terms-and-conditions.html"],
  .nima-contact     a[href="nima-contact.html"]
){
  color: var(--nima-white);
}

/* === LOGO + CABECERA === */
.nima-logo {
  margin-right: 4rem;
  padding: 1.2rem;
}

.logo-bg {
  background-image: url('images/nima-header.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Líneas de color bajo el logo */
.line-turquoise-grad {
  height: 12px;
  width: 100%;
  background: linear-gradient(
    to bottom,
    var(--nima-turquoise),
    var(--nima-blue)
  );
}

.line-purple {
  height: 12px;
  width: 100%;
  background-color: var(--nima-purple);
}

  
/* Ocultar menú de escritorio en móvil; se reactivará en escritorio */
.nima-main-nav { display: none; }
.lang-toggle { display: none; }

/* Listas de precios */
.pricelist {
  text-decoration: none;
  text-align: left;
  line-height: 1.5rem;
  padding: 0 2.6rem;
}

.li-title {
  list-style-type: none;
}

.spaceunder {
  padding: 0 0 1rem;
}









/* ====== LAYOUT ESCRITORIO (≥768px) ====== */
@media (min-width: 768px) {
  

/* HEADER FIJO (150PX) */
.nima-header-fixed {
  position: relative;
  z-index: 2000;
}

.logo-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  display: flex;
  flex-direction: column;
}

.header-main {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.nima-logo {
  height: 122px;
}

.lang-toggle {
  font-family: var(--font-titles);
  text-decoration: none;
  color: var(--nima-blue);
  background-color: rgba(111, 25, 82, 0.85);
  border: 2px solid var(--nima-blue);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

.line-purple {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MENÚ */
.nima-main-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 1rem;
  text-decoration: none;
  color: var(--nima-blue);
  font-weight: 600;
}



/* MAIN (COMPENSA HEADER FIJO) */
.nima-main {
  padding-top: 150px;
}
  
.hero {
  padding:  0;
}


.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  min-height: 480px;
  align-items: stretch;
  overflow: hidden;
}


/* Imagen + texto comparten fila */
.hero-media,
.hero-content {
  grid-row: 1;
}


/* Texto */
.hero-content {
  font-family: var(--font-primary);
  align-self: center;
  max-width: 350px;
  width: 100%;
}

/* heroL: texto izquierda, imagen derecha */
.heroL .hero-media {
  grid-column: 3;
}
.heroL .hero-content {
  grid-column: 1;
  justify-self: end;
  text-align: left;
}

/* heroR: imagen izquierda, texto derecha */
.heroR .hero-media {
  grid-column: 1;
}
.heroR .hero-content {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

/* Separador horizontal blanco entre heroes */
.hero-separator {
  height: 12px;
  width: 100%;
  background-color: var(--nima-white);
}

/* FOOTER */
.footer {
  background-color: var(--nima-purple);
  font-size: 0.8rem;
  width: 100%;
  position: relative;
}

.footer p {
  color: var(--nima-blue);
  text-align: center;
  padding: 0.7rem 0;
  margin: 0;
}
  
  

  /* En escritorio, las imágenes de héroe se ajustan al grid */
  .hero-image {
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: 100%;
    object-fit: cover;
  }

  /* Mostrar menú de escritorio y botón ENGLISH */
  .nima-main-nav { display: flex; }
  .lang-toggle { display: inline-block; }
}

