:root {
    --color-primary: #1a4b8c;      /* azul principal */
    --color-primary-dark: #123564; /* azul más oscuro */
    --color-secondary: #f2a900;    /* dorado/amarillo */
    --color-secondary-soft: #fff4d6;
    --color-text: #333333;
    --color-text-soft: #666666;
    --color-light: #f7f9fc;
    --color-white: #ffffff;
    --color-border: #d9e1ea;
    --color-card-shadow: rgba(26, 75, 140, 0.08);
    --color-card-shadow-hover: rgba(26, 75, 140, 0.16);
    --radius: 10px;
    --radius-sm: 6px;
    --spacing: 20px;
    --max-width: 1100px;
}

/* =========================
   RESET BÁSICO
========================= */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-text);
    background: var(--color-light);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s 
ease;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   HEADER
========================= */
#site-header {
    background: linear-gradient(180deg, var(--color-primary) 0%, 
var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 24px 0 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.header-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.branding {
    min-width: 0;
}

.site-title {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.1;
}

.site-title a {
    color: var(--color-white);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--color-secondary);
}

.tagline {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* =========================
   NAVEGACIÓN PRINCIPAL
========================= */
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--color-white);
    font-weight: bold;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.main-nav a:hover {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    border-color: var(--color-secondary);
}

/* =========================
   BUSCADOR HEADER
========================= */
.header-search form {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.header-search input[type="search"] {
    width: 100%;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    outline: none;
}

.header-search button {
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    font-weight: bold;
    cursor: pointer;
}

.header-search button:hover {
    background: #ffd163;
}

/* =========================
   BREADCRUMBS
========================= */
.breadcrumbs {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.breadcrumbs .container {
    padding-top: 12px;
    padding-bottom: 12px;
}

.breadcrumb,
.breadcrumbs {
    font-size: 0.95rem;
    color: var(--color-text-soft);
}

.breadcrumb a {
    color: var(--color-primary);
}

/* =========================
   CONTENIDO
========================= */
#main-content {
    padding: 24px 0 40px;
}

h1, h2, h3, h4 {
    color: var(--color-primary-dark);
    margin-top: 0;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.35rem;
    margin-top: 28px;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-secondary);
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

p {
    margin-top: 0;
    margin-bottom: 14px;
}

/* =========================
   LISTAS / ENLACES DE DIRECTORIO
========================= */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    margin: 0 0 10px 0;
}

/* Todas las listas típicas del directorio */
ul li a {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 14px;
    box-shadow: 0 2px 6px var(--color-card-shadow);
    font-weight: 600;
}

ul li a:hover {
    background: var(--color-secondary-soft);
    border-color: var(--color-secondary);
    box-shadow: 0 6px 14px var(--color-card-shadow-hover);
    transform: translateY(-1px);
}

/* =========================
   SECCIONES HOME
========================= */
.home-search,
.home-explore,
.home-popular,
.home-directory {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 2px 6px var(--color-card-shadow);
}

.home-search form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-search input[type="search"] {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
}

.home-search button {
    padding: 12px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: bold;
    cursor: pointer;
}

.home-search button:hover {
    background: var(--color-primary-dark);
}

.explore-grid,
.directory-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.explore-item,
.directory-column {
    background: #fcfdff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
}

.explore-item h3,
.directory-column h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* =========================
   PÁGINAS DE DETALLE
========================= */
.site-meta,
.city-meta {
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

.detail-box {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 2px 6px var(--color-card-shadow);
    margin-bottom: 20px;
}

/* =========================
   FOOTER
========================= */
#site-footer {
    margin-top: 40px;
    background: #202833;
    color: #d7dde5;
    padding: 28px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-block h4 {
    margin-top: 0;
    color: var(--color-white);
}

.footer-block ul {
    padding: 0;
    margin: 0;
}

.footer-block li {
    margin-bottom: 8px;
}

.footer-block a {
    color: #d7dde5;
}

.footer-block a:hover {
    color: var(--color-secondary);
}

.footer-meta {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    color: #bfc7d0;
}

/* =========================
   UTILIDADES
========================= */
.text-muted {
    color: var(--color-text-soft);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-search form {
        justify-content: center;
    }

    .explore-grid,
    .directory-columns,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }

    .site-title {
        font-size: 1.55rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .main-nav ul {
        justify-content: center;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
    }

    .header-search form,
    .home-search form {
        flex-direction: column;
    }

    .header-search input[type="search"],
    .home-search input[type="search"],
    .header-search button,
    .home-search button {
        width: 100%;
    }
}
/* =========================
   GRID CARDS
========================= */

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

.card {
    display: block;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--color-card-shadow);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--color-card-shadow-hover);
    border-color: var(--color-secondary);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    font-size: 1rem;
    margin: 0 0 6px;
    color: var(--color-primary);
}

/* =========================
   INFO GRID
========================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-box {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.info-box h3 {
    margin-top: 0;
}

/* =========================
   HERO
========================= */

.home-search h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.home-search p {
    margin-bottom: 15px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CARD CON IMAGEN
========================= */

.card-image {
    overflow: hidden;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    border-radius: 10px 10px 0 0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* =========================
   BADGE
========================= */

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 999px;
}

/* =========================
   CARD BODY
========================= */

.card-body h3 {
    font-size: 1.1rem;
}

.card-body p {
    margin: 0;
    font-size: 0.9rem;
}

/* =========================
   HERO / PORTADA
========================= */

.home-hero {
    background: linear-gradient(135deg, rgba(26,75,140,0.08) 0%, rgba(242,169,0,0.12) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 24px;
}

.hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.hero-content p {
    max-width: 720px;
    margin-bottom: 18px;
}

.hero-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-search-form input[type="search"] {
    flex: 1;
    min-width: 260px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-white);
    outline: none;
}

.hero-search-form button {
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: bold;
    cursor: pointer;
}

.hero-search-form button:hover {
    background: var(--color-primary-dark);
}

/* =========================
   SECTION HEADERS
========================= */

.section-header {
    margin-bottom: 14px;
}

.section-header h2 {
    margin-bottom: 6px;
}

/* =========================
   CARD GRID
========================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

/* =========================
   CARD BASE
========================= */

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

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--color-card-shadow-hover);
    border-color: var(--color-secondary);
    text-decoration: none;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 6px;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.card-body p {
    margin: 0;
    font-size: 0.92rem;
}

/* =========================
   CARD PREMIUM (imagen + overlay)
========================= */

.card-premium {
    position: relative;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.60) 0%,
        rgba(0, 0, 0, 0.15) 45%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.overlay-text {
    margin-top: auto;
}

.overlay-text h3 {
    margin: 0;
    color: var(--color-white);
    font-size: 1.15rem;
    line-height: 1.2;
}

.overlay-text p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
}

/* =========================
   BADGES
========================= */

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    width: fit-content;
}

.badge-yellow {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
}

.badge-blue {
    background: rgba(255,255,255,0.92);
    color: var(--color-primary-dark);
}

/* =========================
   CARD SIMPLE / ACCENT
========================= */

.card-simple .card-body {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-accent {
    border-top: 4px solid var(--color-secondary);
}

/* =========================
   INFO GRID
========================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-box {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px var(--color-card-shadow);
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.info-box p {
    margin: 0;
    color: var(--color-text-soft);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 24px 18px;
    }

    .card-image-wrapper {
        height: 150px;
    }

    .hero-search-form {
        flex-direction: column;
    }

    .hero-search-form input[type="search"],
    .hero-search-form button {
        width: 100%;
    }
}
/* =========================
   CITY HERO
========================= */

.city-hero {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
}


@media (max-width: 768px) {
    .city-hero {
        height: 160px;
    }
}


/* =========================
   CITY SECTIONS
========================= */

.city-section {
    margin: 30px 0;
    height: 280px;
    overflow: hidden;
    margin-bottom: 10px;
}


/* contenedor ocupa TODO */
.city-hero-image {
    width: 100%;
    height: 100%;
}


.city-hero-image img {
    filter: brightness(0.85);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.city-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.05));
}

.city-hero-overlay h1 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}


.city-hero-overlay p {
    font-size: 0.9rem;
    margin: 5px 0 0;
    color: rgba(255,255,255,0.9);
}


.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    width: fit-content;
}

.badge-yellow {
    background: #f2a900;
    color: #123564;
}

.badge-blue {
    background: #dbeafe;
    color: #1a4b8c;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-gray {
    background: #e5e7eb;
    color: #374151;
}
