/* ============================================
   RESPONSIVE STYLES
   Mobile-first approach
   ============================================ */

/* Base Mobile Styles */
@media screen and (max-width: 767px) {
    /* Global Adjustments */
    body {
        font-size: 15px;
        line-height: 1.6;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Header & Navigation */
    .header {
        height: auto;
        min-height: 100vh;
    }

    .menu {
        padding: 15px;
    }

    .menu-icono {
        display: block;
        cursor: pointer;
        z-index: 1000;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease;
        z-index: 999;
        padding: 80px 20px 40px;
    }

    .navbar.show {
        right: 0;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .navbar li {
        margin: 15px 0;
    }

    .header-content {
        padding: 120px 20px 80px;
    }

    .header-txt h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    /* About Section */
    .about-block {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .about-text-content,
    .about-media-container {
        width: 100%;
        padding: 0;
    }

    .about-media-container {
        margin-top: 30px;
    }

    /* Services Section */
    .service-item {
        padding: 30px 15px;
    }

    /* Books Section */
    .book-card {
        margin-bottom: 30px;
    }

    /* Partners Section */
    .partners-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .partner-logo {
        margin: 0 auto;
    }

    /* Contact Section */
    .contact-form {
        padding: 20px;
    }

    /* Social Section */
    .social-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-card {
        padding: 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 20px;
    }

    .footer-links {
        margin: 20px 0;
    }
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .header-content {
        padding: 150px 40px 100px;
    }

    .header-txt h1 {
        font-size: 2.5rem;
    }

    .about-block {
        flex-direction: column;
    }

    .about-text-content,
    .about-media-container {
        width: 100%;
    }

    .about-media-container {
        margin-top: 40px;
    }

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

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

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .header-txt h1 {
        font-size: 1.8rem;
    }

    .header-txt p {
        font-size: 1rem;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Landscape Mode */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .header {
        height: auto;
        min-height: 100vh;
    }

    .header-content {
        padding: 100px 20px 60px;
    }

    .header-txt h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
}

/* High DPI Devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Add high DPI specific styles here */
    .logo img,
    .social-icon {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Print Styles */
@media print {
    .header,
    .menu,
    .footer {
        display: none !important;
    }

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

    .container {
        width: 100%;
        padding: 0;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }

    .no-print {
        display: none !important;
    }
}
