/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D32F2F;
    --primary-dark: #B71C1C;
    --primary-light: #EF5350;
    --secondary-color: #FFFFFF;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #FAFAFA;
    --bg-gray: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
    /* Colores Colaborador (Azul) */
    --colaborador-color: #1976D2;
    --colaborador-dark: #1565C0;
    --colaborador-light: #42A5F5;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Container específico para navbar sin padding izquierdo */
.navbar .container {
    padding-left: 0;
    padding-right: 10px;
    max-width: 100%;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 0.3rem 0;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 5px;
    grid-column: 1;
}

.logo .certificado-api {
    height: 85px;
    width: auto;
    vertical-align: middle;
}

.logo .logo-api {
    height: 90px;
    width: auto;
    vertical-align: middle;
    margin: 0 5px;
}

.logo .logo-diseo {
    height: 85px;
    width: 110px; /* Wider than height to crop bottom text of square image */
    object-fit: cover;
    object-position: center -5px;
    vertical-align: middle;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-left: 5px;
    text-align: center;
    align-items: center;
}

.logo-diseo-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo-inmobiliaria-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    grid-column: 2;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-vender {
    background: var(--primary-color);
    color: var(--secondary-color) !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    justify-self: end;
    font-size: 0.9rem;
    white-space: nowrap;
}

#userAuthSection {
    justify-self: end;
    display: flex;
    gap: 1rem;
    align-items: center;
    grid-column: 3;
}

.btn-vender:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-vender::after {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    grid-column: 4;
    justify-self: end;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    overflow: hidden;
    z-index: 1;
}

/* Fondo negro */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 0;
}

/* Videos de fondo con transparencia - se alternan */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    mix-blend-mode: lighten;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.hero-video.active {
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 2;
}

/* Overlay de cuadrícula - DESACTIVADO */
.hero-grid-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    color: var(--secondary-color);
    max-width: 900px;
    padding: 2rem;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5), 0 0 35px rgba(255,255,255,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease 0.15s backwards;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.4);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

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


/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Secciones */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
    background: var(--secondary-color);
}

.section-alt {
    background: var(--bg-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Grid de Propiedades */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
}

.property-card {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
    border-radius: 12px;
}

.property-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.4), 0 0 0 4px rgba(211, 47, 47, 0.2);
}

.property-card:hover::before {
    opacity: 0.03;
}

.property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.property-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.property-card:hover .property-image::after {
    opacity: 1;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.property-card:hover .property-image img {
    transform: scale(1.15) rotate(2deg);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }
}

/* Badge de estado (VENDIDA/RESERVADA) */
.property-status-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    border-radius: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.status-vendido {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #ffffff;
    border: 3px solid #66BB6A;
}

.status-reservado {
    background: linear-gradient(135deg, #FF8F00, #FF6F00);
    color: #ffffff;
    border: 3px solid #FFB300;
}

/* Oscurecer imagen cuando está vendida o reservada */
.property-image:has(.property-status-badge) img {
    filter: brightness(0.5);
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.property-features svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-details {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-details:hover {
    color: var(--primary-dark);
}

/* ============================================
   TARJETAS DE COLABORADOR (AZUL)
   ============================================ */
.property-card.colaborador-card::before {
    background: linear-gradient(135deg, var(--colaborador-color), var(--colaborador-light));
}

.property-card.colaborador-card:hover {
    box-shadow: 0 20px 40px rgba(25, 118, 210, 0.4), 0 0 0 4px rgba(25, 118, 210, 0.2);
}

.property-card.colaborador-card .property-badge {
    background: var(--colaborador-color);
    animation: badgePulseColaborador 2s ease-in-out infinite;
}

@keyframes badgePulseColaborador {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(25, 118, 210, 0);
    }
}

.property-card.colaborador-card .property-features svg {
    color: var(--colaborador-color);
}

.property-card.colaborador-card .property-price {
    color: var(--colaborador-color);
}

.property-card.colaborador-card .btn-details {
    color: var(--colaborador-color);
}

.property-card.colaborador-card .btn-details:hover {
    color: var(--colaborador-dark);
}

/* Badge especial de colaborador */
.colaborador-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--colaborador-color);
    color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.colaborador-badge svg {
    width: 14px;
    height: 14px;
}

/* Toggle de Colaborador en Admin */
.colaborador-toggle-container {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid var(--colaborador-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.colaborador-toggle-container label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--colaborador-color);
    cursor: pointer;
}

.colaborador-toggle-container label svg {
    width: 24px;
    height: 24px;
}

.colaborador-link-field {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(25, 118, 210, 0.3);
}

.colaborador-link-field input {
    border-color: var(--colaborador-color) !important;
}

.colaborador-link-field input:focus {
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

/* CTA Section */
.section-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--secondary-color);
}

.cta-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.cta-feature {
    text-align: center;
}

.cta-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cta-feature:hover .cta-icon {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.cta-icon svg {
    width: 35px;
    height: 35px;
}

.cta-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cta-feature p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Contacto */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--secondary-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Sección de búsqueda (debajo del video) */
.search-section {
    background: var(--bg-light);
    padding: 3rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

/* Buscador Hero */
.search-box-hero {
    max-width: 800px;
    margin: 0 auto;
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.search-tab {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.search-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.search-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.search-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}

.search-input-group {
    position: relative;
}

.search-input-group svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-light);
    pointer-events: none;
}

.search-input-group input,
.search-input-group select {
    width: 100%;
    padding: 1rem 1rem 1rem 45px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--secondary-color);
}

.search-input-group input:focus,
.search-input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-search svg {
    width: 20px;
    height: 20px;
}

/* Filtros de Secciones */
.filters-section {
    margin-bottom: 3rem;
}

.filters-container {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.section-alt .filters-container {
    background: var(--bg-light);
}

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

.filter-group label {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-input,
.filter-select {
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--secondary-color);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-filter-reset {
    padding: 0.9rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter-reset:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(211, 47, 47, 0.1);
}

/* Page Header */
.page-header {
    background: var(--primary-color);
    padding: 8rem 0 4rem;
    margin-top: 70px;
    text-align: center;
    color: var(--secondary-color);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Carousel */
.carousel-container {
    position: relative;
    margin: 2rem 0;
}

.carousel {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    padding: 1rem 0;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
    transition: transform 0.5s ease-out;
}

.carousel-track.animating {
    transition: transform 0.5s ease-out;
}

.carousel-track.no-transition {
    transition: none;
}

.carousel .property-card {
    min-width: 320px;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:hover svg {
    color: var(--secondary-color);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

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

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

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-view-all:hover {
    gap: 0.8rem;
}

.btn-view-all svg {
    width: 20px;
    height: 20px;
}

/* Admin Form */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
}

.admin-form {
    background: var(--secondary-color);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.form-section-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form .form-group:last-child {
    margin-bottom: 0;
}

.admin-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.admin-form .form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.admin-form .form-group input[type="text"],
.admin-form .form-group input[type="email"],
.admin-form .form-group input[type="tel"],
.admin-form .form-group input[type="number"],
.admin-form .form-group select,
.admin-form .form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.admin-form .form-group input:focus,
.admin-form .form-group select:focus,
.admin-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.admin-form .form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.form-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.form-checkboxes label {
    display: flex;
    align-items: center;
    font-weight: 400;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: min(800px, 95vw);
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

#previewContent .property-card {
    max-width: 400px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--secondary-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Responsive */

/* Pantallas grandes (1440px y superiores) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 3rem;
    }

    /* Hero Section */
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    /* Insurance Banner */
    .insurance-item {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    /* Logo */
    .logo-diseo-text {
        font-size: 2.5rem;
    }

    .logo-inmobiliaria-text {
        font-size: 1.8rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 2.8rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    /* Property Grid */
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 2.5rem;
    }

    .featured-grid {
        gap: 2.5rem;
    }

    /* Stats */
    .stat-number {
        font-size: 4rem;
    }

    .stat-label {
        font-size: 1.2rem;
    }

    /* Search Box */
    .search-box-hero {
        padding: 2.5rem;
    }

    /* Filters */
    .filters-container {
        padding: 2rem;
        gap: 2rem;
    }
}

/* Pantallas muy grandes (1920px y superiores - Full HD) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 0 4rem;
    }

    /* Hero Section */
    .hero {
        min-height: 85vh;
    }

    .hero-title {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    /* Insurance Banner */
    .insurance-banner {
        top: 75px;
    }

    .insurance-item {
        font-size: 1rem;
        padding: 0.65rem 1.3rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 3.2rem;
    }

    .cta-title {
        font-size: 3rem;
    }

    /* Property Grid */
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
        gap: 3rem;
    }

    .featured-grid {
        gap: 3rem;
    }

    /* Property Cards */
    .property-info h3 {
        font-size: 1.6rem;
    }

    .property-price {
        font-size: 2rem;
    }

    .property-description {
        font-size: 1.05rem;
    }

    /* Featured Properties */
    .featured-property {
        min-height: 600px;
    }

    .featured-info h3 {
        font-size: 2rem;
    }

    .featured-price {
        font-size: 2.2rem;
    }

    /* Stats */
    .stat-number {
        font-size: 4.5rem;
    }

    /* Forms */
    .search-inputs {
        gap: 1.5rem;
    }

    .filters-container {
        padding: 2.5rem;
        gap: 2.5rem;
    }
}

/* Pantallas ultra grandes (2560px y superiores - 2K/4K) */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
        padding: 0 5rem;
    }

    /* Hero Section */
    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 5rem;
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    /* Insurance Banner */
    .insurance-banner {
        top: 80px;
    }

    .insurance-item {
        font-size: 1.1rem;
        padding: 0.7rem 1.4rem;
    }

    /* Logo */
    .logo .certificado-api {
        height: 60px;
    }

    .logo .logo-api {
        height: 65px;
    }

    .logo .logo-diseo {
        height: 60px;
        width: 80px;
    }

    .logo-diseo-text {
        font-size: 2.7rem;
    }

    .logo-inmobiliaria-text {
        font-size: 2rem;
    }

    /* Navigation */
    .nav-link {
        font-size: 1.1rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 4rem;
    }

    .section-subtitle {
        font-size: 1.4rem;
    }

    .cta-title {
        font-size: 3.8rem;
    }

    /* Property Grid */
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
        gap: 4rem;
    }

    .featured-grid {
        gap: 4rem;
    }

    /* Property Cards */
    .property-card {
        border-radius: 16px;
    }

    .property-info {
        padding: 2rem;
    }

    .property-info h3 {
        font-size: 2rem;
    }

    .property-price {
        font-size: 2.5rem;
    }

    .property-description {
        font-size: 1.15rem;
    }

    .feature {
        font-size: 1rem;
    }

    .btn-ver-mas {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    /* Featured Properties */
    .featured-property {
        min-height: 700px;
        border-radius: 16px;
    }

    .featured-info {
        padding: 3rem;
    }

    .featured-info h3 {
        font-size: 2.5rem;
    }

    .featured-price {
        font-size: 2.8rem;
    }

    /* Stats */
    .stat-number {
        font-size: 5.5rem;
    }

    .stat-label {
        font-size: 1.4rem;
    }

    /* Page Headers */
    .page-header {
        padding: 12rem 0 6rem;
    }

    .page-title {
        font-size: 4.5rem;
    }

    .page-subtitle {
        font-size: 1.5rem;
    }

    /* Buttons */
    .btn {
        font-size: 1.1rem;
        padding: 1rem 2.5rem;
    }

    /* Forms */
    .search-box-hero {
        padding: 3rem;
        border-radius: 16px;
    }

    .filters-container {
        padding: 3rem;
        gap: 3rem;
    }

    .filter-input,
    .filter-select {
        font-size: 1.05rem;
        padding: 1rem;
    }
}

/* ============================================
   OVERLAY para menú móvil
   ============================================ */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.menu-open .menu-overlay {
    display: block;
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
}

/* Animación hamburguesa a X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: white;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: white;
}

/* ============================================
   Tablets y pantallas medianas (hasta 968px)
   ============================================ */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Navbar - reestructurar grid */
    .navbar .container {
        padding: 0 0.5rem 0 0;
    }

    .nav-wrapper {
        grid-template-columns: 1fr auto auto;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
        gap: 6px;
    }

    .logo .certificado-api {
        height: 45px;
    }

    .logo .logo-api {
        height: 50px;
    }

    .logo .logo-diseo {
        height: 45px;
        width: 58px;
        object-position: center -2px;
    }

    .logo-diseo-text {
        font-size: 1.4rem;
    }

    .logo-inmobiliaria-text {
        font-size: 1rem;
    }

    /* Menú hamburguesa visible */
    .menu-toggle {
        display: flex;
        grid-column: auto;
        z-index: 1001;
        padding: 10px;
        background: var(--primary-color);
        border-radius: 8px;
        min-width: 44px;
        min-height: 44px;
    }

    .menu-toggle span {
        width: 24px;
        height: 3px;
        background: white;
    }

    /* Auth section */
    #userAuthSection {
        grid-column: auto;
        gap: 0.5rem;
    }

    #userAuthSection .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Menú desplegable móvil */
    .nav-menu {
        position: fixed;
        left: 0;
        top: 0;
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 280px;
        height: 100vh;
        height: 100dvh;
        text-align: left;
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 5rem 0 2rem;
        gap: 0;
        z-index: 999;
        grid-column: auto;
        transform: translateX(-100%);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .nav-link:hover,
    .nav-link:active {
        background-color: var(--bg-light);
        color: var(--primary-color);
    }

    .nav-link::after {
        display: none;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Grids */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
        gap: 1.5rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Filters */
    .filters-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .filter-group {
        margin-bottom: 0;
    }

    /* Insurance Banner */
    .insurance-banner {
        top: 68px;
        left: 15px;
        right: 15px;
    }

    .insurance-content {
        gap: 1rem;
    }

    .insurance-item {
        font-size: 0.75rem;
    }

    /* Page Headers */
    .page-header {
        padding: 7rem 0 3rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    /* Property Cards */
    .property-card {
        margin-bottom: 1.5rem;
    }

    .property-info h3 {
        font-size: 1.2rem;
    }

    .property-price {
        font-size: 1.5rem;
    }

    /* Contact Forms */
    .contact-info h3 {
        font-size: 1.5rem;
    }

    .info-item {
        font-size: 0.95rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* Search Box */
    .search-box-hero {
        padding: 2rem;
    }

    .search-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Tablets pequeñas (hasta 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Logo más compacto */
    .logo {
        gap: 4px;
    }

    .logo .certificado-api {
        height: 40px;
    }

    .logo .logo-api {
        height: 42px;
    }

    .logo .logo-diseo {
        height: 40px;
        width: 52px;
    }

    .logo-diseo-text {
        font-size: 1.2rem;
    }

    .logo-inmobiliaria-text {
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Insurance Banner */
    .insurance-banner {
        top: 70px;
        left: 12px;
        right: 12px;
    }

    .insurance-item {
        font-size: 0.7rem;
        padding: 0.45rem 0.9rem;
    }

    /* Properties Grid */
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    }

    /* Featured Grid */
    .featured-grid {
        grid-template-columns: 1fr;
    }

    /* Page Header */
    .page-title {
        font-size: 2rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ============================================
   Móviles (hasta 640px)
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    /* Navbar */
    .navbar {
        padding: 0.2rem 0;
    }

    .nav-wrapper {
        gap: 0.25rem;
        padding: 0.2rem 0;
    }

    .logo {
        gap: 3px;
        padding-left: 4px;
    }

    /* En móviles pequeños, ocultar logos secundarios para dar espacio */
    .logo .certificado-api {
        display: none;
    }

    .logo .logo-api {
        display: none;
    }

    .logo .logo-diseo {
        height: 36px;
        width: 46px;
        object-position: center -2px;
    }

    .logo-diseo-text {
        font-size: 1.1rem;
    }

    .logo-inmobiliaria-text {
        font-size: 0.75rem;
    }

    /* Auth más compacto en móvil */
    #userAuthSection {
        gap: 0.3rem;
    }

    #userAuthSection .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Menú hamburguesa más prominente en móvil */
    .menu-toggle {
        padding: 8px;
        min-width: 42px;
        min-height: 42px;
        margin-left: 4px;
        flex-shrink: 0;
    }

    .menu-toggle span {
        width: 22px;
    }

    /* Menú lateral más estrecho en móvil */
    .nav-menu {
        width: 260px;
        padding-top: 4.5rem;
    }

    /* Hero Section */
    .hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Search Section */
    .search-box-hero {
        padding: 1.25rem;
    }

    .search-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-tab {
        width: 100%;
        text-align: center;
    }

    .search-inputs {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .btn-search {
        width: 100%;
        padding: 1rem;
    }

    /* Filters */
    .filters-container {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .btn-filter-reset {
        width: 100%;
    }

    /* Insurance Banner */
    .insurance-banner {
        top: 60px;
        left: 8px;
        right: 8px;
    }

    .insurance-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .insurance-item {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }

    /* Page Headers */
    .page-header {
        padding: 6rem 0 2.5rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    /* Sections */
    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 0.9rem;
    }

    /* Property Grid */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Property Cards */
    .property-card {
        margin-bottom: 1rem;
    }

    .property-image {
        height: 200px;
    }

    .property-info {
        padding: 1.2rem;
    }

    .property-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .property-location {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .property-price {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .property-features {
        flex-wrap: wrap;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .feature {
        font-size: 0.8rem;
    }

    .property-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .btn-ver-mas {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }

    /* Featured Properties */
    .featured-property {
        min-height: 300px;
    }

    .featured-info {
        padding: 1.25rem;
    }

    .featured-info h3 {
        font-size: 1.2rem;
    }

    .featured-price {
        font-size: 1.4rem;
    }

    /* Carousel Controls */
    .carousel-btn-prev {
        left: 8px;
        width: 35px;
        height: 35px;
    }

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

    /* Stats Section */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Contact Section */
    .contact-info h3 {
        font-size: 1.3rem;
    }

    .info-item {
        font-size: 0.85rem;
        padding: 0.8rem 0;
    }

    .info-item svg {
        width: 18px;
        height: 18px;
    }

    /* Forms */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 1rem;
        padding: 0.9rem;
    }

    .contact-form textarea {
        min-height: 120px;
    }

    .admin-form {
        padding: 1.5rem;
    }

    .form-section-title {
        font-size: 1.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .form-actions button {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        font-size: 0.9rem;
        padding: 0.9rem 1.5rem;
        min-height: 44px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    /* CTA Section */
    .cta {
        padding: 3rem 0;
    }

    .cta-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .feature-item h4 {
        font-size: 1.1rem;
    }

    /* Property Detail Page */
    .property-detail-grid {
        grid-template-columns: 1fr;
    }

    .property-gallery {
        height: 280px;
    }

    .property-detail-info {
        padding: 1.25rem;
    }

    /* CTA Section buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animaciones de entrada */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-button svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.whatsapp-button:hover {
    background: #20BA5A;
    transform: translateY(-4px) scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 65px;
        height: 65px;
    }

    .whatsapp-button svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 640px) {
    .whatsapp-button {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 56px;
        height: 56px;
    }

    .whatsapp-button svg {
        width: 30px;
        height: 30px;
    }
}
