/* ========================================
   MAINTENANCE PAGE - BELLOTAS Y CLAVELES
   Dark Vintage Aesthetic with Ornamental Details
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --color-bg-dark: #0a0a0a;
    --color-bg-pattern: #1a1a1a;
    --color-text-primary: #e8d5c4;
    --color-text-secondary: #c4b5a0;
    --color-accent-green: #0e5430;
    --color-border-ornate: #8b7355;
    --color-overlay: rgba(0, 0, 0, 0.7);
    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-accent: 'Palatino', 'Book Antiqua', serif;
    --transition-smooth: all 0.3s ease;
    --border-radius: 16px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background-color: var(--color-bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ===== BACKGROUND LAYERS ===== */
.pattern-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bellotas_y_claveles_background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -2;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.05) 2px, rgba(0, 0, 0, 0.05) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.05) 2px, rgba(0, 0, 0, 0.05) 4px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000;
    overflow: hidden;
}

.navbar:before {
    position: absolute;
    content: '';
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-green);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-accent-green);
}


/* ===== MAIN CONTENT ===== */
main {
    position: relative;
    z-index: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-wrapper {
    text-align: center;
    max-width: 800px;
}

.main-logo {
    width: 54%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    aspect-ratio: 3.22 / 2;
    position: relative;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
    overflow: hidden;
}

.main-logo img {
    object-fit: cover;
    width: 100%;
    height: 100%;

}

.opening-box {
    margin-top: 2rem;
}

.tagline {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-family: var(--font-accent);
}

/*Buttons and molds*/


[class*=mold-], [class*=mold-]:after {
    content: '';
    display: block;
    position: absolute;
}

[class*=mold-] {
    border-color: var(--color-accent-green);
    border-style: double;
    overflow: visible;
}

[class*=mold-]:after {
    width: var(--border-radius);
    height: var(--border-radius);
    border-radius: var(--border-radius);
}

.mold-top, .mold-bottom {
    width: calc(103% - var(--border-radius) - var(--border-radius));
    height: 0;
    border-left: 0;
    border-right: 0;
    left: 50%;
    transform: translateX(-50%);
}

.mold-top {
    border-top: 2px;
}

.mold-bottom {
    border-bottom: 2px;
}

.mold-right, .mold-left {
    height: calc(103% - var(--border-radius) - var(--border-radius));
    width: 0;
    border-top: 0;
    border-bottom: 0;
    top: 50%;
    transform: translateY(-50%);
}

.mold-left {
    border-left: 2px;
}

.mold-right {
    border-right: 2px;
}

.mold-top, .mold-top:after {
    top: 0;
}

.mold-bottom, .mold-bottom:after {
    bottom: 0;
}

.mold-left, .mold-left:after {
    left: 0;
}

.mold-right, .mold-right:after {
    right: 0;
}

.mold-left:after {
    bottom: 0;
    transform: translate(-24%, 82%);
    border-top: 3px double var(--color-accent-green);
    border-right: 3px double var(--color-accent-green);
}

.mold-top:after {
    left: 0;
    border-bottom: 3px double var(--color-accent-green);
    border-right: 3px double var(--color-accent-green);
    transform: translate(-82%, -24%);
}

.mold-right:after {
    top: 0;
    transform: translate(24%, -82%);
    border-bottom: 3px double var(--color-accent-green);
    border-left: 3px double var(--color-accent-green);
}

.mold-bottom:after {
    right: 0;
    transform: translate(82%, 24%);
    border-top: 3px double var(--color-accent-green);
    border-left: 3px double var(--color-accent-green);
}


/*.mold-top, .mold-bottom {*/
/*    width: calc(100% - var(--border-radius) - var(--border-radius));*/
/*    left:0;*/
/*}*/


.badge-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0 1rem;
}

.badge-modern .line {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border-ornate), transparent);
}

.badge-content {
    text-align: center;
    padding: 2rem;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}


.badge-content h2 {
    font-size: 1.8rem;
    letter-spacing: 0.3em;
    color: var(--color-accent-green);
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.badge-content .season {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.2em;
}

.btn-vintage {
    display: inline-block;
    position: relative;
    padding: 14px 40px;
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Cinzel", "Times New Roman", serif;
    letter-spacing: 2px;
    font-size: 18px;

    border: 2px solid var(--color-accent-green);
    border-radius: 40px;

    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05),
    0 0 6px rgba(0, 0, 0, 0.6);

    transition: all 0.3s ease;
}

/* Borde interior decorativo */
.btn-vintage::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid var(--color-border-ornate);
    border-radius: 30px;
    pointer-events: none;
}

/* Ornamentación lateral */
.btn-vintage::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid var(--color-border-ornate);
    border-radius: 50px;
    pointer-events: none;
}

/* Hover */
.btn-vintage:hover {
    background: var(--color-bg-dark);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.1),
    0 0 12px var(--color-border-ornate);
    transform: translateY(-2px);
}

/* ===== CONTENT SECTIONS ===== */
section {
    padding: 5rem 2rem;
    text-align: center;
    overflow-x: clip;
}

section:before {
    position: absolute;
    padding: 2rem;
    z-index: -1;
    width: 131%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 100%;
    content: '';
    display: block;
    /* max-width: 1400px; */
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);


    --radial-gradient: radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 8) 0%,
            rgba(0, 0, 0, 0.5) 57%,
            rgba(0, 0, 0, 0.1) 72%,
            transparent 74%);
    background: var(--radial-gradient);
    mask-image: var(--radial-gradient);
    -webkit-mask-image: var(--radial-gradient);
    border-radius: 50% / 30%;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* ===== ORNAMENTAL TITLES ===== */
.title-accent,
.section-title {
    font-size: 2.5rem;
    font-family: var(--font-accent);
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding: 1rem 0;
}

.break {
    position: relative;
    margin-bottom: 2rem;
}

.title-accent::before,
.title-accent::after,
.break::after,
.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border-ornate), transparent);
}

.title-accent::before,
.section-title::before {
    top: 0;
}

.break::after,
.title-accent::after,
.section-title::after {
    bottom: 0;
}

.break::after {
    left: 0%;
    transform: translateX(0%);
}

.section-title {
    display: block;
    text-align: center;
    margin-bottom: 4rem;

}

.text-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin: 2rem 0;
}

.text-lead strong {
    color: var(--color-text-primary);
}

.break-hexapetala, .break-hexapetala-small {
    stroke: var(--color-border-ornate);
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.break-hexapetala-small {
    margin: 1rem auto;
}

.break-hexapetala {
    margin: 3rem auto;
}

.break-hexapetala:before, .break-hexapetala:after, .break-hexapetala-small:before, .break-hexapetala-small:after {
    display: inline-block;
    content: '';
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-border-ornate), transparent);
}

.break-hexapetala:before, .break-hexapetala:after {
    width: 20vw;
}

.break-hexapetala-small:before, .break-hexapetala-small:after {
    width: 4rem;
}

.break-hexapetala svg, .break-hexapetala-small svg {
    display: inline-block;
    position: relative;
}

.break-hexapetala svg:before, .break-hexapetala-small svg:before {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: '';
    --radial-gradient: radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 8) 0%,
            rgba(0, 0, 0, 0.5) 57%,
            rgba(0, 0, 0, 0.1) 72%,
            transparent 74%);
    background: var(--radial-gradient);
    mask-image: var(--radial-gradient);
    -webkit-mask-image: var(--radial-gradient);
}

/* ===== BRANDS SECTION ===== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.brand-card {
    position: relative;
    display: block;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: var(--transition-smooth);
    overflow: hidden;
    border-radius: var(--border-radius);
}

.brand-card:hover {
    transform: translateY(-5px);
}

.brand-card:hover::after {
    opacity: 1;
}

.brand-card picture {
    overflow: hidden;
    aspect-ratio: 1/1;
    width: 100%;
    display: block;
    border: 1px solid var(--color-border-ornate);
}

.brand-card img {
    width: 100%;
    object-fit: cover;
}

.brand-card h3 {
    font-size: 1.3rem;
    color: var(--color-text-primary);
    text-align: center;
    font-family: var(--font-accent);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

.brand-card:hover h3 {
    color: var(--color-accent-green);
}

/* ===== LOCATION SECTION ===== */
.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 3rem;
    border: 5px double var(--color-border-ornate);
    background: rgba(0, 0, 0, 0.5);
    position: relative;
}

.break-hexapetala-location {
    stroke: var(--color-accent-green);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.location-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: var(--color-bg-dark);
    border: 5px double var(--color-border-ornate);
    border-radius: 50%;
}

.info-block {
    text-align: left;
    padding: 2rem;
}

.info-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-block address {
    font-style: normal;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.info-block hr {
    border: none;
    border-top: 1px solid var(--color-border-ornate);
    margin: 2rem 0;
    opacity: 0.5;
}

.info-block a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.info-block a:hover {
    color: var(--color-accent-green);
}

.map {
    min-height: 350px;
    border: 2px solid var(--color-border-ornate);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map::after {
    content: '';
    font-size: 4rem;
    opacity: 0.3;
}

/* ===== FOOTER ===== */
footer {
    margin-top: 3rem;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 4px double var(--color-border-ornate);
    background: rgba(0, 0, 0, 0.5);
    position: relative;
}

.footer-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

iframe {
    max-width: 100% !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .location-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .main-logo {
        max-width: 300px;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .badge-modern {
        flex-direction: column;
        gap: 1rem;
    }

    .badge-modern .line {
        width: 50px;
    }

    .badge-content {
        padding: 1rem 2rem;
    }

    .badge-content h2 {
        font-size: 1.3rem;
    }

    .title-accent,
    .section-title {
        font-size: 1.8rem;
    }

    .text-lead {
        font-size: 1.05rem;
    }

    .content-section,
    .brands,
    .location {
        padding: 4rem 1rem;
    }

    .brands-grid {

        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .location-container {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .info-block {
        padding: 1rem;
    }

    .map {
        min-height: 250px;
    }

    .break-hexapetala {
        margin: 1.5rem auto;
    }
}

@media (max-width: 480px) {
    .brands-grid {

    }

    .badge-content {
        padding: 1rem 1.5rem;
    }

    .badge-content h2 {
        font-size: 1.1rem;
        letter-spacing: 0.2em;
    }

    .badge-content .season {
        font-size: 0.95rem;
    }

    .scroll-down {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    color: var(--color-accent-green);
    border: 2px solid var(--color-border-ornate);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5),
                inset 0 0 8px rgba(255, 255, 255, 0.05);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--color-accent-green);
    color: var(--color-bg-dark);
    border-color: var(--color-accent-green);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6),
                inset 0 0 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.scroll-to-top span {
    line-height: 1;
    display: block;
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.3rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--color-accent-green);
    outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    :root {
        --color-text-primary: #ffffff;
        --color-text-secondary: #e0e0e0;
        --color-accent-green: #ffcc00;
    }
}