* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 1.5rem;
}

.invitation-wrapper {
    max-width: 580px;
    width: 100%;
    perspective: 1800px;
    position: relative;
    z-index: 10;
}

.invitation-card {
    position: relative;
    width: 100%;
    min-height: 680px;
    cursor: default;
}

.card-face {
    position: relative;
    width: 100%;
    background: #FEFAF0;
    border-radius: 32px;
    padding: 2.2rem;
    box-shadow: 0 30px 50px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(212, 175, 55, 0.25);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    backdrop-filter: blur(0px);
    z-index: 20;
}

.front-face {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 620px;
    background: linear-gradient(145deg, rgba(255,255,255,0.96) 0%, rgba(252,248,239,0.96) 100%);
}

.back-face {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    background: rgba(255,252,245,0.96);
    min-height: 680px;
    display: none;
    backface-visibility: visible;
}

.hidden {
    display: none;
}

.monogram {
    text-align: center;
    margin-bottom: 2rem;
}

.initials {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.2rem;
    font-weight: 600;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #B8860B, #D4AF37);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.crown-line {
    font-size: 1.6rem;
    color: #B8860B;
    margin-top: 0.2rem;
    opacity: 0.7;
}

.title-quince {
    text-align: center;
    margin: 2rem 0;
}

.quince-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    color: #8F6F3E;
    background: rgba(184, 134, 11, 0.1);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
}

.full-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 1.2rem;
    color: #1E3A2F;
    letter-spacing: 1px;
    transition: letter-spacing 0.3s ease;
}

.frog-subtle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #A5854A;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 1rem 0;
}

.frog-subtle i {
    font-size: 0.9rem;
    opacity: 0.6;
}

.btn-open {
    background: transparent;
    border: 1.5px solid #B8860B;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #5E3A1C;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 2rem auto 1rem;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(184, 134, 11, 0.02);
    width: fit-content;
}

.btn-open:hover {
    background: #B8860B;
    color: white;
    gap: 18px;
    box-shadow: 0 10px 20px -8px rgba(184, 134, 11, 0.4);
}

.fecha-peq {
    text-align: center;
    font-size: 0.75rem;
    color: #9B7B4C;
    font-weight: 300;
    margin-top: 1rem;
}


.back-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: #2C5A3E;
    text-transform: lowercase;
}

.accent-line {
    width: 35px;
    height: 1px;
    background: #D4AF37;
}


.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-bottom: 1px solid #EFE5D2;
    padding-bottom: 0.8rem;
}

.info-item i {
    font-size: 1.2rem;
    color: #B8860B;
    width: 32px;
    margin-top: 0.2rem;
}

.info-item strong {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8E6A3A;
    font-weight: 600;
    display: block;
}

.info-item p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1F2F24;
    margin-top: 0.2rem;
}

.address {
    font-size: 0.7rem;
    color: #7F6948;
    display: block;
    margin-top: 0.2rem;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(184, 134, 11, 0.12);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #B8860B;
    margin-top: 0.5rem;
    font-weight: 500;
}

.ceremony-item i, .party-item i {
    font-size: 1.2rem;
}


.quote-elegant {
    background: rgba(246, 240, 227, 0.8);
    padding: 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #846B3E;
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 400;
    text-align: center;
}

.quote-elegant i:first-child {
    font-size: 1rem;
    opacity: 0.5;
}

.quote-elegant i:last-child {
    font-size: 1rem;
    opacity: 0.5;
    align-self: flex-end;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.btn-outline, .btn-solid {
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline {
    border: 1px solid #B8860B;
    color: #5A3E1F;
    background: transparent;
}

.btn-solid {
    background: #2E5A3B;
    color: white;
    border: none;
}

.btn-outline:hover {
    background: rgba(184, 134, 11, 0.1);
    transform: translateY(-2px);
}

.btn-solid:hover {
    background: #1E402C;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.contact-footer {
    text-align: center;
    font-size: 0.7rem;
    color: #9B855D;
    border-top: 1px solid #EADFCB;
    padding-top: 0.8rem;
}

.separator {
    margin: 0 8px;
}

.subtle-frog {
    text-align: center;
    color: #C7AD7A;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 0.2rem;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #EFE5D2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #5E3A1C;
}

.close-btn:hover {
    background: #B8860B;
    color: white;
    transform: rotate(90deg);
}

.footer-couture {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(212, 175, 55, 0.6);
    font-weight: 300;
}

.minimal-frog {
    position: fixed;
    bottom: 15%;
    right: 5%;
    font-size: 2rem;
    color: #C9A96E;
    opacity: 0;
    animation: floatFrog 2s ease-out forwards;
    pointer-events: none;
    z-index: 999;
}

@keyframes floatFrog {
    0% { opacity: 0; transform: translateY(20px) rotate(0deg);}
    20% { opacity: 0.6; transform: translateY(-10px) rotate(-8deg);}
    100% { opacity: 0; transform: translateY(-80px) rotate(-15deg);}
}

@media (max-width: 550px) {
    body {
        padding: 1rem;
    }
    
    .card-face {
        padding: 1.5rem;
    }
    
    .full-name {
        font-size: 2rem;
    }
    
    .initials {
        font-size: 3rem;
    }
    
    .info-item p {
        font-size: 0.85rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-outline, .btn-solid {
        justify-content: center;
    }
    
    .quote-elegant {
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
    
    .front-face, .back-face {
        min-height: auto;
    }
    
    .info-item {
        flex-wrap: wrap;
    }
    
    .info-item i {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .action-buttons {
        gap: 0.5rem;
    }
    
    .btn-outline, .btn-solid {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }
}

.familia{
    margin-top:60px;
    text-align:center;
}

.familia-intro{
    font-family:'Cormorant Garamond', serif;
    font-size:20px;
    color:#B8A07C;
    letter-spacing:3px;
    margin-bottom:30px;
}


.familia-grid{
    display:flex;
    justify-content:space-between;
    gap:40px;
    margin-bottom:30px;
    flex-wrap:wrap;
}


.familia-col{
    flex:1;
    min-width:200px;
}


.familia-titulo{
    font-family:'Cormorant Garamond', serif;
    font-size:18px;
    letter-spacing:2px;
    color:#D4AF37;
    margin-bottom:12px;
}


.familia-nombre{
    font-size:15px;
    color:#6B5744;
    margin:4px 0;
    position:relative;
}


.familia-nombre::after{
    content:'';
    display:block;
    width:25px;
    height:1px;
    background:#E8DCC8;
    margin:6px auto 0;
}


.familia-padrinos{
    margin-top:20px;
}

@media (max-width:600px){
    .familia-grid{
        flex-direction:column;
        gap:20px;
    }
}