@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --cp-vino: #5B1117;
    --cp-vino-claro: #7A1F26;
    --cp-vino-oscuro: #3D0A0E;
    --cp-crema: #FAF3EB;
    --cp-crema-oscuro: #F0E6D8;
    --cp-dorado: #B8860B;
    --cp-texto: #2D2D2D;
    --cp-texto-suave: #6B6B6B;
    --cp-borde: #E0D5C8;
    --cp-linea: #E8DED0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cp-crema);
    color: var(--cp-texto);
    overflow-x: hidden;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 35px, var(--cp-linea) 35px, var(--cp-linea) 36px);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

.topnav {
    background: linear-gradient(180deg, var(--cp-vino-oscuro) 0%, var(--cp-vino) 100%);
    border-bottom: 3px solid var(--cp-dorado);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.topnav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topnav-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.topnav-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--cp-crema);
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.topnav-brand span {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--cp-crema);
    letter-spacing: 1px;
}

.topnav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
}

.topnav-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent;
}

.topnav-menu li a:hover,
.topnav-menu li a.active {
    color: var(--cp-crema);
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--cp-dorado);
}

.topnav-menu li a svg {
    width: 18px;
    height: 18px;
}

.topnav-actions {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.btn-cp {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: transparent;
    color: rgba(255,255,255,0.9);
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.btn-cp:hover {
    background: var(--cp-crema);
    color: var(--cp-vino);
    border-color: var(--cp-crema);
    transform: translateY(-1px);
}

.btn-cp-primary {
    background: var(--cp-dorado);
    color: var(--cp-vino-oscuro);
    border-color: var(--cp-dorado);
    font-weight: 600;
}

.btn-cp-primary:hover {
    background: #D4A017;
    border-color: #D4A017;
    color: var(--cp-vino-oscuro);
}

.page-wrapper {
    padding-top: 90px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.invite-strip {
    background: linear-gradient(135deg, var(--cp-vino) 0%, var(--cp-vino-claro) 100%);
    border-radius: 10px;
    padding: 1.2rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 12px rgba(91, 17, 23, 0.18);
    border-left: 5px solid var(--cp-dorado);
}

.invite-strip p {
    color: var(--cp-crema);
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    margin: 0;
}

.invite-strip .btn-cp {
    border-color: var(--cp-crema);
    color: var(--cp-crema);
}

.invite-strip .btn-cp:hover {
    background: var(--cp-crema);
    color: var(--cp-vino);
}

.hero-doc {
    background: #FFFFFF;
    border: 1px solid var(--cp-borde);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    position: relative;
}

.hero-doc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 60px;
    width: 2px;
    height: 100%;
    background: rgba(200, 160, 160, 0.4);
    z-index: 2;
}

.hero-img-wrap {
    position: relative;
    height: 340px;
    overflow: hidden;
}

.hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(91,17,23,0.1) 0%, rgba(91,17,23,0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem 3rem;
}

.hero-overlay h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--cp-crema);
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-overlay p {
    color: var(--cp-crema-oscuro);
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    opacity: 0.95;
}

.doc-body {
    padding: 2.5rem 3rem 2.5rem 4rem;
    position: relative;
}

.doc-body::after {
    content: '';
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    border: 2px solid var(--cp-dorado);
    border-radius: 50%;
    opacity: 0.3;
}

.badge-cp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    background: rgba(91, 17, 23, 0.07);
    color: var(--cp-vino);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    width: fit-content;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(91, 17, 23, 0.12);
}

.doc-body p {
    color: var(--cp-texto-suave);
    line-height: 1.9;
    font-size: 1.02rem;
    margin-bottom: 1.3rem;
    text-align: justify;
}

.doc-body p:last-child {
    margin-bottom: 0;
}

.doc-body strong {
    color: var(--cp-vino);
    font-weight: 600;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.bento-card {
    background: #FFFFFF;
    border: 1px solid var(--cp-borde);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 2px;
    height: 100%;
    background: rgba(200, 160, 160, 0.35);
    z-index: 2;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

.bento-img {
    position: relative;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
}

.bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bento-card:hover .bento-img img {
    transform: scale(1.04);
}

.bento-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(91,17,23,0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.bento-img-overlay h3 {
    font-size: 1.6rem;
    color: var(--cp-crema);
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.bento-text {
    padding: 2.5rem 2.5rem 2.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.bento-text h3 {
    font-size: 1.4rem;
    color: var(--cp-vino);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Merriweather', serif;
}

.bento-text p {
    color: var(--cp-texto-suave);
    line-height: 1.85;
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
    text-align: justify;
}

.bento-text p:last-child {
    margin-bottom: 0;
}

.footer-cp {
    background: linear-gradient(180deg, var(--cp-vino) 0%, var(--cp-vino-oscuro) 100%);
    border-top: 3px solid var(--cp-dorado);
    padding: 2rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-cp p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Merriweather', serif;
}

.footer-actions {
    display: flex;
    gap: 0.9rem;
}

@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-img {
        min-height: 300px;
    }
    .topnav-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .topnav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-overlay h1 {
        font-size: 1.8rem;
    }
    .doc-body {
        padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    }
    .invite-strip {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
