:root {
    --primary: #1a1a1a;
    --secondary: #796446;
    --darkbr: rgb(46, 34, 24);
    --bg-light: #fdfdfd;
    --white: #ffffff;
}
.town-hero {
    height: 300px;
    background-image: linear-gradient(var(--secondary),var(--darkbr)), url('img/pueblo-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.town-hero h1 { font-size: 4rem; margin-bottom: 10px; }

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.town-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
}

.dropcap {
    font-size: 1.4rem;
    color: var(--primary);
}

/* Grid de información alternado */
.info-card {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.info-card.reverse {
    flex-direction: row-reverse;
}

.card-img {
    flex: 1;
    height: 450px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
}

.card-text {
    flex: 1;
}

.card-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.card-text ul {
    list-style: none;
    padding: 0;
}

.card-text li {
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 2px solid var(--secondary);
}

.fb-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 5px;
    transition: 0.3s;
}

.fb-link:hover {
    color: var(--secondary);
    border-color: var(--secondary);
}

/* Fotos de ejemplo (Sustituye por tus archivos en /img) */
.visit-img { background-image: url('img/visitar.jpg'); }
.gastro-img { background-image: url('img/gastronomia.jpg'); }
.commerce-img { background-image: url('img/comercio.jpg'); }
.activity-img { background-image: url('img/actividades.jpg'); }

/* Responsive 
@media (max-width: 768px) {
    .info-card, .info-card.reverse {
        flex-direction: column;
        gap: 30px;
    }
    .card-img {
        width: 100%;
        height: 300px;
    }
    .town-hero h1 { font-size: 2.5rem; }
} */
@media (max-width: 768px) {
    .info-card, .info-card.reverse {
        flex-direction: column !important; /* Fuerza a que se apilen una encima de otra */
        gap: 30px;
    }
    .card-img {
        display: block;
        width: 100% !important;
        height: 300px;
        min-height: 300px; /* Evita que el móvil aplaste la imagen */
    }
    .town-hero h1 { font-size: 2.5rem; }
}
/* --- Sección Pueblos Cercanos --- */
.nearby-towns {
    padding: 100px 50px;
    background-color: #fff;
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.nearby-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nearby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.nearby-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ccc;
}

.nearby-info {
    padding: 20px;
}

.nearby-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.nearby-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Imágenes de las escapadas (Añade tus fotos en la carpeta img) */
.zafra-img { background-image: url('img/zafra.jpg'); }
.regina-img { background-image: url('img/merida.jpg'); }
.jerez-img { background-image: url('img/jerez.jpg'); }
.llerena-img { background-image: url('img/llerena.jpg'); }
.villafranca-img { background-image: url('img/villafranca.jpg'); }
.castellar-img { background-image: url('img/castellar.jpg'); }

/* Ajuste móvil */
@media (max-width: 768px) {
    .nearby-towns { padding: 60px 20px; }
}
.instagram-link {
    color: var(--secondary); /* Usa el color elegante de tu web */
    text-decoration: none;   /* Quita la línea de subrayado fea */
    font-weight: 600;        /* Lo hace un poco más negrita */
    border-bottom: 1px dashed var(--secondary); /* Le da un toque sutil abajo */
    transition: 0.3s;
}

.instagram-link:hover {
    color: #e1306c; /* Cuando pasas el ratón, se vuelve del color de Instagram */
    border-color: #e1306c;
}