/* ============================================
   ESTILOS EXCLUSIVOS PARA LA ZONA 4R
   ============================================ */

/* --- RESET Y FUENTES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Slab', serif;
    background-color: #fdf6eb; /* Fondo cálido crema */
    color: #3d2b1f;
    line-height: 1.6;
}

/* --- CABECERA 4R --- */
.cabecera-4r {
    background: linear-gradient(135deg, #2d4a3e, #1f332a); /* Verde musgo oscuro */
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #d87c3a; /* Naranja terracota */
    flex-wrap: wrap;
}

.logo-4r {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img-4r {
    height: 50px;
    width: auto;
}

.logo-texto-4r {
    font-size: 24px;
    font-weight: 700;
    color: #d87c3a; /* Naranja corporativo */
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-texto-4r:hover {
    color: #f0a86a;
}

.nav-4r {
    display: flex;
    gap: 25px;
}

.nav-4r a {
    color: #e8d5b8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-4r a:hover {
    background-color: #d87c3a;
    color: #1f332a;
}

.nav-4r a.activo {
    background-color: #d87c3a;
    color: #1f332a;
}

/* --- CONTENEDOR PRINCIPAL --- */
.contenedor-4r {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* --- BANNER 4R --- */
.banner-4r {
    background: linear-gradient(135deg, #d87c3a, #b55a2a);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px rgba(216, 124, 58, 0.3);
}

.banner-4r h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.banner-4r p {
    margin: 10px 0;
    opacity: 0.95;
}

.banner-4r .contador-4r {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
}

/* --- PAGINACIÓN --- */
.paginacion-4r {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 30px 0;
    padding: 10px 0;
    border-bottom: 2px solid #e8d5b8;
    flex-wrap: wrap;
}

.paginacion-4r.inferior {
    border-top: 2px solid #e8d5b8;
    border-bottom: none;
    padding-top: 20px;
    margin-top: 30px;
}

.info-pagina {
    color: #5a4a3a;
    font-size: 15px;
}

.botones-paginacion {
    display: flex;
    gap: 10px;
}

.botones-paginacion a {
    background-color: #2d4a3e;
    color: #e8d5b8;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.botones-paginacion a:hover {
    background-color: #d87c3a;
    color: white;
}

/* --- GRID DE ANUNCIOS 4R --- */
.grid-4r {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* --- TARJETA DE ANUNCIO 4R --- */
.card-4r {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-left: 5px solid #d87c3a;
}

.card-4r:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(216, 124, 58, 0.2);
}

/* Badge 4R (distintivo) */
.badge-4r {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #d87c3a;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 25px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(216, 124, 58, 0.4);
    letter-spacing: 0.5px;
}

/* Imagen */
.card-img-4r {
    height: 200px;
    overflow: hidden;
    background-color: #f0ebe3;  /* Fondo crema para los bordes vacíos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-4r img {
    width: 100%;
    height: 100%;
    object-fit: contain;        /* La imagen se ajusta SIN CORTAR */
    transition: transform 0.5s ease;
}

.card-4r:hover .card-img-4r img {
    transform: scale(1.05);
}

.sin-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #b5a695;
    font-size: 14px;
}

/* Cuerpo de la tarjeta */
.card-body-4r {
    padding: 18px 20px 20px;
}

.card-tipo-4r {
    display: inline-block;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.card-titulo-4r {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-titulo-4r a {
    color: #3d2b1f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-titulo-4r a:hover {
    color: #d87c3a;
}

.card-desc-4r {
    font-size: 14px;
    color: #6a5a4a;
    margin-bottom: 12px;
    line-height: 1.5;
}

.card-detalles-4r {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #8a7a6a;
    margin-bottom: 12px;
}

.card-detalles-4r i {
    margin-right: 5px;
}

.card-precio-4r {
    font-size: 22px;
    font-weight: 700;
    color: #2d4a3e;
}

/* --- SIN ANUNCIOS --- */
.sin-anuncios-4r {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sin-anuncios-4r p {
    font-size: 18px;
    color: #6a5a4a;
    margin: 10px 0;
}

.btn-inicio-4r {
    display: inline-block;
    background-color: #d87c3a;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-inicio-4r:hover {
    background-color: #b55a2a;
}

/* --- PIE DE PÁGINA --- */
.footer-4r {
    text-align: center;
    padding: 30px;
    background-color: #1f332a;
    color: #e8d5b8;
    border-top: 4px solid #d87c3a;
}

.footer-4r a {
    color: #d87c3a;
    text-decoration: none;
    font-weight: 600;
}

.footer-4r a:hover {
    color: #f0a86a;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .cabecera-4r {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 15px;
    }
    
    .logo-4r {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .logo-texto-4r {
        font-size: 20px;
    }
    
    .nav-4r {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-4r a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .banner-4r h1 {
        font-size: 28px;
    }
    
    .banner-4r p {
        font-size: 16px;
    }
    
    .grid-4r {
        grid-template-columns: 1fr;
    }
    
    .paginacion-4r {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-img-4r {
        height: 40px;
    }
    
    .banner-4r {
        padding: 25px 15px;
    }
    
    .banner-4r h1 {
        font-size: 22px;
    }
    
    .card-titulo-4r {
        font-size: 16px;
    }
}

/* ============================================
   FRASE 4R (Responsive)
   ============================================ */
	.banner-4r .frase-4r {
    color: #2d4a3e;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Pantallas pequeñas (tablets y móviles) */
@media (max-width: 768px) {
    .banner-4r .frase-4r {
        font-size: 18px;      /* Tamaño más pequeño */
        letter-spacing: 1px;  /* Menos separación */
        margin: 10px 0;       /* Menos margen */
        word-break: keep-all; /* Evita que se rompan las palabras */
        white-space: nowrap;  /* Fuerza a que esté en UNA línea */
    }
}

/* Pantallas muy pequeñas (móviles de gama baja) */
@media (max-width: 480px) {
    .banner-4r .frase-4r {
        font-size: 14px;      /* Aún más pequeño */
        letter-spacing: 0.5px;
    }
}


