@font-face{
  font-family: "NoteworthyWeb";
  src: url("http://descubriendoalrey.es/fonts/noteworthy.woff2") format("woff2"),
       url("http://descubriendoalrey.es/fonts/noteworthy.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


:root{
  --brand: #00b0ff;
  --paper: #ffffff;
  --text: #000000;

  /* Tipos */
  --font-ui: "noteworthy", "Comic Sans MS", "Trebuchet MS", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html{ scroll-behavior: smooth; }
*{ box-sizing: border-box; }

body{
  margin: 60px 0;
  background: #c6e9f8;
  color: var(--text);
  font-family: var(--font-body);
}

.page{
  width: 1280px;
  max-width: calc(100% - 40px);
  margin: 30px auto;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  border-radius: 6px;
  overflow: hidden;
}

/* HEADER */
.header{
  padding: 20px 50px 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px dotted #74cdf4;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo{
  display: block;
  max-width: none;
  width: 311px;
  height: 69px;
  object-fit: contain;
}

.nav{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.nav__link{
  font-family: var(--font-ui);
  color: var(--brand);
  text-decoration: none;
  text-transform: capitalize;
  font-size: 20px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight:500;
  margin: 20px 0 0 0;
}

.nav__link:hover{
  text-decoration: underline;
}

/* HERO */
.hero{
  padding: 40px;
}

.hero__img{
  width: 800px;
  max-width: 100%;
  height: auto;
  display: block;
  margin:0 auto;
}

/* SECTIONS */
.section{
  padding: 40px;
}

.section--intro{
  padding-top: 10px;
}

.title{
  margin: 0 0 14px 0;
  font-family: var(--font-ui);
  color: var(--brand);
  font-size: 30px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.text p{
  margin: 0 0 10px 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.text p:last-child{ margin-bottom: 0; }

/* VIDEO */
.section--video{
  background: var(--brand);
  padding: 80px 20px;
}

.video-wrap{
  display: flex;
  justify-content: center;
}

.video{
  width: 800px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

/* FAQ ACCORDION */
.accordion{
  display: grid;
  gap: 15px;
}

.qa{
  border: 1px dotted var(--brand);
  border-radius: 8px;
  padding: 0; /* el padding va en summary + contenido */
  overflow: hidden;
  background: #fff;
}

.qa__q{
  cursor: pointer;
  list-style: none; /* Oculta el triángulo default en algunos navegadores */
  padding: 10px;
  font-family: var(--font-ui);
  color: #000;
  font-size: 21px;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #f2f7fa;
  letter-spacing: 0.5px;
}

.qa__q::-webkit-details-marker{ display: none; }

/* Icono "chevron" sin imágenes */
.qa__q::after{
  content: "▾";
  font-size: 18px;
  color: var(--brand);
  transition: transform .15s ease;
}

.qa[open] .qa__q::after{
  transform: rotate(180deg);
}

.qa__a{
  padding: 0 10px 12px 10px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.qa__a p{
  margin: 8px 0 0 0;
}

/* FOOTER */
.footer{
  padding: 14px 20px 18px 20px;
  background: #fff;
}

.footer__line{
  height: 1px;
  background: var(--brand);
  margin-bottom: 12px;
}

.footer__text{
  margin: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  color: #000;
}

.nav__close{
  display: none;
}

.nav__toggle{
  display: none;
}

/* RESPONSIVE */
@media (max-width: 860px){
  .header{
    flex-direction: column;
    align-items: flex-start;
  }
  .nav{
    justify-content: flex-start;
  }
  
 
.header {
    flex-direction: column;
    align-items: flex-start;
}
}

/* RESPONSIVE */
@media (max-width: 480px){
.header {padding: 20px 10px 20px 20px!important;}
.brand__logo {width: 68%!important;}
.hero {padding: 20px;}
.title {font-size: 20px!important;}
.text p {font-size: 15px!important; text-align:justify!important;}
.qa__q{font-size: 17px!important;}
.section {padding: 30px 20px!important;}
body {margin: 20px 0!important;}

  /* Checkbox oculto (controla abrir/cerrar) */
  .nav-toggle{
    position: absolute;
    left: -9999px;
  }

  /* Botón hamburguesa (icono) */
  .nav__toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }
  .nav__toggle img{
    width: 28px;
    height: auto;
    display: block;
  }

  /* El NAV pasa a ser un panel fijo deslizante */
  .nav{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(360px, 86vw);
    background: var(--brand); /* #00b0ff */
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;

    /* Oculto fuera a la izquierda */
    transform: translateX(-110%);
    transition: transform .25s ease;
    z-index: 999;
  }

  /* Links dentro del panel (blancos para que se vean en azul) */
  .nav__link{
    color: #fff;
    font-size: 22px;
    padding: 10px 0;
  }



  /* Overlay (click fuera cierra) */
  .nav__overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 998;
  }

  /* Abrir: cuando está checked, entra el panel y aparece overlay */
  .nav-toggle:checked ~ .page .nav{
    transform: translateX(0);
  }

  .nav-toggle:checked ~ .page .nav__overlay{
    opacity: 1;
    pointer-events: auto;
  }

  /* En móvil el header en fila: logo izq y botón menú dcha */
  .header{
    flex-direction: row;
    align-items: center;
  }
  .nav__close{
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    user-select: none;
  }
}

