@import url('https://fonts.googleapis.com/css2?family=Carattere&display=swap');

:root {
    --cafe: #34291e;
    --dorado: #b4873a;

    --fuente-principal: 'Lora', serif;
    --fuente-secundaria: 'EBGaramond Medium', sans-serif;
    --fuente-titulos: 'Carattere', sans-serif;
}

@font-face {
    font-family: 'EBGaramond Medium';
    font-style: normal;
    font-weight: normal;
    src: local('EBGaramond Medium'), url('../assets/fonts/EBGaramond-Medium.woff2') format('woff2');
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: var(--fuente-titulos);
    font-weight: 100;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-family: var(--fuente-principal);
    font-weight: 400;
}

h3 {
    font-size: clamp(1.2rem, 2.8vw, 1.5rem);
    font-family: var(--fuente-principal);
    font-weight: 400;
}

h4 {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-family: var(--fuente-principal);
    font-weight: 400;
}

p,
li,
a,
strong,
button {
    font-size: clamp(.9rem, 1.5vw, 0.9rem);
    font-family: var(--fuente-principal);
    letter-spacing: .8px;
    line-height: 1.4;
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.top-bar {
    background: #f9f9f9;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-info {
    display: flex;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item span:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    font-size: 1.2rem;
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
}

.nav {
    margin-left: auto;
    display: flex;
}

.nav-link {
    position: relative;
    padding: 20px 15px;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--dorado);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.divider {
    width: 1px;
    height: 20px;
    background: #ccc;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #000;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 30%;
    height: 100vh;
    background: rgb(255, 255, 255);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 1s ease;
    z-index: 1001;
    border-bottom-left-radius: 30px;
    border-top-left-radius: 30px;
}

.mobile-menu.active {
    right: 0;
}

.menu-close {
    align-self: flex-end;
    font-size: 3rem;
    background: none;
    border: none;
    color: #000;
    padding-right: 20px;
    cursor: pointer;
}

.mobile-nav-link {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        width: 80%;
    }

    .header-content {
        justify-content: space-between;
    }

    .contact-info {
        display: none;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
    }

    .header {
        padding: 10px 0;
    }

    .divider {
        display: none;
    }

    .page-intro {
        background-attachment: scroll;
    }
}

.page-intro.alt {
    height: 60vh;
}

.page-intro.alt .page-intro-content{
    bottom: 0;
}

.page-intro {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4) 100%),
        url('../assets/imgs/inicio/img_04.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 2s ease;
    color: #fff;
}

.page-intro.page-intro-cementerio {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4) 100%),
        url('../assets/imgs/cementerio/cementerio-4.webp');
}

.breadcrumb {
    align-items: center;
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-intro-content{
    position: relative;
    bottom: 10%;
}

.page-intro-content,
.scroll-hint {
    text-align: center;
    animation: fadeInUp 1.5s ease-in-out forwards;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    font-size: 1.5rem;
}

.scroll-hint span {
    display: block;
    margin-bottom: 8px;
}

.scroll-hint .arrows i {
    display: block;
    font-size: 2.5rem;
    animation: fadePulse 2.5s infinite;
}

.scroll-hint .arrows i:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-hint .arrows i:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes fadePulse {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    position: relative;
    background-image: url('../assets/imgs/inicio/fb_01.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(5deg, #000000 0%, #3f3f3f 50%, #6d6d6d 100%);
    opacity: 0.95;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    width: 180px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: background 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.5);
}

.footer-column h3 {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a:hover,
.footer-contact-info a:hover {
    text-decoration: underline;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 968px) {
    footer{
        background-attachment: scroll;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-logo-section {
        grid-column: 1 / -1;
    }

    .footer-column:nth-child(4) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-content {
        padding: 60px 20px 30px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}