/**
 * responsive.css — Mallorkinas Child Theme
 * Media queries globales. Ajustes de layout para mobile, tablet y desktop.
 * Los estilos responsive específicos de componentes están en sus propios archivos.
 * Este archivo contiene solo ajustes globales y de layout general.
 */

/* =========================================================
   DESKTOP WIDE (> 1200px)
   ========================================================= */

@media (min-width: 1200px) {

    .mk-section {
        padding-block: var(--mk-section-padding);
    }
}

/* =========================================================
   TABLET (600px – 980px)
   ========================================================= */

@media (max-width: 980px) {

    .mk-section {
        padding-block: var(--mk-section-padding-md);
    }

    .mk-container,
    .mk-container--wide {
        padding-inline: 16px;
    }

    /* Grid de 2 columnas en tablet */
    .mk-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Header */
    .mk-header-desktop-nav {
        display: none;
    }

    /* Tipografía */
    h1 { font-size: clamp(24px, 5vw, 36px); }
    h2 { font-size: clamp(20px, 4vw, 28px); }
    h3 { font-size: clamp(17px, 3vw, 22px); }
}

/* =========================================================
   MOBILE (< 600px)
   ========================================================= */

@media (max-width: 600px) {

    .mk-section {
        padding-block: var(--mk-section-padding-mobile);
    }

    .mk-container,
    .mk-container--wide {
        padding-inline: 12px;
    }

    /* Ocultar en mobile */
    .mk-hide-mobile {
        display: none !important;
    }

    /* Solo visible en mobile */
    .mk-show-mobile {
        display: block !important;
    }

    /* Grids */
    .mk-grid-2,
    .mk-grid-3,
    .mk-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Tipografía */
    h1 { font-size: clamp(22px, 6vw, 30px); }
    h2 { font-size: clamp(18px, 5vw, 24px); }
    h3 { font-size: clamp(16px, 4vw, 20px); }

    /* Botones */
    .mk-btn--full-mobile {
        width: 100%;
    }

    /* Footer */
    .mk-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mk-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* =========================================================
   AJUSTES ELEMENTOR RESPONSIVE
   ========================================================= */

/* Asegurar que los contenedores de Elementor sean responsivos */
@media (max-width: 980px) {

    .elementor-column,
    .elementor-col-50 {
        width: 100%;
    }

    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 100%;
    }
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .site-header,
    .site-footer,
    .mk-header-icons,
    .elementor-location-header,
    .elementor-location-footer {
        display: none;
    }

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

    a {
        color: #000;
        text-decoration: none;
    }
}
