/* ===================================
   RESPONSIVE DESIGN
   Mobile First Approach
   =================================== */

/* ===================================
   EXTRA SMALL DEVICES (< 576px)
   =================================== */
@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }

    .navbar-brand img {
        max-height: 40px !important;
    }

    .top-bar {
        text-align: center;
    }

    .contact-info,
    .social-links {
        justify-content: center;
        display: flex;
    }
}

/* ===================================
   SMALL DEVICES (≥ 576px)
   =================================== */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

/* ===================================
   MEDIUM DEVICES (≥ 768px)
   =================================== */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* ===================================
   LARGE DEVICES (≥ 992px)
   =================================== */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .navbar-expand-lg .navbar-nav {
        margin-left: auto;
    }
}

/* ===================================
   EXTRA LARGE DEVICES (≥ 1200px)
   =================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ===================================
   XXL DEVICES (≥ 1400px)
   =================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }
}

/* ===================================
   TABLET LANDSCAPE
   =================================== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        min-height: 500px;
    }
}

/* ===================================
   MOBILE NAVIGATION
   =================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #eee;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

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

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .navbar,
    .top-bar,
    #main-footer,
    .btn,
    .social-links {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
    }
}

/* ===================================
   HIGH CONTRAST MODE
   =================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #ff0000;
        --text-color: #000000;
    }

    .navbar,
    .card {
        border: 2px solid #000;
    }
}

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

/* ===================================
   DARK MODE SUPPORT
   =================================== */
@media (prefers-color-scheme: dark) {
    /* Soporte para modo oscuro si se desea implementar */
    /* body {
        background-color: #1a1a1a;
        color: #ffffff;
    } */
}
