/* Diseño nuevo (rama rediseno). Se carga después de style.css, que sigue dando forma a las piezas de las
   páginas (velas, formularios, ventanas); aquí va la estructura, los colores y el aspecto nuevo, para todos los
   anchos. Las reglas van con .nuevo delante para pasar por encima de style.css; los !important, por los
   atributos style que traen las páginas. */

:root {
    --azul: #0e2340;
    --azul-2: #17345e;
    --oro: #f5b83d;
    --oro-2: #e39a1f;
    --oro-texto: #b5781a;
    --crema: #fbf6ee;
    --crema-2: #f4e9d8;
    --borde: #e5d3b3;
    --tinta: #2a2420;
    --tinta-suave: #5d5249;
    --tarjeta: #2a1c13;
    --tarjeta-2: #1b120c;
    --sombra: 0 10px 28px rgba(40, 25, 10, 0.16);
    --radio: 16px;
}

/* ---- Base ---- */

body.nuevo {
    margin: 0;
    background: var(--crema);
    color: var(--tinta);
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.5;
    overflow-x: hidden !important;
}
.nuevo * {
    font-family: inherit;
}
.nuevo *, .nuevo *::before, .nuevo *::after {
    box-sizing: border-box;
}
.nuevo img {
    max-width: 100%;
}
.nuevo a {
    color: inherit;
}
.nuevo h1, .nuevo h2, .nuevo h3 {
    color: inherit;
}
.nuevo .icono {
    width: 1.2em;
    height: 1.2em;
    flex: none;
    vertical-align: -0.2em;
}
.nuevo .contenedor {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 22px;
    padding-right: 22px;
}

/* Botones */
.nuevo .boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(#ffd774, var(--oro) 55%, var(--oro-2));
    box-shadow: 0 4px 12px rgba(160, 95, 10, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #2b1a05;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
}
.nuevo .boton:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(160, 95, 10, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.nuevo .boton .icono {
    width: 1.05em;
    height: 1.05em;
}
.nuevo .boton-grande {
    padding: 14px 30px;
    font-size: 22px;
}
.nuevo .boton-borde {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border: 1.5px solid #c9a76a;
    border-radius: 999px;
    background: #fffdf8;
    color: var(--tinta);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.nuevo .boton-borde:hover {
    border-color: var(--oro-2);
    background: #fff6e2;
}

/* ---- Cabecera ---- */

.nuevo .cab {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(180deg, #0b1d36, var(--azul) 60%, #10284a);
    border-bottom: 1px solid rgba(245, 184, 61, 0.35);
    box-shadow: 0 4px 18px rgba(5, 15, 30, 0.45);
    color: #fff;
}
.nuevo .cab-in {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1240px;
    min-height: 84px;
    margin: 0 auto;
    padding: 6px 22px;
}
.nuevo .logo {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    margin: 0 auto 0 0;
    color: #fff;
    text-decoration: none;
}
.nuevo .logo-llama {
    width: 46px;
    height: 64px;
    margin-bottom: -6px;
    filter: drop-shadow(0 0 8px rgba(255, 190, 70, 0.6));
}
.nuevo .logo-texto {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.nuevo .logo {
    position: relative;
    padding-bottom: 12px;
}
/* Ola dorada bajo el nombre, desde la vela */
.nuevo .logo-ola {
    position: absolute;
    left: 6px;
    right: -18px;
    bottom: 0;
    width: calc(100% + 12px);
    height: 18px;
    filter: drop-shadow(0 0 4px rgba(255, 190, 70, 0.45));
}
.nuevo .logo-texto em {
    font-style: inherit;
    color: var(--oro);
}
.nuevo .nav-principal {
    display: flex;
    gap: 6px;
}
.nuevo .nav-principal a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 12px 10px;
    color: #eef2f8;
    font-size: 17px;
    text-decoration: none;
    white-space: nowrap;
}
.nuevo .nav-principal .icono {
    width: 30px;
    height: 30px;
}
.nuevo .nav-principal a:hover, .nuevo .nav-principal a.activo {
    color: #fff;
}
.nuevo .nav-principal a.activo .icono, .nuevo .nav-principal a:hover .icono {
    color: var(--oro);
}
.nuevo .nav-principal a.activo::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--oro);
}
.nuevo .menu-mas {
    position: relative;
}
.nuevo .menu-mas summary {
    display: flex;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
}
.nuevo .menu-mas summary::-webkit-details-marker {
    display: none;
}
.nuevo .menu-mas summary .icono {
    width: 34px;
    height: 34px;
}
.nuevo .menu-mas[open] summary {
    background: rgba(255, 255, 255, 0.12);
}
.nuevo .menu-mas ul {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 250px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fffdf8;
    border: 1px solid var(--borde);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(10, 20, 40, 0.35);
}
.nuevo .menu-mas li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: var(--tinta);
    font-size: 17px;
    text-decoration: none;
}
.nuevo .menu-mas li a:hover {
    background: var(--crema-2);
}
.nuevo .menu-mas li.solo-movil {
    display: none;
}

/* ---- Portada: presentación, secciones y frase ---- */

.nuevo .presentacion {
    position: relative;
    overflow: hidden;
    background-color: #0d2240;
    background-image:
        url("../diseno/presentacion.jpg"),
        radial-gradient(circle at 78% 55%, rgba(255, 190, 90, 0.55), transparent 32%),
        radial-gradient(circle at 92% 30%, rgba(255, 210, 120, 0.35), transparent 18%),
        radial-gradient(circle at 63% 75%, rgba(230, 60, 40, 0.35), transparent 22%),
        radial-gradient(circle at 15% 20%, rgba(80, 130, 200, 0.25), transparent 30%),
        linear-gradient(115deg, #0a1a33 0%, #12305a 45%, #3a2a2a 100%);
    background-size: cover, auto, auto, auto, auto, auto;
    background-position: right center, 0 0, 0 0, 0 0, 0 0, 0 0;
    background-repeat: no-repeat;
    color: #fff;
}
.nuevo .presentacion::after {
    /* Oscurece la izquierda para que el texto se lea sobre cualquier foto. */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 20, 40, 0.75) 0%, rgba(8, 20, 40, 0.35) 45%, transparent 70%);
}
.nuevo .presentacion-in {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 46px 22px 54px;
}
.nuevo .presentacion h1 {
    margin: 0;
    font-size: 66px;
    font-weight: 700;
    line-height: 1.05;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}
.nuevo .presentacion .lema {
    max-width: 560px;
    margin: 10px 0 0 22px;
    font-size: 29px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.nuevo .presentacion .separador {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 380px;
    margin: 20px 0 0 100px;
    color: var(--oro);
}
.nuevo .presentacion .separador span {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--oro));
}
.nuevo .presentacion .separador span:last-child {
    background: linear-gradient(90deg, var(--oro), transparent);
}
.nuevo .presentacion .separador .icono {
    width: 34px;
    height: 34px;
}
.nuevo .presentacion .intro {
    max-width: 560px;
    margin: 18px 0 0;
    color: #dfe6f0;
    font-size: 16px;
}

.nuevo .secciones {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 26px;
}
.nuevo .seccion {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 275px;
    padding: 18px 18px 20px;
    overflow: hidden;
    border-radius: var(--radio);
    background-color: var(--tarjeta);
    background-size: cover;
    background-position: center;
    box-shadow: var(--sombra);
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s;
}
.nuevo .seccion::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(30, 18, 8, 0.6) 55%, rgba(30, 18, 8, 0.92) 100%);
}
.nuevo .seccion > * {
    position: relative;
}
.nuevo .seccion:hover {
    transform: translateY(-3px);
}
/* Fotos: las de diseno/ cuando estén; mientras, las de la web de siempre. */
.nuevo .cat-santos { background-image: url("../diseno/cat-santos.jpg"), url("../images/santos1.jpg"); }
.nuevo .cat-difuntos { background-image: url("../diseno/cat-difuntos.jpg"), url("../images/difuntos1.jpg"); }
.nuevo .cat-otras { background-image: url("../diseno/cat-otras.jpg"), url("../images/otros1.jpg"); }
.nuevo .cat-felicitaciones { background-image: url("../diseno/cat-felicitaciones.jpg"), url("../images/felicidades1.jpg"); }
.nuevo .seccion-titulo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.nuevo .seccion-titulo .icono {
    width: 30px;
    height: 30px;
}
.nuevo .seccion-texto {
    margin: 6px 0 14px;
    color: #f3e9dc;
    font-size: 17px;
    line-height: 1.3;
}
.nuevo .seccion .boton {
    align-self: center;
}

.nuevo .frase {
    margin-top: 22px;
}
.nuevo .frase p {
    margin: 0;
    padding: 24px 30px 26px 13%;
    border-radius: var(--radio);
    background-color: #e9c9b8;
    background-image: url("../diseno/frase.jpg"), linear-gradient(100deg, #cbc3ea 0%, #e4c4cf 30%, #f2b89a 62%, #f7a65f 82%, #ffd27c 100%);
    background-size: cover;
    background-position: center;
    box-shadow: var(--sombra);
    color: var(--azul);
    font-size: 32px;
    font-style: italic;
    line-height: 1.2;
}
.nuevo .frase .comilla {
    color: var(--oro-texto);
    font-size: 1.3em;
    font-weight: 700;
    line-height: 0;
    padding: 0 6px;
}

/* ---- Columnas: contenido y lateral ---- */

.nuevo div#page, .nuevo div#body {
    width: auto !important;
    margin: 0 auto !important;
    background: none !important;
}
.nuevo div#body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 0 28px;
    padding-top: 30px;
    padding-bottom: 40px;
}
.nuevo #center {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
.nuevo #left, .nuevo #right {
    grid-column: 2;
    width: auto !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    float: none !important;
    background: none !important;
    border: 0 !important;
}
.nuevo #left {
    grid-row: 1;
}
.nuevo #right {
    grid-row: 2;
}
.nuevo #left:empty {
    display: none;
}

/* Bloques del lateral */
.nuevo .bloque, .nuevo #left > .msg {
    margin: 0 0 18px;
    padding: 18px 18px 20px;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    background: #fffdf8;
    box-shadow: 0 4px 14px rgba(60, 40, 10, 0.07);
    text-align: center;
}
.nuevo .bloque h3, .nuevo #left .col-module-header-rtx, .nuevo .bloque .col-module-header-rtmx {
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 10px !important;
    padding: 0 0 8px !important;
    background: none !important;
    border-bottom: 2px solid var(--oro);
    color: var(--azul) !important;
    font-size: 21px !important;
    font-weight: 700;
    line-height: 1.25 !important;
    text-align: center;
}
.nuevo #left .col-module-header-rtx {
    margin-bottom: 0 !important;
    padding: 14px 18px 8px !important;
    border: 1px solid var(--borde);
    border-bottom: 0;
    border-radius: var(--radio) var(--radio) 0 0;
    background: #fffdf8 !important;
}
.nuevo #left .col-module-header-rtx + .msg {
    border-top: 0;
    border-radius: 0 0 var(--radio) var(--radio);
}
.nuevo #left > .msg {
    display: block !important;
    width: auto !important;
    height: auto !important;
    background-image: none !important;
    color: var(--tinta) !important;
    font-size: 16px !important;
}
.nuevo #left > .msg span {
    color: var(--tinta) !important;
    font-size: 16px !important;
}
.nuevo #left > .msg img {
    display: block;
    margin: 0 auto;
}
/* Facebook y Síguenos: van en el pie. */
.nuevo #left #facebook, .nuevo #left > br,
.nuevo #left > .col-module-header-rtx:has(+ p img[src*="facex"]), .nuevo #left > p:has(img[src*="facex"]),
.nuevo #left > .col-module-header-rtx:has(+ div#facebook), .nuevo #left > .col-module-header-rtx:has(+ br + .col-module-header-rtx) {
    display: none !important;
}
.nuevo #santoral {
    float: none !important;
    width: auto !important;
    height: auto !important;
    padding: 18px 18px 20px !important;
    border: 1px solid var(--borde) !important;
    border-radius: var(--radio) !important;
    background: #fffdf8 !important;
    color: var(--tinta) !important;
    font-size: 17px !important;
}
.nuevo #santoral .fecha {
    margin: 0 0 4px;
    color: var(--oro-texto);
    font-weight: 600;
}
.nuevo #santoral ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nuevo .bloque-ayuda p {
    margin: 0 0 12px;
    color: var(--tinta-suave);
}
.nuevo .contador-visitas {
    margin: 0;
    color: var(--tinta);
}

/* ---- Portada: contenido a todo el ancho y la columna como banda final ---- */

.nuevo.portada div#body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
}
.nuevo.portada #left {
    display: none;
}
.nuevo.portada #center {
    grid-column: 1 / -1;
    grid-row: 1;
}
.nuevo.portada #right {
    display: contents;
}
.nuevo.portada #right > .bloque {
    grid-row: 2;
    margin-top: 10px;
}
/* En la portada ya está el recuadro grande «¿No encuentras tu santo?». */
.nuevo.portada #right > .bloque-ayuda {
    display: none;
}

/* ---- Portada: últimas velas ---- */

.nuevo .ultimas {
    margin: 0 0 34px;
}
.nuevo .cabeza-seccion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin: 0 0 16px;
}
.nuevo .cabeza-seccion h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--tinta);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
}
.nuevo .cabeza-seccion h2 .icono {
    color: var(--oro-2);
    width: 34px;
    height: 34px;
}
.nuevo .tarjetas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nuevo .tarjeta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radio);
    background: linear-gradient(180deg, var(--tarjeta), var(--tarjeta-2));
    box-shadow: var(--sombra);
    color: #f6ecdf;
}
.nuevo .tarjeta-foto {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: radial-gradient(circle at 50% 60%, rgba(255, 170, 60, 0.45), transparent 60%), #1c120b;
}
.nuevo .tarjeta-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.3s;
}
.nuevo .tarjeta-foto.sin-foto img {
    object-fit: contain;
    padding: 12px;
}
.nuevo .tarjeta:hover .tarjeta-foto img {
    transform: scale(1.04);
}
.nuevo .tarjeta-cuerpo {
    padding: 14px 16px 18px;
    text-align: center;
}
.nuevo .tarjeta h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.nuevo .tarjeta h3 a {
    color: #fff;
    text-decoration: none;
}
.nuevo .tarjeta-dato {
    margin: 4px 0 0;
    color: var(--oro);
    font-size: 14px;
    font-weight: 600;
}
.nuevo .tarjeta-de {
    margin: 6px 0 0;
    color: #d9c6ae;
    font-size: 14px;
    text-transform: capitalize;
}
.nuevo .tarjeta-mensaje {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 8px 0 0;
    color: #f6ecdf;
    font-size: 16px;
    line-height: 1.4;
}

.nuevo .aviso-santo {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 10px 0 0;
    padding: 22px 28px;
    border: 1.5px solid #dcc08c;
    border-radius: 20px;
    background: linear-gradient(90deg, #fffaf0, #fbefd9);
    box-shadow: var(--sombra);
}
.nuevo .aviso-icono {
    color: var(--azul);
}
.nuevo .aviso-icono .icono {
    width: 64px;
    height: 64px;
    stroke-width: 1.6;
}
.nuevo .aviso-santo div {
    flex: 1;
}
.nuevo .aviso-santo h2 {
    margin: 0;
    color: var(--azul);
    font-size: 34px;
    line-height: 1.15;
}
.nuevo .aviso-santo p {
    margin: 4px 0 0;
    color: var(--tinta-suave);
    font-size: 19px;
}

/* ---- Pie ---- */

.nuevo .pie {
    position: relative;
    margin-top: 30px;
    padding: 34px 0 26px;
    background: linear-gradient(180deg, var(--azul-2), #0a1a33);
    color: #e9eef6;
}
.nuevo .pie::before {
    /* Onda entre la crema y el azul */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -28px;
    height: 30px;
    background: var(--azul-2);
    clip-path: ellipse(75% 100% at 50% 100%);
}
.nuevo .valores {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 24px;
    margin-top: 0;
    margin-bottom: 30px;
    list-style: none;
}
.nuevo .valores li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
}
.nuevo .valores .icono {
    width: 32px;
    height: 32px;
    color: var(--oro);
}
.nuevo .pie-enlaces {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.nuevo .pie h3 {
    margin: 0 0 8px;
    color: var(--oro);
    font-size: 18px;
}
.nuevo .pie-enlaces ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nuevo .pie-enlaces li {
    margin: 0 0 4px;
}
.nuevo .pie-enlaces a {
    color: #dbe3ee;
    font-size: 15px;
    text-decoration: none;
}
.nuevo .pie-enlaces a:hover, .nuevo .pie-final a:hover {
    color: #fff;
    text-decoration: underline;
}
.nuevo .pie-enlaces .ver-todos a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--oro);
    font-weight: 600;
}
.nuevo .pie-temas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 22px;
}
.nuevo .pie-temas a {
    padding: 5px 14px;
    border: 1px solid rgba(245, 184, 61, 0.45);
    border-radius: 999px;
    color: #f3e3c0;
    font-size: 14px;
    text-decoration: none;
}
.nuevo .pie-temas a:hover {
    background: rgba(245, 184, 61, 0.15);
}
.nuevo .pie-final {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}
.nuevo .pie-final p {
    margin: 0;
}
.nuevo .pie-final a {
    color: #dbe3ee;
    text-decoration: none;
}
.nuevo .pie-final .safeimg {
    display: block;
    height: 46px;
    border-radius: 8px;
}

/* ---- Páginas interiores: piezas nuevas ---- */

.nuevo .titulo-pagina {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--tinta);
    font-size: 40px;
    line-height: 1.1;
}
.nuevo .titulo-pagina .icono {
    width: 40px;
    height: 40px;
    color: var(--oro-2);
}
.nuevo .buscador {
    margin: 0 0 28px;
    padding: 20px 22px;
    border-radius: var(--radio);
    background: linear-gradient(135deg, var(--azul), var(--azul-2));
    box-shadow: var(--sombra);
    color: #fff;
}
.nuevo .buscador label {
    display: block;
    float: none !important;
    width: auto !important;
    margin: 0 0 8px;
    padding: 0 !important;
    font-family: inherit !important;
    text-align: left !important;
    text-transform: none !important;
    color: #f3e3c0;
    font-size: 18px;
    font-weight: 600;
}
.nuevo .buscador-fila {
    display: flex;
    gap: 10px;
}
.nuevo .buscador input[type="text"] {
    flex: 1;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    border: 0;
    font-size: 17px !important;
    border-radius: 999px;
    background: #fff;
    color: var(--tinta);
    font-size: 17px;
}
.nuevo .buscador .boton {
    cursor: pointer;
    font-size: 17px;
    text-transform: none !important;
}
.nuevo .buscador-temas-titulo {
    margin: 18px 0 8px;
    color: #f3e3c0;
    font-size: 18px;
    font-weight: 600;
}
.nuevo .temas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nuevo .temas a {
    display: block;
    padding: 6px 14px;
    border: 1px solid rgba(245, 184, 61, 0.55);
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
}
.nuevo .temas a:hover {
    background: rgba(245, 184, 61, 0.18);
}
.nuevo .buscador-crear {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 16px 0 0;
    color: #f3e3c0;
    font-size: 17px;
}
.nuevo .bloque-crear p {
    margin: 0 0 14px;
    color: var(--tinta-suave);
}
.nuevo .sin-resultados {
    padding: 20px;
    border-radius: var(--radio);
    background: #fffdf8;
    border: 1px solid var(--borde);
    text-align: center;
}
.nuevo #center > .tarjetas {
    margin-bottom: 24px;
}
/* Columnas fijas según el ancho, para que no quede ninguna sola en la última fila: altares (16 por página) y
   velas a los santos (20) de 4 en 4 o de 2 en 2; felicitaciones (15) de 5 en 5 o de 3 en 3. */
.nuevo:not(.portada) #center .tarjetas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.nuevo:not(.portada) #center .tarjetas-felicitaciones {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media screen and (max-width: 1100px) {
    .nuevo:not(.portada) #center .tarjetas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nuevo:not(.portada) #center .tarjetas-felicitaciones {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media screen and (max-width: 600px) {
    .nuevo:not(.portada) #center .tarjetas, .nuevo:not(.portada) #center .tarjetas-felicitaciones {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Páginas interiores: piezas de siempre con el aspecto nuevo ---- */

/* Títulos de sección (h3.title, con colores puestos en la propia página) */
.nuevo #center .title {
    float: none !important;
    width: auto !important;
    margin: 0 0 16px !important;
    padding: 0 0 8px !important;
    border: 0 !important;
    border-bottom: 2px solid var(--oro) !important;
    border-radius: 0 !important;
    background: none !important;
    color: var(--tinta) !important;
    font-size: 30px !important;
    font-weight: 700;
    text-align: left !important;
    text-shadow: none !important;
}
.nuevo #center .title img {
    vertical-align: middle;
}
.nuevo #center .title a {
    display: inline-block;
}
.nuevo #center > br, .nuevo #center > div > br {
    display: none;
}

/* Ficha del santo o difunto y buscador */
.nuevo div.santo, .nuevo div.difunto, .nuevo div#buscar-santo {
    display: flow-root;
    float: none !important;
    width: auto !important;
    margin: 0 0 20px !important;
    padding: 18px !important;
    border: 0 !important;
    border-radius: var(--radio) !important;
    background: linear-gradient(135deg, var(--azul), var(--azul-2)) !important;
    box-shadow: var(--sombra);
    color: #fff;
    text-align: left;
}
.nuevo div.santo img, .nuevo div.difunto img {
    float: left;
    width: 190px !important;
    height: auto !important;
    margin: 0 20px 0 0 !important;
    border: 3px solid rgba(245, 184, 61, 0.6) !important;
    border-radius: 12px !important;
}
.nuevo div.santo h1, .nuevo div.difunto h1,
.nuevo div.santo h3, .nuevo div.difunto h3 {
    margin: 0 0 8px;
    padding: 0 !important;
    color: #fff;
    font-size: 28px;
    text-align: left !important;
    text-transform: none !important;
}
.nuevo div.santo p, .nuevo div.difunto p {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #e8edf5 !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    text-align: left !important;
}
.nuevo div#buscar-santo {
    color: #fff;
}
.nuevo div#buscar-santo labelas, .nuevo div#buscar-santo label {
    display: block;
    float: none !important;
    width: auto !important;
    margin: 6px 0 4px !important;
    color: #f3e3c0 !important;
    font-size: 16px !important;
    text-align: left !important;
}
.nuevo div#buscar-santo select, .nuevo div#buscar-santo input[type="text"] {
    float: none !important;
    width: 100% !important;
    max-width: 480px;
    margin: 0 0 10px !important;
    padding: 9px 12px !important;
    border: 1px solid var(--borde) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--tinta) !important;
    font-size: 16px !important;
}
.nuevo div#buscar-santo input[type="submit"] {
    padding: 9px 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(#ffd774, var(--oro) 55%, var(--oro-2)) !important;
    color: #2b1a05 !important;
    font-size: 16px !important;
    font-weight: 700;
    text-transform: none !important;
    cursor: pointer;
}
.nuevo div#buscar-santo p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Velas de un santo, difunto u otro */
.nuevo ul.lista-velas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    float: none !important;
    width: auto !important;
    margin: 0 0 20px !important;
    padding: 16px 8px !important;
    border: 0 !important;
    border-radius: var(--radio) !important;
    background-color: var(--tarjeta-2) !important;
    box-shadow: var(--sombra);
}
.nuevo ul.lista-velas li {
    float: none !important;
    margin: 0 !important;
}

/* Listado de santos por tema */
.nuevo ul.lista-saint {
    float: none !important;
    width: auto !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}
.nuevo ul.lista-saint li {
    display: flow-root;
    margin: 0 0 16px;
    padding: 16px;
    border-radius: var(--radio);
    background: linear-gradient(180deg, var(--tarjeta), var(--tarjeta-2));
    box-shadow: var(--sombra);
}
.nuevo ul.lista-saint a {
    text-decoration: none;
}
.nuevo ul.lista-saint .sximg > img {
    width: 150px !important;
    height: 190px !important;
    object-fit: cover;
    border: 2px solid rgba(245, 184, 61, 0.5) !important;
}
.nuevo ul.lista-saint h5, .nuevo ul.lista-saint .daski {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 10px 168px !important;
    border: 0 !important;
}
.nuevo ul.lista-saint h5 {
    padding: 0 !important;
    color: #fff;
    font-size: 24px !important;
    text-align: left !important;
}
.nuevo ul.lista-saint .daski {
    padding: 0 !important;
    color: #eadbc6 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-align: left !important;
}

/* Tarjetas de velas de las páginas interiores (dibujadas para 269px: no se estiran) */
.nuevo ul.velas-santos, .nuevo ul.velas-difuntos, .nuevo ul.velas-otras {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: auto !important;
    height: auto !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
}
.nuevo ul.velas-santos li, .nuevo ul.velas-difuntos li, .nuevo ul.velas-otras li {
    float: none !important;
    margin: 0 !important;
    width: 269px !important;
    flex: 0 0 auto;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, var(--tarjeta), var(--tarjeta-2)) !important;
    box-shadow: var(--sombra);
}
/* Felicitaciones: tarjetas de 175px (una tabla con fondo) */
.nuevo ul.velas-cumpleanos {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: auto !important;
    height: auto !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
}
.nuevo ul.velas-cumpleanos > div {
    float: none !important;
    width: 173px;
    margin: 0 !important;
}
.nuevo ul.velas-cumpleanos > div > table {
    table-layout: fixed;
    width: 173px;
}
.nuevo ul.velas-cumpleanos > div[style*="clear"] {
    display: none;
}

/* Paginación */
.nuevo .paginas {
    float: none !important;
    width: auto !important;
    margin: 10px 0 24px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    line-height: 44px;
    text-align: center;
}
.nuevo .paginas a, .nuevo .paginas span {
    display: inline-block;
    min-width: 42px;
    margin: 0 3px;
    padding: 6px 12px !important;
    border: 1.5px solid #c9a76a !important;
    border-radius: 999px;
    background: #fffdf8 !important;
    color: var(--tinta) !important;
    font-size: 16px !important;
    line-height: 1.4;
    text-decoration: none;
}
.nuevo .paginas .selected, .nuevo .paginas a:hover {
    border-color: var(--oro-2) !important;
    background: linear-gradient(#ffd774, var(--oro)) !important;
    color: #2b1a05 !important;
}

/* Formularios y textos de las páginas (contacto, condiciones, Webs Amigas) */
.nuevo #center input[type="text"], .nuevo #center textarea, .nuevo #center select {
    box-sizing: border-box;
    max-width: 100%;
}
.nuevo #center table {
    max-width: 100%;
}

/* Contacto */
.nuevo .texto_contacto {
    width: auto !important;
    margin: 0 0 18px !important;
    padding: 16px 20px !important;
    border: 1px solid var(--borde);
    border-left: 5px solid var(--oro);
    border-radius: 12px !important;
    background: #fffdf8 !important;
    color: var(--tinta) !important;
    font-size: 17px !important;
    text-align: left !important;
}
.nuevo .form-contacto {
    max-width: 640px !important;
    margin: 0 !important;
    padding: 6px 22px 22px !important;
    border: 1px solid var(--borde);
    border-radius: var(--radio) !important;
    background: #fffdf8 !important;
    box-shadow: 0 4px 14px rgba(60, 40, 10, 0.07);
    color: var(--tinta) !important;
    font-family: inherit !important;
    font-size: 17px !important;
}
.nuevo .form-contacto p {
    margin: 14px 0 0 !important;
}
.nuevo .form-contacto input.form, .nuevo .form-contacto textarea.form {
    margin-top: 6px !important;
    padding: 10px 14px !important;
    border: 1px solid var(--borde) !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-family: inherit !important;
    font-size: 17px !important;
}
.nuevo .form-contacto input.form:focus, .nuevo .form-contacto textarea.form:focus {
    border-color: var(--oro-2) !important;
    outline: 2px solid rgba(245, 184, 61, 0.35);
}
.nuevo .form-contacto input.formsubmit {
    width: auto !important;
    margin-top: 16px !important;
    padding: 11px 28px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(#ffd774, var(--oro) 55%, var(--oro-2)) !important;
    box-shadow: 0 4px 12px rgba(160, 95, 10, 0.35);
    color: #2b1a05 !important;
    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 700;
}
.nuevo .form-contacto .formklein {
    font-size: 13px !important;
    color: var(--tinta-suave);
}

/* Condiciones de uso y textos largos */
.nuevo #center .uso {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 22px 26px !important;
    border: 1px solid var(--borde) !important;
    border-radius: var(--radio) !important;
    background: #fffdf8 !important;
    color: var(--tinta) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-align: left !important;
}

/* Ventanas para encender una vela, crear un altar o felicitar */
.nuevo #encender-container, .nuevo #altar-container, .nuevo #cumpleano-container {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: 440px;
    /* Misma altura para todas (los js las ponían al 4, 10 o 15 %) y que quepan enteras en la pantalla: antes
       medían lo que la pantalla y en un portátil el botón de abajo quedaba fuera, sin poder llegar a él. */
    top: clamp(8px, 4vh, 40px) !important;
    max-height: calc(100vh - clamp(8px, 4vh, 40px) - 10px);
    max-height: calc(100dvh - clamp(8px, 4vh, 40px) - 10px);
    height: auto !important;
    margin: 0 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.nuevo #encender-container .form-content, .nuevo #altar-container .form-content, .nuevo #cumpleano-container .form-content {
    height: auto !important;
    padding-bottom: 12px;
}
.nuevo #encender-container .f-boton, .nuevo #altar-container .f-boton {
    float: none !important;
    margin: 0 auto !important;
}
.nuevo #encender-container input[type="text"], .nuevo #encender-container textarea,
.nuevo #altar-container input[type="text"], .nuevo #altar-container input[type="file"], .nuevo #altar-container textarea,
.nuevo #cumpleano-container input[type="text"], .nuevo #cumpleano-container textarea {
    box-sizing: border-box;
    width: calc(100% - 34px) !important;
}
/* Colores nuevos: tarjeta crema con barra azul */
.nuevo #encender-container, .nuevo #altar-container, .nuevo #cumpleano-container {
    border-radius: var(--radio);
    background: #fffdf8;
    box-shadow: 0 20px 50px rgba(5, 15, 30, 0.5);
}
.nuevo #encender-container .form-top, .nuevo #altar-container .form-top, .nuevo #cumpleano-container .form-top {
    height: 12px;
    border-radius: var(--radio) var(--radio) 0 0;
    background: linear-gradient(90deg, var(--azul), var(--azul-2), var(--oro-2));
}
.nuevo #encender-container .form-bottom, .nuevo #altar-container .form-bottom, .nuevo #cumpleano-container .form-bottom {
    height: 10px;
    margin: 0 !important;
    background: none;
}
.nuevo #encender-container .form-content, .nuevo #altar-container .form-content, .nuevo #cumpleano-container .form-content {
    background: #fffdf8;
    color: var(--tinta);
}
.nuevo #encender-container h3, .nuevo #altar-container h3, .nuevo #cumpleano-container h3 {
    color: var(--azul);
    font-size: 24px;
}
.nuevo #encender-container .form-title, .nuevo #altar-container .form-title, .nuevo #cumpleano-container .form-title {
    float: none !important;
    width: auto !important;
    margin: 14px 40px 6px !important;
    padding: 0 !important;
    color: var(--azul);
    font-size: 24px;
    text-align: center;
}
/* Invitar a amigos (crear altar): número, nombre y correo en una fila. Los campos traen el ancho en el propio
   HTML con !important; min-width lo estira hasta su columna. */
.nuevo #altar-container p.field:has(input[name^="nombre_amigo"]) {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 6px;
    align-items: center;
    padding: 0 12px !important;
}
.nuevo #altar-container p.field:has(input[name^="nombre_amigo"]) label {
    float: none !important;
    min-width: 100%;
    margin: 0 !important;
    text-align: right !important;
}
.nuevo #altar-container p.field:has(input[name^="nombre_amigo"]) input {
    min-width: 100%;
    margin: 0 !important;
    padding: 7px 10px !important;
}
.nuevo #altar-container p.field:has(input[name^="nombre_amigo"]) input:first-child {
    grid-column: 2;
}
.nuevo #altar-container input[type="email"] {
    border: 1px solid var(--borde) !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 15px !important;
}
.nuevo #encender-container label, .nuevo #altar-container label, .nuevo #cumpleano-container label {
    color: var(--tinta-suave);
    font-family: inherit !important;
    font-size: 15px;
}
.nuevo #encender-container input[type="text"], .nuevo #encender-container textarea,
.nuevo #altar-container input[type="text"], .nuevo #altar-container textarea,
.nuevo #cumpleano-container input[type="text"], .nuevo #cumpleano-container textarea {
    border: 1px solid var(--borde) !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 16px !important;
}
.nuevo #encender-container a.modal-close, .nuevo #altar-container a.modal-close, .nuevo #cumpleano-container a.modal-close {
    top: 18px !important;
    right: 14px !important;
    color: var(--azul) !important;
    font-size: 22px;
}
.nuevo #form-overlay {
    background: rgba(8, 18, 34, 0.75) !important;
}
.nuevo .f-botonpaypal img {
    display: block !important;
    float: none !important;
    max-width: 100%;
    margin: 8px auto 0 !important;
}

/* ---- Tabletas ---- */

@media screen and (max-width: 1100px) {
    .nuevo .nav-principal a {
        padding: 8px 8px 10px;
        font-size: 15px;
    }
    .nuevo .logo-texto {
        font-size: 32px;
    }
    .nuevo .tarjetas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nuevo .secciones {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 900px) {
    /* El menú pasa a una fila de iconos debajo del logo. */
    .nuevo .cab-in {
        flex-wrap: wrap;
        min-height: 0;
        padding-top: 10px;
        padding-bottom: 0;
    }
    .nuevo .nav-principal {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 0;
        margin: 4px -10px 0;
    }
    .nuevo .nav-principal a {
        flex: 1;
        padding: 6px 2px 9px;
        font-size: 13px;
    }
    .nuevo .nav-principal .icono {
        width: 24px;
        height: 24px;
    }
    .nuevo div#body {
        grid-template-columns: minmax(0, 1fr);
    }
    .nuevo #left, .nuevo #center, .nuevo #right {
        grid-column: 1;
        grid-row: auto;
    }
    .nuevo #left {
        order: 1;
    }
    /* Crear altar / felicitar ya está en el recuadro de arriba del contenido. */
    .nuevo #left > .bloque-crear {
        display: none;
    }
    .nuevo #center {
        order: 2;
    }
    .nuevo #right {
        order: 3;
        margin-top: 20px !important;
    }
    .nuevo.portada div#body {
        grid-template-columns: minmax(0, 1fr);
    }
    .nuevo.portada #right > .bloque {
        grid-row: auto;
        order: 3;
    }
    .nuevo .pie-enlaces {
        grid-template-columns: repeat(2, 1fr);
    }
    .nuevo .presentacion h1 {
        font-size: 50px;
    }
    .nuevo .presentacion .lema {
        font-size: 24px;
    }
}

/* Tarjetas de dos en dos (tableta): foto a la izquierda y texto a la derecha; en vertical, con dos columnas, la
   foto salía de casi 300px de alto. En la portada caben 4 por fila hasta 901px. */
@media screen and (min-width: 901px) and (max-width: 1100px) {
    .nuevo.portada .tarjetas {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .nuevo div#body {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 0 20px;
    }
    .nuevo:not(.portada) #center .tarjetas:not(.tarjetas-felicitaciones) .tarjeta {
        flex-direction: row;
    }
    .nuevo:not(.portada) #center .tarjetas:not(.tarjetas-felicitaciones) .tarjeta-foto {
        position: relative;
        flex: 0 0 120px;
        aspect-ratio: auto;
        min-height: 130px;
    }
    .nuevo:not(.portada) #center .tarjetas:not(.tarjetas-felicitaciones) .tarjeta-foto img {
        position: absolute;
        inset: 0;
    }
    .nuevo:not(.portada) #center .tarjetas:not(.tarjetas-felicitaciones) .tarjeta-cuerpo {
        flex: 1;
        min-width: 0;
        padding: 12px 14px 14px;
        text-align: left;
    }
}
@media screen and (min-width: 601px) and (max-width: 900px) {
    .nuevo .tarjetas:not(.tarjetas-felicitaciones) .tarjeta {
        flex-direction: row;
    }
    .nuevo .tarjetas:not(.tarjetas-felicitaciones) .tarjeta-foto {
        position: relative;
        flex: 0 0 140px;
        aspect-ratio: auto;
        min-height: 130px;
    }
    .nuevo .tarjetas:not(.tarjetas-felicitaciones) .tarjeta-foto img {
        position: absolute;
        inset: 0;
    }
    .nuevo .tarjetas:not(.tarjetas-felicitaciones) .tarjeta-cuerpo {
        flex: 1;
        min-width: 0;
        padding: 12px 14px 14px;
        text-align: left;
    }
}
/* Presentación en tableta: las velas quedan detrás del texto; más oscuro por la izquierda. */
@media screen and (min-width: 601px) and (max-width: 1100px) {
    .nuevo .presentacion::after {
        background: linear-gradient(90deg, rgba(8, 20, 40, 0.9) 0%, rgba(8, 20, 40, 0.7) 50%, rgba(8, 20, 40, 0.2) 85%);
    }
}

/* ---- Móviles ---- */

@media screen and (max-width: 600px) {
    body.nuevo {
        font-size: 16px;
    }
    .nuevo .contenedor {
        padding-left: 14px;
        padding-right: 14px;
    }
    .nuevo .logo-texto {
        font-size: 27px;
    }
    .nuevo .logo-llama {
        width: 34px;
        height: 48px;
    }
    .nuevo .presentacion-in {
        padding: 30px 16px 36px;
    }
    /* En el móvil las velas quedan detrás del texto: más oscuro para que se lea. */
    .nuevo .presentacion {
        background-position: 70% center, 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    .nuevo .presentacion::after {
        background: linear-gradient(180deg, rgba(8, 20, 40, 0.55) 0%, rgba(8, 20, 40, 0.8) 100%);
    }
    .nuevo .presentacion h1 {
        font-size: 40px;
    }
    .nuevo .presentacion .lema {
        margin-left: 0;
        font-size: 21px;
    }
    .nuevo .presentacion .separador {
        margin-left: 40px;
        max-width: 240px;
    }
    .nuevo .presentacion .intro {
        font-size: 15px;
    }
    .nuevo .secciones {
        gap: 12px;
    }
    .nuevo .seccion {
        min-height: 210px;
        padding: 12px 10px 14px;
    }
    .nuevo .seccion-titulo {
        font-size: 20px;
    }
    .nuevo .seccion-titulo .icono, .nuevo .seccion .boton .icono {
        display: none;
    }
    .nuevo .seccion-texto {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .nuevo .seccion .boton {
        padding: 8px 12px;
        font-size: 13px;
    }
    .nuevo .frase p {
        padding: 18px 18px 20px;
        font-size: 22px;
    }
    .nuevo .cabeza-seccion h2 {
        font-size: 25px;
    }
    /* Últimas velas: en lista, foto pequeña a la izquierda */
    .nuevo .tarjetas {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .nuevo .tarjeta {
        flex-direction: row;
    }
    .nuevo .tarjeta-foto {
        position: relative;
        flex: 0 0 104px;
        aspect-ratio: auto;
        min-height: 112px;
    }
    .nuevo .tarjeta-foto img {
        position: absolute;
        inset: 0;
    }
    .nuevo .tarjeta-cuerpo {
        flex: 1;
        min-width: 0;
        padding: 10px 12px 12px;
        text-align: left;
    }
    .nuevo .tarjeta h3 {
        font-size: 18px;
    }
    .nuevo .tarjeta-mensaje {
        font-size: 15px;
    }
    .nuevo .cabeza-seccion .boton-borde {
        font-size: 14px;
        padding: 5px 14px;
    }
    .nuevo .aviso-santo {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }
    .nuevo .aviso-santo h2 {
        font-size: 27px;
    }
    .nuevo .boton-grande {
        font-size: 19px;
        white-space: normal;
    }
    .nuevo .valores {
        justify-content: center;
    }
    .nuevo .valores li {
        font-size: 16px;
    }
    .nuevo div.santo img, .nuevo div.difunto img {
        float: none;
        display: block;
        margin: 0 auto 14px !important;
    }
    .nuevo ul.lista-saint .sximg > img {
        float: none !important;
        display: block;
        margin: 0 auto 12px;
    }
    .nuevo ul.lista-saint h5, .nuevo ul.lista-saint .daski {
        margin-left: 0 !important;
        text-align: center !important;
    }
    .nuevo ul.velas-cumpleanos > div {
        zoom: 0.9;
    }
}
@media screen and (min-width: 340px) and (max-width: 600px) {
    .nuevo ul.velas-santos li, .nuevo ul.velas-difuntos li, .nuevo ul.velas-otras li {
        zoom: 1.2;
    }
}

/* ---- Vídeo al encender una vela (js/video-vela.js) ---- */

#video-vela {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 10, 20, 0.92);
    animation: video-vela-entra 0.4s ease;
    cursor: pointer;
}
#video-vela.saliendo {
    opacity: 0;
    transition: opacity 0.4s;
}
#video-vela .video-vela-caja {
    width: 100%;
    max-width: 640px;
    text-align: center;
}
#video-vela video {
    display: block;
    width: 100%;
    aspect-ratio: 688 / 464;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 0 60px rgba(255, 170, 60, 0.35);
}
#video-vela p {
    margin: 18px 0 0;
    color: #fff;
    font-family: 'Lora', Georgia, serif;
    font-size: 26px;
    line-height: 1.3;
}
#video-vela small {
    color: #f3d9a4;
    font-size: 17px;
}
@keyframes video-vela-entra {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Difuntos y Otras velas: aviso de que las velas se encienden desde dentro del altar */
.nuevo .bloque-crear .nota-altar {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff4dc;
    color: var(--tinta) !important;
    font-size: 15px;
    text-align: left;
}
.nuevo .buscador-nota {
    margin: 8px 0 0;
    color: #dfe6f0;
    font-size: 15px;
}

/* ---- Velas de los altares (vela_html() en plantilla.php) ----
   Cada vela es una caja de 100 x 120 px: cera, llama y portavelas redondo de metal negro, apoyado en una barra
   de hierro. Las barras de las velas de una fila se tocan y forman un solo estante. */

.nuevo ul.lista-velas {
    padding: 22px 10px 14px !important;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(255, 160, 60, 0.16), transparent 60%),
        linear-gradient(180deg, #1d130d, #0d0806) !important;
}
.nuevo ul.lista-velas li {
    position: relative;
    width: 100px;
    height: auto !important;
    min-height: 148px;
    background: none !important;
}
.nuevo ul.lista-velas li > div {
    /* Nombre de quien la encendió: dos líneas como mucho (con una tercera se montaba en la vela de abajo) */
    left: 5px;
    width: 90px !important;
    color: #f3e3c0 !important;
    font-family: 'Lora', Georgia, serif !important;
    max-height: 30px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
}
.nuevo .vela {
    position: relative;
    display: block;
    width: 100px;
    height: 120px;
}
/* Estante: barra de hierro negro con un brillo arriba */
.nuevo .vela::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 7px;
    background: linear-gradient(180deg, #6b6b6b 0, #2a2a2a 30%, #0b0b0b 70%, #000 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
}
/* Portavelas: vaso redondo de metal negro con borde */
.nuevo .vela-vaso {
    position: absolute;
    left: 50%;
    bottom: 11px;
    width: 46px;
    height: 24px;
    margin-left: -23px;
    border-radius: 0 0 50% 50% / 0 0 70% 70%;
    background: linear-gradient(90deg, #000 0%, #262626 25%, #5a5a5a 42%, #2a2a2a 58%, #080808 85%, #000 100%);
}
.nuevo .vela-vaso::before {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    top: -4px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #7a7a7a, #1a1a1a 60%, #000);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
/* Pie del portavelas */
.nuevo .vela-vaso::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 14px;
    height: 6px;
    margin-left: -7px;
    background: linear-gradient(90deg, #000, #3d3d3d 45%, #000);
}
/* Cera */
.nuevo .vela-cera {
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: 28px;
    height: 58px;
    margin-left: -14px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(90deg, #4d0606 0%, #a3150f 28%, #e2483a 48%, #b71a13 68%, #4a0505 100%);
}
.nuevo .vela-cera::before {
    /* Superficie de arriba, algo fundida */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -3px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 40%, #ff7a5c, #b2180f 70%);
}
.nuevo .vela-cera::after {
    /* Mecha */
    content: "";
    position: absolute;
    left: 50%;
    top: -7px;
    width: 2px;
    height: 6px;
    margin-left: -1px;
    border-radius: 1px;
    background: #1a0d05;
}
.nuevo .vela-roja-media .vela-cera {
    height: 40px;
}
.nuevo .vela-eterna .vela-cera, .nuevo .vela-eterna-libre .vela-cera {
    background: linear-gradient(90deg, #6b4206 0%, #c98d1d 28%, #ffe08a 48%, #d9a232 68%, #5e3a06 100%);
}
.nuevo .vela-eterna .vela-cera::before, .nuevo .vela-eterna-libre .vela-cera::before {
    background: radial-gradient(ellipse at 50% 40%, #fff1bf, #d9a232 70%);
}
/* Apagadas: más oscuras; al pasar el ratón se iluminan para invitar a encenderlas */
.nuevo .vela-libre .vela-cera, .nuevo .vela-eterna-libre .vela-cera {
    filter: brightness(0.55) saturate(0.8);
    transition: filter 0.2s;
}
.nuevo ul.lista-velas li:hover .vela-libre .vela-cera, .nuevo ul.lista-velas li:hover .vela-eterna-libre .vela-cera {
    filter: none;
}
.nuevo ul.lista-velas li:hover .vela-libre::before, .nuevo ul.lista-velas li:hover .vela-eterna-libre::before {
    content: "Encender";
    position: absolute;
    left: 50%;
    top: 4px;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--oro);
    color: #2b1a05;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
/* Llama: titila, con un halo de luz */
.nuevo .vela-llama {
    position: absolute;
    left: 50%;
    bottom: 91px;
    width: 12px;
    height: 24px;
    margin-left: -6px;
    border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
    background: radial-gradient(ellipse at 50% 78%, #ffffff 0 14%, #fff2a8 26%, #ffb42e 52%, rgba(255, 110, 20, 0.85) 68%, rgba(255, 80, 0, 0) 76%);
    box-shadow: 0 0 16px 6px rgba(255, 170, 60, 0.35), 0 0 40px 14px rgba(255, 140, 40, 0.14);
    transform-origin: 50% 92%;
    animation: vela-titila 1.7s ease-in-out infinite alternate;
}
.nuevo .vela-roja-media .vela-llama {
    bottom: 73px;
}
.nuevo ul.lista-velas li:nth-child(3n) .vela-llama {
    animation-duration: 1.3s;
    animation-delay: -0.4s;
}
.nuevo ul.lista-velas li:nth-child(4n+1) .vela-llama {
    animation-duration: 2.1s;
    animation-delay: -1s;
}
@keyframes vela-titila {
    0% { transform: scale(1, 1) rotate(-1deg); opacity: 0.95; }
    30% { transform: scale(0.94, 1.06) rotate(1.5deg); opacity: 1; }
    60% { transform: scale(1.04, 0.95) rotate(-2deg); opacity: 0.9; }
    100% { transform: scale(0.97, 1.04) rotate(1deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .nuevo .vela-llama {
        animation: none;
    }
}

/* Texto de presentación de la web en el pie (estaba en todas las páginas: cabecera y pie) */
.nuevo .pie-texto {
    max-width: 900px;
    padding-bottom: 20px;
    color: #c9d3e1;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

/* ---- Botones de las ventanas de encender vela (vela_santo.php, vela_difunto.php, vela_otro.php) ----
   La vela eterna va arriba y es lo que más destaca de la ventana (efecto de aislamiento: se ve y se recuerda lo que
   rompe con lo de alrededor): dorada como la propia vela, grande, con brillo y una llama en un círculo azul de la
   marca. La gratis va debajo como botón secundario (blanco con borde), y dice que dura 48 horas para que se vea
   la diferencia con «nunca se apaga». */

.nuevo #encender-container .botones-vela {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    clear: both;
    max-width: 380px;
    margin: 14px auto 4px;
    padding: 0 6px;
}
.nuevo #encender-container .botones-vela .form-send {
    width: 100% !important;
    height: auto !important;
    margin: 0;
    background-image: none;
    font-family: 'Lora', Georgia, serif;
    font-style: normal;
    text-transform: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nuevo #encender-container .boton-eterna {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 24px 18px 14px 14px;
    overflow: hidden;
    border: 1px solid #b97c12 !important;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffe7a3 0%, #f8c650 38%, #e9a42a 72%, #d4891a 100%) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 -2px 0 rgba(150, 90, 0, 0.25) inset,
        0 8px 22px rgba(212, 137, 26, 0.45), 0 0 0 4px rgba(248, 198, 80, 0.18);
    color: #3b2400 !important;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: eterna-respira 3.2s ease-in-out infinite;
}
/* Destello que cruza el botón de vez en cuando */
.nuevo #encender-container .boton-eterna::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -40%;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-18deg);
    animation: eterna-destello 4.5s ease-in-out infinite;
    pointer-events: none;
}
.nuevo #encender-container .boton-eterna:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 -2px 0 rgba(150, 90, 0, 0.25) inset,
        0 12px 28px rgba(212, 137, 26, 0.55), 0 0 0 5px rgba(248, 198, 80, 0.25);
}
.nuevo #encender-container .boton-eterna:active {
    transform: translateY(1px);
}
.nuevo #encender-container .boton-eterna:focus-visible, .nuevo #encender-container .boton-gratis:focus-visible {
    outline: 3px solid var(--azul);
    outline-offset: 3px;
}
.nuevo #encender-container .boton-eterna-llama {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #24406e, #0f2343);
    box-shadow: 0 0 0 2px rgba(255, 240, 200, 0.8), 0 0 14px rgba(255, 196, 70, 0.9);
}
.nuevo #encender-container .boton-eterna-llama svg {
    width: 20px;
    height: 28px;
    fill: #ffc23d;
    filter: drop-shadow(0 0 4px rgba(255, 194, 61, 0.9));
    animation: vela-titila 2.4s ease-in-out infinite;
    transform-origin: 50% 90%;
}
.nuevo #encender-container .boton-eterna-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.nuevo #encender-container .boton-eterna-texto strong {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
}
.nuevo #encender-container .boton-eterna-texto small {
    color: #5a3a06;
    font-size: 13.5px;
    line-height: 1.3;
}
.nuevo #encender-container .boton-eterna-cinta {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 10px 4px 12px;
    border-radius: 0 15px 0 12px;
    background: var(--azul);
    color: #ffd774;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.nuevo #encender-container .boton-eterna-pago {
    display: block;
    margin: -2px 0 4px !important;
    padding: 0 !important;
    color: var(--tinta-suave);
    font-size: 12.5px;
    line-height: 1.35;
    text-align: center;
}
.nuevo #encender-container .boton-eterna-pago svg {
    display: inline-block;
    margin: 0 4px -2px 0;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.nuevo #encender-container .boton-gratis {
    min-height: 46px;
    padding: 10px 16px;
    border: 1.5px solid #c9d3e2 !important;
    border-radius: 12px;
    background: #fff !important;
    color: var(--azul) !important;
    font-size: 16px;
    font-weight: 600;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.nuevo #encender-container .boton-gratis small {
    color: var(--tinta-suave);
    font-size: 13px;
    font-weight: 400;
}
.nuevo #encender-container .boton-gratis:hover {
    border-color: var(--azul) !important;
    background: #f5f8fc !important;
}
@keyframes eterna-respira {
    0%, 100% { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 -2px 0 rgba(150, 90, 0, 0.25) inset, 0 8px 22px rgba(212, 137, 26, 0.45), 0 0 0 4px rgba(248, 198, 80, 0.18); }
    50% { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 -2px 0 rgba(150, 90, 0, 0.25) inset, 0 10px 28px rgba(212, 137, 26, 0.6), 0 0 0 7px rgba(248, 198, 80, 0.22); }
}
@keyframes eterna-destello {
    0%, 55% { left: -40%; }
    80%, 100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
    .nuevo #encender-container .boton-eterna, .nuevo #encender-container .boton-eterna::after,
    .nuevo #encender-container .boton-eterna-llama svg {
        animation: none;
    }
}
@media screen and (max-width: 380px) {
    .nuevo #encender-container .boton-eterna-texto strong {
        font-size: 18px;
    }
    .nuevo #encender-container .boton-eterna {
        gap: 10px;
        padding-right: 12px;
    }
}
/* Pantallas bajas (portátiles, móviles en horizontal): ventana más compacta para que se vean los dos botones */
@media screen and (max-height: 820px) {
    .nuevo #encender-container .form-title {
        margin-top: 8px !important;
    }
    .nuevo #encender-container h3 {
        font-size: 21px;
    }
    .nuevo #encender-container p.field {
        padding-top: 4px;
        padding-bottom: 4px;
    }
    .nuevo #encender-container textarea {
        height: 64px;
    }
    .nuevo #encender-container form > h3 {
        margin: 0 0 2px !important;
    }
    .nuevo #encender-container .botones-vela {
        gap: 8px;
        margin-top: 8px;
    }
    .nuevo #encender-container .boton-eterna {
        min-height: 64px;
        padding-top: 20px;
        padding-bottom: 10px;
    }
}

/* Aviso de campos sin rellenar en las ventanas: el de siempre era una caja negra con el texto oscuro del diseño
   nuevo encima, y no se leía. Ahora, aviso rojo claro. La altura la ponen los js (30-50 px): auto para que
   quepan dos frases. */
.nuevo #encender-container .form-message, .nuevo #altar-container .form-message, .nuevo #cumpleano-container .form-message {
    height: auto !important;
    margin: 0 14px;
}
.nuevo #encender-container .form-error, .nuevo #altar-container .form-error, .nuevo #cumpleano-container .form-error {
    width: auto;
    margin: 4px 0 8px;
    padding: 10px 14px 10px 40px;
    border: 1px solid #e8b4ad;
    border-left: 4px solid #c0392b;
    border-radius: 10px;
    background: #fdecea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") no-repeat 12px 50% / 20px 20px;
    color: #7f1d12;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

/* Ventana abierta desde una vela dorada libre (js/vela*.js, clase modo-eterna): la persona ya ha elegido la eterna.
   El título lo dice, el botón dorado brilla algo más y la vela gratis queda como un enlace discreto (sigue ahí). */
.nuevo #encender-container .modo-eterna .form-top {
    background: linear-gradient(90deg, #d4891a, #ffd774, #d4891a);
}
.nuevo #encender-container .modo-eterna .boton-eterna {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 -2px 0 rgba(150, 90, 0, 0.25) inset,
        0 10px 28px rgba(212, 137, 26, 0.6), 0 0 0 6px rgba(248, 198, 80, 0.28);
}
.nuevo #encender-container .modo-eterna .boton-gratis {
    min-height: 0;
    padding: 4px 8px;
    border: none !important;
    background: none !important;
    color: var(--tinta-suave) !important;
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.nuevo #encender-container .modo-eterna .boton-gratis:hover {
    color: var(--azul) !important;
}
