* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold: #daa520;
    --light-gold: #f4e5c2;
    --dark-gold: #b8860b;
    --dark-blue: #1a1a2e;
    --medium-blue: #16213e;
    --light-blue: #0f3460;
    --white: #f5f5f5;
    --light-gray: #e8e8e8;
    --mobile-padding: 1.5rem;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to bottom, var(--dark-blue) 0%, var(--medium-blue) 50%, var(--light-blue) 100%);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

.geometric-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(218, 165, 32, 0.05) 49%, rgba(218, 165, 32, 0.05) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(218, 165, 32, 0.05) 49%, rgba(218, 165, 32, 0.05) 51%, transparent 52%);
    background-size: 60px 60px;
    animation: geometricMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes geometricMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, -60px 60px; }
}

.elegant-frame {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9999;
}

.frame-corner {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 4px solid;
    border-image: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 50%, var(--gold) 100%) 1;
}

.frame-corner.top-left {
    top: 20px; left: 20px;
    border-right: none;
    border-bottom: none;
    box-shadow: -2px -2px 15px rgba(218, 165, 32, 0.3);
}

.frame-corner.top-right {
    top: 20px; right: 20px;
    border-left: none;
    border-bottom: none;
    box-shadow: 2px -2px 15px rgba(218, 165, 32, 0.3);
}

.frame-corner.bottom-left {
    bottom: 20px; left: 20px;
    border-right: none;
    border-top: none;
    box-shadow: -2px 2px 15px rgba(218, 165, 32, 0.3);
}

.frame-corner.bottom-right {
    bottom: 20px; right: 20px;
    border-left: none;
    border-top: none;
    box-shadow: 2px 2px 15px rgba(218, 165, 32, 0.3);
}

.diagonal-accent {
    position: absolute;
    background: linear-gradient(135deg, transparent 40%, rgba(218, 165, 32, 0.4) 45%, var(--gold) 50%, rgba(218, 165, 32, 0.4) 55%, transparent 60%);
    pointer-events: none;
}

.diagonal-accent.top-right {
    top: 0; right: 0;
    width: 300px; height: 300px;
    transform: rotate(45deg);
    transform-origin: top right;
}

.diagonal-accent.bottom-left {
    bottom: 0; left: 0;
    width: 300px; height: 300px;
    transform: rotate(45deg);
    transform-origin: bottom left;
}

.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 255, 0.95));
    border: 3px solid;
    border-image: linear-gradient(135deg, var(--gold), var(--light-gold), var(--gold)) 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.5);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.music-toggle:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 15px 40px rgba(218, 165, 32, 0.7);
}

.music-toggle.active {
    animation: soundWave 1.5s ease-in-out infinite;
    border-color: var(--gold);
}

@keyframes soundWave {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.08) rotate(5deg); }
    75% { transform: scale(1.08) rotate(-5deg); }
}

.main-wrapper {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
    padding: 50px 20px;
    width: 100%;
    overflow-x: hidden;
}

.hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(15, 52, 96, 0.8)),
        url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1600') center/cover fixed;
    padding: 60px 20px;
    margin: 40px 0;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
    width: 100%;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.2; }
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
}

.grad-emblem {
    font-size: 90px;
    margin-bottom: 40px;
    display: inline-block;
    animation: fadeInRotate 1.5s ease-out;
    filter: drop-shadow(0 0 25px rgba(218, 165, 32, 0.8));
}

@keyframes fadeInRotate {
    from { opacity: 0; transform: rotate(-180deg) scale(0); }
    to { opacity: 1; transform: rotate(0deg) scale(1); }
}

.pre-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 25px;
    animation: slideDown 1s ease 0.3s both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-title {
    font-family: 'Italiana', serif;
    font-size: 80px;
    color: var(--white);
    margin: 30px 0;
    line-height: 1.2;
    animation: fadeInZoom 1.2s ease 0.6s both;
    text-shadow: 2px 2px 20px rgba(218, 165, 32, 0.6);
}

@keyframes fadeInZoom {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

.ornamental-line {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 35px auto;
    position: relative;
    animation: expandLine 1s ease 1s both;
}

.ornamental-line::before,
.ornamental-line::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 12px;
}

.ornamental-line::before { left: -15px; }
.ornamental-line::after { right: -15px; }

@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { width: 150px; opacity: 1; }
}

.graduate-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    font-weight: 600;
    color: var(--gold);
    margin: 25px 0;
    animation: slideUp 1s ease 1.2s both;
    text-shadow: 0 0 40px rgba(218, 165, 32, 0.5);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.degree-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    color: var(--white);
    margin: 20px 0;
    animation: slideUp 1s ease 1.5s both;
}

.event-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 5px;
    color: #e0e0e0;
    margin-top: 30px;
    animation: slideUp 1s ease 1.8s both;
}

.content-block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(218, 165, 32, 0.06));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 0;
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
    margin: 80px 0;
    padding: 90px 50px;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 100%;
}

.content-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.block-heading {
    font-family: 'Italiana', serif;
    font-size: 48px;
    text-align: center;
    color: var(--gold);
    margin-bottom: 60px;
    position: relative;
    text-shadow: 0 0 30px rgba(218, 165, 32, 0.4);
}

.block-heading::before {
    content: '«';
    position: absolute;
    left: -50px;
    color: var(--gold);
    font-size: 60px;
    opacity: 0.5;
}

.block-heading::after {
    content: '»';
    position: absolute;
    right: -50px;
    color: var(--gold);
    font-size: 60px;
    opacity: 0.5;
}

.message-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    line-height: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--light-gray);
    font-style: italic;
}

.photo-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 70px;
}

.photo-frame {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: #000;
    clip-path: polygon(5% 0, 100% 0%, 95% 100%, 0% 100%);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(218, 165, 32, 0.4);
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.3), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.photo-frame:hover::before {
    opacity: 1;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.photo-frame:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 70px rgba(218, 165, 32, 0.5);
    border-color: rgba(218, 165, 32, 0.8);
}

.photo-frame:hover img {
    transform: scale(1.2) rotate(2deg);
}

.ceremony-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.venue-image {
    position: relative;
    height: 450px;
    overflow: hidden;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%);
    border: 3px solid rgba(218, 165, 32, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: all 0.6s ease;
}

.venue-image:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 70px rgba(218, 165, 32, 0.4);
}

.venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.venue-image:hover img {
    transform: scale(1.15);
}

.venue-details {
    padding: 40px;
}

.venue-details h3 {
    font-family: 'Italiana', serif;
    font-size: 38px;
    color: var(--gold);
    margin-bottom: 30px;
}

.venue-details p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 20px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
    font-size: 18px;
}

.detail-item i {
    font-size: 24px;
    margin-right: 20px;
    color: var(--gold);
}

.reception-box {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(218, 165, 32, 0.3);
    clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
}

.reception-box h3 {
    font-family: 'Italiana', serif;
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 25px;
    text-align: center;
}

.reception-box p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    line-height: 1.8;
    color: var(--light-gray);
    margin: 15px 0;
    text-align: center;
}

.time-highlight {
    font-size: 32px;
    font-weight: 600;
    color: var(--gold);
    margin: 25px 0;
    font-family: 'Italiana', serif;
}

.action-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 60px;
}

.action-btn {
    padding: 20px 55px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 3px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: var(--gold);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.action-btn:hover::before {
    width: 500px; height: 500px;
}

.action-btn:hover {
    color: var(--dark-blue);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(218, 165, 32, 0.6);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--dark-blue);
}

.action-btn.primary::before {
    background: linear-gradient(135deg, var(--light-gold), var(--gold));
}

.action-btn.confirmed {
    background: #666;
    border-color: #666;
    color: #fff;
    cursor: not-allowed;
}

.action-btn.confirmed:hover {
    transform: none;
}

/* Estilos para mensajes de estado */
.status-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10001;
    font-size: 14px;
    display: none;
    max-width: 90%;
    text-align: center;
}

/* MEDIA QUERIES PARA DISPOSITIVOS MÓVILES */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .main-wrapper {
        padding: 40px 15px;
    }
    
    .hero-banner {
        padding: 40px 15px;
        margin: 30px 0;
    }
    
    .content-block {
        padding: 70px 30px;
        margin: 60px 0;
    }
    
    .photo-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
    
    .frame-corner { 
        width: 80px; 
        height: 80px; 
    }
    
    .frame-corner.top-left,
    .frame-corner.top-right {
        top: 10px;
    }
    
    .frame-corner.bottom-left,
    .frame-corner.bottom-right {
        bottom: 10px;
    }
    
    .frame-corner.top-left,
    .frame-corner.bottom-left {
        left: 10px;
    }
    
    .frame-corner.top-right,
    .frame-corner.bottom-right {
        right: 10px;
    }
    
    .diagonal-accent.top-right,
    .diagonal-accent.bottom-left {
        width: 150px;
        height: 150px;
    }
    
    .music-toggle { 
        top: 15px; 
        right: 15px; 
        width: 50px; 
        height: 50px; 
        font-size: 20px; 
    }
    
    .main-wrapper {
        padding: 30px 10px;
    }
    
    .hero-banner {
        padding: 30px 10px;
        margin: 20px 0;
        min-height: 80vh;
    }
    
    .grad-emblem {
        font-size: 70px;
        margin-bottom: 30px;
    }
    
    .pre-title {
        font-size: 14px;
        letter-spacing: 6px;
        margin-bottom: 20px;
    }
    
    .main-title { 
        font-size: 42px; 
        margin: 20px 0;
    }
    
    .ornamental-line {
        width: 120px;
        margin: 25px auto;
    }
    
    .graduate-title { 
        font-size: 36px; 
        margin: 15px 0;
    }
    
    .degree-title { 
        font-size: 24px; 
        margin: 15px 0;
    }
    
    .event-date {
        font-size: 18px;
        letter-spacing: 3px;
        margin-top: 20px;
    }
    
    .content-block {
        padding: 50px 20px;
        margin: 40px 0;
    }
    
    .block-heading {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .block-heading::before,
    .block-heading::after {
        display: none;
    }
    
    .message-content {
        font-size: 18px;
        line-height: 1.8;
    }
    
    .photo-showcase { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        margin-top: 40px;
    }
    
    .photo-frame {
        height: 300px;
    }
    
    .ceremony-display { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        margin-top: 40px;
    }
    
    .venue-image {
        height: 300px;
        order: 1;
    }
    
    .venue-details { 
        text-align: center; 
        padding: 20px 0;
        order: 2;
    }
    
    .venue-details h3 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .venue-details p {
        font-size: 18px;
        margin: 15px 0;
    }
    
    .detail-item {
        justify-content: center;
        margin: 15px 0;
        font-size: 16px;
    }
    
    .reception-box {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .reception-box h3 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .reception-box p {
        font-size: 18px;
        margin: 10px 0;
    }
    
    .time-highlight {
        font-size: 24px;
        margin: 20px 0;
    }
    
    .action-buttons { 
        flex-direction: column; 
        gap: 20px;
        margin-top: 40px;
    }
    
    .action-btn { 
        width: 100%; 
        justify-content: center;
        padding: 18px 30px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .frame-corner { 
        width: 60px; 
        height: 60px; 
    }
    
    .music-toggle { 
        top: 10px; 
        right: 10px; 
        width: 45px; 
        height: 45px; 
        font-size: 18px; 
    }
    
    .main-wrapper {
        padding: 20px 8px;
    }
    
    .hero-banner {
        padding: 20px 8px;
        margin: 15px 0;
        min-height: 70vh;
    }
    
    .grad-emblem {
        font-size: 60px;
        margin-bottom: 20px;
    }
    
    .pre-title {
        font-size: 12px;
        letter-spacing: 4px;
        margin-bottom: 15px;
    }
    
    .main-title { 
        font-size: 36px; 
        margin: 15px 0;
    }
    
    .ornamental-line {
        width: 100px;
        margin: 20px auto;
    }
    
    .graduate-title { 
        font-size: 30px; 
        margin: 10px 0;
    }
    
    .degree-title { 
        font-size: 20px; 
        margin: 10px 0;
    }
    
    .event-date {
        font-size: 16px;
        letter-spacing: 2px;
        margin-top: 15px;
    }
    
    .content-block {
        padding: 40px 15px;
        margin: 30px 0;
    }
    
    .block-heading {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .message-content {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .photo-frame {
        height: 250px;
    }
    
    .venue-image {
        height: 250px;
    }
    
    .venue-details h3 {
        font-size: 24px;
    }
    
    .venue-details p {
        font-size: 16px;
    }
    
    .detail-item {
        font-size: 14px;
    }
    
    .reception-box {
        padding: 25px 15px;
    }
    
    .reception-box h3 {
        font-size: 24px;
    }
    
    .reception-box p {
        font-size: 16px;
    }
    
    .time-highlight {
        font-size: 20px;
    }
    
    .action-btn { 
        padding: 16px 25px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .music-toggle { 
        top: 8px; 
        right: 8px; 
        width: 40px; 
        height: 40px; 
        font-size: 16px; 
    }
    
    .main-title { 
        font-size: 32px; 
    }
    
    .graduate-title { 
        font-size: 26px; 
    }
    
    .degree-title { 
        font-size: 18px; 
    }
}

#youtubePlayer { display: none; }