/* ==========================================================================
   Boda de Marcos y Priscila — Rediseño elegante (páginas de invitados)
   Vino profundo + dorado; contornos finos, esquinas marcadas y ornamentos de
   línea en vez de bloques sólidos. Referencia visual: mockup-rediseno-elegante.html
   Importado desde menu.html, upload.html, album.html y messages.html.
   NO se usa en screen.html ni en las vistas Thymeleaf del panel admin.
   ========================================================================== */

:root {
    --wine: #3a0f14;
    --wine-deep: #240a0d;
    --wine-soft: #5a1a20;
    --gold: #c9a15a;
    --gold-soft: #e6cfa0;
    --cream: #f3ead9;
    --cream-muted: #cbb99e;
}

/* Ornamento superior de encabezado: línea — diamante — línea */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.ornament .line {
    height: 1px;
    width: 38px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament .diamond {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Nombre de la pareja, tipografía script */
.names {
    font-family: 'Alex Brush', cursive;
    font-size: 2.6rem;
    text-align: center;
    color: var(--gold-soft);
    line-height: 1;
    margin: 0 0 6px;
    font-weight: 400;
}

.subtitle {
    text-align: center;
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cream-muted);
    margin: 0 0 1.6rem;
}

/* Título de sub-página (upload/álbum/mensajes), itálica delicada */
.page-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.7rem;
    text-align: center;
    margin: 0 0 6px;
    color: var(--cream);
}

.page-sub {
    text-align: center;
    font-size: .95rem;
    color: var(--cream-muted);
    margin: 0 0 1.6rem;
    font-style: italic;
    line-height: 1.5;
}

/* Separador de sección: línea + texto pequeño en mayúsculas */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.6rem 0;
    color: var(--cream-muted);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.divider .l {
    flex: 1;
    height: 1px;
    background: rgba(201, 161, 90, .3);
}

/* Botón secundario: contorno fino elegante */
.btn-elegant {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(201, 161, 90, .55);
    background: rgba(201, 161, 90, .06);
    color: var(--gold-soft);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    letter-spacing: .03em;
    text-decoration: none;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: .2s ease;
    box-sizing: border-box;
}

.btn-elegant:hover {
    background: rgba(201, 161, 90, .14);
    border-color: var(--gold);
    color: var(--cream);
}

.btn-elegant svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-elegant:disabled,
.btn-elegant[data-disabled="true"] {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Botón principal: gradiente dorado sólido */
.btn-primary-elegant {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px 20px;
    margin-top: 6px;
    border: none;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: var(--wine-deep);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .04em;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: 0 8px 24px -10px rgba(201, 161, 90, .5);
    cursor: pointer;
    transition: .2s ease;
    box-sizing: border-box;
}

.btn-primary-elegant:hover {
    box-shadow: 0 10px 28px -8px rgba(201, 161, 90, .65);
    transform: translateY(-1px);
}

.btn-primary-elegant svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary-elegant:disabled,
.btn-primary-elegant[data-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* Campo de texto: línea inferior en vez de recuadro */
label.field-label {
    display: block;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cream-muted);
    margin-bottom: 8px;
}

.field-elegant {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(201, 161, 90, .4);
    color: var(--cream);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    padding: 8px 2px;
    margin-bottom: 1.5rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease;
}

.field-elegant::placeholder { color: #6b5a4a; }

.field-elegant:focus { border-bottom-color: var(--gold); }

textarea.field-elegant {
    resize: vertical;
    min-height: 4.5rem;
    font-family: 'Cormorant Garamond', serif;
}

/* Fleur ornamental de esquina (SVG decorativo, opcional) */
.corner-fleur {
    position: absolute;
    opacity: .35;
    pointer-events: none;
}

.cf-tl { top: 18px; left: 18px; }
.cf-br { bottom: 18px; right: 18px; transform: rotate(180deg); }

.footer-note {
    text-align: center;
    font-size: .75rem;
    color: var(--cream-muted);
    letter-spacing: .1em;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.back-link-elegant {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--gold-soft);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: .95rem;
    letter-spacing: .03em;
    margin-bottom: .8rem;
    padding: 5px 4px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}

.back-link-elegant:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
