:root{
  --azul: rgb(8, 32, 65);
  --naranja: #fa8207;
  --amarillo: #f0dca0;
  --radius: 12px;

  /* Escala tipográfica unificada VIPA */
  --fs-h1: clamp(1.4rem, 0.5vw + 1.1rem, 2rem);
  --fs-h2: clamp(1.6rem, 0.6vw + 1.2rem, 2.2rem);
  --fs-body: clamp(1rem, 0.3vw + 0.9rem, 1.125rem);
  --fs-small: clamp(.85rem, 0.2vw + .8rem, .95rem);

  --footer-h: clamp(56px, 7vh, 72px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--azul);
  overflow-x: hidden;
  padding-bottom: calc(var(--footer-h) + 12px); /* espacio para el footer fijo en desktop */
  max-width: 100vw;
  background-color: #fff;
}
.logo-titulo {
  display: flex;
  align-items: center;
  gap: clamp(8px,1.2vw,15px);
  margin-left: 15%;
  text-decoration: none;   /* que no aparezca subrayado por ser enlace */
  color: inherit;          /* mantiene tu color */
  margin-bottom: 0.30%;
}


/* Tipografía base coherente */
h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.2;
  color: var(--azul);
  margin: 0;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.2;
  color: var(--azul);
  margin: 0 0 1rem 0;
  text-wrap: balance;
}

p,
li,
label,
.aceptar-label,
.contacto .pfooter {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--azul);
  margin: 0 0 1rem 0;
}

footer p,
footer h6,
.pfooter,
#footer p,
#footer h6 {
  font-size: var(--fs-small);
  line-height: 1.4;
  font-weight: 400;
  margin: 0;
  color: var(--azul);
}

h1,h2,h3,h4,h5,a,p {
  font-weight: 400;
  color: var(--azul);
}

/* =========================
   HERO / BANNER
========================= */
.jaime-container{
  width:100%;
  position:relative;
  overflow:hidden;
  margin:0 auto 4%;
}
.main-image{
  width:100%;
  height:30vh;
  object-fit:cover;
  object-position:36%;
}

.texto-superpuesto {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 27%;
  min-width: 180px;
  background-color: rgba(255,255,255,0.2);
  color: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  line-height: 1.1;
  height: 45%;
}


.texto-superpuesto h2 {
  margin: 0;
  font-size: var(--fs-h2);   /* <-- sustituye clamp raro */
  font-weight: 500;
  line-height: 1.1;
  margin-left: 48%;
  color: var(--azul);
}

/* =========================
   BARRA SUPERIOR
========================= */
.barra {
  background:var(--amarillo);
  padding: 5px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  height: 50px;
}

.acceso {
  display: flex;
  gap: clamp(8px,5vw,12%);
  justify-content: center;
  margin-right: 13%;
}

.iconos,
.iconos-linkedin {
  width: clamp(22px,2.2vw,30px);
  margin: 5px;
  transition: transform .2s ease;
}

.iconos:hover,
.iconos-linkedin:hover {
  transform: scale(1.2);
}

.icono-correo {
  display: flex;
  margin-right: clamp(8px,6vw,18%);
}

.demas-iconos {
  display: flex;
}

/* =========================
   HEADER + NAV
========================= */
header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  height:clamp(56px, 7vw, 77px);
  padding-inline:clamp(12px,4vw,24px);
  position: relative;
  z-index: 10000;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  width:100%;
}
.logo-titulo{
  display:flex;
  align-items:center;
  gap:clamp(8px,1.2vw,15px);
  margin-left:15%;
}
.logo{
  height:clamp(44px,5.5vw,60px);
  display:block;
  margin-top: -2%;
}
.logo-titulo h1{
  /* mismo h1 que el resto */
  margin:0;
  line-height:1;
  font-size: var(--fs-h1);      /* <-- unificado */
  font-weight:600;
  color: var(--azul);
}

/* Botón hamburguesa base (oculto en desktop) */
.hamburger {
  background: none;
  border: 0;
  cursor: pointer;
  display: none; /* visible solo en móvil */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 2px solid transparent;
  background-color: transparent;
  transition: background .3s ease, transform .3s ease;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--naranja);
  border-radius: 2px;
  transition: all .3s ease;
}

/* NAV DESKTOP */
.nav-buttons{
  display:flex;
  align-items:center;
  gap:clamp(10px,1.5vw,20px);
  margin-right:clamp(8px,10vw,15%);
  margin-top: 0.1%;
}
.nav-buttons a,
.dropbtn{
  display:flex;
  align-items:center;
  padding:0 clamp(10px,1.2vw,15px);
  text-decoration:none;
  color:var(--azul);
  background:none;
  border:0;
  cursor:pointer;
  font-weight:600;
  transition:color .3s ease;
  font-size: var(--fs-body);    /* <-- usamos body para consistencia nav */
  font-family: 'Poppins','Montserrat',Arial,Helvetica,sans-serif;
}
.nav-buttons a:hover,
.dropbtn:hover{
  color:var(--naranja);
}
.dropdown{
  position:relative;
  display:flex;
  align-items:center;
}
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999;
  padding: clamp(6px,1.2vw,12px);
  background: #fff;
  min-width: 240px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  transition:
    opacity .15s ease,
    transform .15s ease,
    visibility .15s ease;
}
.dropdown-content a{
  padding:.5rem;
  display:block;
  color: var(--azul);
  font-size: var(--fs-body);    /* <-- también body */
  line-height:1.4;
  text-decoration:none;
  font-weight:400;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

/* =========================
   FORMULARIO / CONTENIDO
========================= */
#formularioContacto {
  text-align: left;
  background-color: var(--amarillo);
  margin: 0 auto;
  width: 100%;
  padding: 5%;
  border-radius: 12px;
  border: 2px solid var(--naranja);
  color: var(--azul);
  font-size: var(--fs-body);
  line-height: 1.4;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.full-width {
  grid-column: 1 / 3;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  background-color: #fff;
  border: 2px solid var(--naranja);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: var(--fs-body); /* <-- párrafos */
  color: var(--azul);
  font-family: 'Poppins', 'Montserrat', Arial, Helvetica, sans-serif;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.4;
}

input::placeholder,
textarea::placeholder {
  color: rgba(8, 32, 65, 0.6);
  font-weight: 400;
  font-size: var(--fs-small);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #d96f06;
  box-shadow: 0 0 5px rgba(250, 130, 7, 0.4);
}

textarea {
  resize: none;
  padding: 10px;
  font-size: var(--fs-body);
  line-height: 1.4;
}

.aceptar-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.3;
  color: var(--azul);
}
.aceptar-label input[type="checkbox"] {
  transform: translateY(2px);
}

/* botón enviar */
.boton {
  margin: 30px auto;
  padding: 8px 24px;
  font-size: var(--fs-body); /* cuerpo */
  font-weight: 600;
  border-radius: 50px;
  background-color: var(--naranja);
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform .2s ease;
  margin-left: 38%;
  display: inline-block;
  line-height: 1.2;
}
.boton:hover {
  background-color: #d96f06;
  transform: scale(1.1);
}

/* layout dos columnas desktop */
.contenedor-pagina {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding-bottom: 4%;
}

.izquierda {
  width: 35%;
  margin-left: 10.5%;
  min-width: 320px;
}

.derecha {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
}

.derecha-dentro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-left: 40%;
}

.mapa {
  width: 50%;
  border: 0;
  margin-top: 3%;
  margin-bottom: 2%;
  min-height: 250px;
  border-radius: 12px;
}

.contacto {
  display: flex;
  align-items:center;
  gap: 10px;
  margin-top: 10px;
}
.contacto img {
  height: 24px;
  width: auto;
  display: block;
}
.contacto .pfooter {
  margin: 0;
  line-height: 1.2;
  color: var(--azul);
  font-size: var(--fs-body); /* usamos body aquí también */
}

/* =========================
   ICONO FLOTANTE WHATSAPP
========================= */
#icono-flotante {
  position: fixed;
  bottom: 10%;
  right: 20px;
  z-index: 9999;
  padding: 12px;
  transition: transform 0.3s ease;
}
#icono-flotante:hover {
  transform: scale(1.5);
}
#icono-flotante img {
  height: auto;
  width: 80px;
  display: block;
}

/* =========================
   FOOTER
========================= */
#footer{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  width:100%;
  height:var(--footer-h);
  background:var(--amarillo);
  box-shadow:0 -2px 5px rgba(0,0,0,.1);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:clamp(12px,3vw,30px);
  font-size:var(--fs-small); /* footer siempre pequeño */
  z-index:9999;
  padding-inline:clamp(8px,2vw,16px);
  text-align:center;
}

#footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

#footer img.iconos {
  width: auto;
  height: 40px;
}

#footer p,
#footer h6 {
  margin: 0;
  line-height: normal;
  text-align: left;
  font-size: var(--fs-small);
}

#footer.amarillo {
  background-color: var(--amarillo);
  color: white;
}
#footer.blanco {
  background-color: white;
  color: var(--amarillo);
}

.pfooter{
  font-weight: 100;
  color: var(--azul);
  font-size: var(--fs-small);
}

.iconos-footer{
  height: auto;
  width: 30px;
  transition:transform .2s ease;
}
.iconos-footer:hover{
  transform: scale(1.2);
}

#footer a {
  color: var(--azul);
  text-decoration: none;
  font-size: var(--fs-small);
}
#footer a:hover {
  color: var(--naranja);
}

/* =========================================================
   RESPONSIVE TABLET (<= 768px)
========================================================= */
@media (max-width: 768px) {

   .texto-superpuesto {
    left: 0%;
    top: 50%;
    transform: translate(-13%, -50%);
    max-width: 85vw;
    width: auto;
    padding: 12px 16px;
    background: rgba(255,255,255,.2);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .texto-superpuesto h2 {
    margin: 0;
    font-size: var(--fs-h2);    /* seguimos fieles */
    line-height: 1.2;
    color: var(--azul);
    text-align: center;
  }


  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    padding-bottom: 0;
  }

  .dropbtn{
    margin-left: -5%;
  }

  /* ======================
     BARRA SUPERIOR móvil
  ====================== */
   .barra {
    justify-content: space-between;
    align-items: center;
    height: 40px;
  }

  .acceso {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-right: 0;
    gap: 0;
    height: 30px;
  }
  .icono-correo {
    margin-right: 0;
    display: flex;
    gap: 10px;
  }
  .demas-iconos {
    display: flex;
    gap: 10px;
  }
  .barra img.iconos,
  .barra img.iconos-linkedin {
    width: 28px;
    height: auto;
  }

  /* ======================
     HEADER / NAV móvil
  ====================== */
  header {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-inline: 16px;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height:56px;
  }

  .logo-titulo {
    margin-left: 0;
    gap: 10px;
  }

  .logo {
    height: 50px;
  }

  /* hamburguesa visible y con borde */
  .hamburger {
    display: flex;
    margin-left: auto;
    margin-right: 12px;
    background: rgba(255,255,255,0.6);
  }

  /* NAV móvil: oculto por defecto como panel */
  .nav-buttons{
    position:absolute;
    top:clamp(56px,6vw,70px);
    right:0;
    width:70vw;
    max-width:260px;
    background:#fff;
    border-radius:12px 0 0 12px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
    padding:16px;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    z-index:99999;
    margin-right:0;
  }

  /* cuando el JS añade .is-open */
  .nav-buttons.is-open{
    display:flex;
  }

  /* enlaces primer nivel */
  .nav-buttons > a,
  .nav-buttons > .dropdown > .dropbtn{
    width:100%;
    display:block;
    text-align:left;
    justify-content:flex-start;
    font-size: var(--fs-body);   /* body */
    font-weight:600;
    line-height:1.3;
    color:var(--azul);
    background:none;
    border:0;
    padding:12px 0;
    margin:0;
  }

  .nav-buttons > a:hover,
  .nav-buttons > .dropdown > .dropbtn:hover{
    color:var(--naranja);
  }

  /* dropdown en móvil: estático debajo */
  .nav-buttons .dropdown{
    position:static;
    width:100%;
    display:block;
  }

  .nav-buttons .dropdown-content{
    position:static;
    transform:none;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    box-shadow:none;
    background:#fff;
    width:100%;
    display:flex;
    flex-direction:column;
    gap:0;
    padding:0 0 8px 0;
    margin:0 0 0 10px;
  }

  .nav-buttons .dropdown-content a{
    width:100%;
    display:block;
    text-align:left;
    font-size: var(--fs-body);   /* body */
    font-weight:400;
    line-height:1.3;
    color:var(--azul);
    text-decoration:none;
    padding:10px 0 10px 18px;
  }

  .nav-buttons .dropdown-content a:hover{
    color:var(--naranja);
  }

  /* ======================
     CONTENIDO PRINCIPAL
  ====================== */
  .contenedor-pagina {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .izquierda,
  .derecha {
    width: 100%;
    max-width: 600px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  #formularioContacto {
    width: 90%;
    max-width: 100%;
    padding: 24px;
    box-sizing: border-box;
    margin: 0 auto;
    border-radius: 12px;
    overflow-x: hidden;
    font-size: var(--fs-body);
    margin-top: 5%;
  }

  .form-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .full-width {
    grid-column: 1 / 2;
  }

  .boton {
    margin-left: 0;
    display: block;
    text-align: center;
    max-width: 220px;
    width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
    font-size: var(--fs-body);
  }

  .derecha-dentro {
    margin-left: 0;
    align-items: flex-start;
    width: 90%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .mapa {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    margin-bottom: 16px;
    min-height: 220px;
    border: 0;
    border-radius: 12px;
    box-sizing: border-box;
    display: block;
  }

  .contacto .pfooter {
    font-size: var(--fs-body); /* mantenemos coherencia */
  }

  /* ======================
     WHATSAPP FLOTANTE móvil
  ====================== */
 #icono-flotante {
    bottom: 2%;
  }

  #icono-flotante img{
    width: 60px;
  }

  /* ======================
     FOOTER móvil
  ====================== */
    #footer {
    position: static;
    width: 100%;
    background: var(--amarillo);
    box-shadow: none;
    height: 18vh;
    border-top: 2px solid rgba(0,0,0,.08);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 14px;
    font-size: var(--fs-small);
    text-align: center;
  }

  #footer > div {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
  }

  #footer p,
  #footer h6 {
    text-align: center;
    word-break: break-word;
    font-size: var(--fs-small);
  }

  .contacto {
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
  }
}
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000; /* por encima de todo, incluso footer fijo */
  background-color: rgba(8,32,65,0.95); /* azul casi sólido */
  color: #fff;
  padding: 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
  font-family: 'Poppins','Montserrat',Arial,Helvetica,sans-serif;
  display: none; /* por defecto oculto, JS lo mostrará si hace falta */
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.cookie-text {
  flex: 1 1 260px;
  font-size: clamp(.9rem,0.25vw,.95rem);
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.cookie-link {
  color: var(--amarillo);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-link:hover {
  color: var(--naranja);
}

.cookie-btn {
  flex-shrink: 0;
  background-color: var(--naranja);
  color: #082041;
  border: 0;
  border-radius: 6px;
  font-size: clamp(.9rem,0.25vw,1rem);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  padding: 10px 16px;
  min-width: 110px;
  transition: all .2s ease;
}

.cookie-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* responsive: stack en pantallas pequeñas */
@media (max-width:480px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-btn {
    width: 100%;
  }
}

.hamburger.is-active span:nth-child(1){ transform: rotate(45deg) translate(4px, 8px); transform-origin:center; }
.hamburger.is-active span:nth-child(2){ opacity: 0; }
.hamburger.is-active span:nth-child(3){ transform: rotate(-45deg) translate(4px, -8px); transform-origin:center; }

/* 2) Panel móvil con padding estándar */
@media (max-width:768px){
  .nav-buttons{
    padding:16px;
  }
  /* 3) Sin márgenes hack en dropdown */
  .nav-buttons .dropdown{ margin:0 !important; }
  .dropbtn{ margin-left:0 !important; }
  /* 4) Quitar excepción del último item */
  .nav-buttons > a:last-child{ padding-top: var(--nav-mob-item-py) !important; }
}

/* 5) Variables (si no están ya en :root) */
:root{
  --nav-mob-item-py:12px;
  --nav-mob-item-px:0;
}

.aceptar-label{
  display: inline;
}


/* 6) Aplicar espaciado uniforme a todos los enlaces del panel móvil */
@media (max-width:768px){
  .nav-buttons > a,
  .nav-buttons > .dropdown > a,
  .nav-buttons .dropdown-content a{
    padding: var(--nav-mob-item-py) var(--nav-mob-item-px) !important;
    margin: 0 !important;
    line-height: 1.3;
    text-indent: 0;
  }
}

.colaboracion {
  width: 50%;
  display: flex;
  align-items:center;
  text-align: center;
  margin-top: 4%;
  margin-right:0%;
  border-top: 2px solid rgb(128, 128, 128, .32);
}

.colaboracion p {
  margin-top: 8%;
  font-size: 12px;
  font-style: italic;
  font-weight: 100;
}

.colaboracion a{
  text-decoration: none;
}

.btn-outline:hover{
  background-color: #ff7a00;
}