﻿/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root {
    --color-liturgico: #800000;
    --color-gris-suave: #f7f7f7;
    --color-gris-texto: #555;
    --color-gris-borde: #ddd;
    --color-sombra-suave: 0 4px 12px rgba(0,0,0,0.12);
    --color-sombra-media: 0 6px 18px rgba(0,0,0,0.25);
    --color-sombra-fuerte: 0 10px 24px rgba(0,0,0,0.28);

    --radius-base: 12px;
    --radius-grande: 18px;

    --espacio-s: 8px;
    --espacio-m: 16px;
    --espacio-l: 24px;
    --espacio-xl: 32px;
}

/* =========================================================
   ESTILOS GENERALES
   ========================================================= */
body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

a {
    color: #808080;
    text-decoration: none;
}

.contenedor {
    max-width: 1200px;   /* o el ancho que use tu web */
    margin: 0 auto;      /* centra el documento */
    text-align: left;    /* evita que herede el centrado del body */
    padding: 0 20px;     /* margen interior opcional */
}

/* =========================================================
   CABECERA
   ========================================================= */
.header {
    background: #fff; /* importante para que no se vea el contenido detrás */
    padding-bottom: 0px; 
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* fuerza alineación a la izquierda */
    gap: 25px;
    width: 100%; /* asegura que ocupa todo el ancho */
    padding-top: 18px;
    padding-bottom: 18px;
}

.header-logo {
    height: 220px;
    border-radius: var(--radius-grande);
    box-shadow: var(--color-sombra-media);
    transition: transform .3s ease;
    z-index: 1;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-title-top {
    font-family: 'Anton', sans-serif;
    font-size: 3.4rem;
    color: var(--color-liturgico);
    margin-left: 5px;
}

.header-title-main {
    font-family: 'Anton', sans-serif;
    font-size: 4.6rem;
    color: var(--color-liturgico);
    margin: 0;
    padding-bottom: 4px;
    position: relative;
    margin-left: 5px;
}

.header-title-main::after {
    content: "";
    display: block;
    height: 3px;
    background: #000; /* negro */
    margin-top: 8px;
    border-radius: 2px;
}

.header-title-bottom {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #666;
    margin-left: 5px;
}

.header-title-top,
.header-title-main,
.header-title-bottom {
    color: #000000;
    line-height: 1.15;
	/* text-shadow: 1px 1px 1px rgba(0,0,0,0.45); */
}

.header-title-bottom {
    text-shadow: none;
}

/* Fondo suavizado sin afectar al contenido */
.header-contenedor {
    position: relative;
    padding-bottom: 0px;
}

.header-contenedor::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/parroquia_cabecera.jpg");
    background-repeat: no-repeat;
    background-position: 100% center; 
    background-size: auto 230px;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

/* Asegurar que los títulos queden por encima del fondo */
.header-logo,
.header-title-top,
.header-title-main,
.header-title-bottom {
    position: relative;
    z-index: 1;
}

/* =========================================================
   MENÚ SUPERIOR
   ========================================================= */
.menu-superior {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid var(--color-gris-borde);
    padding: 10px 0;
}

.menu-superior .contenedor { 
	display: flex; 
	justify-content: flex-start; 
	gap: 10px; 
	flex-wrap: wrap; 
}

.menu-superior img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.menu-superior img:hover {
    transform: scale(1.20);
    box-shadow: var(--color-sombra-suave);
    border-color: var(--color-liturgico);
}

/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */
.layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.columna-izquierda {
    flex: 1;
    min-width: 0;
}

.columna-derecha {
    width: 320px;
    flex-shrink: 0;
}

/* =========================================================
   GRID PRINCIPAL
   ========================================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 5px;
    row-gap: 10px; /* ← separación vertical */
    width: 100%;
}

/* =========================================================
   SISTEMA DE CUADROS
   ========================================================= */
.card {
    background: #fff;
    border-radius: var(--radius-base);
    padding: 18px;
    box-shadow: var(--color-sombra-suave);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--color-sombra-fuerte);
}

/* Cuadro grande */
.card--large {
    grid-column: 1 / -1;
    text-align: left;
    background: var(--color-gris-suave);
    padding: var(--espacio-l);
}

/* Cuadro solo imagen (a sangre total, sin efectos) */
.card--image-only {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transition: none !important;
}

/* Anulamos hover SOLO para las tarjetas de imagen */
.card--image-only:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Fila con cuatro tarjetas */
.cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 20px; /* separación con el bloque anterior */
}

/* Tarjeta con título + imagen + texto */
.card--media {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

/* Cabecera: fecha + título */
.card__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Fecha más grande, sin icono */
.card__date {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;       /* más grande */
    font-weight: 600;
    color: #555;
}

/* Título en Anton, grande y con presencia */
.card__title {
    font-family: 'Anton', sans-serif;
    font-size: 2.0rem;        /* contundente */
    line-height: 1.1;
    margin: 0;
    color: var(--color-liturgico);
}

/* Imagen */
.card__image {
    width: 100%;
    border-radius: var(--radius-base);
    display: block;
}

/* Texto inferior */
.card__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.50;
    color: #555;
    text-align:justify;
    margin: 0;
    padding: 15px; 20px;
}

/* Estilo general para las tarjetas de santos y beatos */
.santos--beatos {
    background-color: #8b0000;
    padding: 1rem;
    border-radius: 8px;
    color: white; /* color general del texto */
}

/* Fecha en negro */
.santos--beatos .card__date {
    color: #FFD700;
}

/* Título en blanco */
.santos--beatos .card__title {
    color: white;
}

/* Texto en blanco */
.santos--beatos .card__text {
    color: white;
}

/* Vídeo */
.card__video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* proporción 16:9 */
    overflow: hidden;
    border-radius: var(--radius-grande);
    box-shadow: var(--color-sombra-media);
}

.card__video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   IMÁGENES
   ========================================================= */
.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

/* Las imágenes del cuadro grande SÍ tienen sombra */  
.img-shadow {
	border-radius: var(--radius-base); 
	box-shadow: 0 6px 14px rgba(0,0,0,0.18); 
	transition: transform .25s ease, box-shadow .25s ease; 
}

.img-shadow:hover {
    transform: translateY(-6px);
    box-shadow: var(--color-sombra-fuerte);
}

.img-lateral { 
	width: 240px; 
	float: none; 
	margin-bottom: 10px; 
	margin-right: 0; 
}

.contenido::after {
    content: "";
    display: block;
    clear: both;
}

/* BLOQUE IMAGEN + PIE DE FOTO */
.bloque-imagen {
    float: left;
    display: inline-block;
    width: 300px;
    margin-right: 28px;
    margin-bottom: 20px;
    text-align: center;
    shape-outside: inset(0);
}

.bloque-imagen img {
    width: 100%;
    display: block;
    margin-right: 0px;
}

/* Solo las imágenes de las tarjetas pequeñas NO tienen sombra */  
.columna-izquierda .card--image-only img { 
	border-radius: 0; 
	box-shadow: none; 
	transform: none; 
	transition: none;
}
/* Eliminamos cualquier hover en las imágenes de la columna izquierda */
.columna-izquierda img:hover {
    transform: none;
    box-shadow: none;
}

/* =========================================================
   SLIDES
   ========================================================= */
.slide {
    display: none;
}

.slide.activo {
    display: block;
}

.flechas {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.flecha {
    font-size: 28px;
    cursor: pointer;
    color: #444;
    transition: color .2s ease;
}

.flecha:hover {
    color: #000;
}

/* FECHAS: festivo / laborable */
.fecha-modern {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.fecha-modern.festivo {
    color: #FF0000; /* var(--color-liturgico); */
}

.fecha-modern.laborable {
    color: #444;
}

/* TÍTULO DEL DOMINGO */
.titulo-festivo {
    font-family: 'Anton', sans-serif;
    font-size: 2.2rem;
    color: var(--color-liturgico);
    margin: 10px 0 5px;
}

/* SUBTÍTULO DEL DOMINGO */
.subtitulo-montserrat {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-top: 0;
}

/* PÁRRAFOS DEL CONTENIDO */
.contenido {
    padding: 0px 40px 0px 0px; /* arriba/abajo */
    text-align:justify;
    font-family: 'Montserrat', sans-serif;
    color: #666;
}

.contenido p {
    font-size: 1.2rem;
    line-height: 1.55;
}

/* PIE DE FOTO */
.pie-foto {
    color: #777;
    font-style: italic;
    margin-top: 4px;
}

/* PIE DE FOTO dentro del contenido (gana a .contenido p) */
.contenido p.pie-foto {
    font-size: 0.9rem;
    line-height: 1.2;
}

/* LETRA CAPITAL SOLO EN EL PRIMER PÁRRAFO REAL */
.contenido p:not(.pie-foto):first-of-type::first-letter {
    font-family: 'Anton', sans-serif;
    font-size: 4.6rem;
    line-height: 0.8;
    float: left;
    padding-right: 10px;
    padding-top: 6px;
    color: var(--color-liturgico);
}

.boton-parroquia {
    font-size: 1rem;
    line-height: 1.3;
}

.contenido p:has(.boton-parroquia) {
    font-size: 1rem;
    line-height: 1.3;
}

/* =========================================================
   COLUMNA DERECHA (AGENDA, HORARIOS, INFO)
   ========================================================= */
.box {
    background: #fafafa;
    border: 2px solid #e3e3e3;
    border-radius: var(--radius-grande);
    padding: var(--espacio-l);
    box-shadow: var(--color-sombra-suave);
    text-align: center;
    margin-bottom: var(--espacio-xl);
}

.box-title {
    font-family: 'Anton', sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
}

.box-title::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    margin: 10px auto 0;
    background: currentColor;
    border-radius: 2px;
}

/* TÍTULO PRINCIPAL HORARIOS */
.titulo-principal {
    font-family: 'Anton', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-liturgico);
    text-align: center;
}

/* SUBTÍTULOS */
.subtitulo-horario {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 14px 0 6px;
    color: var(--color-liturgico);
}

/* HORAS (MUY GRANDES) */
.hora,
.hora-despacho {
    font-family: 'Anton', sans-serif;
    font-size: 1.9rem;          /* ✔ MUY grande */
    letter-spacing: 0.5px;
    color: #222;
    margin-right: 16px;
    display: inline-block;
}

/* TEXTO INFORMATIVO */
.linea-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    margin: 0 0 6px;
    color: #444;
}

/* SEPARADORES ENTRE BLOQUES */
.separador-horarios {
    border-bottom: 1px solid #ccc;
    margin: 14px 0;
}

/* CENTRAR TODO EL MINI CALENDARIO */
#mini-calendario {
    text-align: center;      /* centra el título */
    margin-top: 10px;
}

#mini-calendario table {
    margin: 0 auto;          /* centra la tabla */
}

#mini-calendario h4 {
    text-align: center;      /* centra el título del mes */
    margin-bottom: 8px;
}

/* Celdas */
#mini-calendario td,
#mini-calendario th {
    padding: 4px 6px;
    text-align: center;
}

/* Día actual resaltado */
#mini-calendario td.hoy {
    background-color: var(--color-liturgico);
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
        align-items: center;
    }
    .columna-derecha {
        width: 100%;
        max-width: 400px;
    }
}

/* ============================
   RESPONSIVE CABECERA
   ============================ */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {

    .header-inner {
        gap: 15px;
    }

    .header-logo {
        height: 160px;
    }

    .header-title-top {
        font-size: 2.6rem;
    }

    .header-title-main {
        font-size: 3.4rem;
    }

    .header-title-bottom {
        font-size: 1.6rem;
    }

    .header-contenedor::before {
        background-size: auto 180px;
        background-position: calc(100% - 20px) center;
        opacity: 0.20;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-logo {
        height: 150px;
    }

    .header-titulos {
        margin-left: 0;
    }

    .header-title-top {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .header-title-main {
        font-size: 3rem;
        line-height: 1.1;
    }

    .header-title-bottom {
        font-size: 1.4rem;
        line-height: 1.1;
    }

    .header-contenedor::before {
        background-size: auto 160px;
        background-position: center bottom;
        opacity: 0.18;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {

    .header-logo {
        height: 120px;
    }

    .header-title-top {
        font-size: 1.8rem;
    }

    .header-title-main {
        font-size: 2.4rem;
    }

    .header-title-bottom {
        font-size: 1.2rem;
    }

    .header-contenedor::before {
        background-size: auto 130px;
        background-position: center bottom;
        opacity: 0.15;
    }
}

