/* Tablet Styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 15px;
  }

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

  .units-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--secondary-color);
    transition: var(--transition-medium);
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    height: 100%;
    justify-content: flex-start;
  }

  .nav-item {
    width: 100%;
    margin-bottom: 1rem;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--primary-color);
    box-shadow: none;
    border: none;
    margin-top: 0.5rem;
    border-radius: 8px;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .banner-title {
    font-size: 2.5rem;
  }

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

  .btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .units-section {
    padding: 3rem 0;
  }

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

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .card-contacts {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .separator {
    display: none;
  }

  .instagram-section {
    padding: 3rem 0;
  }

  .instagram-feed {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-button {
    width: 55px;
    height: 55px;
  }

  .whatsapp-icon {
    width: 25px;
    height: 25px;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .unit-option {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .unit-option img {
    width: 80px;
    height: 80px;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .nav-container {
    padding: 0 10px;
  }

  .banner-title {
    font-size: 2rem;
  }

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

  .btn-primary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

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

  .units-grid {
    grid-template-columns: 1fr;
  }

  .unit-card {
    margin: 0 10px;
  }

  .card-content {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .contact-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .whatsapp-tooltip {
    right: -10px;
    font-size: 0.85rem;
  }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .nav-container {
    max-width: 1400px;
  }

  .banner-title {
    font-size: 4rem;
  }

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

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

  .units-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .whatsapp-float,
  .whatsapp-modal {
    display: none !important;
  }

  .banner-section {
    height: auto;
    padding: 2rem 0;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .unit-card,
  .footer {
    background: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --border-color: #ffffff;
  }

  .unit-card {
    border: 2px solid var(--accent-blue);
  }

  .nav-link {
    border: 1px solid transparent;
  }

  .nav-link:hover,
  .nav-link.active {
    border-color: var(--accent-blue);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pulse-animation {
    animation: none;
  }

  .whatsapp-button {
    animation: none;
  }
}
