:root {
    --ttl-color-primary: #14b8a6;
    --ttl-color-primary-hover: #0d9488;
    --ttl-color-surface-main: #0f172a;
    --ttl-color-surface-card: #1e293b;
    --ttl-color-border: #334155;
    --ttl-color-text-base: #f1f5f9;
    --ttl-color-text-muted: #d0d9e7;
}

/* --- Reset y Base --- */
body, html { margin: 0; padding: 0; box-sizing: border-box; }
h1, h2, h3, p { margin: 0; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--ttl-color-surface-main);
    color: var(--ttl-color-text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after { box-sizing: inherit; }
a { text-decoration: none; color: inherit; }

/* --- Contenedor Principal --- */
.ttl-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Hero Section --- */
.ttl-hero {
    padding: 5rem 0;
    background-color: var(--ttl-color-surface-main);
    position: relative;
    overflow: hidden;
}
.ttl-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, var(--ttl-color-border) 1px, transparent 0);
    background-size: 2rem 2rem;
    opacity: 0.1;
}
.ttl-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1.5rem;
}
.ttl-hero-breadcrumb {
    font-size: 0.875rem;
    color: var(--ttl-color-text-muted);
    margin-bottom: 1rem;
}
.ttl-hero-breadcrumb a:hover {
    color: var(--ttl-color-primary);
}
.ttl-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.ttl-hero-title .ttl-highlight {
    color: var(--ttl-color-primary);
}
.ttl-hero-subtitle {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--ttl-color-text-muted);
    line-height: 1.6;
}

/* --- Sección de Ciudades --- */
.ttl-section {
    padding: 4rem 0;
}
.ttl-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
}
/* --- INICIO DE LA MEJORA --- */
/* Se reemplaza Grid por Flexbox para centrar los elementos cuando son pocos */
.ttl-cities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Clave para centrar los clusters */
    gap: 2.5rem;
}
.ttl-city-cluster {
    display: block;
    transition: transform 0.3s ease;
    flex: 1 1 280px; /* Controla el crecimiento, encogimiento y tamaño base del cluster */
    max-width: 340px; /* Evita que los clusters se hagan demasiado anchos en pantallas grandes */
}
/* --- FIN DE LA MEJORA --- */

.ttl-city-cluster:hover {
    transform: translateY(-5px);
}
.ttl-city-image-wrapper {
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--ttl-color-border);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ttl-city-cluster:hover .ttl-city-image-wrapper {
    border-color: var(--ttl-color-primary);
    box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.2);
}
.ttl-city-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.ttl-city-cluster:hover .ttl-city-image {
    transform: scale(1.05);
}

.ttl-city-caption {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    color: var(--ttl-color-text-muted);
    transition: color 0.3s ease;
}
.ttl-city-cluster:hover .ttl-city-caption {
    color: var(--ttl-color-primary);
}

/* --- Media Queries --- */
@media (max-width: 767px) {
    .ttl-hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    .ttl-hero-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .ttl-hero-title { font-size: 3rem; }
    .ttl-section-title { font-size: 2.25rem; }
}

/* --- INICIO: SOLUCIÓN PARA PÁRRAFOS DE INTRODUCCIÓN --- */
.ttl-hero-subtitle p {
    margin-bottom: 1rem !important;
}

.ttl-hero-subtitle p:last-child {
    margin-bottom: 0 !important;
}
/* --- FIN: SOLUCIÓN --- */