/* Restablecimiento de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Raleway", sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2a1f4a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e0e0ff;
    overflow-x: hidden;
    position: relative;
}

/* Efecto de fondo animado */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(102, 126, 234, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(118, 75, 162, 0.1) 0%,
            transparent 50%
        );
    z-index: -1;
    animation: floatingBackground 15s ease-in-out infinite;
}

@keyframes floatingBackground {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-10px, -10px) rotate(1deg);
    }
    66% {
        transform: translate(10px, -5px) rotate(-1deg);
    }
}

.contenedor {
    max-width: 1200px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px;
    z-index: 1;
}

.invitacion {
    background: rgba(25, 30, 60, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(102, 126, 234, 0.1) inset;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.invitacion::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 8px 8px 0 0;
}

.invitacion::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #764ba2, #667eea);
    border-radius: 0 0 8px 8px;
}

.encabezado {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.encabezado h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    color: #a7c6ff;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(167, 198, 255, 0.3);
}

.encabezado h1::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.encabezado h2 {
    font-size: 1.5rem;
    color: #b0b0ff;
    font-weight: 400;
    margin-top: 15px;
}

.contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.estudiante {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(40, 50, 80, 0.6);
    border-radius: 15px;
    width: 100%;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.estudiante h3 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.subtitulo {
    font-size: 1.1rem;
    color: #b0b0ff;
    font-style: italic;
}

.evento {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.evento h3 {
    font-size: 1.8rem;
    color: #a7c6ff;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 8px rgba(167, 198, 255, 0.3);
}

.evento h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

.detalles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 15px;
}

.detalle {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(30, 40, 70, 0.7);
    border-radius: 10px;
    flex: 1;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.detalle i {
    font-size: 1.5rem;
    color: #8aa5ff;
    margin-bottom: 10px;
}

.detalle p {
    font-size: 1rem;
    color: #e0e0ff;
    text-align: center;
}

/* Iconos simples con CSS */
.icono-calendario::before {
    content: "📅";
    font-size: 1.8rem;
}

.icono-reloj::before {
    content: "🕐";
    font-size: 1.8rem;
}

.icono-ubicacion::before {
    content: "📍";
    font-size: 1.8rem;
}

.mensaje {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(40, 35, 70, 0.7);
    border-radius: 15px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(118, 75, 162, 0.3);
}

.mensaje p {
    font-size: 1.2rem;
    color: #b0b0ff;
    margin-bottom: 15px;
    font-style: italic;
}

.frase-final {
    font-weight: 700;
    color: #a7c6ff;
    font-style: normal !important;
    text-shadow: 0 0 8px rgba(167, 198, 255, 0.3);
}

.botones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    background: linear-gradient(to right, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(102, 126, 234, 0.5);
}

.btn:active {
    transform: translateY(-1px);
}

.decoracion {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 20px;
    z-index: 0;
}

.gorro,
.diploma {
    position: absolute;
    background: rgba(30, 35, 60, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.gorro {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: 20px;
    left: 20%;
    background: rgba(102, 126, 234, 0.3);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(102, 126, 234, 0.2);
}

.gorro::after {
    content: "🎓";
    font-size: 3rem;
    filter: drop-shadow(0 0 5px rgba(167, 198, 255, 0.5));
}

.diploma {
    width: 120px;
    height: 80px;
    top: 70px;
    right: 20%;
    background: rgba(118, 75, 162, 0.3);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(118, 75, 162, 0.2);
}

.diploma::after {
    content: "📜";
    font-size: 2.5rem;
    filter: drop-shadow(0 0 5px rgba(167, 198, 255, 0.5));
}

/* Responsive */
@media (max-width: 768px) {
    .invitacion {
        padding: 30px 20px;
    }

    .encabezado h1 {
        font-size: 2rem;
    }

    .estudiante h3 {
        font-size: 1.7rem;
    }

    .evento h3 {
        font-size: 1.5rem;
    }

    .detalles {
        flex-direction: column;
        align-items: center;
    }

    .detalle {
        width: 80%;
    }

    .botones {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Estilos para el contador regresivo adaptado al modo oscuro */
.contador-regresivo {
    background: rgba(30, 40, 70, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contador-regresivo p {
    margin-bottom: 5px;
    color: #b0b0ff;
}

.tiempo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #a7c6ff;
}

.dias,
.horas {
    color: #8aa5ff;
    text-shadow: 0 0 5px rgba(138, 165, 255, 0.5);
}
