/* ================================================
   CSS para la página de ALQUILAR - Mobile First
   MODIFICACIONES: Tipo sobre foto, espaciado, bordes, título fino, flechas moradas
   ================================================ */

/* Variables específicas de la página */
:root {
    --alquilar-primary: #22c55e;
    --alquilar-secondary: #7d93fb;
    --alquilar-text: #1f2937;
    --alquilar-gray: #6b7280;
    --alquilar-light-gray: #f3f4f6;
    --alquilar-border: #d1d5db;
    --alquilar-border-light: #e5e7eb;
    --alquilar-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --alquilar-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --purple-color: #8b5cf6; /* Color morado para flechas */
}

/* Contenedor principal móvil */
.page-alquilar .alquilar-page {
    padding: 1rem 0;
    background: var(--color-white, #ffffff);
    min-height: calc(100vh - 200px);
    font-family: var(--font-primary), 'Poppins', sans-serif;
    animation: fadeInUp 0.5s ease-out;
}

/* Mejoras para page-content */
.page-alquilar .page-content {
    padding-top: 0;
}

/* Breadcrumb específico para alquilar */
.page-alquilar .breadcrumb {
    background: var(--alquilar-light-gray);
    margin-bottom: 1rem;
}

.page-alquilar .breadcrumb-current {
    color: var(--alquilar-primary);
    font-weight: 600;
}

/* Skip link mejorado */
.page-alquilar .skip-link:focus {
    background: var(--alquilar-primary);
}

/* ================================================
   BÚSQUEDAS POPULARES
   ================================================ */
.popular-searches {
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    text-align: center;
}

.popular-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--alquilar-text);
    margin-bottom: 1rem;
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.popular-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    background: var(--alquilar-light-gray);
    color: var(--alquilar-text);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    transition: var(--alquilar-transition);
    border: 1px solid var(--alquilar-border);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.popular-tag:hover {
    background: var(--alquilar-primary);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.popular-tag:focus {
    outline: 2px solid var(--alquilar-primary);
    outline-offset: 2px;
}

/* ================================================
   FILTROS AVANZADOS
   ================================================ */
.advanced-filters {
    margin-top: 1rem;
}

.filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--alquilar-light-gray);
    color: var(--alquilar-text);
    border: 1px solid var(--alquilar-border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--alquilar-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.filters-toggle:hover {
    background: #e5e7eb;
    border-color: var(--alquilar-primary);
}

.filters-toggle:focus {
    outline: 2px solid var(--alquilar-primary);
    outline-offset: 2px;
}

.filters-toggle-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.filters-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--alquilar-border);
    border-top: none;
}

.filters-content.active {
    max-height: 500px;
    padding: 1rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--alquilar-text);
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    background: white;
    transition: var(--alquilar-transition);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--alquilar-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.filters-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.75rem;
}

/* ================================================
   CONSEJOS PARA ENCONTRAR PISO
   ================================================ */
.tips-section {
    max-width: 100%;
    margin: 3rem auto 2rem;
    padding: 0 1rem;
}

.tips-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--alquilar-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.tip-card {
    background: white;
    border: 1px solid var(--alquilar-border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: var(--alquilar-transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--alquilar-shadow);
    border-color: var(--alquilar-primary);
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.tip-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--alquilar-text);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

.tip-card p {
    font-size: 0.85rem;
    color: var(--alquilar-gray);
    line-height: 1.4;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    margin: 0;
}

/* Ocultar en desktop - solo para móvil */
.mobile-only {
    display: block;
}

/* ================================================
   HERO SECTION - MOBILE FIRST
   ================================================ */
.hero-section {
    background: var(--color-white, #ffffff);
    padding: 1.5rem 1rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--alquilar-primary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--alquilar-gray);
    font-weight: 400;
    margin-bottom: 0;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    line-height: 1.4;
}

/* ================================================
   BUSCADOR PRINCIPAL - MOBILE FIRST
   ================================================ */
.search-container {
    max-width: 100%;
    margin: 0 auto 3rem;
    padding: 0 0.5rem;
}

.search-form {
    background: var(--color-white, #ffffff);
    border-radius: 16px;
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1));
    overflow: hidden;
    transition: var(--alquilar-transition);
    border: 1px solid var(--alquilar-border);
}

.search-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.12), 0 8px 16px -6px rgba(0, 0, 0, 0.08);
}

.search-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.search-input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem;
    border: none;
    font-size: 1rem;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    color: var(--alquilar-text);
    background: transparent;
    outline: none;
    transition: var(--alquilar-transition);
}

.search-input::placeholder {
    color: var(--alquilar-gray);
    font-weight: 400;
}

.search-input:focus::placeholder {
    color: #d1d5db;
}

.search-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--alquilar-primary);
    color: var(--color-white, #ffffff);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--alquilar-transition);
    border-radius: 0 0 16px 16px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.search-btn:hover {
    background: #16a34a;
}

.search-btn:active {
    transform: scale(0.98);
}

.search-btn:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.search-btn-icon {
    width: 18px;
    height: 18px;
}

.search-btn-text {
    font-weight: 600;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================
   PLACEHOLDERS DE CARGA
   ================================================ */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--alquilar-gray);
    text-align: center;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    border-top-color: var(--alquilar-primary);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-placeholder p {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    margin: 0;
}

/* ================================================
   MENSAJES RECIENTES - MOBILE FIRST
   ================================================ */
.mensajes-recientes-section {
    max-width: 100%;
    margin: 0 auto 3rem;
    padding: 0 0.5rem;
}

.mensajes-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.mensajes-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--alquilar-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

.mensajes-subtitle {
    font-size: 0.95rem;
    color: var(--alquilar-gray);
    font-weight: 400;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    margin: 0;
}

.mensajes-container {
    width: 100%;
}

.mensajes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Ficha individual de mensaje */
.mensaje-card {
    background: var(--color-white, #ffffff);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--alquilar-border);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
    transition: var(--alquilar-transition);
    position: relative;
    overflow: hidden;
}

.mensaje-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1));
    border-color: var(--alquilar-primary);
}

.mensaje-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.mensaje-tipo {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mensaje-tipo.busco {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}

.mensaje-tipo.ofrezco {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.mensaje-fecha {
    font-size: 0.75rem;
    color: var(--alquilar-gray);
    font-weight: 500;
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

.mensaje-content {
    margin-bottom: 1rem;
}

.mensaje-texto {
    font-size: 0.9rem;
    color: var(--alquilar-text);
    line-height: 1.5;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mensaje-ubicacion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mensaje-ubicacion-icon {
    width: 14px;
    height: 14px;
    color: var(--alquilar-gray);
}

.mensaje-ubicacion-texto {
    font-size: 0.85rem;
    color: var(--alquilar-gray);
    font-weight: 700;
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

.mensaje-precio {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    color: #7d93fb;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

.mensaje-precio .precio-numero {
    font-weight: 600;
}

.mensaje-precio .precio-simbolo {
    font-weight: 500;
    margin-left: 0.1rem;
}

.mensaje-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.75rem;
}

.mensaje-contactos {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--alquilar-gray);
    font-weight: 500;
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

.contactos-icon {
    width: 12px;
    height: 12px;
}

.mensaje-share {
    display: flex;
    gap: 0.4rem;
}

.share-btn-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--alquilar-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.share-btn-mini:hover {
    transform: scale(1.1);
}

.share-btn-mini:active {
    transform: scale(0.95);
}

.share-btn-mini:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.share-btn-mini svg {
    width: 13px;
    height: 13px;
}

.share-btn-mini.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.share-btn-mini.tiktok {
    background: #000000;
    color: white;
}

.share-btn-mini.x {
    background: #000000;
    color: white;
}

.share-btn-mini.whatsapp {
    background: #25d366;
    color: white;
}

/* Botón ver más mensajes */
.mensajes-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--alquilar-primary);
    color: var(--color-white, #ffffff);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--alquilar-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    text-decoration: none;
}

.btn-ver-mas:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
    text-decoration: none;
    color: var(--color-white);
}

.btn-ver-mas:active {
    transform: scale(0.98);
}

.btn-ver-mas:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* ================================================
   SECCIÓN DE ANUNCIOS DESTACADOS
   ================================================ */

.anuncios-destacados-section {
    max-width: 100%;
    margin: 0 auto 3rem;
    padding: 0 0.5rem;
}

.anuncios-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.anuncios-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--alquilar-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

.anuncios-subtitle {
    font-size: 0.95rem;
    color: var(--alquilar-gray);
    font-weight: 400;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    margin: 0;
}

.anuncios-container {
    width: 100%;
}

.anuncios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ================================================
   FICHAS DE ANUNCIOS - MODIFICACIONES APLICADAS
   ================================================ */

/* MODIFICACIÓN 3: Ficha con más borde y sombra */
.anuncio-card {
    background: var(--color-white, #ffffff);
    border-radius: 16px;
    border: 2px solid var(--alquilar-border); /* CAMBIADO: Borde más grueso */
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.1); /* MEJORADO: Más sombra */
    transition: var(--alquilar-transition);
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
    position: relative;
    height: 540px;
    display: flex;
    flex-direction: column;
}

.anuncio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.25), 0 8px 20px -4px rgba(0, 0, 0, 0.15); /* MEJORADO: Más sombra en hover */
    border-color: var(--alquilar-primary);
}

/* Sección de imagen del anuncio */
.anuncio-image-section {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

/* Imagen única */
.anuncio-image-single {
    width: 100%;
    height: 100%;
}

.anuncio-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--alquilar-transition);
}

/* Placeholder para anuncios sin imagen */
.anuncio-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: var(--alquilar-gray);
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.anuncio-image-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

/* Carousel de múltiples fotos */
.anuncio-image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-slide.active {
    opacity: 1;
}

/* MODIFICACIÓN 5: Botones de navegación 20% más pequeños y morados */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; 
    height: 30px; 
    background: #8b5cf6;
    border: none;
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--alquilar-transition);
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.carousel-btn-prev {
    left: 8px;
}

.carousel-btn-next {
    right: 8px;
}

.carousel-btn svg {
    width: 11.2px; /* CAMBIADO: 20% más pequeño (14px * 0.8) */
    height: 11.2px; /* CAMBIADO: 20% más pequeño */
}

/* Indicadores del carousel */
.carousel-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--alquilar-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-dot:focus {
    outline: 1px solid var(--color-white);
    outline-offset: 2px;
}

/* Contador de fotos aumentado 30% */
.carousel-counter {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.8rem; /* MANTENIDO: Aumentado 30% */
    font-weight: 400;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* MODIFICACIÓN 1: Etiqueta de tipo sobre la foto, a la derecha */
.etiqueta-tipo-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #8b5cf6;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ================================================
   INFORMACIÓN DEL ANUNCIO - MODIFICACIONES APLICADAS CON CORRECCIÓN DE ALTURA
   ================================================ */

/* MODIFICACIÓN 2: Reducir distancia entre foto y contenido + CORRECCIÓN DE ALTURA */
.anuncio-info-section {
    padding: 0.4rem 0.8rem 0.8rem; 
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    flex: 1;
    overflow: hidden;
}

/* Header con layout mejorado para consistencia de altura */
.anuncio-header-new {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    min-height: 3.5rem; /* AÑADIDO: Altura mínima consistente */
}

/* Solo etiqueta destacado si la hay - con altura mínima */
.anuncio-etiquetas {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: 1.5rem; /* AÑADIDO: Altura mínima para consistencia */
}

.etiqueta-destacado {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #1f2937;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Precio en el header con altura consistente */
.anuncio-precio-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-height: 3.5rem; /* AÑADIDO: Altura mínima consistente */
    justify-content: flex-start; /* AÑADIDO: Alinear desde arriba */
}

.precio-principal-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--alquilar-secondary);
    font-family: var(--font-primary), 'Poppins', sans-serif;
    margin: 0;
    text-align: right;
}

.precio-numero-header {
    font-weight: 700;
    font-size: 1.4rem;
}

.precio-simbolo-header {
    font-weight: 600;
    font-size: 1.1rem;
}

.precio-consultar {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--alquilar-secondary);
}

/* CORRECCIÓN PRINCIPAL: Etiquetas de precio con altura mínima consistente */
.precio-etiquetas-header {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 1.5rem; /* AÑADIDO: Altura mínima para consistencia */
    margin-top: 0.25rem; /* AÑADIDO: Separación consistente */
}

/* Placeholder invisible para mantener altura cuando no hay etiquetas */
.precio-etiquetas-header:empty::after {
    content: "";
    height: 1.5rem;
    width: 1px;
    display: block;
}

.precio-etiquetas-header .etiqueta-gastos {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    border: 1px solid rgba(34, 197, 94, 0.2);
    white-space: nowrap;
}

.precio-etiquetas-header .etiqueta-fianza {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    border: 1px solid rgba(59, 130, 246, 0.2);
    white-space: nowrap;
}

.anuncio-titulo-new {
    display: none;
    font-size: 1.3rem;
    font-weight: 300; 
    color: var(--alquilar-text);
    font-family: var(--font-primary), 'Poppins', sans-serif;
    line-height: 1.4;
    margin: 0;
    min-height: 2.8rem;
    display: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
}

/* Ubicación del anuncio */
.anuncio-ubicacion-new {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ubicacion-icon {
    width: 14px;
    height: 14px;
    color: var(--alquilar-primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.ubicacion-texto {
    flex: 1;
    min-width: 0;
}

.ubicacion-texto .ciudad {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--alquilar-text);
    font-family: var(--font-primary), 'Poppins', sans-serif;
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ubicacion-texto .direccion {
    font-size: 0.75rem;
    color: var(--alquilar-gray);
    font-weight: 700;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ================================================
   FOOTER CON BOTONES DE ANCHO COMPLETO
   ================================================ */

.anuncio-footer-new {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
    /*margin-top: auto;*/
    background: var(--color-white, #ffffff);
}

.btn-ver-detalle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--alquilar-primary);
    color: var(--color-white, #ffffff);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: var(--alquilar-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
}

.btn-ver-detalle:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
    text-decoration: none;
    color: var(--color-white, #ffffff);
}

.btn-ver-detalle:active {
    transform: scale(0.98);
}

.btn-ver-detalle:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.btn-ver-detalle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-compartir-anuncio-full {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--alquilar-secondary);
    color: var(--color-white, #ffffff);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--alquilar-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
}

.btn-compartir-anuncio-full:hover {
    background: #6b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(125, 147, 251, 0.3);
}

.btn-compartir-anuncio-full:active {
    transform: scale(0.98);
}

.btn-compartir-anuncio-full:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.btn-compartir-anuncio-full svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Botón ver más anuncios */
.anuncios-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-ver-mas-anuncios {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--alquilar-primary);
    color: var(--color-white, #ffffff);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--alquilar-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    text-decoration: none;
}

.btn-ver-mas-anuncios:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
    text-decoration: none;
    color: var(--color-white, #ffffff);
}

.btn-ver-mas-anuncios:active {
    transform: scale(0.98);
}

.btn-ver-mas-anuncios:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

/* ================================================
   MODAL COMPARTIR
   ================================================ */
.modal-compartir {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-compartir-content {
    background: var(--color-white, #ffffff);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--alquilar-border-light);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--alquilar-text);
    font-family: var(--font-primary), 'Poppins', sans-serif;
    margin: 0;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--alquilar-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.modal-close:hover {
    background: #e5e7eb;
}

.modal-close:focus {
    outline: 2px solid var(--alquilar-primary);
    outline-offset: 2px;
}

.modal-close svg {
    width: 16px;
    height: 16px;
    color: var(--alquilar-gray);
}

.modal-body {
    padding: 1rem;
}

.share-preview {
    margin-bottom: 2rem;
}

.share-preview h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--alquilar-text);
    font-family: var(--font-primary), 'Poppins', sans-serif;
    margin-bottom: 0.75rem;
}

.preview-texto {
    background: #f9fafb;
    border: 1px solid var(--alquilar-border-light);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--alquilar-text);
    font-family: var(--font-primary), 'Poppins', sans-serif;
    white-space: pre-wrap;
}

.share-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--alquilar-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.share-btn:hover {
    transform: translateY(-1px);
}

.share-btn:active {
    transform: scale(0.98);
}

.share-btn:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.share-icon {
    width: 20px;
    height: 20px;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.facebook-btn {
    background: linear-gradient(45deg, #3385f0 0%, #0a87cf 25%, #1b4beb 50%, #189ce9 75%, #1a6ab6 100%);
    color: white;
}

.tiktok-btn {
    background: #000000;
    color: white;
}

.x-btn {
    background: #000000;
    color: white;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #20c55a;
}

.email-btn {
    background: #6b7280;
    color: white;
}

.email-btn:hover {
    background: #4b5563;
}

/* ================================================
   ANIMACIONES
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estados de carga */
.loading-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
    height: 120px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mensaje-loading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Estados de error */
.error-mensajes, .error-anuncios {
    text-align: center;
    padding: 2rem;
    color: var(--alquilar-gray);
    grid-column: 1 / -1;
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-texto {
    margin-bottom: 1rem;
    font-family: var(--font-primary), 'Poppins', sans-serif;
}

.btn-reintentar {
    background: var(--alquilar-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    font-weight: 600;
    transition: var(--alquilar-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-reintentar:hover {
    background: #16a34a;
}

.btn-reintentar:focus {
    outline: 2px solid var(--alquilar-primary);
    outline-offset: 2px;
}

/* ================================================
   ESTILOS DE COMPATIBILIDAD PARA MENSAJES
   ================================================ */

.mensaje-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--alquilar-transition);
    border-radius: 12px;
    overflow: hidden;
}

.mensaje-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.mensaje-card-link:hover .mensaje-card {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 10px -3px rgba(0, 0, 0, 0.1);
}

.mensaje-card-link:focus {
    outline: 2px solid var(--alquilar-primary);
    outline-offset: 2px;
}

.mensaje-card-link .mensaje-card {
    margin: 0;
    height: 100%;
    cursor: pointer;
}

.btn-compartir {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--alquilar-secondary);
    color: var(--color-white, #ffffff);
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-primary), 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--alquilar-transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 10;
}

.btn-compartir:hover {
    background: #6b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(125, 147, 251, 0.3);
}

.btn-compartir:active {
    transform: scale(0.95);
}

.btn-compartir:focus {
    outline: 2px solid var(--color-white, #ffffff);
    outline-offset: 2px;
}

/* ================================================
   MEJORAS PARA DISPOSITIVOS TÁCTILES
   ================================================ */
@media (hover: none) {
    .search-form:hover {
        transform: none;
        box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1));
    }
    
    .mensaje-card:hover,
    .anuncio-card:hover,
    .tip-card:hover {
        transform: none;
    }
    
    .mensaje-card-link:hover .mensaje-card {
        transform: none;
    }
    
    .btn-compartir:hover,
    .btn-compartir-anuncio-full:hover,
    .btn-ver-detalle:hover,
    .btn-ver-mas-anuncios:hover,
    .popular-tag:hover {
        transform: none;
        box-shadow: none;
    }
    
    .carousel-btn:hover {
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.7);
    }
    
    .btn-compartir:active,
    .btn-compartir-anuncio-full:active {
        transform: scale(0.95);
        background: #6b82f6;
    }
    
    .btn-ver-detalle:active,
    .btn-ver-mas-anuncios:active {
        transform: scale(0.98);
        background: #16a34a;
    }
    
    .popular-tag:active {
        transform: scale(0.95);
        background: var(--alquilar-primary);
    }
    
    .anuncio-card:active {
        transform: scale(0.98);
    }
    
    .carousel-btn:active {
        transform: translateY(-50%) scale(0.95);
    }
}

/* ================================================
   MEJORAS DE ACCESIBILIDAD
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-spinner {
        animation: none;
    }
    
    .loading-skeleton {
        animation: none;
    }
}

/* ================================================
   MEDIA QUERIES - TABLET (768px+)
   ================================================ */
@media (min-width: 768px) {
    .page-alquilar .alquilar-page {
        padding: 2rem 0;
    }
    
    .hero-section {
        padding: 2rem 1rem 3rem;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .search-container {
        max-width: 700px;
        padding: 0 1rem;
        margin-bottom: 4rem;
    }
    
    .search-input-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .search-btn {
        width: auto;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        border-radius: 0 16px 16px 0;
        white-space: nowrap;
    }
    
    .search-input {
        padding: 1.25rem 1rem;
        font-size: 1.1rem;
    }
    
    .search-btn-icon {
        width: 20px;
        height: 20px;
    }
    
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .filters-actions {
        grid-template-columns: 1fr 2fr;
        gap: 1rem;
    }
    
    .popular-searches {
        margin-bottom: 3rem;
    }
    
    .popular-title {
        font-size: 1.4rem;
    }
    
    .popular-tag {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .tips-section {
        max-width: 800px;
    }
    
    .tips-title {
        font-size: 1.75rem;
    }
    
    .tips-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .tip-card {
        padding: 1.5rem;
    }
    
    .tip-icon {
        font-size: 2.5rem;
    }
    
    .mensajes-recientes-section {
        max-width: 1000px;
        padding: 0 1rem;
    }
    
    .mensajes-title {
        font-size: 2.25rem;
    }
    
    .mensajes-subtitle {
        font-size: 1rem;
    }
    
    .mensajes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .mensaje-card {
        padding: 1.25rem;
    }
    
    .share-btn-mini {
        width: 28px;
        height: 28px;
    }
    
    .share-btn-mini svg {
        width: 14px;
        height: 14px;
    }
    
    .share-actions {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .anuncios-destacados-section {
        max-width: 1000px;
        padding: 0 1rem;
        margin-bottom: 4rem;
    }
    
    .anuncios-title {
        font-size: 2.25rem;
    }
    
    .anuncios-subtitle {
        font-size: 1rem;
    }
    
    .anuncios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .anuncio-card {
        height: 540px;
    }
    
    /* CORRECCIÓN APLICADA A TABLET */
    .anuncio-header-new {
        min-height: 3.8rem; /* Ajustado para tablet */
    }
    
    .anuncio-precio-header {
        min-height: 3.8rem; /* Ajustado para tablet */
    }
    
    .precio-etiquetas-header {
        min-height: 1.6rem; /* Ajustado para tablet */
    }
    
    .precio-etiquetas-header:empty::after {
        height: 1.6rem; /* Ajustado para tablet */
    }
    
    .anuncio-etiquetas {
        min-height: 1.6rem; /* Ajustado para tablet */
    }
    
    .anuncio-info-section {
        padding: 0.5rem 1rem 0.8rem; /* Ajustado para tablet */
    }
    
    .anuncio-titulo-new {
        display:none;
        font-size: 1.1rem;
        min-height: 3.08rem;
    }
    
    .precio-principal-header {
        font-size: 1.6rem;
    }
    
    .precio-numero-header {
        font-size: 1.6rem;
    }
    
    .precio-simbolo-header {
        font-size: 1.2rem;
    }
    
    .precio-etiquetas-header .etiqueta-gastos,
    .precio-etiquetas-header .etiqueta-fianza {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        border-radius: 12px;
    }
    
    /* Botones de carousel en tablet - ajustados para 20% menos */
    .carousel-btn {
        width: 28.8px; /* 20% más pequeño que el original de tablet */
        height: 28.8px;
    }
    
    .carousel-btn-prev {
        left: 12px;
    }
    
    .carousel-btn-next {
        right: 12px;
    }
    
    .carousel-btn svg {
        width: 12.8px; /* 20% más pequeño */
        height: 12.8px;
    }
    
    .carousel-indicators {
        bottom: 12px;
        gap: 6px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-counter {
        font-size: 0.8rem;
        padding: 4px 10px;
        top: 12px;
        left: 12px;
    }
    
    .placeholder-icon {
        width: 56px;
        height: 56px;
    }
    
    .btn-ver-detalle,
    .btn-compartir-anuncio-full {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .btn-ver-detalle svg,
    .btn-compartir-anuncio-full svg {
        width: 18px;
        height: 18px;
    }
}

/* ================================================
   MEDIA QUERIES - DESKTOP (1024px+)
   ================================================ */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .popular-title {
        font-size: 1.5rem;
    }
    
    .tips-title {
        font-size: 2rem;
    }
    
    .tips-section {
        max-width: 1000px;
    }
    
    .mobile-only {
        display: none;
    }
    
    .filters-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .mensajes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .anuncios-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .mensajes-title,
    .anuncios-title {
        font-size: 2.5rem;
    }
    
    .share-btn-mini {
        width: 30px;
        height: 30px;
    }
    
    .share-btn-mini svg {
        width: 15px;
        height: 15px;
    }
    
    .anuncio-card {
        height: 540px;
    }
    
    /* CORRECCIÓN APLICADA A DESKTOP */
    .anuncio-header-new {
        min-height: 4rem; /* Ajustado para desktop */
    }
    
    .anuncio-precio-header {
        min-height: 4rem; /* Ajustado para desktop */
    }
    
    .precio-etiquetas-header {
        min-height: 1.7rem; /* Ajustado para desktop */
    }
    
    .precio-etiquetas-header:empty::after {
        height: 1.7rem; /* Ajustado para desktop */
    }
    
    .anuncio-etiquetas {
        min-height: 1.7rem; /* Ajustado para desktop */
    }
    
    .anuncio-titulo-new {
        display: none;
        font-size: 1.2rem;
        min-height: 3.36rem;
    }
    
    .precio-principal-header {
        font-size: 1.8rem;
    }
    
    .precio-numero-header {
        font-size: 1.8rem;
    }
    
    .precio-simbolo-header {
        font-size: 1.3rem;
    }
    
    .carousel-counter {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .placeholder-icon {
        width: 64px;
        height: 64px;
    }
    
    .btn-ver-detalle,
    .btn-compartir-anuncio-full {
        padding: 0.9rem 1.4rem;
        font-size: 1rem;
    }
    
    .btn-ver-detalle svg,
    .btn-compartir-anuncio-full svg {
        width: 20px;
        height: 20px;
    }
}

/* ================================================
   MEDIA QUERIES - LARGE DESKTOP (1200px+)
   ================================================ */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .mensajes-recientes-section,
    .anuncios-destacados-section {
        max-width: 1200px;
    }
    
    .anuncios-destacados-section {
        margin-bottom: 5rem;
    }
    
    .mensajes-title,
    .anuncios-title {
        font-size: 2.75rem;
    }
    
    .mensajes-subtitle,
    .anuncios-subtitle {
        font-size: 1.1rem;
    }
    
    .anuncios-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .anuncio-card {
        height: 540px;
    }
    
    /* CORRECCIÓN APLICADA A LARGE DESKTOP */
    .anuncio-header-new {
        min-height: 4.2rem; /* Ajustado para large desktop */
    }
    
    .anuncio-precio-header {
        min-height: 4.2rem; /* Ajustado para large desktop */
    }
    
    .precio-etiquetas-header {
        min-height: 1.8rem; /* Ajustado para large desktop */
    }
    
    .precio-etiquetas-header:empty::after {
        height: 1.8rem; /* Ajustado para large desktop */
    }
    
    .anuncio-etiquetas {
        min-height: 1.8rem; /* Ajustado para large desktop */
    }
    
    .precio-principal-header {
        font-size: 2rem;
    }
    
    .precio-numero-header {
        font-size: 2rem;
    }
    
    .precio-simbolo-header {
        font-size: 1.4rem;
    }
}