/* contacto.css – Header y estilos globales con espacio para el formulario */

/* 1) Fuente global */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* 2) Altura del header (inyectada por JS) */
:root {
  --alto-header: 60px;
}

/* 3) Empujar el formulario por debajo del header */
#zohoSupportWebToCase {
  margin-top: var(--alto-header) !important;
}

/* 4) Reset mínimo y box‐sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 5) Layout base */
html, body {
  width: 100%;
  overflow-x: hidden;
  height: 100%;
}
body {
  font-family: 'Open Sans', sans-serif;
  margin-top: 3rem;
  padding-left: 3rem;
    padding-right: 3rem;

  /* === aquí: fondo fijo con overlay semitransparente === */
  background: url('../img/fondo_portada.png') center/cover no-repeat fixed;
  position: relative;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  z-index: -1;
}

/* 6) Header fijo */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fdfdfd;
  padding: .6rem 1.4rem;
  border-bottom: 2px solid #2a826d;
  z-index: 1000;
}

/* Logo */
.logo {
  max-width: 11%;
}

/* Navegación */
.nav-list {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}
.nav-list a {
  color: #5a3e3e;
  font-size: clamp(.9rem, 1.1vw, 1.2rem);
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover {
  color: #2a826d;
}

/* Botones de menú (hamburguesa / cerrar) */
.menu-btn {
  display: none;
  font-size: 2.8rem;
  background: none;
  cursor: pointer;
  line-height: 1;
}

/* === Responsive: menú overlay para móviles ≤1024px === */
@media (max-width: 1024px) {
  .menu-btn {
    display: block;
  }
  .nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 2rem;
    background: #fdfdfd;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
  }
  .nav.visible {
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 2rem;
    align-items: flex-start;
  }
  .nav-list a {
    font-size: 1.3rem;
  }
}

/* === Menú horizontal a partir de 1025px === */
@media (min-width: 1025px) {
  .nav {
    display: flex;
  }
}

/* === Ajustes para pantallas grandes === */
@media (min-width: 1400px) {
  header {
    padding: .7rem 2.2rem;
  }
  .logo {
    max-width: 10%;
  }
}

/* === Ajustes para desktop mediano === */
@media (min-width: 1025px) and (max-width: 1399px) {
  header {
    padding: .7rem 1.8rem;
  }
  .logo {
    max-width: 12%;
  }
  .nav-list a {
    font-size: 1rem;
  }
}

/* === Ajustes para tablets (481px–768px) === */
@media (max-width: 768px) and (min-width: 481px) {
  header {
    padding: .6rem 1rem;
  }
  .logo {
    max-width: 22%;
  }
  .nav-list a {
    font-size: 1.2rem;
  }
}

/* === Ajustes para móviles pequeños (≤480px) === */
@media (max-width: 480px) {
  header {
    padding: .5rem .8rem;
  }
  .logo {
    max-width: 28%;
  }
  .nav-list a {
    font-size: 1.1rem;
  }
}
