/* ==================== RESET Y CONFIGURACIÓN GENERAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Evitar scroll cuando hay modales/páginas fijas activas */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
    position: fixed;
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==================== HEADER Y NAVEGACIÓN ==================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    height: 72px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--violet);
    backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.logo-img {
    width: 200px;
    height: auto;
    filter:
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #ccc;
    line-height: 1.2;
}

.nav-buttons {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background-color: transparent;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ==================== BOTONES GENERALES ==================== */
.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #5b4a8c;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #fff;
    color: #5b4a8c;
    border: 2px solid #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.btn-cta {
    background: #fff;
    color: #5b4a8c;
    padding: 16px 36px;
    border-radius: 40px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ==================== SECCIONES GENERALES ==================== */
section {
    width: 100%;
    max-width: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
    scroll-margin-top: 90px;
}

section:not(#seccion1) .container {
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==================== SECCIÓN 1 - HERO ==================== */
#seccion1 {
    height: 100vh;
    background-image: url("imagenes/hero.jpg");
    background-size: cover;
    background-position: center;
    position: relative !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
    isolation: isolate;
}

#seccion1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

#seccion1 .container {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

#seccion1 h1 {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
}

#seccion1 p {
    font-size: 18px;
    color: white;
    margin-bottom: 34px;
}

/* ==================== SECCIÓN 2 - SERVICIOS ==================== */
#seccion2 {
    background: #f8f9fa;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.servicio-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.servicio-card:hover {
    transform: translateY(-10px);
}

.servicio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ==================== SECCIÓN 3 - SOBRE NOSOTROS ==================== */
#seccion3 {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    background-image: url('imagenes/IMG-20241108-WA0009.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    background-color: rgb(49, 48, 48);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(1, 1, 1, 1);
}

/* ==================== SECCIÓN 3.5 - IMAGEN DESTACADA ==================== */
#seccion3-5 {
    background: #f8f9fa;
    padding: 4rem 2rem;
    min-height: auto;
    box-sizing: border-box;
}

.imagen-destacada-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.imagen-destacada {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.imagen-destacada:hover {
    transform: scale(1.02);
}

/* ==================== SECCIÓN 4 - ESTADÍSTICAS ==================== */
#seccion4 {
    background: linear-gradient(180deg, #9fc5e2, #09203F);
    color: white;
    padding-top: 140px;
    padding-bottom: 140px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* ==================== SECCIÓN 5 - TESTIMONIOS ==================== */
#seccion5 {
    background: #f8f9fa;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonio-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonio-rating {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==================== SECCIÓN 6 - FORMULARIO DE CONTACTO ==================== */
#seccion6 {
    background: white;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

#seccion6 .form-group {
    margin-bottom: 1.5rem;
}

#seccion6 .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #667eea;
}

#seccion6 .form-group input,
#seccion6 .form-group textarea,
#seccion6 .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#seccion6 .form-group input:focus,
#seccion6 .form-group textarea:focus,
#seccion6 .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

#seccion6 .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#seccion6 .btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#seccion6 .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#seccion6 .file-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: block;
    padding: 0.8rem;
    background: #f8f9fa;
    border: 2px dashed #667eea;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    background: #e9ecef;
}

.mensaje-exito {
    display: none;
    background: #4CAF50;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.mensaje-exito.show {
    display: block;
    animation: slideDown 0.5s ease;
}

/* ==================== SECCIÓN 7 - UBICACIÓN ==================== */
#seccion7 {
    background: #f8f9fa;
}

.ubicacion-content {
    text-align: center;
}

.mapa-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.mapa-full iframe {
    width: 70%;
    height: 500px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    border: 0;
}

/* ==================== SECCIÓN 8 - FOOTER ==================== */
#seccion8 {
    background: #232425;
    color: white;
    min-height: auto;
    padding: 3rem 2rem;
    margin-bottom: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 2.5rem;
}

.footer-logo img {
    max-width: 340px;
    margin-top: 45px;
    filter:
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.footer-left {
    justify-self: start;
}

.footer-right {
    justify-self: end;
    padding-left: 2rem;
    text-align: right;
}

.footer-copy {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #cfd6df;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #bebdc5;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #667eea;
    transform: scale(1.2);
}

/* ============================================
   PANEL DE ADMINISTRACIÓN 
   ============================================ */

.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f5f5f5;
    z-index: 9999;
    overflow-y: auto;
}

.admin-panel.active {
    display: block;
}

.admin-panel .admin-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-panel .admin-header h2 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
    text-align: left;
    border: none;
    padding: 0;
}

.admin-panel .btn-cerrar {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.admin-panel .btn-cerrar:hover {
    background: #c0392b;
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.admin-panel .admin-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.admin-panel .form-section,
.admin-panel .list-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.admin-panel .form-section form {
    max-width: 800px;
    margin: 0 auto;
}

.admin-panel .form-section h3,
.admin-panel .list-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    text-align: left;
    font-size: 1.5rem;
}

.admin-panel .admin-form-group {
    margin-bottom: 20px;
}

.admin-panel .admin-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 600;
}

.admin-panel .admin-form-group input,
.admin-panel .admin-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.admin-panel .admin-form-group input:focus,
.admin-panel .admin-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.admin-panel .admin-form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

.admin-panel .admin-file-name {
    margin-top: 10px;
    color: #27ae60;
    font-size: 14px;
    font-weight: 500;
}

.admin-panel .btn-submit {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.admin-panel .btn-submit:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lista-propiedades-admin {
    max-width: 1000px;
    margin: 0 auto;
}

.propiedad-item-admin {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 150px 1fr auto;
    grid-template-rows: auto 1fr auto;
    gap: 15px;
    align-items: start;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.propiedad-item-admin:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.propiedad-item-admin img,
.propiedad-item-admin>div:first-child {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.propiedad-item-info {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.propiedad-item-info h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.propiedad-item-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
}

.propiedad-item-info .precio-destacado {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 5px;
}

.propiedad-item-info .fecha-pequeña {
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

.propiedad-item-info .descripcion-corta {
    color: #555;
    line-height: 1.6;
    max-width: 500px;
}

.propiedad-item-admin .btn-eliminar {
    grid-column: 3;
    grid-row: 3;
    align-self: end;
    justify-self: end;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.propiedad-item-admin .btn-eliminar:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* ============================================
   PÁGINA PÚBLICA DE PROPIEDADES
   ============================================ */

.propiedades-page {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: #f5f5f5;
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
}

.propiedades-page.active {
    display: block;
}

.propiedades-header {
    background: #2c3e50;
    color: white;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.propiedades-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.propiedades-header h2 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
}

.btn-volver {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.propiedades-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    overflow: visible;
}

.propiedades-grid-publica {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.propiedad-card-publica {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.propiedad-card-publica:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.propiedad-imagen-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.propiedad-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.propiedad-card-publica:hover .propiedad-imagen {
    transform: scale(1.1);
}

.propiedad-info-publica {
    padding: 1.5rem;
}

.propiedad-titulo {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.propiedad-ubicacion-publica {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.propiedad-precio-card {
    color: #27ae60;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
}

.propiedad-descripcion-breve {
    color: #555;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.btn-ver-mas {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-ver-mas:hover {
    background: #2980b9;
}

/* ============================================
   MODALES
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal de login */
#modalLogin {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

#modalLogin.active {
    display: flex;
}

#modalLogin .modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#modalLogin h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

#modalLogin .form-group {
    margin-bottom: 1.5rem;
}

#modalLogin .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 600;
}

#modalLogin .form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#modalLogin .form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#modalLogin button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

#modalLogin button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Modal de propiedad */
.modal-propiedad {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 4000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-propiedad.active {
    display: block;
}

.modal-propiedad-content {
    background: white;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.galeria-modal {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
}

.galeria-modal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.galeria-navegacion {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.galeria-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.galeria-dot.active {
    background: #667eea;
    width: 30px;
    border-radius: 5px;
}

.galeria-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.galeria-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.galeria-arrow-left {
    left: 1rem;
}

.galeria-arrow-right {
    right: 1rem;
}

.modal-propiedad-info {
    padding: 2rem;
}

.modal-propiedad .info-principal {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.modal-propiedad #modalTitulo {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 2rem;
}

.modal-propiedad .ubicacion-modal {
    color: #7f8c8d;
    margin: 0;
    font-size: 1.1rem;
}

.modal-propiedad .precio-modal {
    color: #27ae60;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
}

.modal-propiedad .descripcion-completa {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.modal-propiedad .descripcion-completa h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.modal-propiedad .descripcion-completa p {
    line-height: 1.8;
    color: #555;
    margin: 0;
    font-size: 1rem;
}

.modal-propiedad .compartir-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
}

.modal-propiedad .compartir-section h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.compartir-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-compartir {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-compartir:hover {
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-facebook {
    background: #1877F2;
    color: white;
}

.btn-copiar {
    background: #667eea;
    color: white;
}

/* ==================== BOTÓN VER MÁS EN HEADER DE PROPIEDADES ==================== */
.btn-ver-mas-propiedades {
    background: #3498db !important;
    color: white !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.btn-ver-mas-propiedades:hover {
    background: #2980b9 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Contenedor de botones - siempre en fila en PC y tablet */
.propiedades-header-content>div {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* ==================== BOTÓN EDITAR EN ADMIN ==================== */
.btn-editar {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: 10px;
}

.btn-editar:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Contenedor de botones de acciones */
.acciones-admin {
    grid-column: 3;
    grid-row: 3;
    align-self: end;
    justify-self: end;
    display: flex;
    gap: 10px;
}

/* Modal de Edición */
.modal-editar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-editar.active {
    display: block;
}

.modal-editar-content {
    background: white;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
}

.modal-editar h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-editar .form-group {
    margin-bottom: 1.5rem;
}

.modal-editar .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 600;
}

.modal-editar .form-group input,
.modal-editar .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.modal-editar .form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.modal-editar .form-group input:focus,
.modal-editar .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Imágenes actuales en edición */
.imagenes-actuales-edit {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.img-edit-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.img-edit-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.img-edit-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.img-edit-item button:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Botones del modal de edición */
.modal-editar-botones {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-guardar-edicion {
    flex: 1;
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-guardar-edicion:hover {
    background: #229954;
    transform: translateY(-2px);
}

.btn-cancelar-edicion {
    flex: 1;
    background: #95a5a6;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancelar-edicion:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* ==================== SELECTOR VISUAL DE IMÁGENES ==================== */
.preview-imagenes-container {
    margin-top: 15px;
    padding: 20px;
    border: 2px dashed #3498db;
    border-radius: 10px;
    background: #f8f9fa;
    min-height: 150px;
}

.preview-imagenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preview-imagen-item {
    position: relative;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    cursor: move;
    transition: all 0.3s ease;
    background: white;
}

.preview-imagen-item:hover {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.preview-imagen-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.preview-imagen-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.preview-imagen-numero {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #3498db;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.preview-imagen-principal {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.preview-imagen-eliminar {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.preview-imagen-eliminar:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.preview-instrucciones {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
    padding: 20px;
}

.preview-instrucciones strong {
    color: #3498db;
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.preview-vacio {
    text-align: center;
    padding: 40px;
    color: #999;
}

.preview-vacio i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    opacity: 0.3;
}

/* ==================== EDITOR DE IMÁGENES EN MODAL EDICIÓN ==================== */
.imagenes-actuales-edit {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    min-height: 150px;
}

.img-edit-item {
    position: relative;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    cursor: move;
    transition: all 0.3s ease;
    background: white;
}

.img-edit-item:hover {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.img-edit-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.img-edit-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.img-edit-numero {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #3498db;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.img-edit-principal {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.img-edit-item button {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.img-edit-item button:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.edit-instrucciones {
    text-align: center;
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 10px;
    padding: 10px;
    background: #e8f4f8;
    border-radius: 8px;
}

.edit-instrucciones strong {
    color: #3498db;
    display: block;
    margin-bottom: 5px;
}


/* ==================== ANIMACIONES ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .propiedades-grid-publica {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        justify-items: center;
    }

    .footer-left,
    .footer-logo,
    .footer-right {
        justify-self: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ==================== RESPONSIVE - MÓVIL (768px) ==================== */
@media (max-width: 768px) {
    /* NAVEGACIÓN */
    nav {
        padding: 0 20px;
    }

    .logo-img {
        width: 170px;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-buttons {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 3rem);
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        background: transparent !important;
        box-shadow: none;
        backdrop-filter: none;
        display: none;
        z-index: 999;
    }

    .nav-buttons.active {
        display: flex;
    }

    .nav-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* SECCIONES GENERALES */
    section {
        padding: 8rem 1rem 3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* SECCIÓN HERO */
    #seccion1 {
        padding-top: 10rem;
    }

    #seccion1 h1 {
        font-size: 38px;
    }

    #seccion1 p {
        font-size: 16px;
    }

    /* SOBRE NOSOTROS */
    .about-content {
        grid-template-columns: 1fr;
    }

    /* ESTADÍSTICAS */
    #seccion4 {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* SERVICIOS Y TESTIMONIOS */
    .servicios-grid,
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* FORMULARIOS */
    .form-container {
        padding: 1.5rem;
    }

    /* MODALES */
    .modal-content {
        padding: 2rem 1.5rem;
    }

    #modalLogin .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    #modalLogin h2 {
        font-size: 1.5rem;
    }

    /* MODAL DE PROPIEDAD */
    .galeria-modal {
        height: 300px;
    }

    .modal-propiedad-info {
        padding: 1.5rem;
    }

    .galeria-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .galeria-arrow-left {
        left: 0.5rem;
    }

    .galeria-arrow-right {
        right: 0.5rem;
    }

    .modal-propiedad .info-principal {
        flex-direction: column;
    }

    .modal-propiedad #modalTitulo {
        font-size: 1.5rem;
    }

    .modal-propiedad .precio-modal {
        font-size: 2rem;
    }

    /* PROPIEDADES PÚBLICAS */
    .propiedades-grid-publica {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .propiedades-header h2 {
        font-size: 1.5rem;
    }

    .propiedades-header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .btn-volver,
    .btn-ver-mas-propiedades {
        padding: 10px 18px !important;
        font-size: 14px !important;
    }

    /* PANEL DE ADMINISTRACIÓN */
    .admin-panel .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .admin-panel .admin-header h2 {
        font-size: 1.5rem;
    }

    .admin-panel .admin-content {
        padding: 0 15px;
    }

    .admin-panel .form-section,
    .admin-panel .list-section {
        padding: 20px 15px;
    }

    .admin-panel .form-section h3,
    .admin-panel .list-section h3 {
        font-size: 1.3rem;
    }

    /* PROPIEDADES ADMIN - LISTADO */
    .propiedad-item-admin {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 15px;
    }

    .propiedad-item-admin img,
    .propiedad-item-admin > div:first-child {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: 200px;
        margin-bottom: 0;
    }

    .propiedad-item-info {
        grid-column: 1;
        grid-row: 2;
        padding-top: 15px;
    }

    .acciones-admin {
        grid-column: 1;
        grid-row: 3;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e0e0e0;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-editar,
    .btn-eliminar {
        width: 100%;
        margin-right: 0;
        padding: 12px 20px;
    }

    /* MODAL DE EDICIÓN */
    .modal-editar-content {
        padding: 1.5rem;
    }

    .imagenes-actuales-edit {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .img-edit-item img {
        height: 100px;
    }

    /* PREVIEW DE IMÁGENES */
    .preview-imagenes-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .preview-imagen-item img {
        height: 100px;
    }

    /* FOOTER */
    #seccion8 .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #seccion8 .footer-left,
    #seccion8 .footer-logo,
    #seccion8 .footer-right {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 !important;
        text-align: center;
        justify-self: unset !important;
    }

    #seccion8 .footer-logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #seccion8 .footer-logo img {
        display: block;
        margin: 0 auto;
        max-width: 260px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-copy {
        font-size: 0.75rem;
        padding-top: 1rem;
        margin-top: 1.5rem;
    }
}

/* ==================== RESPONSIVE - TABLET PEQUEÑA (1024px) ==================== */
@media (max-width: 1024px) {
    .propiedad-item-admin {
        grid-template-columns: 120px 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
    }
    
    .propiedad-item-admin img,
    .propiedad-item-admin > div:first-child {
        width: 120px;
        height: 120px;
        grid-column: 1;
        grid-row: 1;
    }
    
    .propiedad-item-info {
        grid-column: 2;
        grid-row: 1;
    }
    
    .acciones-admin {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        align-self: start;
        margin-top: 0;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .btn-editar,
    .btn-eliminar {
        width: 100%;
        margin-right: 0;
        padding: 12px 20px;
    }
}

/* ==================== RESPONSIVE - MÓVIL PEQUEÑO (480px) ==================== */
@media (max-width: 480px) {
    /* HEADER PROPIEDADES */
    .propiedades-header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .propiedades-header h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .propiedades-header-content > div {
        flex-direction: column;
        width: 100%;
        flex-wrap: nowrap;
    }

    .btn-volver,
    .btn-ver-mas-propiedades {
        width: 100% !important;
        text-align: center !important;
    }

    /* PROPIEDADES ADMIN */
    .propiedad-item-admin {
        padding: 12px;
    }
    
    .propiedad-item-admin img,
    .propiedad-item-admin > div:first-child {
        height: 180px;
    }
    
    .btn-editar,
    .btn-eliminar {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .propiedad-item-info h3 {
        font-size: 1.1rem;
    }
    
    .propiedad-item-info p {
        font-size: 0.85rem;
    }
}

/* ==================== FIX RESPONSIVE 390px (Galaxy S23 y similares) ==================== */
@media (max-width: 390px) {
    /* PROPIEDADES ADMIN - LISTADO */
    .lista-propiedades-admin {
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow: hidden;
    }

    .propiedad-item-admin {
        padding: 10px;
        margin: 0 0 15px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .propiedad-item-admin img,
    .propiedad-item-admin > div:first-child {
        width: 100%;
        height: 160px;
        margin: 0;
        box-sizing: border-box;
    }

    .propiedad-item-info {
        width: 100%;
        max-width: 100%;
        padding: 10px 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .propiedad-item-info h3 {
        font-size: 1rem;
        margin: 0 0 8px 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .propiedad-item-info p {
        font-size: 0.8rem;
        margin: 4px 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .propiedad-item-info .precio-destacado {
        font-size: 1rem;
    }

    .propiedad-item-info .descripcion-corta {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2; /* Añade esta línea estándar justo debajo */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.4;
    }

    .acciones-admin {
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        gap: 8px;
        box-sizing: border-box;
    }

    .btn-editar,
    .btn-eliminar {
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
        box-sizing: border-box;
    }

    /* ADMIN PANEL GENERAL */
    .admin-panel .admin-content {
        padding: 0 10px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .admin-panel .form-section,
    .admin-panel .list-section {
        padding: 15px 10px;
        margin: 0 0 20px 0;
        box-sizing: border-box;
    }

    .admin-panel .list-section {
        overflow-x: hidden;
    }

    /* PREVIEW DE IMÁGENES */
    .preview-imagenes-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .preview-imagen-item img {
        height: 80px;
    }

    .preview-imagen-numero {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    /* MODAL DE EDICIÓN */
    .imagenes-actuales-edit {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .img-edit-item img {
        height: 80px;
    }

    .img-edit-numero {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .img-edit-item button {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
}

/* ==================== FIX GENERAL PARA EVITAR DESBORDAMIENTO ==================== */
.propiedad-item-admin * {
    box-sizing: border-box;
}

.lista-propiedades-admin {
    width: 100%;
    overflow-x: hidden;
}