/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #3e3935;
    background-color: #faf8f5;
    line-height: 1.7;
}


/* =========================
   MENÚ
========================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 8%;

    background-color: #ffffff;

    border-bottom: 1px solid #eee8e2;
}

.logo h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-weight: normal;

    letter-spacing: 1px;

    color: #3f3935;
}

nav {
    display: flex;

    gap: 30px;
}

nav a {
    text-decoration: none;

    color: #5d5752;

    font-size: 14px;

    transition: 0.3s;
}

nav a:hover {
    color: #9b7b61;
}


/* =========================
   PORTADA
========================= */

.hero {
    min-height: 82vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 80px 20px;

    background-color: #faf8f5;
}

.small-title {
    font-size: 12px;

    letter-spacing: 4px;

    color: #a28772;

    margin-bottom: 20px;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 55px;

    font-weight: normal;

    line-height: 1.2;

    max-width: 950px;

    margin-bottom: 30px;
}

.description {
    max-width: 650px;

    font-size: 17px;

    color: #706a65;

    margin-bottom: 40px;
}


/* =========================
   BOTÓN
========================= */

.button {
    display: inline-block;

    padding: 14px 30px;

    background-color: #806955;

    color: white;

    text-decoration: none;

    border-radius: 30px;

    transition: 0.3s;
}

.button:hover {
    background-color: #5f4d40;

    transform: translateY(-3px);
}


/* =========================
   NUESTRA ESENCIA
========================= */

.about {
    padding: 110px 20%;

    text-align: center;

    background-color: #ffffff;
}

.about h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 40px;

    font-weight: normal;

    margin-bottom: 25px;
}

.about p:last-child {
    max-width: 750px;

    margin: auto;

    color: #706a65;

    font-size: 17px;
}


/* =========================
   MEMORIALES
========================= */

.memorials {
    padding: 110px 8%;

    text-align: center;

    background-color: #f8f5f1;
}

.memorials h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 44px;

    font-weight: normal;

    margin-bottom: 15px;
}

.section-description {
    max-width: 650px;

    margin: 0 auto 55px auto;

    color: #77716c;
}


/* =========================
   TARJETAS
========================= */

.cards {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 40px;

    max-width: 850px;

    margin: auto;
}

.card {
    background-color: white;

    padding: 25px;

    border-radius: 15px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.07);

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.10);
}

.placeholder {
    height: 330px;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 65px;

    margin-bottom: 25px;

    border-radius: 10px;
}


/* OLIVA */

.placeholder.human {
    background-color: #eee6df;

    color: #967966;
}


/* BOTITAS */

.placeholder.pet {
    background-color: #e9e5df;
}


/* NOMBRES */

.card h3 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 28px;

    font-weight: normal;

    margin-bottom: 5px;

    color: #403a36;
}


/* ESPOSA · MADRE... */

.role {
    font-family: Georgia, "Times New Roman", serif;

    font-style: italic;

    color: #9b806d !important;

    margin-bottom: 15px !important;
}

.card p {
    color: #77716c;

    margin-bottom: 20px;
}


/* LINK MEMORIAL */

.card a {
    display: inline-block;

    text-decoration: none;

    color: #806650;

    font-weight: bold;

    padding: 8px 0;

    transition: 0.3s;
}

.card a:hover {
    color: #4f4035;

    transform: translateX(4px);
}


/* =========================
   SECCIÓN QR
========================= */

.qr-section {
    padding: 110px 20px;

    background-color: #ffffff;

    text-align: center;
}

.qr-content {
    max-width: 750px;

    margin: auto;
}

.qr-content h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 40px;

    font-weight: normal;

    margin-bottom: 25px;
}

.qr-content > p {
    color: #706a65;
}

.qr-example {
    margin: 45px auto 0;

    padding: 35px;

    max-width: 350px;

    background-color: #faf8f5;

    border-radius: 15px;
}

.qr-example span {
    display: block;

    font-size: 70px;

    margin-bottom: 10px;

    color: #806955;
}

.qr-example p {
    font-family: Georgia, serif;

    font-style: italic;

    color: #625b56;
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    padding: 70px 20px;

    background-color: #39332f;

    color: #eee8e2;
}

footer h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-weight: normal;

    margin-bottom: 10px;
}

.copyright {
    font-size: 12px;

    margin-top: 30px;

    opacity: 0.6;
}


/* =========================
   CELULARES
========================= */

@media (max-width: 800px) {

    header {
        flex-direction: column;

        gap: 15px;

        padding: 20px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        min-height: 75vh;

        padding: 60px 25px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .description {
        font-size: 16px;
    }

    .about {
        padding: 80px 10%;
    }

    .about h2 {
        font-size: 32px;
    }

    .memorials {
        padding: 80px 25px;
    }

    .memorials h2 {
        font-size: 34px;
    }

    .cards {
        grid-template-columns: 1fr;

        max-width: 450px;
    }

    .placeholder {
        height: 280px;
    }

    .qr-content h2 {
        font-size: 32px;
    }

}/* =========================================================
   CORRECCIÓN FINAL - GALERÍA DE OLIVA
   3 FOTOS ARRIBA + 3 FOTOS ABAJO
   ========================================================= */

.oliva-gallery {
    width: 100%;
    max-width: 1100px;

    margin: 50px auto 0;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    gap: 28px;
}


/* CADA TARJETA */

.oliva-gallery figure {
    width: 100% !important;
    min-width: 0;

    margin: 0 !important;
    padding: 12px 12px 20px;

    background: #ffffff;

    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(70, 50, 35, 0.10);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* EFECTO ELEGANTE */

.oliva-gallery figure:hover {
    transform: translateY(-6px);

    box-shadow:
        0 16px 40px rgba(70, 50, 35, 0.16);
}


/* TODAS LAS FOTOS DEL MISMO TAMAÑO */

.oliva-gallery img {
    display: block !important;

    width: 100% !important;
    height: 300px !important;

    max-width: 100% !important;

    object-fit: cover !important;

    border-radius: 5px;
}


/* TEXTO DEBAJO DE CADA FOTO */

.oliva-gallery figcaption {
    min-height: 70px;

    padding: 18px 10px 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-style: italic;

    line-height: 1.5;

    color: #716861;
}


/* FOTO DE OLIVA JOVEN
   LA MOSTRAMOS COMPLETA SIN CORTARLA */

.oliva-gallery figure.oliva-young img {
    object-fit: contain !important;

    background: #f3eee8;
}


/* TABLET */

@media (max-width: 900px) {

    .oliva-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}


/* CELULAR */

@media (max-width: 600px) {

    .oliva-gallery {
        grid-template-columns: 1fr !important;

        max-width: 430px;

        gap: 25px;
    }

    .oliva-gallery img {
        height: 330px !important;
    }

    .oliva-gallery figcaption {
        min-height: auto;
    }

}/* LOGO CHARMS 2 REMEMBER */

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 800px) {

    .logo img {
        width: 48px;
        height: 48px;
    }

}/* =========================================
   BOTÓN ACOMPAÑAMIENTO
========================================= */

.duelo-nav-button {
    display: inline-block;

    padding: 10px 18px;

    background: #806a59;
    color: white !important;

    border-radius: 25px;

    text-decoration: none;

    transition: all 0.3s ease;
}

.duelo-nav-button:hover {
    background: #665348;

    transform: translateY(-2px);
}/* =========================================
   AJUSTES PÁGINA PÚBLICA
========================================= */

.about p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 22px;
}

.about .button {
    display: inline-block;
    margin-top: 20px;
}

.footer-logo-main {
    width: 75px;
    height: 75px;

    object-fit: cover;

    border-radius: 50%;

    margin-bottom: 15px;
}/* =========================================
   TARJETAS 2 X 2
   CHARMS 2 REMEMBER
========================================= */

.cards {
    max-width: 900px;
    margin: 45px auto 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.card {
    min-height: 330px;

    padding: 35px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.card .placeholder {
    height: auto;
    min-height: 70px;

    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 45px;
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    max-width: 330px;
    margin: 0 auto;
}


/* CELULAR */

@media (max-width: 700px) {

    .cards {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .card {
        min-height: auto;
        padding: 40px 25px;
    }

}