@font-face{
    font-family: 'title-font';
    src: url('../assets/fonts/Airthay-DemoVersi.otf') format('truetype');
}

@font-face{
    font-family: 'body-font';
    src: url('../assets/fonts/Quicksand-Light.ttf') format('truetype');
}

html {
    scroll-behavior: smooth;
}

body{
    margin:0;
    font-family: 'body-font';
    min-height: 100%;
}

section {
    scroll-margin-top: 100px; /* altura de la navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 0 20px 0;
}

.content{
    padding: 25px;
    background-color: white;
    max-width: 1200px;
    margin: 20px auto;
    height: 100vh;
}

.titulo2{
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    line-height: 80%;
    font-family: 'title-font';
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    white-space: nowrap;              /* nunca 2 líneas */
    font-size: clamp(32px, 12vw, 50px);
    max-width: 92vw; 
}
.titulo1{
    display: none;
}
cite{
    position: absolute;
    top: 83%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    line-height: 80%;
    font-size: 15px;
    display: block;
    line-height: 1;
    font-style: normal;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

h2{
    font-family: 'title-font';
    font-size: 50px;
    margin: 0 auto;
    padding: 10px;
    color: #a9383d;
}

h3{
    font-family: 'body-font';
    font-size: 25px;
    margin: 0 auto;
    padding: 10px;
    color: #a9383d;
}

h4{
    font-size: 30px;
    margin: 0 auto;
    color: #a9383d;
}

p, a{
    margin: 16px 5px;
    font-size: 1.1rem;
}

a{
    color: #a9383d;
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 6px;  
    text-decoration-color: #919a9b;
}

a:hover{
    text-decoration-color: #a9383d;
    text-decoration-thickness: 2px;
}

.grande{
    display: none;
}

.letter{
    text-align: left;
    margin: 0 15px 0 15px;
}

#confirma{
    background-image: url("../assets/fotos/campoAmapolas2.png");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    background-color: rgba(255,255,255,0.2); /* overlay blanco */
    background-blend-mode: lighten;
}

.mensaje-ok {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 1.2s ease;

    background-color: #6ebf71;
    color: #fff;
    opacity: 90%;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;  
}

.media-list{
    display: flex;
    flex-direction: column;
    width: 100%;
}
  
  /* Item */
.media-item {
    display: flex;
    flex-direction: column;
}
  
.media-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
  
  /* Contenido */
.media-item__content {
    padding: 0 0 1.5rem 0;
}

@media (max-width: 799px) {

    #horarios .media-list {
        width: 100%;
      }

    #horarios .media-item {
        position: relative;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        min-height: 340px;
        padding: 1.25rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center; /* otra opción: flex-end */
        overflow: hidden;
        isolation: isolate;
        margin: 0 ;
    }
  
    /* capa oscura para legibilidad */
    #horarios .media-item::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0) 100%
      );
      z-index: 1;
    }
  
    /* imagen como fondo */
    #horarios .media-item__image {
      position: absolute;
      inset: 0;
      z-index: 0;
    }
  
    #horarios .media-item__image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  
    /* texto por encima */
    #horarios .media-item > h3,
    #horarios .media-item__content {
      position: relative;
      z-index: 2;
      color: #fff;
      text-align: center;
      margin: 0;
      font-weight: bold;
    }
  
    #horarios .media-item > h3 {
      padding: 0 0 0.4rem 0;
      font-size: 1.8rem;
      line-height: 1.1;
      text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
    }
  
    #horarios .media-item__content {
      padding: 0;
    }
  
    #horarios .media-item__content p {
      margin: 0.35rem 0;
      text-shadow: 0 3px 10px rgba(0, 0, 0, 0.85);
    }
  
    #horarios .media-item__content a {
      color: #fff;
      text-decoration-color: rgba(255, 255, 255, 0.8);
    }
}
  
@media (min-width: 800px) {
    .titulo2{
        position: absolute;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        line-height: 120%;
        font-family: 'title-font';
        font-size: 70px;
        display: block;
        text-shadow: 0 0px 1px rgba(0, 0, 0, 0.6);
    }

    cite{
        top: 85%;
        font-size: 25px;
        line-height: 1.3;
        text-shadow: 0 0px 1px rgba(0, 0, 0, 0.6);
    }
    h2{
        font-size: 80px;
    }
    h3{
        font-size: 40px;
    }

    p{
        margin: 16px 0px;
    }

    .grande{
        display: block;
    }

    .pequeño{
        display: none;
    }

    #confirma{
        background-size: auto 100%;
        background-image: url("../assets/fotos/campoAmapolas2.png");
    }

    #horarios {
        padding-inline: 1.5rem;
    }

    .media-list {
        width: min(1100px, 100%);
        margin-inline: auto;   /* centra todo el listado */
        padding: 2rem 0;
      }

    .media-item {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* mismo ancho */
        grid-template-areas:
          "title image"
          "content image";
        row-gap: 0.2rem;
        padding: 2rem;
        align-items: start;
        width: min(100%, 980px);
        margin-inline: auto;   /* centra cada tarjeta */
    }
    
    .media-item > h3 {
        grid-area: title;
        margin: 0;
        padding: 0 0 0.2rem 0;
        text-align: left;
    }
    
    .media-item__content {
        grid-area: content;
        padding: 0;
        margin: 0;
        text-align: left;
    }
    .media-item > h3,
    .media-item__content {
        justify-self: center;      /* centra horizontalmente dentro de la 1ª columna */
        width: min(100%, 420px);   /* opcional: evita que se estire demasiado */
        text-align: center;        /* centra el texto */
    }

    .media-item__content p:first-child {
        margin-top: 0; /* quita el hueco extra arriba del primer <p> */
    }
    
    .media-item__image {
        grid-area: image;
        width: 100%;
        height: 320px;
        object-fit: cover;
    }
    
    .media-item__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* pares: imagen izq, texto dcha */
    .media-item:nth-of-type(even) {
        grid-template-areas:
        "image title"
        "image content";
    }
    
}

@media (min-width: 1250px) {
    .titulo1{
        position: absolute;
        top: 65%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        line-height: 120%;
        font-family: 'title-font';
        font-size: 85px;
        display: block;
        text-shadow: 0 0px 1px rgba(0, 0, 0, 0.6);
    }
    .titulo2{
        display: none;
    }
}

#img-portada{
    display: block;
    width: 100%;
    border-radius: 0 0 0% 0%;
}

#principio{
    position: relative;
    width: 100%;
}

#anuncio{
    display: block;
    text-align: center;
}

.counter{
    background-color: #a9383d;
    color: white;
    display: grid;
    grid-template-rows: auto auto;
    gap: 5px;
    padding: 20px 25px;
    border-radius: 5px;
    width: fit-content;
    margin: auto;
    align-items: center;
}

.counter .row{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(60px, 1fr);
    gap: 1rem;
    justify-items: center;
    align-items: center;
}
.counter .col {
    text-align: center;
}

.time{
    font-weight: bold;
    font-size: 1.1rem;
}

.grid-container{
    display: grid;
    grid-template-columns: repeat(3, max-content);
    column-gap: 8px;  /* separación horizontal */
    row-gap: 10px; /* separación vertical entre las 2 filas */
    text-align: left;
    margin: auto;
    width: fit-content;
    align-items: center;
}

.grid-container a{
    margin: 0;
}

.logo-wp{
    height: 1.2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: fit-content;
    margin: auto;
}

.confirmation-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}
.confirmation-form .form-group {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "nombre opciones"
        "alergias alergias"
        "autobus autobus";
    gap: 10px 20px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}
.confirmation-form .nombre-invitado {
    grid-area: nombre;
    margin: 0;
    font-weight: 500;
    text-align: left;
}
.confirmation-form .opciones {
    grid-area: opciones;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
}
.confirmation-form .opciones label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.confirmation-form .alergias {
    grid-area: alergias;
}
.confirmation-form .alergias textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    padding: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: left;

    border: 1px solid #ccc;
    border-radius: 4px;
}

.confirmation-form .autobus .opciones {
    justify-content: center;
}

.confirmation-form .autobus {
    grid-area: autobus;
    text-align: center;
}

.confirmation-form .autobus p {
    margin: 6px 0 4px 0;
    text-align: center;
}

.confirmation-form button {
    margin-top: 20px;
}

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

.form-group input, textarea {
    padding: 8px;
    font-size: 1rem;
    font-family: 'body-font';
}

button {
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    width: fit-content;
    margin: auto;
    background-color: transparent;
    color: #a9383d;
    border: none;
    position: relative;
    transition: color 0.3s ease;
    z-index: 1;
}

button::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #a9383d;
    transition: width 0.3s ease;
    width: 0px;
    border-radius: 5px;
    z-index: -1;
}

button:hover::before {
    width: 100%;
}

button:hover {
    color: white;
}

/* ===== Carrusel fotos ===== */
#fotos .fotos-wrap {
    width: 100%;
  }
  
  #fotos .carousel {
    position: relative;
    width: min(92vw, 600px);
    margin: 1rem auto 0;
  }
  
  #fotos .carousel-viewport {
    overflow: hidden;
    border-radius: 12px;
    touch-action: pan-y;
  }
  
  #fotos .carousel-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
  }
  
  #fotos .slide {
    flex: 0 0 100%;
    aspect-ratio: 3 / 4; /* 600x800 */
    margin: 0;
  }
  
  #fotos .slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
  }
  
  /* Desktop: que no se pase de la ventana */
  @media (min-width: 800px) {
    #fotos .carousel {
      width: min(90vw, 520px);
    }
  
    #fotos .slide {
      aspect-ratio: auto;
      height: min(78vh, 700px);
    }
  
    #fotos .slide img {
      object-fit: contain;
      background: transparent;
    }
  }
  
  #fotos .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    cursor: pointer;
    z-index: 3;
    line-height: 1;
    font-size: 1.3rem;
  }
  #fotos .carousel-btn.prev { left: 10px; }
  #fotos .carousel-btn.next { right: 10px; }
  
  /* Reset por tu estilo global de button::before */
  #fotos .carousel-btn::before {
    content: none;
  }
  
  #fotos .carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
  }
  
  #fotos .carousel-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
  }
  #fotos .carousel-dot.is-active {
    background: #fff;
  }
  #fotos .carousel-dot::before {
    content: none;
  }  