/* Archivo: assets/sepelio-styles.css */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Contenedor principal */
.sepelio-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 40px;
    font-family: 'Arial', sans-serif;
    color: #fff;
    overflow: hidden;
    position: relative;
    padding: 40px;
    box-sizing: border-box;
}

/* Lado izquierdo: Salas */
.sepelio-salas {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

/* Tarjeta de sala */
.sala-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #1e3c72;
    transition: transform 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 124px;
}

.sala-card:hover {
    transform: translateY(-2px);
}

/* Header de la sala - Parte izquierda blanca */
.sala-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fff;
    border-right: 3px solid #e0e0e0;
}

.sala-simbolo {
    width: 55px;
    height: 70px;
    color: #1e3c72;
    flex-shrink: 0;
}

.sala-simbolo:empty {
    display: none;  /* Ocultar si está vacío */
}

.sala-simbolo svg {
    width: 100%;
    height: auto;
}

.sala-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sala-nombre-fallecido {
    font-size: 18px;
    font-weight: bold;
    color: #1e3c72;
    text-transform: uppercase;
    line-height: 1.2;
}

.sala-qepd {
    font-size: 15px;
    color: #666;
    font-style: italic;
    margin-bottom: 5px;
}

.sala-nombre {
    font-size: 18px;
    font-weight: bold;
    color: #1e3c72;
    white-space: nowrap;
}

/* Detalles de la sala - Parte derecha gris */
.sala-detalles {
    background: #f5f5f5;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.sala-horarios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 8px;
    font-size: 18px;
}

.horario-item {
    color: #333;
}

.horario-item strong {
    color: #1e3c72;
    display: block;
    margin-bottom: 3px;
    font-size: 16px;
}

.sala-cementerio {
    font-size: 15px;
    color: #333;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.sala-cementerio strong {
    font-weight: bold;
    color: #1e3c72;
    font-style: normal;
}

/* Sala vacía */
.sala-vacia {
    grid-column: 1 / -1;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: none;
}

.sala-sin-servicio {
    text-align: center;
    color: #999;
    font-size: 18px;
    padding: 20px 0;
    grid-column: 1 / -1;
}

/* Lado derecho: Carrusel */
.sepelio-carrusel {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.carrusel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carrusel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.carrusel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Contenido del carrusel */
.carrusel-logo {
    max-width: 400px;
    margin-bottom: 60px;
}

.carrusel-logo-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.carrusel-logo-imagen img {
    max-width: 500px;
    max-height: 400px;
    object-fit: contain;
}

.carrusel-titulo {
    font-size: 80px;
    font-weight: bold;
    color: #1e3c72;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-family: 'Georgia', serif;
}

.carrusel-subtitulo {
    font-size: 32px;
    color: #c4a569;
    letter-spacing: 8px;
    margin-top: 10px;
    font-family: 'Georgia', serif;
}

.carrusel-servicio {
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.carrusel-logo-top {
    margin: 0;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

.carrusel-logo-top img {
    max-width: 85%;
    max-height: 200px;
    object-fit: contain;
}

.logo-texto {
    color: #1e3c72;
}

.logo-texto-main {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 3px;
    font-family: 'Georgia', serif;
}

.logo-texto-sub {
    font-size: 20px;
    color: #c4a569;
    letter-spacing: 6px;
    margin-top: 5px;
    font-family: 'Georgia', serif;
}

/* Contenedor del nombre con símbolo */
.carrusel-nombre-container {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.carrusel-simbolo {
    font-size: 90px;
    color: #1e3c72;
    flex-shrink: 0;
}

.carrusel-simbolo:empty {
    display: none;
}

.carrusel-nombre-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.carrusel-nombre {
    font-size: 38px;
    font-weight: bold;
    color: #1e3c72;
    text-transform: uppercase;
    line-height: 1.1;
}

.carrusel-qepd {
    font-size: 24px;
    color: #666;
    font-style: italic;
}

/* Contenedor de detalles del servicio */
.carrusel-detalles {
    background: rgba(245, 245, 245, 0.5);
    border-radius: 15px;
    padding: 20px 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    margin-bottom: 50px;
}

.carrusel-sala-nombre {
    font-size: 38px;
    font-weight: bold;
    color: #1e3c72;
    text-align: center;
}

.carrusel-horarios {
    display: flex;
    justify-content: center;
    gap: 60px;
    font-size: 26px;
}

.carrusel-horario-item {
    color: #333;
    font-size: 18px;
}

.carrusel-horario-item strong {
    color: #1e3c72;
}

.carrusel-cementerio {
    font-size: 22px;
    color: #333;
    text-align: center;
}

.carrusel-cementerio-label {
    font-weight: bold;
    color: #1e3c72;
    font-style: normal;
}

.carrusel-cementerio-nombre {
    font-style: italic;
}

/* Slide publicitario */
.carrusel-publicidad {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carrusel-publicidad img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Indicadores del carrusel */
.carrusel-indicadores {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 60, 114, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicador.active {
    background: #1e3c72;
    transform: scale(1.3);
}

/* Footer */
.sepelio-footer {
    grid-column: 1 / -1;
    grid-row: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #fff;
    border-radius: 10px;
    margin-top: 10px;
}

.footer-web {
    font-weight: bold;
    font-size: 16px;
}

.footer-telefonos {
    font-size: 15px;
}

.footer-celular {
    font-size: 18px;
    font-weight: bold;
}

/* Sin permisos */
.sepelio-sin-permiso {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    text-align: center;
}

.sepelio-sin-permiso p {
    margin: 10px 0;
    color: #856404;
    font-size: 16px;
}

.sepelio-sin-permiso a {
    color: #1e3c72;
    font-weight: bold;
    text-decoration: underline;
}

/* Formulario de carga */
.sepelio-formulario {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.usuario-actual {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    color: #1e3c72;
}

.sepelio-formulario h3 {
    color: #1e3c72;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.form-group input:invalid {
    border-color: #dc3545;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: #1e3c72;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #2a5298;
}

#mensaje-resultado {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

#mensaje-resultado.exito {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#mensaje-resultado.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 1024px) {
    .sepelio-container {
        grid-template-columns: 100%;
        grid-template-rows: auto 1fr auto;
    }
    
    .sepelio-salas {
        grid-column: 1;
        grid-row: 1;
    }
    
    .sepelio-carrusel {
        grid-column: 1;
        grid-row: 2;
    }
    
    .sepelio-footer {
        grid-row: 3;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
