/* ===================================
   RESET Y VARIABLES CSS
   =================================== */
   :root {
    /* Colores principales */
    --color-black: #000000;
    --color-white: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.3);
    --color-navbar-bg: rgba(255, 255, 255, 0.95);
    --color-button-bg: rgba(255, 255, 255, 0.2);
    --color-button-border: rgba(255, 255, 255, 0.4);
    --color-button-hover-bg: rgba(255, 255, 255, 0.3);
    --color-button-hover-border: rgba(255, 255, 255, 0.6);
    --color-button-active-bg: rgba(255, 255, 255, 0.9);
    
    /* Fuentes */
    --font-primary: 'EB Garamond', serif;
    
    /* Espaciado */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Transiciones */
    --transition-base: all 0.3s ease;
    
    /* Z-index */
    --z-video: -1;
    --z-overlay: 1;
    --z-content: 2;
    --z-navbar: 1000;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================================
   ESTILOS BASE
   =================================== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    overflow-x: hidden;
    background: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   NAVBAR / MENÚ FLOTANTE
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-md) var(--spacing-xl);
    z-index: var(--z-navbar);
    transition: var(--transition-base);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Animación suave al hacer scroll */
.navbar.scrolled {
    padding: 15px var(--spacing-xl);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition-base);
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-container img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-black);
    letter-spacing: 0.5px;
}

/* ===================================
   SECCIÓN HERO
   =================================== */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Video de fondo - Ajustado para no cortar cabezas */
.video-background {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    z-index: var(--z-video);
    object-fit: cover;
    object-position: center 20%; /* Ajusta la posición vertical del video */
}

/* Overlay para mejorar legibilidad */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.6) 100%);
    z-index: var(--z-overlay);
    pointer-events: none;
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: var(--z-content);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(80px + var(--spacing-xl)) var(--spacing-xl) var(--spacing-xl);
    color: var(--color-white);
}

/* Removed iOS specific rule to avoid conflicts */

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* ===================================
   FORMULARIO DE CONTACTO
   =================================== */
.contact-form {
    margin-top: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    position: relative;
}

.form-group-full {
    grid-column: 1 / -1;
}

/* Inputs y textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Estados de validación */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff6b6b;
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #51cf66;
}

/* Mensajes de error */
.error-message {
    display: none;
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.875rem;
    color: #ff6b6b;
    animation: fadeIn 0.3s ease;
}

.error-message.show {
    display: block;
}

/* Checkbox */
.checkbox-group {
    margin-top: var(--spacing-sm);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    min-width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-white);
}

.checkbox-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--color-white);
    text-decoration: underline;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.checkbox-text a:hover {
    opacity: 0.8;
}

/* ===================================
   BOTONES DE ACCIÓN
   =================================== */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 14px 24px;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    outline: none;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-black);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===================================
   INFORMACIÓN DE OFICINA
   =================================== */
.office-info {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.office-address {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.office-address::before {
    content: "📍";
    font-size: 1.1rem;
}

.office-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
}

.office-link:hover,
.office-link:focus {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
    opacity: 1;
}

/* ===================================
   MENSAJE DE ESTADO DEL FORMULARIO
   =================================== */
.form-status {
    margin-top: var(--spacing-md);
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-status.show {
    display: block;
}

.form-status.success {
    background: rgba(81, 207, 102, 0.2);
    border: 1px solid rgba(81, 207, 102, 0.5);
    color: #51cf66;
}

.form-status.error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

/* ===================================
   BOTÓN DE AUDIO
   =================================== */
.audio-toggle {
    position: absolute;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    background: var(--color-button-bg);
    border: 1px solid var(--color-button-border);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-base);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    outline: none;
    z-index: 10;
}

.audio-toggle:hover {
    background: var(--color-button-hover-bg);
    border-color: var(--color-button-hover-border);
    transform: translateY(-2px);
}

.audio-toggle:active {
    transform: translateY(0);
}

.audio-toggle.playing {
    background: var(--color-button-active-bg);
    color: var(--color-black);
}

.audio-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Icono de sonido */
.sound-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-base);
}

.sound-on, .sound-off {
    transition: opacity 0.2s ease;
}

/* ===================================
   MODAL DE MAPA
   =================================== */
.map-modal .modal-content-map {
    max-width: 95vw;
    width: 95vw;
    height: 90vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

#mapDiv {
    width: 100% !important;
    height: 100% !important;
}

/* Info window personalizada */
.apartment-info {
    padding: 10px;
    min-width: 200px;
}

.apartment-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #333;
}

.apartment-info .info-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: #666;
}

.apartment-info .info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.apartment-info .btn-view {
    margin-top: 10px;
    padding: 6px 12px;
    background: #b8860b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
}

.apartment-info .btn-view:hover {
    background: #9a7209;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: #111;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-section {
    margin-bottom: 30px;
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-description {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

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

.footer-list li {
    margin-bottom: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.footer-link:hover {
    color: #fff;
}

.footer-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-address-link {
    cursor: pointer;
}

/* Redes sociales y copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   ESTILOS PARA DIRECCIONES CLICABLES
   =================================== */
.clickable-address {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.clickable-address:hover {
    opacity: 0.8;
}

.location-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #666;
}

.apartment-address {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-black);
}

/* Indicador de disponibilidad */
.availability {
    font-weight: 500;
}

.availability.available {
    color: #4c9aff;
}

.availability.occupied {
    color: #51cf66;
}

/* ===================================
   GOOGLE MAPS INFO WINDOW OVERRIDES
   =================================== */
/* Asegurar que Google Maps respete nuestros anchos */
.gm-style-iw-d {
    overflow: visible !important;
    max-width: none !important;
}

.gm-style-iw {
    padding: 0 !important;
    overflow: visible !important;
}

.gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    max-width: none !important;
    overflow: hidden !important;
}

.gm-style-iw-t {
    display: none !important;
}

.gm-style-iw-t::after {
    display: none !important;
}

/* Ocultar el botón X del info window */
.gm-style-iw-tc::after {
    display: none !important;
}

.gm-ui-hover-effect {
    display: none !important;
}

/* Asegurar que el contenido del info window llene todo el espacio */
.map-info-window {
    margin: 0 !important;
    padding: 0 !important;
}

/* Eliminar el triángulo inferior del info window */
.gm-style-iw-tc {
    display: none !important;
}

/* Forzar que el contenido empiece desde arriba */
.gm-style-iw-d > div:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* En móvil, ajustar el ancho del contenedor principal */
@media (max-width: 768px) {
    .gm-style .gm-style-iw-c {
        max-width: calc(100vw - 40px) !important;
    }
    
    .gm-style .gm-style-iw-d {
        max-width: 100% !important;
    }
}

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

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

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

/* ===================================
   MEDIA QUERIES - RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 30px;
    }
    
    .navbar.scrolled {
        padding: var(--spacing-sm) 30px;
    }
    
    .logo-container img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    /* 1. Move titles lower to avoid navbar collision - FIXED */
    .hero-section {
        min-height: 100vh;
        padding-top: 0 !important;
    }
    
    .hero-content {
        padding: 30px !important;
        padding-top: 160px !important;
        min-height: calc(100vh - 160px);
        position: relative !important;
    }
    
    /* Force consistent spacing with higher specificity */
    body .hero-section .hero-content {
        padding-top: 160px !important;
    }
    
    .hero-content h1 {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 20px;
        position: relative;
    }
    
    .hero-content h2 {
        margin-top: 0 !important;
        margin-bottom: 30px;
        position: relative;
    }
    
    /* 3. Adjust video height to align with form */
    .video-background {
        height: calc(100vh + 200px);
        object-position: center 25%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    /* 4. Action buttons reorganized with Grid */
    .action-buttons {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px;
        margin-top: var(--spacing-md);
        width: 100%;
    }
    
    /* Submit button full width */
    .action-buttons button[type="submit"] {
        grid-column: 1 / -1;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Wrapper for secondary buttons using adjacent sibling selector */
    .action-buttons button[type="submit"] ~ .btn {
        grid-column: auto;
    }
    
    /* Create a sub-grid for secondary buttons */
    .action-buttons {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }
    
    /* Override to create horizontal layout for secondary buttons */
    .action-buttons button[type="submit"] {
        grid-column: 1 / -1;
    }
    
    .action-buttons .btn-secondary {
        width: 100%;
    }
    
    /* Use flexbox inside grid for secondary buttons */
    @supports (display: grid) {
        .action-buttons {
            display: flex !important;
            flex-wrap: wrap !important;
            gap: 10px;
        }
        
        .action-buttons button[type="submit"] {
            flex: 0 0 100%;
        }
        
        .action-buttons .btn-secondary {
            flex: 1 1 calc(33.333% - 10px);
            min-width: 90px;
            padding: 10px 5px !important;
            font-size: 0.8rem !important;
            justify-content: center !important;
            text-align: center !important;
        }
    }
    
    .action-buttons .btn-secondary .btn-icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    
    /* 5. Audio button icon only */
    .audio-toggle {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        padding: 10px;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        font-size: 0;
    }
    
    .audio-toggle .sound-icon {
        width: 24px;
        height: 24px;
        margin: 0;
    }
    
    .sound-icon {
        width: 18px;
        height: 18px;
    }
    
    /* 6. Larger modal images on mobile */
    .gallery-modal .modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* Ensure terms modal can scroll on mobile */
    #termsModal .modal-content {
        width: 95%;
        max-width: 95%;
        height: auto;
        max-height: 90vh;
        margin: 20px auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 30px 20px;
    }
    
    .gallery-modal .modal-body {
        flex: 1;
        overflow: hidden;
        padding: 0;
    }
    
    /* Ensure terms modal body can scroll */
    #termsModal .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        height: auto;
    }
    
    .apartment-images {
        height: 60vh;
        position: relative;
    }
    
    .apartment-images img {
        height: 100%;
        width: 100%;
        object-fit: contain;
        background: #000;
    }
    
    .carousel-control {
        width: 50%;
        height: 100%;
        background: none;
        opacity: 0;
    }
    
    .carousel-control:hover {
        opacity: 1;
        background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
    }
    
    .carousel-control.next:hover {
        background: linear-gradient(to left, rgba(0,0,0,0.3), transparent);
    }
    
    .carousel-control svg {
        width: 30px;
        height: 30px;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        padding: 5px;
    }
    
    /* Footer responsive */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Better mobile UX when keyboard is visible */
    .keyboard-visible .hero-content {
        padding-bottom: 20px;
    }
    
    /* Ensure JavaScript-applied spacing is maintained */
    .hero-content.spacing-fixed {
        padding-top: 160px !important;
    }
    
    .keyboard-visible .contact-form {
        position: relative;
        z-index: 10;
    }
    
    /* Highlight active form */
    .contact-form.input-focused {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 15px;
        margin: -15px;
        transition: all 0.3s ease;
    }
    
    /* Auto-resize textarea */
    .contact-form textarea {
        min-height: 60px;
        max-height: 150px;
        resize: none;
        overflow-y: auto;
    }
    
    /* Ensure JavaScript-applied spacing is maintained for smaller screens */
    .hero-content.spacing-fixed {
        padding-top: 180px !important;
    }
    
    .footer-link {
        justify-content: center;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Maps already fullscreen on all devices */
}

@media (max-width: 480px) {
    /* More spacing for smaller screens - FIXED */
    .hero-section {
        padding-top: 0 !important;
    }
    
    .hero-content {
        padding: var(--spacing-md) !important;
        padding-top: 180px !important;
    }
    
    /* Force consistent spacing with higher specificity */
    body .hero-section .hero-content {
        padding-top: 180px !important;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 15px;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
        margin-bottom: 25px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    /* Even smaller action buttons on very small screens */
    .action-buttons .btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .action-buttons .btn-icon {
        width: 16px;
        height: 16px;
    }
    
    .audio-toggle {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .audio-toggle .sound-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Apartment images take more screen */
    .apartment-images {
        height: 70vh;
    }
}

/* ===================================
   UTILIDADES
   =================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mejora del rendimiento para animaciones */
.video-background,
.navbar,
.audio-toggle {
    will-change: transform;
}

/* Print styles */
@media print {
    .navbar,
    .audio-toggle,
    .video-background,
    .site-footer {
        display: none;
    }
    
    .hero-content {
        color: var(--color-black);
    }
}