:root{
--color-primary: #e7a9b3;
--color-secondary: #f9e6ea;
--color-accent: #c97a86;
--color-text-primary: #444;
--color-text-inverse: #fff;
}

/* Animations */
@keyframes floatingY{
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

body{
    margin:0;
    font-family:'Poppins',sans-serif;
    color:var(--color-text);
    background: #fff;
    text-align:center;
}

body.no-scroll
{
    overflow: hidden !important;
    height: 100vh !important;
    width: 100%;
    position: fixed;
}

section{
    padding:80px 20px;
}

h1,h2{
margin:10px 0;
}

/* PORTADA */
.hero
{
    height:100vh;
    padding: 0px 0px 65px 0px;
    background: url("../imgs/portada.png") center/cover no-repeat;
    display:flex;
    flex-direction:column;
    justify-content:center;
    margin-top: -80px;
}

.hero-overlay
{
    inset: 0;
    position: absolute;
    background-color: #000000;
    opacity: 0.3;
    transition: border-radius 0.3s, opacity 0.3s;
}

.hero-content
{
    display: flex;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    flex-wrap: wrap;
    align-items: flex-end;
    min-height: 100vh;
}

.hero-event-title
{
    width: 100%;
}

.event-title
{
    line-height: 1.3em;
    font-weight: normal;
    text-transform: uppercase;
    color: var(--color-text-inverse);

    font-family:'Century Gothic',sans-serif;
    font-size: 16px;
    letter-spacing: 0.4px;
}

.principal-title
{
    line-height: 1.4em;

    font-family:'Playfair Display SC', sans-serif;
    font-weight: 500;
    text-shadow: 0px 0px 33px rgba(0, 0, 0, 0.3);
    color: var(--color-text-inverse);

    font-size: 44px;
}

/* COUNTDOWN */
.countdown-section {
background-color: #232323;
    position: relative;
    padding: 80px 0px 100px 0px;
    transition: border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    border-width: 0px;
    background-image: url("../imgs/countdown.png");
    background-position: center center;
    background-size: cover;
}

.countdown-overlay
{
    inset: 0px;
    position: absolute;

    background-color: #000000;
    opacity: 0.3;
    transition: background-color 0.3s, border-radius 0.3s, opacity 0.3s;
}

.countdown-wrapper{
    align-content: flex-start;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
    display: flex;
    padding: 10px;
}

.countdown-title-group{
    width: 100%;
    margin-bottom: 20px;
    animation-duration: 2s;
    margin-block-end: 20px;
    text-align: center;
}

.countdown-title-container{
    transition: background-color .3s, border .3s, border-radius .3s, box-shadow .3s, transform var(--e-transform-transition-duration, .4s);
    margin: -13px 0px 200px 0px;
}

.countdown-title-container h2{
    margin: 0px;
    padding: 0px;
    line-height: 1.3em;
    font-family: "Poppins", Sans-serif;
    font-weight: 600;
    color: var(--color-text-inverse);

    font-size: 17px;
    letter-spacing: 0.4px;
}

.countdown-date {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    animation-duration: 2s;
    margin-block: 20px;
    text-align:center;
}

h2.countdown-date-title{
    line-height: 1.3em;
    font-family: "Montserrat", Sans-serif;
    font-weight: normal;
    text-transform: uppercase;
    color: var(--color-text-inverse);
    font-size: 17px;
    letter-spacing: 0.4px;
}

.countdown-time {
    position: relative;
    width: 100%;
}

.countdown-time-wrapper {
    flex-direction: row;
    display: flex;
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
}

.countdown-time-wrapper .countdown-item {
    text-align: center;
    color: var(--color-text-inverse);
    flex-basis: 0;
    flex-grow: 1;
    background-color: #C7B89F00;
    border-radius: 0px 0px 0px 0px;
    padding: 10px 10px 10px 10px;
    margin-right: calc(4px / 2);
}

#itemCountDays, #itemCountHours, #itemCountMinutes, #itemCountSecs {
    display: block;
    color: var(--color-text-inverse);
    font-family: "Montserrat", Sans-serif;
    font-weight: 400;
    font-size: 29px;
    line-height: 1.8em;
}

.countdown-item .countdown-time-label{
    display: block;
    color: var(--color-text-inverse);
    font-family: "Playfair Display SC", Sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 26px;
    font-size: 14px;
}


.card{
background:var(--secondary);
border-radius:15px;
padding:40px;
max-width:600px;
margin:auto;
box-shadow:0 10px 20px rgba(0,0,0,.08);
}

.gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:15px;
max-width:900px;
margin:auto;
}

.gallery img{
width:100%;
border-radius:10px;
}

.button{
background:var(--accent);
color:white;
padding:12px 25px;
border-radius:30px;
text-decoration:none;
display:inline-block;
margin-top:15px;
}

footer{
  background:var(--secondary);
  padding:40px;
}







/* SOBRE */
#envelopeOverlay{
    font-family: 'Poppins',sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(20,20,20,0.5);
    backdrop-filter: blur(10px);
    z-index: 100000;
    transition: opacity 2.5s ease-out, backdrop-filter 2.5s ease-out;
    opacity: 1;
    visibility: visible;
}

#envelopeOverlay.fade-out-all {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: rgba(40, 40, 40, 0);
    pointer-events: none;
}

#envelopeOverlay > .enve-wrapper{
    position: relative;
    z-index: 10;
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.enve-wrapper.vanish {
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
}

.enve-container{
    width: 320px;
    height: 220px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    animation: floatingY 3s ease-in-out infinite;
}

#envelope {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.enve-back{
    position: absolute;
    inset: 0;
    background: var(--color-secondary);
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.invite-card {
    position: absolute;
    left: 5%;
    bottom: 5px;
    width: 90%;
    height: 90%;
    background: #FFFFFF;
    z-index: 20;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.25);
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.25, 1, 0.35, 1);
    will-change: transform;
}

.card-reveal {
    transform: translateY(-60px);
}

.enve-front {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
}

.enve-front .enve-left {
    position: absolute;
    bottom: 0;
    left:0;
    border-width: 110px 0 110px 160px;
    border-style: solid;
    border-color: transparent transparent transparent var(--color-secondary);
    filter: brightness(0.95);
}

.enve-front .enve-right {
    position: absolute;
    bottom: 0;
    right: 0;
    border-width: 110px 160px 110px 0;
    border-style: solid;
    border-color: transparent var(--color-secondary) transparent transparent;
    filter: brightness(0.95);
}

.enve-front .enve-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    border-width: 0 160px 120px 160px;
    border-style: solid;
    border-color: transparent transparent var(--color-secondary) transparent;
    filter: brightness(1);
}

.enve-front-flap {
    position: absolute;
    top: 0;
    left: 0;
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-top: 130px solid var(--color-secondary);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 30;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.enve-front-flap.open {
    transform: rotateX(180deg);
    z-index: 1;
}

.enve-front-flap .enve-seal {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 31;
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.enve-seal img {
    border: none;
    border-radius: 0px;
    box-shadow: none;
    max-width: 100%;

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.enve-hintText {
    margin-top: 30px;
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s;
}

.enve-hintText span {
    display: block;
    font-size: 10px;
    opacity: 0.8;
    margin-top: 5px;
}

.hide-hint {
    opacity: 0;
}