/* =========================================================
   LA COROCA - ESTILOS GENERALES
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: #f7f3ee;
    color: #292522;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #f7f3ee;
    border-bottom: 1px solid #ded7cf;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 24px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    font-weight: normal;
    letter-spacing: 5px;
}

.main-nav {
    display: flex;
    gap: 32px;

    font-family: Arial, sans-serif;
    font-size: 14px;
}

.main-nav a {
    position: relative;
    padding-bottom: 5px;
    transition: opacity 0.25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #292522;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.main-nav a:hover {
    opacity: 0.65;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 50px;
    width: auto;
    display: block;
}

main {
    padding-top: 82px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 30px;

    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(55px, 9vw, 110px);
    font-weight: normal;
    letter-spacing: 12px;
    line-height: 0.95;
    text-wrap: balance;
}

.hero-subtitle {
    margin-top: 30px;

    font-size: 21px;
    font-style: italic;
}

.hero-description {
    max-width: 600px;
    margin: 25px auto 0;

    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #69615b;
}

.hero-button {
    display: inline-block;

    margin-top: 40px;
    padding: 14px 30px;

    border: 1px solid #292522;

    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.hero-button:hover {
    background: #292522;
    color: #f7f3ee;

    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.hero-buttons .hero-button {
    margin-top: 0;
}

.hero-button-secondary {
    border-color: #cfc7bf;
    color: #69615b;
}

.hero-button-secondary:hover {
    border-color: #292522;
}


/* =========================================================
   SECCIONES
========================================================= */

.section {
    max-width: 1200px;
    margin: auto;
    padding: 100px 30px;
}

.section-title {
    text-align: center;

    font-size: 38px;
    font-weight: normal;
    letter-spacing: 4px;
}

.section-intro {
    max-width: 600px;
    margin: 20px auto 60px;

    text-align: center;

    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #69615b;
}


/* =========================================================
   GALERÍA DE COLECCIÓN
========================================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, 230px);
    justify-content: center;
    justify-items: center;
    gap: 45px 28px;
}

.gallery-item {
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.035);
    opacity: 0.94;
}

.gallery-info {
    padding: 18px 3px 5px;
}

.gallery-info h2 {
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 0.8px;
}

.gallery-info span {
    display: block;
    margin-top: 6px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: #8a8179;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.corona-visitas {
    margin-top: 6px;
    color: #8a827b;
    font-size: 11px;
    letter-spacing: 0.5px;
}


/* =========================================================
   GALERÍA VACÍA
========================================================= */

.empty-gallery {
    padding: 80px 30px;

    border-top: 1px solid #ded7cf;
    border-bottom: 1px solid #ded7cf;

    text-align: center;

    font-style: italic;
    color: #777;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 80px 30px;

    background: #292522;
    color: #f7f3ee;

    text-align: center;
}

.footer-inner {
    max-width: 700px;
    margin: auto;
}

.footer-brand {
    font-size: 24px;
    letter-spacing: 5px;
}

.footer-inner > p {
    margin-top: 12px;
}

.whatsapp-button {
    display: inline-block;

    margin-top: 30px;
    padding: 14px 28px;

    border: 1px solid #f7f3ee;

    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.whatsapp-button:hover {
    background: #f7f3ee;
    color: #292522;
}

.instagram-button {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 28px;
    border: 1px solid #f7f3ee;
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.instagram-button:hover {
    background: #f7f3ee;
    color: #292522;
}

.footer-copy {
    margin-top: 50px !important;

    font-family: Arial, sans-serif;
    font-size: 12px;

    opacity: 0.6;
}


/* =========================================================
   FICHA INDIVIDUAL DE CORONA
========================================================= */

.corona-page {
    padding: 60px 30px 120px;
}

.corona-container {
    max-width: 1200px;
    margin: auto;
}


/* VOLVER A LA COLECCIÓN */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 50px;
    padding: 11px 18px;

    border: 1px solid #ded7cf;

    font-family: Arial, sans-serif;
    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: 1.5px;

    color: #292522;
    background: transparent;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.back-link::before {
    content: "←";
    font-size: 15px;
}

.back-link:hover {
    background: #eee8e1;
    color: #292522;
    border-color: #cfc7bf;
    transform: translateX(-4px);
}


/* CONTENIDO PRINCIPAL */

.corona-main {
    display: grid;

    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);

    gap: 70px;

    align-items: start;
}


/* GALERÍA DE LA CORONA */

.corona-gallery {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.corona-photo {

    margin: 0;

    overflow: hidden;

}

.corona-photo img {
    display: block;

    width: 100%;
    height: auto;

    transition: transform 0.4s ease;
}

.corona-photo-caption {

    margin-top: 12px;

    padding: 0 4px;

    font-family: Arial, sans-serif;

    font-size: 13px;

    line-height: 1.6;

    color: #69615b;

    font-style: italic;

}

.corona-photo:hover img {
    transform: scale(1.02);
}


/* INFORMACIÓN */

.corona-info {
    position: sticky;
    top: 40px;

    padding-top: 20px;
}

.corona-info h1 {
    margin: 0;
    font-size: 44px;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: 2px;
    text-wrap: balance;
}


/* ESTADO */

.corona-status {
    display: inline-block;
    margin-top: 24px;
    padding: 7px 14px;
    border: 1px solid #cfc7bf;
    font-family: Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}


/* DESCRIPCIÓN */

.corona-description {
    margin-top: 35px;

    font-family: Arial, sans-serif;
    font-size: 15px;

    line-height: 1.8;

    color: #69615b;
}


/* BOTÓN PRINCIPAL DE WHATSAPP */

.corona-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 42px;
    padding: 17px 30px;
    background: #292522;
    color: #f7f3ee;
    border: 1px solid #292522;
    font-family: Arial, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    box-shadow: 0 7px 18px rgba(41, 37, 34, 0.12);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.corona-whatsapp:hover {
    background: transparent;
    color: #292522;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(41, 37, 34, 0.09);
}


/* SIN FOTOGRAFÍA */

.corona-no-image {
    min-height: 400px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eee8e1;

    color: #777;

    font-style: italic;
}

/* =========================================================
   SOBRE LA COROCA
========================================================= */

.about-content {
    max-width: 820px;
    margin: 70px auto 0;
}

.about-text {
    padding: 55px 0;
    border-top: 1px solid #ded7cf;
}

.about-text:first-child {
    border-top: none;
    padding-top: 0;
}

.about-text h2 {
    position: relative;
    margin: 0 0 22px;
    padding-left: 22px;
    font-size: 27px;
    font-weight: normal;
    letter-spacing: 1.5px;
}

.about-text h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border: 1px solid #8d8177;
    transform: rotate(45deg);
}

.about-text p {
    max-width: 700px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: #69615b;
}

/* =========================================================
   DISEÑO RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .gallery {

        grid-template-columns: repeat(auto-fit, 230px);

    }

}

@media (max-width: 850px) {

    .gallery {

        grid-template-columns: repeat(auto-fit, 230px);

    }

    .corona-page {
        padding: 40px 20px 80px;
    }

    .corona-main {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .corona-info {
        position: static;
        padding-top: 0;
    }

    .corona-info h1 {
        font-size: 34px;
    }

}

@media (max-width: 700px) {
    
    main {
        padding-top: 125px;
    }

    .header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav {
        gap: 20px;
        font-size: 13px;
    }

    .hero {
        min-height: 550px;
    }

    .hero-title {
        letter-spacing: 7px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section {
        padding: 70px 20px;
    }

        .about-content {
        margin-top: 50px;
    }

    .about-text {
        padding: 40px 0;
    }

    .about-text h2 {
        font-size: 23px;
        padding-left: 18px;
    }

    .about-text h2::before {
        top: 7px;
        width: 5px;
        height: 5px;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.8;
    }

}

@media (max-width: 550px) {

    .gallery {
        grid-template-columns: minmax(0, 280px);
        gap: 35px;
    }

    .corona-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

}