body {
    margin: 0;
    font-family: 'Lato', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 1.8rem 1rem;
    border-bottom: 4px solid #d4af37; /* dorado */
}

.header-content {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-text {
    text-align: center;
}

.header h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    letter-spacing: 1.5px;
}

.header p {
    margin: 0.4rem 0 0;
    font-size: 1.05rem;
    font-style: italic;
    opacity: 0.9;
}

.logo {
    width: 75px;
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.logo.left {
    margin-right: 1rem;
}

.logo.right {
    margin-left: 1rem;
}

nav {
    background-color: #4a5d82;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

nav a:hover {
    background-color: rgba(255,255,255,0.15);
}

nav a:hover {
    background-color: #2c3e50;
}

nav i {
    margin-right: 6px;
    color: #d4af37; /* dorado */
}


section {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
}

.hero {
    position: relative;
    text-align: center;
    background: linear-gradient(
        to bottom,
        #f2efe9,
        #e6e1d8
    );
    padding: 4rem 1rem;
    max-width: none;
}
.hero i {
    color: #c2b280;
    margin-right: 8px;
}


.hero::before {
    content: "";
    background-image: 
        url("Imagenes/Templo_dorado.png"),
        url("Imagenes/Templo_dorado.png");

    background-repeat: no-repeat, no-repeat;
    background-size: 175px auto, 175px auto;

    /* izquierda y derecha */
    background-position: 
        left 40px center,
        right 40px center;

    opacity: 0.50;
    position: absolute;
    inset: 0;
    z-index: 0;
}





.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: auto;
}


h2 {
   color: #3a4f7a;
}

article {
    background: white;
    padding: 1.4rem;
    margin-top: 1.5rem;
    border-left: 5px solid #c2b280;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 4px;
}

footer {
    background-color: #2c3e50;
    color: #ddd;
    text-align: center;
    padding: 1.2rem;
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .logo {
        width: 55px;
        margin: 0.5rem 0;
    }

    .header h1 {
        font-size: 1.6rem;
    }
}

article:hover {
    transform: translateY(-2px);
    transition: 0.3s ease;
}

.horarios-lista {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.horarios-lista li {
    background: white;
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    border-left: 4px solid #d4af37;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.horarios-lista i {
    color: #d4af37;
    font-size: 1.2rem;
    min-width: 24px;
}

#horarios h2 i {
    color: #c2b280;
    margin-right: 8px;
}

.sacramentos-lista {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.sacramento-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 1.2rem;
    text-decoration: none;
    color: #2c3e50;
    border-left: 4px solid #d4af37;
    border-radius: 6px;
    font-size: 1.05rem;
    transition: 0.3s ease;
}
.sacramento-btn::after {
    content: "›";
    margin-left: auto;
    font-size: 1.4rem;
    color: #c2b280;
}

.sacramento-btn i {
    color: #d4af37;
    font-size: 1.4rem;
    min-width: 28px;
}

.sacramento-btn:hover {
    background: #f7f5ef;
    transform: translateY(-3px);
}

.sacramentos-lista li {
    background: white;
    padding: 1.2rem;
    border-left: 4px solid #d4af37;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    border-radius: 6px;
}

.sacramentos-lista i {
    color: #d4af37;
    font-size: 1.4rem;
    min-width: 28px;
}

#sacramentos h2 i {
    color: #c2b280;
    margin-right: 8px;
}

.sacramentos-lista li:hover {
    transform: translateY(-3px);
    transition: 0.3s ease;
}

#homilias article {
    background: white;
    padding: 1.2rem;
    margin-top: 1.2rem;
    border-left: 4px solid #d4af37;
    border-radius: 6px;
}

.homilia-titulo {
    font-size: 1.05rem;
    color: #2c3e50;
}

.homilia-fecha {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.8rem;
}

#homilias i {
    color: #d4af37;
    margin-right: 6px;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #b22222; /* rojo litúrgico */
    color: white;
    padding: 0.45rem 0.8rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-pdf:hover {
    background-color: #8b1a1a;
}

.homilia-item:hover {
    transform: translateY(-2px);
    transition: 0.3s ease;
}


#avisos article {
    background: white;
    padding: 1.3rem;
    margin-top: 1.2rem;
    border-left: 4px solid #d4af37;
    border-radius: 6px;
}

#avisos h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

#avisos i {
    color: #d4af37;
    margin-right: 6px;
}

#avisos p {
    margin-top: 0.6rem;
    color: #444;
}

.aviso-item:hover {
    transform: translateY(-2px);
    transition: 0.3s ease;
}

.agenda-controles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.agenda-controles button {
    background-color: #4a5d82;
    color: white;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
}

.agenda-controles button:hover {
    background-color: #2c3e50;
}

#fecha-actual {
    font-weight: bold;
    color: #2c3e50;
}

.agenda-item {
    background: white;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 4px solid #d4af37;
    border-radius: 6px;
}

.agenda-item i {
    color: #d4af37;
    margin-right: 6px;
}

.sacramento-detalle {
    max-width: 900px;
    margin: 3rem auto;
}

.sacramento-detalle h2 {
    text-align: center;
    color: #2c3e50;
}

.sacramento-detalle article {
    background: white;
    padding: 1.2rem;
    margin-top: 1.2rem;
    border-left: 4px solid #d4af37;
    border-radius: 6px;
}

.sacramento-detalle h3 {
    margin-top: 0;
    color: #3a4f7a;
}

.sacramento-detalle i {
    color: #d4af37;
    margin-right: 6px;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    background-color: #4a5d82;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
}

.btn-volver:hover {
    background-color: #2c3e50;
}

.sacramento-detalle {
    position: relative;
    padding: 2rem;
}

/* Decoración matrimonio */
.sacramento-matrimonio::before {
    content: "💍";
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.15;
}

.sacramento-matrimonio::after {
    content: "💒";
    position: absolute;
    bottom: -10px;
    left: 15px;
    font-size: 2rem;
    opacity: 0.12;
}


