/* ================================================================
   LIBRO DE CONDOLENCIAS PRO — Frontend Styles v4.1
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Montserrat:wght@300;400;500&display=swap');

/* ================================================================
   PANTALLA PRINCIPAL — tarjetas horizontales 
   ================================================================ */

.lcp-pp-wrap {
    
    width: 100%;
    padding: 0;
    font-family: 'Cormorant Garamond', serif;
    
}

/* Fecha y hora */
.lcp-pp-datetime {
    position: fixed;
    top: 32px;
    right: 44px;
    text-align: right;
    z-index: 10;
}

.lcp-pp-fecha {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #1a1a1a !important;
    text-shadow: 0 1px 3px rgba(255,255,255,0.9);
}

.lcp-pp-hora {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: #1a1a1a !important;
    margin-top: 4px;
    text-shadow: 0 1px 4px rgba(255,255,255,0.9);
}

/* LISTA DE DIFUNTOS */
.lcp-pp-lista {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    box-sizing: border-box;
}

/* TARJETA */
.lcp-pp-item {
    background: rgba(255, 252, 245, 0.60);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none !important;
    border-top: 5px solid #c9a96e !important;
    width: 100% !important;
    padding: 36px 80px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

/* Nombre */
.lcp-pp-item-nombre {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 4vw, 4rem) !important;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex: 1;
}

/* Sala */
.lcp-pp-item-sala {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
	font-weight: bold;
	text-shadow: 2px 2px 4px #333;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #3e2b2e !important;
    white-space: nowrap;
    margin-left: 60px;
    flex-shrink: 0;
}

/* Si no hay difuntos */
.lcp-pp-vacio {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #444;
    text-align: center;
    margin-top: 40px;
}


/* ================================================================
   PANTALLA DE SALA 
   ================================================================ */

.lcp-sala-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
	flex-direction: column;
    align-items: center;
    justify-content: flex-start;
	text-align: center;
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
    padding: 10px 20px;
    box-sizing: border-box;
}

.lcp-sala-wrap > * { position: relative; z-index: 1; }

/* Tarjeta central */
.lcp-sala-tarjeta {
    width: 100% !important;
    max-width: 1200px !important;
    background: rgba(255, 252, 245, 0.56);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(201,169,110,0.28);
    border-top: 3px solid #c9a96e;
	border-right: 3px solid #c9a96e;
    text-align: center;
    overflow: hidden;
    padding-bottom: 50px;
    margin: 0 auto;
}

/* Carrusel foto  */
.lcp-sala-wrap .lcp-carrusel {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 28px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.lcp-sala-wrap .lcp-carrusel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.lcp-sala-wrap .lcp-carrusel-slide.activo { opacity: 1; }

.lcp-sala-wrap .lcp-carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: sepia(0.08) contrast(1.02);
}

.lcp-sala-wrap .lcp-carrusel-dots {
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.lcp-sala-wrap .lcp-cdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background 0.4s;
}

.lcp-sala-wrap .lcp-cdot.activo { background: #fff; }

/* Cabecera difunto */
.lcp-sala-cabecera {
    padding: 40px 50px 0;
}

.lcp-sala-en-memoria {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 20px;
    opacity: 0.9;
}

.lcp-sala-nombre {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 3vw, 3rem);
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 14px;
    letter-spacing: 0.05em;
    line-height: 1.15;
    text-shadow: 1px 2px 4px rgba(255,255,255,0.6);
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lcp-sala-fechas {
    display: none !important;
	text-align: center;
	
}

/* Bloque funeral / entierro */
.lcp-sala-info-bloque {
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.15);
	overflow: hidden;
	text-align: center;
}

.lcp-sala-info-item {
    text-align: center !important;
    max-width: none !important;
    margin: 0 auto !important;
}

.lcp-sala-info-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.1rem !important;
	font-weight: 700 !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #3e2b2e;
    margin-bottom: 6px;
	text-shadow: 0 1px 2px rgba(0,0,0,0,0.65);
	display: block;
	text-align:center;
}

.lcp-sala-info-valor {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem !important;
    color: #222 !important;
	text-align: center;
    line-height: 1.4;
	display: block;
	margin-bottom: 18px;
}

/* Separador */
.lcp-sala-sep {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, transparent, #c9a96e, transparent);
    margin: 24px auto;
    opacity: 0.6;
}

/* Mensajes rotando */
.lcp-sala-mensajes {
    position: relative;
    width: 100%;
    padding: 0 50px;
    box-sizing: border-box;
    min-height: 280px;
    
}

.lcp-sala-msg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    padding: 0 50px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.2s ease, transform 1.2s ease;
    pointer-events: none;
}

.lcp-sala-msg.lcp-msg-activo {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lcp-sala-msg.lcp-msg-saliendo {
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.lcp-sala-mensajes .lcp-sala-msg:only-child {
    position: static;
    opacity: 1;
    transform: none;
    padding: 0;
}

.lcp-msg-comilla {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    line-height: 0.5;
    color: #3e2b2e;
    opacity: 0.35;
    margin-bottom: 16px;
    user-select: none;
	text-shadow: 0 2px 3px rgba(0,0,0,0.35);
}

.lcp-msg-texto {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 2.3vw, 2.2rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.4;
    color: #222;
    margin: 0 0 15px;
}

.lcp-msg-linea {
    width: 24px;
    height: 1px;
    background: #c9a96e;
    margin: 0 auto 14px;
    opacity: 0.4;
}

.lcp-msg-autor {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #555;
	display: block;
	padding-bottom: 10px;
}

/* Dots */
.lcp-sala-dots {
    display: flex;
    gap: 7px;
    justify-content: center;
    padding: 24px 0 32px;
}

.lcp-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    transition: background 0.5s;
}

.lcp-dot-activo { background: #c9a96e; }

/* Sin mensajes */
.lcp-sala-vacio {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: black;
    padding: 0 44px 36px;
}

/* Etiqueta sala esquina */
.lcp-sala-etiqueta-pos {
    position: fixed;
    bottom: 24px;
    right: 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    z-index: 10;
}

.lcp-sala-not-found {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #bbb;
    text-align: center;
}


/* ================================================================
   FORMULARIO PÚBLICO
   ================================================================ */
.lcp-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 30px 0;
    font-family: 'Cormorant Garamond', serif;
}

.lcp-form-container {
    background: #fafaf8;
    border: 1px solid #e8e2d8;
    border-top: 2px solid #c9a96e;
    padding: 38px;
}

.lcp-form-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #1a1a1a !important;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
}

.lcp-form-subtitulo {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: #444 !important;
    margin: 0 0 30px;
    display: block;
    text-transform: uppercase;
}

.lcp-form-public .lcp-field { margin-bottom: 20px; }

.lcp-form-public label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 7px;
}

.lcp-form-public input,
.lcp-form-public textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd8cc;
    background: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.25s;
    resize: vertical;
    border-radius: 0;
    -webkit-appearance: none;
}

.lcp-form-public input:focus,
.lcp-form-public textarea:focus { border-color: #c9a96e; }

.lcp-btn-enviar {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: background 0.2s;
    border-radius: 0;
}

.lcp-btn-enviar:hover { background: #333; }

.lcp-form-ok {
    text-align: center;
    padding: 44px 30px;
    border: 1px solid #e8e2d8;
    border-top: 2px solid #c9a96e;
    background: #fafaf8;
}

.lcp-form-ok-cruz {
    display: block;
    color: #c9a96e;
    font-size: 1.6rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.lcp-form-ok h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.lcp-form-ok p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: #aaa;
    margin: 0;
}

.lcp-form-error {
    border-left: 2px solid #c9a96e;
    background: #fdf9f4;
    color: #6a4a2a;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
}
/* ================================================================
   CARRUSEL DE FOTOS — pantalla sala
   ================================================================ */
.lcp-carrusel {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 28px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.lcp-carrusel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.lcp-carrusel-slide.activo { opacity: 1; }

.lcp-carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: sepia(0.08) contrast(1.02);
}

.lcp-carrusel-dots {
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.lcp-cdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background 0.4s;
}

.lcp-cdot.activo { background: #fff; }

/* ================================================================
   LOGOS — pantalla principal y sala
   ================================================================ */
.lcp-pp-logo {
    position: fixed;
    top: 28px;
    left: 40px;
    z-index: 10;
}
.lcp-pp-logo img {
    height: 72px;
    width: auto;
    opacity: 0.88;
    filter: drop-shadow(0 1px 4px rgba(255,255,255,0.7));
}

.lcp-sala-logo {
    position: fixed;
    top: 28px;
    left: 40px;
    z-index: 10;
}
.lcp-sala-logo img {
    height: 72px;
    width: auto;
    opacity: 0.88;
    filter: drop-shadow(0 1px 4px rgba(255,255,255,0.7));
}

