:root {
    color-scheme: light;
    --bg: #052e16;
    --bg-soft: #064e3b;
    --card: #064e3b;
    --card-border: #166534;
    --text: #ecfdf5;
    --muted: #a7c7b5;
    --accent: #6ee7b7;
    --accent-2: #16a34a;
    --shadow: 0 20px 40px rgba(2, 44, 24, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #166534, var(--bg));
    color: var(--text);
    font-family: "Josefin Sans", "Segoe UI", Tahoma, sans-serif;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.logo,
h1,
h2,
h3,
.cta,
.admin-form button,
.nav-btn {
    font-family: "Josefin Sans", "Segoe UI", sans-serif;
    font-weight: 700;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5, 46, 22, 0.9);
    border-bottom: 1px solid rgba(167, 199, 181, 0.2);
    backdrop-filter: blur(12px);
}

header .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 70px;
    padding: 10px 24px;
}

.logo { position: relative; display: inline-flex; align-items: center; min-height: 50px; padding-left: 140px; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.02em; }
.logo img { position: absolute; z-index: 1; top: 50%; left: 0; display: block; width: 110px; height: 110px; transform: translateY(-20%); }
nav > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; list-style: none; font-size: 0.95rem; }
nav a, .nav-btn { display: block; padding: 8px 12px; border-radius: 999px; }
nav a { transition: background 0.3s ease, color 0.3s ease; }
nav a:hover, .nav-btn:hover { background: rgba(110, 231, 183, 0.18); color: var(--accent); }
.menu-toggle { display: none; }
.inline-form { display: inline; }
.nav-btn { border: 0; background: rgba(110, 231, 183, 0.12); color: var(--text); cursor: pointer; font-size: 0.95rem; }

main { max-width: 1100px; margin: 0 auto; padding: 20px 24px 60px; }

.carousel {
    position: relative;
    width: 100vw;
    height: min(78vh, 720px);
    margin: -20px 0 0 calc(50% - 50vw);
    overflow: hidden;
    border-bottom: 1px solid rgba(167, 199, 181, 0.2);
}
.carousel-track { display: flex; width: 400%; height: 100%; animation: slide 24s infinite; }
.carousel-slide { flex: 1 0 100%; background-size: cover; background-position: center; filter: saturate(1.15) contrast(1.04); }
.carousel-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.carousel-video { z-index: 1; object-fit: cover; filter: saturate(1.1) contrast(1.04); }
.carousel-video-status { position: absolute; z-index: 3; right: 24px; bottom: 24px; left: 24px; display: none; color: var(--text); text-align: center; }
.carousel--video.is-video-unavailable .carousel-video-status { display: block; }
.carousel-slide--mountains { background-position: center 58%; }
.carousel-slide--coast { background-position: center 52%; }
.carousel-slide--city { background-position: center 60%; }
.carousel-slide--valley { background-position: center 56%; }
.carousel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(5, 46, 22, 0.92), rgba(5, 46, 22, 0.32)); }
.carousel-overlay { position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; gap: 16px; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.carousel-overlay h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.carousel-overlay p, .hero p { color: var(--muted); max-width: 640px; font-size: 1.05rem; }

@media (min-width: 480px) {
    .carousel-overlay .eyebrow { white-space: nowrap; }
}

.eyebrow { color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hero { display: grid; gap: 18px; max-width: 1100px; margin: 0 auto; padding: 60px 24px 30px; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
.hero h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.page-hero { position: relative; display: grid; width: 100vw; min-height: min(68vh, 640px); margin: -20px 0 0 calc(50% - 50vw); background-position: center; background-size: cover; }
.page-hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(105deg, rgba(4, 20, 17, 0.88), rgba(4, 20, 17, 0.26)); }
.page-hero__content { position: relative; z-index: 1; display: grid; align-content: center; gap: 18px; width: min(1100px, 100%); margin: 0 auto; padding: 80px 24px; }
.page-hero__content h1 { max-width: 800px; font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 0.96; }
.page-hero__content > p:last-child { max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.services-page { max-width: 1100px; margin: 0 auto; padding: 72px 24px 64px; }
.services-page .custom-quote { margin-top: 34px; }
.page-section-intro { max-width: 1100px; margin: 0 auto; padding: 72px 24px 34px; }
.page-section-intro > p { max-width: 700px; margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.services-intro { margin-top: 48px; padding-top: 48px; border-top: 1px solid rgba(167, 199, 181, 0.2); }
.about-project {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
    margin: 14px 0 34px;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: rgba(6, 78, 59, 0.42);
    padding: 32px;
}
.about-project h2 { margin-top: 8px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; }
.about-project__content { align-self: center; }
.about-project__text { display: grid; gap: 16px; color: var(--muted); font-size: 1.08rem; text-align: justify; }
.about-project__visual { display: grid; grid-template-rows: 1fr auto; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(167, 199, 181, 0.25); border-radius: 14px; background: var(--bg); }
.about-project__visual img { display: block; width: 100%; min-height: 0; height: 100%; object-fit: cover; }
.about-project__visual figcaption { padding: 12px 14px; color: var(--muted); font-size: 0.88rem; font-style: italic; }
.cta, .admin-form button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #052e16;
    padding: 12px 22px;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-weight: 700;
}

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.admin-card, .contact-form {
    display: grid;
    gap: 12px;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.9), rgba(5, 46, 22, 0.95));
    padding: 22px;
    box-shadow: var(--shadow);
}
.service-card { min-height: 300px; perspective: 1200px; outline: none; }
.service-card__inner { position: relative; width: 100%; height: 100%; min-height: 300px; transform-style: preserve-3d; transition: transform 0.7s ease; }
.service-card:hover .service-card__inner, .service-card:focus .service-card__inner { transform: rotateY(180deg); }
.service-card__face {
    position: absolute;
    inset: 0;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    backface-visibility: hidden;
    box-shadow: var(--shadow);
}
.service-card__face--front { grid-template-rows: minmax(0, 1fr) 104px; align-content: stretch; background: #022c22; }
.service-card__face--front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 44, 24, 0.92), rgba(2, 44, 24, 0.05) 65%); }
.service-card__face--front img { grid-area: 1 / 1; width: 100%; min-height: 0; height: 100%; object-fit: cover; }
.service-card__face--front h3 { grid-area: 2 / 1; position: relative; z-index: 1; display: flex; align-items: center; min-height: 0; margin: 0; padding: 22px; font-size: 1.45rem; }
.service-card__face--back { align-content: center; gap: 16px; background: linear-gradient(135deg, rgba(6, 78, 59, 0.98), rgba(5, 46, 22, 0.98)); padding: 28px; transform: rotateY(180deg); }
.service-card__face--back h3 { font-size: 1.35rem; color: var(--accent); }
.service-card__face--back p, .admin-card > p { color: var(--muted); }
.custom-quote { max-width: 720px; margin: 24px auto 0; color: var(--muted); text-align: center; }
.custom-quote strong { color: var(--accent); }
.custom-quote a strong { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 0.2s ease; }
.custom-quote a:hover strong, .custom-quote a:focus-visible strong { text-decoration-color: currentColor; }

.portfolio { margin-top: 64px; scroll-margin-top: 100px; }
.portfolio__action { display: flex; justify-content: center; margin-top: 28px; }
.section-heading { display: grid; gap: 8px; margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.media-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.media-card { overflow: hidden; border: 1px solid var(--card-border); border-radius: 18px; background: rgba(5, 46, 22, 0.75); box-shadow: var(--shadow); }
.media-card img, .media-card video { display: block; width: 100%; aspect-ratio: 4 / 3; background: #022c22; object-fit: cover; }
.media-card figcaption { display: grid; gap: 3px; padding: 14px 16px; }
.media-card figcaption span { color: var(--muted); font-size: 0.88rem; }

.contact { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; max-width: 1100px; margin: 0 auto 60px; padding: 0 24px; }
.form-row { display: grid; gap: 8px; }
.form-row label { color: var(--muted); font-size: 0.9rem; }
.form-row input, .form-row select, .form-row textarea {
    border: 1px solid rgba(167, 199, 181, 0.25);
    border-radius: 10px;
    background: rgba(5, 46, 22, 0.7);
    color: var(--text);
    padding: 12px 14px;
    font-size: 0.95rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.2); }
.contact-info { display: grid; gap: 10px; height: fit-content; border: 1px solid var(--card-border); border-radius: 18px; background: rgba(5, 46, 22, 0.7); padding: 24px; }
.contact-alert, .admin-alert { border-radius: 10px; padding: 12px 14px; }
.contact-alert--success { border: 1px solid rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.12); color: #bbf7d0; }
.contact-alert--error, .admin-alert { border: 1px solid rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.12); color: #fecaca; }
.contact-alert ul { margin: 8px 0 0 20px; }

.admin-auth, .admin-panel { display: grid; gap: 20px; padding-top: 24px; }
.admin-auth { justify-items: center; }
.admin-card { width: 100%; gap: 14px; padding: 24px; }
.admin-auth .admin-card { max-width: 480px; }
.admin-page header { z-index: 100; background: #052e16; }
.admin-page header .top-bar { position: relative; z-index: 101; max-width: none; min-height: 90px; margin: 0; padding: 0 24px 0 0; }
.admin-page .logo { padding-left: 112px; }
.admin-page .logo img { top: 50%; width: 80px; height: 80px; transform: translateY(-50%); }
.admin-page header nav { display: none; }
.admin-page .menu-toggle { display: none; }
.admin-page { overflow-x: hidden; }
.admin-page main { max-width: none; margin: 0; padding: 0; }
.admin-workspace { min-height: calc(100vh - 90px); }
.admin-sidebar { position: fixed; z-index: 90; top: 90px; bottom: 0; left: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; width: 260px; border: 0; border-right: 1px solid var(--card-border); border-radius: 0; background: rgba(5, 46, 22, 0.96); padding: 26px 14px 20px; box-shadow: none; }
.admin-sidebar__brand { display: grid; gap: 4px; padding: 6px 10px; }
.admin-sidebar__brand strong { font-size: 1.2rem; }
.admin-sidebar__nav { display: grid; align-content: start; gap: 4px; }
.admin-sidebar__nav a { display: flex; align-items: center; justify-content: space-between; border-radius: 10px; color: var(--muted); padding: 11px 12px; transition: background 0.2s ease, color 0.2s ease; }
.admin-sidebar__nav a:hover, .admin-sidebar__nav a.is-active { background: rgba(110, 231, 183, 0.16); color: var(--accent); }
.admin-sidebar__nav span { min-width: 24px; border-radius: 999px; background: rgba(110, 231, 183, 0.18); color: var(--text); padding: 1px 7px; font-size: 0.78rem; text-align: center; }
.admin-logout-form { border-top: 1px solid rgba(167, 199, 181, 0.2); padding: 16px 10px 4px; }
.admin-logout-form button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; padding: 6px 0; }
.admin-logout-form button:hover { color: #fecaca; }
.admin-content { display: grid; gap: 20px; width: calc(100% - 260px); min-width: 0; margin-left: 260px; padding: 168px 40px 72px; }
.admin-content__header { position: fixed; z-index: 80; top: 106px; right: 40px; left: 300px; display: flex; align-items: end; justify-content: space-between; gap: 16px; border: 1px solid var(--card-border); border-radius: 18px; background: linear-gradient(135deg, #064e3b, #052e16); padding: 22px 24px; box-shadow: var(--shadow); }
.admin-content__header h1 { margin-top: 4px; font-size: clamp(2rem, 4vw, 2.8rem); }
.admin-content__header > p { color: var(--muted); font-size: 0.9rem; }
.admin-page footer { position: fixed; z-index: 80; right: 0; bottom: 0; left: 260px; background: #052e16; padding: 10px 24px; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-summary-card { display: grid; gap: 4px; border: 1px solid var(--card-border); border-radius: 16px; background: linear-gradient(135deg, rgba(6, 78, 59, 0.82), rgba(5, 46, 22, 0.95)); padding: 20px; box-shadow: var(--shadow); transition: transform 0.2s ease, border-color 0.2s ease; }
.admin-summary-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.admin-summary-card span, .admin-summary-card small { color: var(--muted); }
.admin-summary-card strong { color: var(--accent); font-size: 2rem; line-height: 1.1; }
.admin-welcome { min-height: 220px; align-content: center; }
.admin-secondary-action { display: inline-flex; align-items: center; border: 1px solid rgba(110, 231, 183, 0.45); border-radius: 999px; color: var(--accent); padding: 11px 18px; }
.admin-form { display: grid; gap: 14px; }
.admin-actions { display: flex; gap: 12px; }
.drive-frame { position: relative; height: min(70vh, 640px); overflow: hidden; border: 1px solid rgba(167, 199, 181, 0.25); border-radius: 14px; }
.drive-frame iframe { width: 100%; height: 100%; border: 0; }
.admin-media-list { display: grid; gap: 10px; }
.admin-media-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(167, 199, 181, 0.25); border-radius: 10px; color: var(--muted); padding: 12px 14px; }
.delete-btn { border: 1px solid rgba(248, 113, 113, 0.6); border-radius: 8px; background: rgba(248, 113, 113, 0.12); color: #fecaca; padding: 7px 10px; cursor: pointer; }
.admin-table-wrap { overflow-x: auto; }
.contact-requests-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.contact-requests-table th, .contact-requests-table td { border-bottom: 1px solid rgba(167, 199, 181, 0.2); padding: 12px 10px; vertical-align: top; }
.contact-requests-table th { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-requests-table td { color: var(--muted); }
.contact-requests-table a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.contact-request-message { min-width: 260px; white-space: normal; }
.contact-reply { min-width: 220px; }
.contact-reply summary { color: var(--accent); cursor: pointer; font-weight: 700; }
.contact-reply .admin-form { margin-top: 12px; }
.contact-reply label { color: var(--muted); font-size: 0.85rem; }
.contact-reply__help { color: var(--muted); font-size: 0.8rem; }
.contact-reply textarea { width: 100%; border: 1px solid rgba(167, 199, 181, 0.25); border-radius: 10px; background: rgba(5, 46, 22, 0.7); color: var(--text); padding: 10px; font: inherit; resize: vertical; }
.contact-reply textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.2); }
.appearance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.appearance-grid--logo { grid-template-columns: minmax(160px, 0.45fr) 1fr; align-items: center; }
.appearance-logo-preview { display: block; width: min(180px, 100%); aspect-ratio: 1; object-fit: contain; justify-self: center; }
.appearance-item { display: grid; gap: 14px; border: 1px solid rgba(167, 199, 181, 0.25); border-radius: 10px; overflow: hidden; padding: 12px; }
.appearance-item > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.appearance-item .admin-form { gap: 10px; }
.works-hero { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; padding: 82px 24px 42px; text-align: center; }
.works-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; }
.works-hero > p:last-child { color: var(--muted); font-size: 1.08rem; }
.works-catalogue { max-width: 1100px; margin: 0 auto 64px; padding: 0 24px; }
.works-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.works-filters a { border: 1px solid rgba(167, 199, 181, 0.3); border-radius: 4px; color: var(--muted); padding: 9px 14px; font-size: 0.88rem; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.works-filters a:hover, .works-filters a.is-active { border-color: #d3ad6a; background: rgba(211, 173, 106, 0.14); color: #e3c48b; }
.works-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.works-empty { border: 1px solid rgba(211, 173, 106, 0.28); border-radius: 8px; background: rgba(10, 40, 34, 0.72); padding: 48px 24px; text-align: center; }
.works-empty p { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@keyframes slide {
    0%, 20% { transform: translateX(0%); }
    25%, 45% { transform: translateX(-100%); }
    50%, 70% { transform: translateX(-200%); }
    75%, 95% { transform: translateX(-300%); }
    100% { transform: translateX(0%); }
}

footer { border-top: 1px solid rgba(167, 199, 181, 0.18); color: var(--muted); padding: 24px; text-align: center; }

/* Acabado editorial para la web pública. El panel conserva su interfaz funcional. */
body:not(.admin-page) { background: #071b17; }
body:not(.admin-page) { font-family: "DM Sans", "Segoe UI", sans-serif; }
body:not(.admin-page) header { background: rgba(7, 27, 23, 0.96); border-bottom-color: rgba(211, 173, 106, 0.28); }
body:not(.admin-page) .logo { letter-spacing: 0.045em; }
body:not(.admin-page) h1,
body:not(.admin-page) h2,
body:not(.admin-page) h3 { font-family: "DM Sans", "Segoe UI", sans-serif; font-weight: 700; letter-spacing: -0.025em; }
body:not(.admin-page) .eyebrow { color: #d3ad6a; font-size: 0.72rem; letter-spacing: 0.18em; }
body:not(.admin-page) .carousel { border-bottom-color: rgba(211, 173, 106, 0.3); }
body:not(.admin-page) .carousel::after { z-index: 2; background: linear-gradient(112deg, rgba(4, 20, 17, 0.94), rgba(4, 20, 17, 0.36)); }
body:not(.admin-page) .carousel--video { background: #071b17; }
body:not(.admin-page) .carousel--video::after { background: linear-gradient(112deg, rgba(4, 20, 17, 0.84), rgba(4, 20, 17, 0.24)); }
body:not(.admin-page) .carousel-overlay h1 { max-width: 760px; font-size: clamp(2.8rem, 5vw, 4.35rem); line-height: 0.95; }
body:not(.admin-page) .hero { padding-top: 72px; }
body:not(.admin-page) .hero h2 { max-width: 780px; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; }
body:not(.admin-page) .services-intro { border-top-color: rgba(211, 173, 106, 0.25); }
body:not(.admin-page) .about-project { gap: 56px; border-color: rgba(211, 173, 106, 0.32); border-radius: 8px; background: linear-gradient(135deg, rgba(13, 48, 41, 0.74), rgba(5, 26, 22, 0.9)); padding: 40px; }
body:not(.admin-page) .about-project__visual { border-color: rgba(211, 173, 106, 0.35); border-radius: 6px; }
body:not(.admin-page) .cta { border-radius: 4px; background: #d3ad6a; box-shadow: none; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.2s ease, transform 0.2s ease; }
body:not(.admin-page) .cta:hover { background: #e3c48b; transform: translateY(-2px); }
body:not(.admin-page) .service-card__face { border-color: rgba(211, 173, 106, 0.3); border-radius: 8px; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24); }
body:not(.admin-page) .service-card__face--front::after { background: linear-gradient(to top, rgba(4, 24, 20, 0.95), rgba(4, 24, 20, 0.04) 72%); }
body:not(.admin-page) .service-card__face--front h3 { font-size: 1.85rem; line-height: 1; }
body:not(.admin-page) .service-card__face--back { background: linear-gradient(135deg, #103d34, #081f1a); }
body:not(.admin-page) .service-card__face--back h3 { color: #e3c48b; }
body:not(.admin-page) .service-card__inner { transition-duration: 0.55s; }
body:not(.admin-page) .media-card,
body:not(.admin-page) .contact-info,
body:not(.admin-page) .contact-form { border-color: rgba(211, 173, 106, 0.28); border-radius: 8px; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2); }
body:not(.admin-page) .contact-hero { justify-items: center; max-width: 760px; margin: 0 auto; padding-bottom: 34px; text-align: center; }
body:not(.admin-page) .contact-hero .eyebrow { text-align: center; }
body:not(.admin-page) .contact-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; }
body:not(.admin-page) .contact { align-items: stretch; }
body:not(.admin-page) .contact-form { gap: 18px; background: linear-gradient(135deg, rgba(13, 48, 41, 0.82), rgba(5, 26, 22, 0.96)); padding: 32px; }
body:not(.admin-page) .contact-form > .cta { margin-top: 8px; }
body:not(.admin-page) .contact-info { align-content: center; background: linear-gradient(145deg, rgba(10, 40, 34, 0.9), rgba(5, 26, 22, 0.96)); padding: 32px; }
body:not(.admin-page) .contact-info h3 { color: #e3c48b; font-size: 1.7rem; }
body:not(.admin-page) .contact-info p { border-bottom: 1px solid rgba(211, 173, 106, 0.16); padding: 10px 0; }
body:not(.admin-page) .contact-info p:last-child { border-bottom: 0; }
body:not(.admin-page) .media-card { background: #0a2822; }
body:not(.admin-page) .media-card figcaption { padding: 16px 18px; }
body:not(.admin-page) .section-heading { border-left: 2px solid #d3ad6a; padding-left: 16px; }
body:not(.admin-page) .form-row input,
body:not(.admin-page) .form-row select,
body:not(.admin-page) .form-row textarea { border-radius: 4px; }
body:not(.admin-page) .custom-quote { color: #c6d7ce; font-size: 1.08rem; }
body:not(.admin-page) .custom-quote strong { color: #e3c48b; }
body:not(.admin-page) .admin-secondary-action { border-color: rgba(211, 173, 106, 0.65); border-radius: 4px; color: #e3c48b; letter-spacing: 0.045em; text-transform: uppercase; }
body:not(.admin-page) footer { border-top-color: rgba(211, 173, 106, 0.24); }

/* La portada usa una barra de navegación flotante encima del vídeo. */
body.has-floating-header header {
    position: absolute;
    top: 18px;
    right: 0;
    left: 0;
    z-index: 10;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}
body.has-floating-header header .top-bar {
    max-width: 1440px;
    min-height: 60px;
    border: 1px solid rgba(211, 173, 106, 0.32);
    border-radius: 12px;
    background: rgba(7, 27, 23, 0.9);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}
body.has-floating-header .logo img { transform: translateY(-50%); }
body.has-floating-header nav a:hover { background: rgba(211, 173, 106, 0.16); color: #e3c48b; }

@media (max-width: 720px) {
    header .top-bar { position: relative; min-height: 76px; padding: 10px 20px; }
    .logo { min-height: 56px; padding-left: 86px; font-size: 1.05rem; }
    .logo img { width: 76px; height: 76px; transform: translateY(-50%); }
    .menu-toggle { display: inline-grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(211, 173, 106, 0.5); border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; }
    .menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 22px; height: 2px; border-radius: 999px; background: currentColor; transition: transform 0.2s ease; }
    .menu-toggle__icon { position: relative; }
    .menu-toggle__icon::before, .menu-toggle__icon::after { position: absolute; left: 0; content: ""; }
    .menu-toggle__icon::before { top: -7px; }
    .menu-toggle__icon::after { top: 7px; }
    .menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
    .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-7px) rotate(-45deg); }
    header nav { position: absolute; z-index: 20; top: calc(100% + 1px); right: 0; left: 0; display: none; border-bottom: 1px solid rgba(211, 173, 106, 0.28); background: rgba(7, 27, 23, 0.98); padding: 12px 20px 20px; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28); }
    header nav.is-open { display: block; }
    header nav > ul { display: grid; gap: 6px; }
    header nav a { padding: 12px; }
    .carousel { height: min(72svh, 620px); }
    .page-hero { min-height: min(64svh, 580px); }
    .page-hero__content { padding: 90px 24px 48px; }
    .services-page { padding: 52px 24px; }
    .page-section-intro { padding: 52px 24px 28px; }
    body.has-floating-header header { top: 10px; }
    body.has-floating-header header .top-bar { width: calc(100% - 24px); min-height: 66px; border-radius: 10px; padding: 8px 14px; }
    body.has-floating-header header nav { top: calc(100% + 8px); right: 12px; left: 12px; border: 1px solid rgba(211, 173, 106, 0.28); border-radius: 10px; }
    .contact { grid-template-columns: 1fr; }
    .about-project { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
    .media-gallery { grid-template-columns: 1fr; }
    .works-gallery { grid-template-columns: 1fr; }
    .appearance-grid, .appearance-grid--logo { grid-template-columns: 1fr; }
    .admin-media-item { flex-direction: column; align-items: flex-start; }
    .admin-page main { padding: 0; }
    .admin-workspace { min-height: 0; }
    .admin-sidebar { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--card-border); padding: 18px 24px; }
    .admin-sidebar__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-sidebar__nav a { font-size: 0.85rem; }
    .admin-logout-form { border-top: 0; padding-top: 0; }
    .admin-content { width: auto; margin-left: 0; padding: 24px; }
    .admin-content__header { position: static; }
    .admin-page footer { position: static; }
    .admin-content__header { align-items: start; flex-direction: column; }
    .admin-summary-grid { grid-template-columns: 1fr; }
}
