@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root{
    --bg-color: #f4ebd9;
    --primary-color:rgb(255, 140, 0);
    --secondary-color: #a67c52;
    --font-color: #1a1612;
    --nav-color:#faf5ef;

    --principal-font: "Playfair Display", serif;
    --secondary-font:"Manrope",sans-serif;

    --bg-ticket: #15131E;
    --color-ticket:#FA1B02;
}

body{
    background-color: var(--bg-color);
    font-family: var(--secondary-font);
    color: var(--font-color);
    margin: 0;
    padding: 0;
    min-height: 100svh;
    scroll-behavior: smooth;
}

h1,h2,h3{
    font-family: var(--principal-font);
}

.nav-bar{
    display: flex;
    padding: 12px;
    background-color:var(--nav-color) ;
    border-bottom: 1px solid var(--secondary-color);
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
}

.nav-bar h1{
    font-size: 2rem;
    margin-left: 24px;
}

.enlaces{
    list-style: none;
    display: flex;
    padding: 12px;
    font-size: 20px;
}

.list-enlaces{
    padding:4px 20px;
}

.list-enlaces a{
    display: flex;
    text-decoration:none;
    color: var(--font-color);
    border-bottom: 1px solid var(--nav-color);
    transition: all 0.3s ease;
}

.list-enlaces a:hover{
    border-bottom: 1px solid var(--font-color);
    font-weight: 600;
    transform: scale(1.1);
}

.list-enlaces a:focus{
    border-bottom: 1px solid var(--font-color);
    font-weight: 600;
    transform: scale(1.1);
}

.list-enlaces a.activo{
    border-bottom: 1px solid var(--font-color);
    font-weight: 600;
    transform: scale(1.1);
}

.bienvenida{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 60px;
}

.bienvenida img{
    padding:5px ;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    flex: 1.2;
    object-fit: cover;
    max-height: 500px;
    max-width: 800px;
    filter: grayscale(1);
    object-position: center 80%;
    transition: 0.3s ease;
    animation: aparecer 1.5s ease-out;
}

.bienvenida img:hover{
    transform: scale(1.05);
    filter: grayscale(0);
}

.bnv-texto{
    padding: 24px;
    flex: 1;
    font-size: 30px;
    animation: aparecer 1s ease-out;
}

.contenedor-tarjetas{
    display:flex;
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

.tarjeta-galeria{
    flex: 1;
}

.tarjetas-secundarias{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: 12px;
    width: 100%;
}

.tarjeta-galeria, .tarjeta-sorpresa, .tarjeta-cita{
    background-color: var(--nav-color);
    border-radius: 16px;
    padding: 24px;
    flex: 1;
    border: 2px solid var(--secondary-color);
}

.tarjeta-galeria, .tarjetas-secundarias {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tarjeta-sorpresa, .tarjeta-nota {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tarjeta-nota {
    background-color: #d1cfcd;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png'); /* Textura sutil */
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #b8b6b4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}

.tarjeta-nota h3 {
    margin: 8px 0;
    font-size: 1.2rem;
}

.tarjeta-nota p {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 15px;
}

.link-nota {
    text-decoration: none;
    background-color: var(--bg-color);
    padding: 12px;
    border-radius: 30px;
    border: 2px solid var(--secondary-color);
    color: var(--font-color);
    transition: 0.3s ease;
}

.link-nota:hover{
    background-color: var(--font-color);
    color: var(--bg-color);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--bg-color);
}

.nota{
    text-align: justify;
    display:none;
    margin-top: 15px;
}

.imagen-contenedor img{
    width: 100%;
    filter: grayscale(1);
    border-radius: 12px;
}
.imagen-contenedor{
    position: relative;
}

.etiqueta{
    color:var(--primary-color) ;
    background-color: var(--nav-color);
    border-radius: 12px;
    font-weight: 600;
    padding: 4px 12px;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
}

.link{
    text-decoration: none;
    color: var(--primary-color);
    background-color: var(--bg-color);
    padding: 5px 12px;
    border-radius: 12px;
    border: 1px solid var(--secondary-color);
    display: inline-block;
    transition: all 0.3s ease;
}

.link:hover{
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.bienvenida .link{
    background-color: var(--nav-color);
}

.bienvenida .link:hover{
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.tarjeta-sorpresa{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.seccion-regalo{
    padding: 60px;
}

.icono{
    font-size: 40px;
    margin-bottom: 16px;
}

@keyframes aparecer{
    0%{
        opacity: 0;
        transform: translateY(20px);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

.contenedor-propuestas{
    display: flex;
    gap: 24px;
}

.plan{
    width: 100%;
    border-radius:12px ;
    object-position: center 80%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.citas{
    padding: 60px;
}

.tarjeta-cita{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.3s ease;
    animation: aparecer 1s ease-out;
}

.tarjeta-cita:hover{
    transform: scale(1.05);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.descripcion{
    color: var(--secondary-color);
}

.form-cita{
    display: flex;
    justify-content: space-evenly;
    align-items: center ;
    background-color: var(--nav-color);
    padding:24px ;
    border-radius: 12px;
    margin-top: 24px;
    gap: 12px;
    border: 2px solid var(--secondary-color);
    animation: aparecer 1s ease-out;
}

.calendario{
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding:16px ;
    justify-content: center;
    margin: 0;
}

.cabecera-calendario{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: clamp(20px, 5vw, 30px);
}

.mes-btn{
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
}

.btn-calendar{
    background:none ;
    border: none;
    cursor: pointer;
    margin: 24px;
}

.btn-calendar img{
    width: 20px;
}

.week{
    display: grid;
    grid-template-columns: repeat(7,1fr);
    align-items: center;
    gap: 10px;
    justify-items: center;
}

.days-number{
    display: grid;
    grid-template-columns: repeat(7,1fr);
    align-items: center;
    gap: 10px;
    justify-items: center;
}

.hoy, .seleccionado{
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--nav-color);
    border: 1px solid var(--secondary-color);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    justify-self: center;
    align-items: center;
}

.aniversario {
    display: flex;
    border: 2px solid #830e0e;
    background-color:#AC2121;
    font-weight: bold;
    color: #fff;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.days-number div:hover:not(.hoy):not(.seleccionado) {
    background-color: rgba(255, 140, 0, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    justify-self: center;
    align-items: center;
    cursor: pointer;
}

.selector-tiempo{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.bloque-tiempo{
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.separador-tiempo{
    font-size: clamp(40px, 5vw, 45px);
    transform: translateY(-15px);
    font-weight: bold;
}

.bloque-tiempo input{
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    font-size: clamp(40px, 5vw, 45px);
    text-align: center;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    outline: none;
    background-color: var(--bg-color);
    color: var(--font-color);
}

.input-tipo-cita{
    border: none;
    padding: 16px;
    position: relative;
    background-color: var(--nav-color);
    border-bottom: 2px solid var(--secondary-color);
    font-size: 16px;
    outline: none;
    margin-bottom: 30px;
}

.input-tipo-cita:focus{
    outline: none;
    border-bottom-color: var(--primary-color);
}

.campo-input{
    position: relative;
}

.input-fecha:focus + .input-label,
.input-fecha:not(:placeholder-shown) + .input-label,
.input-tipo-cita:focus + .input-label,
.input-tipo-cita:not(:placeholder-shown) + .input-label {
    /* Se levanta al hacer focus O cuando ya hay un valor introducido */
    transform: translateY(-20px);
    font-size: 12px;
}

.input-label{
    position: absolute;
    transition: 0.3s ease;
    top: 15px;
    left: 15px;
    pointer-events: none;
}

.btn-form{
    cursor: pointer;
    padding: 10px 24px;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    font-family: var(--secondary-font);
    font-weight: 600;
    background-color:var(--bg-color);
    color: var(--primary-color);
    margin-top: 5px;
    font-size: large;
    transition: 0.3s ease;
}

.btn-form:hover{
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    color: var(--nav-color);
}

.nuestra-historia{
    padding: 60px;
}

.nuestra-historia h2{
    text-align: center;
    margin-bottom: 40px;
    font-size: 40px;
}

.linea-tiempo{
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.linea-tiempo::before{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.hito-derecha{
    position: relative;
    width: 50%;
    left: 50%;
    text-align: left;
    padding:0 40px ;
    box-sizing: border-box;
}
.hito-izquierda{
    position: relative;
    width: 50%;
    left: 0;
    text-align: right;
    padding:0 40px;
    box-sizing: border-box;
}

.hito-punto{
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    top: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hito-izquierda .hito-punto{
    right: -8px;
}
.hito-derecha .hito-punto{
    left: -8px;
}

.hito-contenido{
    display: flex;
    background-color: var(--nav-color);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    gap: 16px;
    align-items: flex-start;
    width: auto;
    flex-direction: column;
    animation: aparecer 1s ease;
}

.hito-fecha{
    color: var(--primary-color);
    font-size: 14px;
    font-style: italic;
}

.hito-titulo{
    margin: 8px 0;
}

.hito-desc{
    color: var(--secondary-color);
}

.hito-final{
    width: 80%;
    margin: 0 auto;
    background-color: var(--nav-color);
    padding: 16px;
    position: relative;
    z-index: 1;
    margin-top: 30px;
    border-radius: 12px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hito-img{
    width: 100%;
    height: auto;
    flex-shrink: 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hito-img:hover{
    transform: scale(1.03);
}

.btn-sorpresa{
    background-color: var(--nav-color);
    color: var(--bg-ticket);
    font-family: var(--secondary-font);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 16px 32px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-sorpresa:hover{
    background-color: var(--primary-color);
    color: var(--nav-color);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(250, 27, 2, 0.5);
}

.regalo-sorpresa{
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;

   background: linear-gradient(135deg, #15131e 9%, #3e1419 37%, #5b1515 54%, #881710 71%, #fa1b02 100%);
   border-top: 2px solid var(--secondary-color);
   border-bottom: 2px solid var(--secondary-color);
   color: var(--nav-color);
}

.ticket-vip{
    background-color: var(--bg-ticket);
    border-radius: 12px;
    display: flex;
    color: white;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    font-family: var(--secondary-font);
    animation: caidaRebote 0.8s ease-in;
}

.ticket-cabecera{
    width: 30%;
    display: flex;
    background-color: var(--color-ticket);
    border-right: 3px dashed white;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ticket-cabecera h3{
    margin: 0;
    font-family: var(--secondary-font);
}

.ticket-detalles{
    padding: 24px;
}

.detalle-etiqueta{
    margin: 0;
    font-size: 14px;
    color: var(--color-ticket);
}

.detalle-valor{
    margin: 0;
    font-weight: bold;
    margin-bottom: 16px;
}

.vip-badge{
    background-color: white;
    color: var(--color-ticket);
    font-size: 14px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
}

@keyframes caidaRebote{
    0%{
        transform: translateY(-300px);
    }
    60%{
        transform: translateY(0) scale(1.1, 0.9);
    }
    80%{
        transform: translateY(-20px);
    }
    100%{
        transform: translateY(0);
    }
}

@media (max-width: 768px){
    .nav-bar{
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-bar h1{
        margin-left: 0;
        font-size: 1.5rem;
    }

    .enlaces{
        padding: 0;
        flex-wrap: wrap;
        font-size: 16px;
        gap: 5px;
    }

    .list-enlaces{
        padding: 4px 10px;
    }

    .ticket-vip{
        flex-direction: column;
    }
    .ticket-cabecera{
        width: 100%;
        border-bottom: 3px dashed white;
        border-right: none;
    }

    .form-cita{
        flex-direction: column;
        gap: 24px;
        padding: 12px;
    }

    .calendario{
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }

    .week, .days-number{
        gap: 5px;
    }
    .contenedor-propuestas{
        flex-direction: column;
    }
    .bienvenida{
        flex-direction: column;
    }
    .contenedor-tarjetas{
        flex-direction: column;
    }

    .linea-tiempo::before{
        left: 20px;
    }
    .hito-derecha,.hito-izquierda{
        width: 100%;
        left: 0;
        text-align: left;
        padding-left:50px ;
        padding-right:20px ;
        margin: 24px 0;
    }

    .hito-izquierda .hito-punto, .hito-derecha .hito-punto{
        left: 12px;
    }

    .hito-final{
        margin: 24px 0;
    }
}