:root {
    --green: #255b4f;
    --green-dark: #123931;
    --sage: #7a9f8f;
    --mint: #cfeee2;
    --mint-light: #ecfbf6;
    --lavender: #d8b5df;
    --cream: #fffaf5;
    --pearl: #fffdf8;
    --white: #ffffff;
    --text: #203b35;
    --muted: #6e817b;
    --border: #dfece7;
    --shadow: 0 18px 45px rgba(18, 57, 49, 0.10);
    --soft-shadow: 0 10px 28px rgba(18, 57, 49, 0.08);
    --brand-font: "Quesha", "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--cream), #f8fffb 48%, var(--cream));
}

a {
    color: var(--green);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 14px 7%;
    background: rgba(255, 250, 245, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--green);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-font,
.company-name {
    font-family: "Eurostile", "Bank Gothic", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(18, 57, 49, .12);
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

nav a {
    text-decoration: none;
    color: var(--green);
    font-weight: 700;
    border-bottom: 2px solid transparent;
    padding-block: 5px;
}

nav a:hover,
nav a:focus-visible {
    border-color: var(--sage);
}

.admin-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    border-bottom: 0;
    color: var(--green);
    background: rgba(255, 255, 255, .45);
}

.admin-shortcut svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.admin-shortcut:hover,
.admin-shortcut:focus-visible {
    background: rgba(255, 255, 255, .8);
}

.inline-form {
    display: inline;
}

.inline-form button,
.actions button {
    border: none;
    background: transparent;
    color: var(--green);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.hero {
    min-height: min(590px, calc(100vh - 160px));
    display: grid;
    place-items: center;
    padding: 32px 7% 18px;
    background: var(--pearl);
}

.hero-card {
    width: min(1280px, 100%);
    max-width: none;
    text-align: center;
    padding: 18px 12px;
}

.hero-logo-bar {
    width: min(1080px, calc(100vw - 24px));
    margin: 0 auto 22px;
    padding: 12px 24px;
    background: transparent;
    box-shadow: none;
}

.hero-logo {
    display: block;
    width: min(860px, 100%);
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 0;
}

.eyebrow {
    color: var(--green);
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800;
}

h1, h2, h3 {
    color: var(--green-dark);
    margin-top: 0;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 940px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: .98;
    margin-bottom: 20px;
}

.hero-text {
    max-width: 760px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1.55;
}

.hero-tagline {
    color: var(--green);
    font-family: "White Garden", "Handwritten Script", "Segoe Script", "Brush Script MT", cursive;
    font-style: italic;
    font-weight: 600;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 8px;
    padding: 14px 22px;
    background: var(--green);
    color: white;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 91, 79, .22);
}

.button:hover,
.button:focus-visible {
    background: var(--green-dark);
}

.section {
    padding: 74px 7%;
}

#categorias.section {
    padding-top: 12px;
}

.event-link-section {
    padding-top: 10px;
}

.event-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(980px, 100%);
    min-height: 88px;
    margin: 0 auto;
    padding: 22px 26px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    color: var(--green-dark);
    text-decoration: none;
    box-shadow: var(--soft-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.event-link-card:hover,
.event-link-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--sage);
    box-shadow: var(--shadow);
}

.event-link-title {
    font-size: 18px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 400;
}

.info-section {
    background: var(--pearl);
    padding-top: 42px;
    padding-bottom: 42px;
}

.info-panel {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 34px clamp(22px, 4vw, 44px);
    border: 1px solid rgba(37, 91, 79, 0.08);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--soft-shadow);
}

.info-copy {
    color: var(--green-dark);
    font-size: 18px;
    line-height: 1.8;
}

.info-copy p {
    margin: 0 0 18px;
}

.info-copy p:last-child {
    margin-bottom: 0;
}

.narrow {
    max-width: 760px;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 28px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 0;
}

.category-list,
.social-links,
.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-pill,
.social-links a,
.admin-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 8px;
    background: rgba(207, 238, 226, .76);
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 800;
    border: 1px solid var(--border);
}

.category-pill:hover,
.social-links a:hover,
.admin-menu a:hover {
    background: var(--white);
    border-color: var(--sage);
}

.category-pill.active {
    background: var(--green);
    color: white;
}

.category-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.category-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 96px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--green-dark);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 400;
    box-shadow: var(--soft-shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.category-preview:hover,
.category-preview:focus-visible,
.category-preview.active {
    transform: translateY(-2px);
    border-color: var(--sage);
    box-shadow: var(--shadow);
}

.category-preview img,
.category-preview-placeholder {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border-radius: 8px;
}

.category-preview img {
    object-fit: cover;
}

.category-preview-placeholder {
    display: grid;
    place-items: center;
    padding: 8px;
    background: var(--mint-light);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
    margin: 0 auto;
}

.featured-grid .portfolio-card img,
.featured-grid .image-placeholder {
    aspect-ratio: 1 / 1;
}

.portfolio-card {
    overflow: hidden;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.image-link {
    display: block;
}

.portfolio-card img,
.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

.image-placeholder {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(207, 238, 226, .85), rgba(216, 181, 223, .45)),
        repeating-linear-gradient(45deg, transparent 0 16px, rgba(255,255,255,.28) 16px 17px);
    color: var(--green-dark);
    font-weight: 800;
}

.portfolio-card-body {
    padding: 24px;
}

.category-name {
    color: var(--green);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 800;
}

.portfolio-card-body p {
    color: var(--muted);
    line-height: 1.55;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card-footer a {
    font-weight: 800;
    text-decoration: none;
}

.empty-state {
    padding: 34px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.contact-section {
    background: var(--mint-light);
}

.social-title {
    margin: 0 0 10px;
    font-size: 22px;
    text-align: center;
}

.contact-choice-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin: 0 auto 22px;
    padding: 15px 24px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: var(--white);
    font-family: "Eurostile", "Bank Gothic", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(19px, 2.85vw, 27px);
    font-weight: 500;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(37, 91, 79, .22);
}

.contact-choice-button:hover,
.contact-choice-button:focus-visible {
    background: var(--green-dark);
}

.contact-section .social-links {
    justify-content: center;
    gap: 8px;
}

.contact-section .social-links a {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, .58);
}

.contact-choice-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(18, 57, 49, .58);
}

.contact-choice-modal[hidden] {
    display: none;
}

.contact-choice-panel {
    position: relative;
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 24px 70px rgba(18, 57, 49, .24);
}

.contact-choice-panel h3 {
    margin-bottom: 18px;
    font-size: 24px;
}

.contact-choice-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--mint-light);
    color: var(--green-dark);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.contact-choice-actions {
    display: grid;
    gap: 10px;
}

.contact-choice-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
}

.contact-choice-actions a:hover,
.contact-choice-actions a:focus-visible {
    background: var(--green-dark);
}

.details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 42px;
    align-items: start;
}

.details-cover {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.details-info {
    position: sticky;
    top: 100px;
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--border);
}

.details-info h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.price {
    font-size: 34px;
    color: var(--green);
    font-weight: 900;
    margin-top: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    text-decoration: none;
    font-weight: 800;
}

.gallery-title {
    margin-top: 56px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-preview {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-preview img {
    display: block;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-preview:hover img,
.gallery-preview:focus-visible img {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(18, 57, 49, .78);
}

.image-lightbox.open {
    display: flex;
}

.lightbox-open {
    overflow: hidden;
}

.image-lightbox-img {
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

.image-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--green-dark);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
    background: white;
}

.auth-section {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
}

.form-card {
    display: grid;
    gap: 12px;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--border);
}

.form-logo {
    width: 100px;
    margin: 0 auto 10px;
}

input,
textarea,
select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid #cbded7;
    font: inherit;
    color: var(--text);
    background: white;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
}

.checkbox input {
    width: auto;
}

.validation {
    color: #9d2a2a;
    font-size: 14px;
}

.admin-hero {
    padding: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--white), var(--mint-light));
    box-shadow: var(--soft-shadow);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.stats div {
    padding: 26px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.stats strong {
    display: block;
    font-size: 42px;
    color: var(--green);
}

.stats span {
    color: var(--muted);
    font-weight: 700;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.admin-table th,
.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: var(--mint-light);
    color: var(--green-dark);
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.actions a {
    font-weight: 800;
    text-decoration: none;
}

.thumb {
    width: 78px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

.preview-image {
    max-width: 220px;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.existing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.existing-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 28px 7%;
    background: var(--green-dark);
    color: white;
}

@media (max-width: 760px) {
    .site-header,
    .admin-header,
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        gap: 10px;
        width: 100%;
    }

    nav a {
        font-size: 15px;
    }

    .info-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .info-panel {
        padding: 24px 18px;
    }

    .info-copy {
        font-size: 16px;
        line-height: 1.7;
    }

    .hero {
        min-height: auto;
        padding: 22px 9px 10px;
        place-items: start center;
    }

    .hero-card {
        width: 100%;
        padding: 18px 0;
    }

    .hero-logo-bar {
        width: calc(100vw - 12px);
        padding: 4px 6px;
        margin-bottom: 18px;
    }

    .hero-logo {
        width: 100%;
        max-width: 94%;
    }

    .hero h1 {
        font-size: clamp(34px, 11vw, 46px);
        line-height: 1.02;
    }

    .hero-text {
        max-width: 92vw;
        font-size: 19px;
    }

    .section {
        padding: 52px 7%;
    }

    #categorias.section {
        padding-top: 6px;
    }

    .event-link-section {
        padding-top: 8px;
    }

    .event-link-card {
        min-height: 78px;
        padding: 18px;
    }

    .event-link-title {
        font-size: 16px;
        text-align: center;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-info {
        position: static;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }
}


.admin-panel {
    margin-top: 34px;
    padding: 28px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    border: 1px solid var(--border);
}
