:root {
    --text-strong: rgb(15 23 42);
    --text-body: rgb(51 65 85);
    --text-soft: rgb(100 116 139);
}

html,
body {
    font-family: "Inter", "Plus Jakarta Sans", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: "Outfit", "Inter", sans-serif;
    letter-spacing: -0.02em;
    color: inherit;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 1.6rem + 1.2vw, 3.4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.55rem, 1.3rem + 0.7vw, 2.1rem);
    font-weight: 650;
}

h3 {
    font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.35rem);
    font-weight: 600;
}

/* Normalize Tailwind heading scale across the whole app (public + private) */
.text-4xl {
    font-size: clamp(2rem, 1.7rem + 1.05vw, 3rem) !important;
    line-height: 1.12 !important;
}

.text-3xl {
    font-size: clamp(1.72rem, 1.5rem + 0.72vw, 2.35rem) !important;
    line-height: 1.18 !important;
}

.text-2xl {
    font-size: clamp(1.38rem, 1.24rem + 0.48vw, 1.85rem) !important;
    line-height: 1.24 !important;
}

.text-xl {
    font-size: clamp(1.18rem, 1.1rem + 0.24vw, 1.38rem) !important;
    line-height: 1.3 !important;
}

.text-lg {
    font-size: clamp(1.04rem, 1.01rem + 0.14vw, 1.14rem) !important;
    line-height: 1.55 !important;
}

.text-base {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
}

.text-sm {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.tracking-tight {
    letter-spacing: -0.01em !important;
}

p,
li,
small,
label,
input,
select,
textarea,
button,
a {
    letter-spacing: 0;
}

strong {
    color: var(--text-strong);
}

.text-white strong,
.text-white\/95 strong {
    color: inherit;
}

.font-black {
    font-weight: 650 !important;
}

.font-bold {
    font-weight: 600 !important;
}

.nav-link {
    color: rgb(30 41 59);
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover {
    color: rgb(4 120 87);
}

.account-link {
    display: block;
    padding: 0.875rem 1.25rem;
    color: rgb(30 41 59);
    font-weight: 500;
}

.account-link:hover {
    background: rgb(245 245 244);
    color: rgb(4 120 87);
}

.hero-gradient {
    background:
        radial-gradient(circle at 50% 0%, rgba(4, 120, 87, 0.35), transparent 30rem),
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1), transparent 20rem),
        linear-gradient(180deg, #0b0f19 0%, #0f172a 100%);
}

.commerce-card-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #064e3b, #0f172a);
}

.leaflet-container {
    font: inherit;
}

.form-field {
    display: grid;
    gap: 0.55rem;
    font-weight: 600;
    color: var(--text-strong);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgb(214 226 220);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.95rem 1rem;
    font-weight: 450;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgb(5 150 105);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form-field small {
    color: var(--text-soft);
    font-weight: 450;
}

.role-card {
    cursor: pointer;
    border: 2px solid rgb(214 226 220);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    color: rgb(16 52 43);
}

.role-card.is-active {
    border-color: rgb(245 181 0);
    background: rgb(255 248 220);
}

.admin-stat {
    display: grid;
    gap: 0.35rem;
    border: 1px solid rgb(229 229 229);
    border-radius: 0.9rem;
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-stat span {
    color: rgb(100 116 139);
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-stat strong {
    color: var(--text-strong);
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 0.65rem;
    padding: 0.75rem 0.85rem;
    color: rgb(71 85 105);
    font-weight: 550;
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
    background: rgb(232 246 239);
    color: rgb(4 120 87);
}

.admin-nav-link strong {
    min-width: 1.5rem;
    border-radius: 999px;
    background: rgb(14 165 233);
    padding: 0.12rem 0.45rem;
    color: white;
    font-size: 0.75rem;
    text-align: center;
}

.admin-action,
.admin-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    border: 1px solid rgb(229 229 229);
    border-radius: 0.55rem;
    background: #fff;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-action:hover {
    border-color: rgb(5 150 105);
}

.admin-delete {
    border-color: transparent;
    color: rgb(220 38 38);
}

/* --- Dark Navigation (Portal-style) --- */
.nav-dark {
    color: rgb(212 212 212);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s;
}

.nav-dark:hover {
    background-color: #047857;
    color: #ffffff;
}

.account-link-dark {
    display: block;
    padding: 0.875rem 1.25rem;
    color: rgb(212 212 212);
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s;
}

.account-link-dark:hover {
    background: rgb(64 64 64);
    color: #ffffff;
}

.mobile-nav-link {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    color: rgb(212 212 212);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.mobile-nav-link:hover {
    background-color: rgb(64 64 64);
    color: #ffffff;
}

/* Desktop dropdown hover behavior */
[data-desktop-dropdown]:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

[data-desktop-dropdown]:hover .dropdown-chevron {
    transform: rotate(180deg);
}

/* Mobile accordion */
.mobile-accordion-content {
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.mobile-accordion-content.is-open {
    display: block;
}

.mobile-accordion-trigger .chevron.is-open {
    transform: rotate(180deg);
}

/* Search bar animation */
#search-bar {
    transition: opacity 0.15s ease;
}

#search-bar:not(.hidden) {
    opacity: 1;
}

/* --- Unificación Física de Tarjetas Lomas (v1.79.0) --- */
.commerce-card-image {
    aspect-ratio: 16 / 9 !important;
    overflow: hidden;
    position: relative;
}

.commerce-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

a:hover .commerce-card-image img {
    transform: scale(1.04);
}

.lomas-badge-floating {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 10 !important;
    background: rgba(4, 120, 87, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    font-family: "Outfit", sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18) !important;
}

.lomas-badge-floating.badge-amber {
    background: rgba(245, 158, 11, 0.95) !important;
    color: #0f172a !important;
}

.lomas-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.lomas-section-accent-bar {
    width: 4px !important;
    height: 22px !important;
    background-color: #047857 !important;
    border-radius: 2px !important;
    display: inline-block !important;
}

