
/* RESET Y CONFIGURACIÓN GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    touch-action: auto;
}

body {
    font-family:  "Tangerine", serif;
    font-weight: 600;
    font-style: normal;
    background:transparent;
    color: #333;
    line-height: 1.6;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    right: 0;
    margin: 0;
    left: 0;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}


.logo {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #d23669;
}

.logo-heart {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    font-size: 2rem;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu li.active a {
    color: #d23669;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #d23669;
    left: 0;
    bottom: -4px;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu li.active a::after {
    width: 100%;
}

/* SECCIÓN INTRODUCCIÓN */
.section-intro {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}


.intro-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    padding: 0 1rem;
}

.intro-title {
    font-size: 10.8rem;
    margin-bottom: 1rem;
    color: #e1af47;
}

.intro-text {
    font-size: 2.5rem;
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.multicolor {
    font-weight: bold;
    animation: cambioColor 19s infinite alternate;
    transition: color 2s ease-in-out;
}

@keyframes cambioColor {
    7%   { color: #ff00f0; }
    21%  { color: #ff5634; }
    63%  { color: #0ecff5; }
    28%  { color: #fd0505; }
    35%  { color: #0ae152; }
    49%  { color: #072ade; }
    70%  { color: #ff0000; }
}

/* Contenedor general para los corazones */
.hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.heart-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
}

.heart {
    display: block;
    transition: transform 0.2s ease;
}

.beat-hover:hover {
    animation: beat 1s infinite;
}

@keyframes beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* SECCIONES DE MODOS */
.section-mode {
    padding: 4rem 2rem;
    background: transparent;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.mode-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mode-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #d23669;
}

.mode-content p {
    font-size: 3.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.mode-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.mode-image:hover {
    transform: scale(1.05);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    font-size: 1.8rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.9);
}

/* FORMULARIO */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-title {
    text-align: center;
    font-size: 3.8rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.9), 2px 2px 2px rgba(0, 0, 0, 0.9);
    color: #d23669;
    margin-bottom: 1.5rem;
    position: relative;
}

.form-title .icon-heart {
    display: block;
    font-size: 2rem;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.input-field {
    margin-bottom: 1.2rem;
}

.input-field label {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-field input {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #f8b500;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field input:focus {
    border-color: #d23669;
    box-shadow: 0 0 8px rgba(210,54,105,0.3);
}

.submit-btn {
    font-family: "Tangerine", serif;
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.9), 2px 2px 2px rgba(0, 0, 0, 0.9);
}

#createMeetingBtn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #f8b500, #d23669);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* SECCIÓN DE CITAS */
.meetings-container {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.meetings-title {
    text-align: center;
    font-size: 3.8rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.9), 2px 2px 2px rgba(0, 0, 0, 0.9);
    color: #d23669;
    margin-bottom: 1rem;
}
.meetings-wrapper {
    overflow-x: hidden;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meetings-wrapper ul {
    list-style: none;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meeting-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 2.5rem;
    color: darkred;
    text-shadow: 0 0 8px rgba(139, 0, 0, 0.9), 0 0 15px rgba(139, 0, 0, 0.6);
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: text-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    max-width: 95%;
}

.meetings-container {
    overflow: hidden;
}

.meeting-item:hover {
    text-shadow: 0 0 12px rgba(139, 0, 0, 1), 0 0 20px rgba(139, 0, 0, 0.7);
    transform: scale(1.05);
}

.meeting-item:hover::after {
    content: none;
}

.new-badge {
    width: 45px;
    height: auto;
    animation: pulse 1s infinite alternate;
    position: relative;
    left: 0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

#loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #d23669;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#modo-diario, #modo-recuerdos {
    border: none;
}

/* ESTILOS PARA LOS CONTADORES EN MODO DIARIO */
.mode-title-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 80%;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.mode-title-box h2 {
    font-size: 4.8rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.9), 2px 2px 2px rgba(0, 0, 0, 0.9);
    font-weight: bold;
    color: #d23669;
}

.counters-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.counter-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    width: 500px;
    min-height: 470px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Título y valor del contador */
.counter-box h3 {
    font-size: 2.6rem;
    color: #d23669;
    margin-bottom: 1rem;
}

.counter-value {
    white-space: pre-line;
    font-family: 'Digital-7 Mono', sans-serif;
    font-size: 2.3rem;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 0 10px #ffe9e9, 0 0 20px #ff5959;
}

/* Si decides conservar la imagen, puedes usar esta clase; de lo contrario, se puede ocultar */
.counter-image {
    display: block;
    margin: 0 auto 1rem;
    max-width: 100%;
}

/* SECCIÓN DE RECUERDOS */
#modo-recuerdos {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.memory-title-box {
    position: relative;
    max-width: 999px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.memory-title {
    font-size: 4.8rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.9), 2px 2px 2px rgba(0, 0, 0, 0.9);
    color: #d23669;
}

#spark-container {
    position: fixed;  /* Asegura que cubra toda la pantalla */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* No bloquea clics en otros elementos */
    z-index: 9999; /* Asegura que el efecto esté sobre todo */
}

#spark-container canvas {
    width: 100%;
    height: 100%;
}

.diagonal-text {
    position: absolute;
    top: 31%;
    left: 74%;
    transform: translate(50%, 50%) rotate(23deg);
    font-size: 2.7rem;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.9), 2px 2px 2px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    pointer-events: none;
}

.no-meetings {
    font-size: 1.3rem;
    color:#333333;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}




@media screen and (max-width: 768px) {
    html, body {
        height: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    .footer {
        position: fixed;
        bottom: 0;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .header {
        width: 100vw;
    }

    .section-intro {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}






.gallery-container {
    position: relative;
    height: 700px;
    width: 100%;
    overflow: hidden;
    background-color: transparent;
}

.gallery-content {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.gallery-track {
    display: flex;
    height: auto;
    min-height: 590px;
    justify-content: center;
    align-items: center;
    cursor: grab;
    transform-style: preserve-3d;
    width: 100%;
}

.gallery-item {
    position: absolute;
    display: flex;
    height: fit-content;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

.gallery-img {
    pointer-events: none;
    height: 360px;
    width: 350px;
    border-radius: 90px;
    border: 4px solid #b8860b;
    object-fit: cover;
    transition: transform 0.5s ease;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.07);
}

.iridescence-background {
    position: fixed; /* Se mantiene fijo en toda la web */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Se envía al fondo para que no interfiera con otros elementos */
    pointer-events: none; /* Evita que interfiera con clics */
}

