
@font-face {
    font-family: 'Silk Serif Medium';
    src: url('fonts/Silk Serif Medium.woff2') format('woff2'),
         url('fonts/Silk-Serif-Medium.woff') format('woff'),
         url('fonts/Silk Serif Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Silk Serif Regular';
    src: url('fonts/Silk Serif Regular.woff2') format('woff2'),
         url('fonts/Silk-Serif-Regular.woff') format('woff'),
         url('fonts/Silk Serif Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'NeueHaasGroteskDisplayRoman';
    src: url('fonts/NeueHaasGroteskDisplay-55Roman-Web.woff2') format('woff2'),
         url('fonts/NeueHaasGroteskDisplay-55Roman-Web.woff') format('woff'),
         url('fonts/NeueHaasGroteskDisplay-55Roman.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'NeueHaasGroteskDisplayMedium';
    src: url('fonts/NeueHaasGroteskDisplay-65Medium-Web.woff2') format('woff2'),
         url('fonts/NeueHaasGroteskDisplay-65Medium-Web.woff') format('woff'),
         url('fonts/NeueHaasGroteskDisplay-65Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}



/* General Styles */

html, body {
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: 'NeueHaasGroteskDisplayMedium', sans-serif;
    overflow-x: hidden;
    position: relative;
    font-size: clamp(14.5px, 1.38vw, 21px);
    line-height: clamp(18.5px, 1.77vw, 27px);
    letter-spacing: 1px;
    /* text-transform: uppercase; */
}

h2{
    font-size: clamp(14.5px, 1.38vw, 21px);
    line-height: clamp(18.5px, 1.77vw, 27px);
    letter-spacing: 1px;
    color:#F30F16;
}


/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: url('img/header-poster.webp') no-repeat center center/cover;
    z-index: -2;
}

.success-container{
    min-height: 100vh;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}


.invitation-text {
    position: relative;
    z-index: 1;
    /* color: #F30F16; */
    text-align: center;
}

.animated-letters span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    color: rgba(243, 15, 22, 0.1); /* Rojo transparente */
    animation:
      fadeInMove 0.6s ease-out forwards,
      colorFade 1.2s ease-in forwards;
  }
  
  /* Aparición: opacidad y desplazamiento */
  @keyframes fadeInMove {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Cambio de color: de transparente a rojo */
  @keyframes colorFade {
    0% {
      color: rgba(243, 15, 22, 0.1);
    }
    60% {
      color: rgba(243, 15, 22, 0.1);
    }
    100% {
      color: #F30F16;
    }
  }

.animated-letters {
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.animated-letters .word {
    display: inline-block;
    white-space: nowrap; /* evita cortar las palabras */
}
  
  

/* Event Intro */
.event-intro{
    background: url('img/Lisbon.webp') no-repeat center center/cover;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.event-intro-content{
    max-width: 640px;
    color: #f8f6e7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.event-intro-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 5rem;
    width: 100%;
}


.event-intro-content p {
    font-size: clamp(14.5px, 1.38vw, 21px);
    line-height: clamp(18.5px, 1.77vw, 27px);
}


.event-intro-content img{
    width: 21%;
    margin: 0 auto;
}

.event-intro-content img:first-of-type{
    padding-bottom: 15px;
    width: 19%; 
   
}

/* Event Details */
.event-details {
    background: #f8f6e7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    padding: 7.5vh 20px; 
    
}

.event-details-content{
    font-family: 'NeueHaasGroteskDisplayRoman', sans-serif;
    width: 63%;
}

.event-details-content h2{
    /* margin-bottom: clamp(50px, 5vw, 120px); margin-bottom: 5rem; */
    font-family: 'NeueHaasGroteskDisplayMedium', sans-serif;
}

.day strong{
    font-family: 'NeueHaasGroteskDisplayMedium', sans-serif;
    font-weight: normal;
}

.day:first-of-type{
    margin-bottom: clamp(30px, 3vw, 60px); /* margin-bottom: 3rem; */
}

.event-details-content h2,
.dates .left-content h2 {
    font-size: clamp(14.5px, 1.38vw, 21px);
    line-height: clamp(18.5px, 1.77vw, 27px);
    font-weight: normal;
}


/* "Are You In?" Section */

.are-you-in{
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
    color: #F5F4EB;
    font-family: 'NeueHaasGroteskDisplayMedium', sans-serif;
}

.are-you-in .left-content {
    background: url('img/4641A94C.webp') no-repeat center center/cover;
    font-size: clamp(14.5px, 1.38vw, 21px);
    line-height: clamp(18.5px, 1.77vw, 27px);
    padding: 0 20px;
    
}

.are-you-in .right-content {
    background: url('img/Dark_Navy_1.webp') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    padding-block: clamp(24px, 3.90vh, 100px); /* padding-top y bottom */
}

.are-you-in .text-content{
   max-width: 85%;
}

.are-you-in .text-content p:last-of-type{
    margin: clamp(40px, 5vw, 60px) 0; /* margin: 60px 0; */
}

.are-you-in h2{
    color: #F5F4EB;
    font-size: clamp(67px, 6.63vw, 101px);
    line-height: clamp(64.5px, 1.77vw, 27px);
    font-family: 'Silk Serif Regular', sans-serif;
    font-weight: normal;
}


/* "Dates" Section */

.dates{
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}


.dates .right-content {
    background: url('img/photo-pexels.webp') no-repeat;
    background-position: 35% center;
    background-size: cover;
    
}

.dates .left-content {
    background: url('img/Dark_Navy_2.webp') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: #F5F4EB;
    font-family: 'NeueHaasGroteskDisplayMedium', sans-serif;
}

.dates .left-content h2{
    margin-top: 6rem;
}

.dates strong{
    font-family: 'Silk Serif Regular', sans-serif;
    font-size: clamp(60px, 5.58vw, 85px);
    line-height: clamp(57px, 5.71vw, 87px);
    text-transform: none;
    font-weight: 100;
    padding-bottom: clamp(24px, 3.93vw, 48px); /* padding-bottom: 3rem; */
}

.dates h2{
    padding-bottom: clamp(24px, 3.93vw, 48px); /* padding-bottom: 3rem; */
}

.dates .left-content p:last-child{
    padding-top: clamp(30px, 5.9vw, 72px); /* padding-top: 4.5rem; */
    font-size: clamp(14px, 1.5vw, 19px);
}



/* Formulario Section */


.formulario {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: url('img/header-poster.webp') no-repeat center center/cover;
    z-index: 0;
    padding: 0 20px;
}

.background-video-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; 
}


.formulario p{
    color:#F5F4EB;
    max-width: 715px;
    text-align: center;
    margin: 0 auto;
}

.custom-form, .form-buttons {
    position: relative; 
    z-index: 1; 
}

.custom-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem; 
    width: clamp(320px, 45.99vw, 700px);
    margin: 0 auto;
    padding-top: clamp(60px, 15.3vw, 168px); /* padding-top: 11rem; */
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 700px;
    position: relative;
    gap: 15px;
}

.form-group input {
    width: 100%;
    border: none;
    border-bottom: 3px solid #F5F4EB; 
    background: transparent;
    color: #F5F4EB;
    outline: none;
}

.form-group label {
    font-size: clamp(14px, 1.5vw, 19px);
    color: #F5F4EB;
    margin-top: 5px;
    text-transform: uppercase;
}

.form-buttons{
    display: flex;
    gap:3rem; 
    padding: clamp(40px, 3.93vw, 48px) clamp(20px, 1.31vw, 20px) clamp(100px, 7vw, 160px); /* padding: 3rem 20px 7rem; */
}

.form-buttons .button{
    cursor: pointer;
    background: #F5F4EB;
    color: black;
    border-radius: 50px;
    font-size: clamp(14px, 1.5vw, 19px);
    font-family: 'NeueHaasGroteskDisplayMedium', sans-serif;
    text-decoration: none;
    padding: 12px 0;
    min-width: clamp(310px, 22.33vw, 340px);
    text-align: center;
    display: inline-block;
    
}



/* Footer */

.logos-footer{
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    margin: 6rem 0 6rem;
    align-items: center;
}

.main-logos{
    display: flex;
    gap: 4rem;
}

.logos-footer > img {
    width: 80px;
}



/* YES/NO PAGES */

.success-text {
    color:#F5F4EB;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* FADEIN */

.fade-in {
    opacity: 0;
    transform: translateY(50px); 
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.from-left {
    transform: translateX(-250px);
}

.from-right {
    transform: translateX(250px);
}

.fade-in.visible.from-left,
.fade-in.visible.from-right {
    transform: translateX(0);
}



@media (max-width: 1024px) {
    
    body, h2, .are-you-in .left-content {
        font-size: 21px;
        line-height: 27px;
    }

    .event-intro-content p, .event-details-content h2,
    .dates .left-content h2  {
        font-size: 21px;
        line-height: 27px;
    }

    .are-you-in h2{
        font-size: 101px;
        /* line-height: 27px; */
    }

    .dates strong{
        font-size: 85px;
        line-height: 87px;
    }   

    .dates .left-content p:last-child, .form-group label ,.form-buttons .button{
        font-size: 19px;
    }

    .invitation-text {
        color:#F5F4EB;
    }

    .are-you-in, .dates{
        grid-template-rows: 1fr 1fr;
        grid-template-columns: 1fr;
        height: 100%;
    }

    .are-you-in .left-content, .are-you-in .right-content,
    .dates .left-content, .dates .right-content{
        min-height: 100vh;
    }

    .are-you-in .right-content,
    .dates .left-content{
        padding: 0 40px;
        
    }
    
    .dates .left-content{
        justify-content: space-evenly;
    }
    
    .logos-footer{
       display: flex;
       flex-direction: column;
       gap: 2rem;
    }

    .logos-footer img{
        width: fit-content;
        margin: 0 auto;
    }  

    .form-group{
        width: 500px;
    }

    .form-buttons{
        gap: 1rem;
    }

    .form-buttons .button{
        min-width: 310px;
    }

    .logos-footer > img {
        width: 80px;
    }
}

@media (max-width: 768px) {

    .event-intro-content {
        padding: 0 40px;
        gap: 20px;

    }

    .form-buttons {
        flex-direction: column;
        gap: 2rem;
    }

}

@media (max-width: 500px) {

    body, h2, .event-intro-content p,
    .are-you-in .left-content, .dates .left-content h2, .event-details-content h2{
        font-size: 14.5px;
        line-height: 18.5px;
    }

    .are-you-in h2 {
        font-size: 67px;
        line-height: 64.5px;
    }

    .dates strong {
        font-size: 60px;
        line-height: 57px;
    }

    .dates .left-content p:last-child,
    .form-group label,
    .form-buttons .button {
        font-size: 14px;
    }

    .invitation-text, .success-text{
        max-width: 200px;
    }

    .event-intro-content {
        gap: 0;
    }

    .event-intro-logos {
        bottom: 3rem;
    }

    .event-intro-content img:first-of-type {
        max-width: 200px;
        width: 100%;
        height: auto;
        padding-bottom: 10px;
    }

    .event-intro-content img{
        width: 60%;
    }

    .event-intro-content p:last-of-type{
        letter-spacing: 0;
    }

    .event-details{
        padding: 50px 30px;
    }

    .event-details-content{
        width: 100%;
    }
    
    .are-you-in .right-content{
        padding: 0 42px;
    }


    .dates .left-content {
        padding: 0;
    }

    .dates .left-content h2{
        padding: 0 20px;
        margin-top: 2.5rem;
    }

    .dates .right-content {
        background-position: 55% center;
    }
    
    .form-group {
        width: 75%;
    }

    .form-group input {
        border-bottom: 1px solid;
    }


    .form-buttons .button{
        min-width: 260px; 
    }

    .formulario p {
        padding: 0 45px;
        line-height: 19px;
    }

    .logos-footer{
        gap: 5rem;
    }

    .main-logos{
        flex-direction: column;
        gap: 5rem;
    }

}


