/* ===================== RESET & BASE ===================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Quicksand", sans-serif;
}

:root {
    --cream: #f5f0e8;
    --warm: #ede5d4;
    --card-bg: #fdfaf5;
    --radius: 14px;
    --shadow: 0 2px 16px rgba(60, 40, 10, 0.09);
    --shadow-h: 0 6px 32px rgba(60, 40, 10, 0.16);
    --primary: #F7921E;
    --primary-dark: #e07d0e;
    --primary-light: #ffb05c;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--cream);
    color: var(--dark);
    min-height: 100vh;
}

/* ===================== HEADER ===================== */
header {
    background: #252525;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--gold);
}

.logo {
    height: 100%;
    font-size: 1.25rem;
    color: var(--gold);
    letter-spacing: 0.02em;
}
.logo img{
    width: auto;
    height: 100%;
}
/* ===================== NAV TABS ===================== */
nav {
    display: flex;
    gap: 4px;
}

.tab-btn {
    padding: 8px 22px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}

.tab-btn:hover {
    color: #ffffff;
    border-color: var(--info);
}

.tab-btn.active {
    background: var(--info);
    color: #ebebeb;
    border-color: var(--info);
}

/* ===================== HERO ===================== */
.hero {
    width: 100%;
    height: 70vh;
    background-image: url(assets/images/hero-bg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    padding: 3rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 20px;
}


.hero h1 {
    font-size: clamp(3.8rem, 4vw, 4rem);
    color: var(--success);
    line-height: 1.15;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    color: var(--info);
    font-size: 1.05rem;
    font-weight: 700;
    max-width: 500px;
    margin: 0;
    line-height: 1.6;
}

/* ===================== SEARCH ===================== */
.search-wrap {
    max-width: 520px;
    margin: 0;
    position: relative;
}

.search-wrap input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 3.5px solid  var(--success);;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color:  var(--success);
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    outline: none;
    transition:
        border-color 0.2s,
        background 0.2s;
    backdrop-filter: blur(4px);
}

.search-wrap input::placeholder {
    color:  var(--success);
}

.search-wrap input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.09);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color:  var(--success);
    font-size: 1.1rem;
    pointer-events: none;
}

/* ===================== MAIN CONTENT ===================== */
main {
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    color: var(--mid);
}

.count-badge {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
}

/* ===================== GRID & CARDS ===================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.25s,
        transform 0.25s;
    border: 1px solid rgba(122, 92, 58, 0.1);
    animation: fadeUp 0.35s ease both;
}

.card:hover {
    box-shadow: var(--shadow-h);
    transform: translateY(-3px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Imagen */
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: var(--warm);
}

.card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--warm) 0%, #ddd4c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--muted);
    opacity: 0.5;
}

/* Body */
.card-body {
    padding: 1.25rem 1.25rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-title {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.card-text {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 300;
    flex: 1;
}

.card-ubicacion {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--brown);
    font-weight: 500;
}

/* Footer de la tarjeta */
.card-footer {
    padding: 0.75rem 1.25rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(122, 92, 58, 0.08);
    margin-top: auto;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--info);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition:
        background 0.2s,
        transform 0.15s;
}

.card-link:hover {
    background: #10b98100;
    color: var(--info);
    transform: scale(1.03);
}

.card-link.secondary {
    background: var(--success);
    color: #ffffff;
}

.card-link.secondary:hover {
    background: var(--brown);
    color: var(--success);
}

/* ===================== ESTADO VACÍO / ERROR ===================== */
.empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.empty h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    color: var(--mid);
    margin-bottom: 0.5rem;
}

.empty p {
    font-size: 0.9rem;
}

.loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem;
    color: var(--muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--warm);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-msg {
    grid-column: 1/-1;
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    border-radius: var(--radius);
    padding: 1.5rem;
    color: #8b2222;
    font-size: 0.9rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 640px) {
    header {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .tab-btn {
        padding: 7px 14px;
        font-size: 0.82rem;
    }

    .hero {
        padding: 2rem 1rem 3rem;
    }

    main {
        padding: 1.5rem 1rem 3rem;
    }
}
.card-ubicacion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 12px;
  background: var(--warm);
  color: var(--mid);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.card-ubicacion-btn:hover {
  background: var(--brown);
  color: var(--cream);
  transform: scale(1.03);
}