/**
 * Responsive Styles - Portal SAT ContaMX
 *
 * Media queries y ajustes responsive
 * Mobile First approach
 *
 * Breakpoints:
 * - xs: 0-575px (Mobile)
 * - sm: 576px-767px (Mobile grande)
 * - md: 768px-1023px (Tablet)
 * - lg: 1024px-1279px (Desktop)
 * - xl: 1280px+ (Desktop grande)
 *
 * @package ContaMX\Portal
 * @version 0.1.0
 */

/* ========================================
   BASE - MOBILE FIRST (0-575px)
   Estilos base ya definidos en otros archivos
   ======================================== */


/* ========================================
   SMALL MOBILE (576px+)
   ======================================== */
@media (min-width: 576px) {
    /* Tipografía */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Hero Section */
    .hero-section__title {
        font-size: 3.5rem;
    }

    .hero-section__subtitle {
        font-size: 1.25rem;
    }

    /* Botones */
    .btn-custom {
        padding: var(--spacing-md) var(--spacing-2xl);
    }

    /* Cards */
    .card-service {
        padding: var(--spacing-xl);
    }
}


/* ========================================
   TABLET (768px+)
   ======================================== */
@media (min-width: 768px) {
    /* Container */
    .container-custom {
        padding: 0 var(--spacing-xl);
    }

    /* Tipografía */
    h1 {
        font-size: var(--font-size-4xl);
    }

    h2 {
        font-size: var(--font-size-3xl);
    }

    /* Secciones */
    .section {
        padding: var(--spacing-4xl) 0;
    }

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

    .section-subtitle {
        font-size: var(--font-size-xl);
    }

    /* Hero Section */
    .hero-section {
        padding: 5rem 0;
    }

    .hero-section__title {
        font-size: 4rem;
    }

    .hero-section__subtitle {
        font-size: 1.35rem;
    }

    /* Cards Grid */
    .card-service {
        padding: var(--spacing-2xl);
    }

    .card-service__icon {
        width: 72px;
        height: 72px;
    }

    .card-service__title {
        font-size: var(--font-size-2xl);
    }

    /* Footer */
    .site-footer {
        text-align: left;
    }

    /* Formularios */
    .form-control-custom {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    /* Accordion */
    .accordion-custom__header {
        padding: var(--spacing-xl);
        font-size: var(--font-size-xl);
    }

    .accordion-custom__body {
        padding: var(--spacing-xl);
        font-size: var(--font-size-base);
    }
}


/* ========================================
   DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    /* Tipografía */
    h1 {
        font-size: var(--font-size-5xl);
    }

    h2 {
        font-size: var(--font-size-4xl);
    }

    /* Secciones */
    .section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 3rem;
        margin-bottom: var(--spacing-2xl);
    }

    /* Hero Section */
    .hero-section {
        padding: 6rem 0;
    }

    .hero-section__title {
        font-size: var(--font-size-5xl);
        margin-bottom: var(--spacing-xl);
    }

    .hero-section__subtitle {
        font-size: 1.5rem;
    }

    /* Cards */
    .card-service {
        padding: var(--spacing-2xl) var(--spacing-xl);
    }

    .card-service__icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    /* Hover effects más pronunciados en desktop */
    .card-service:hover {
        transform: translateY(-8px);
    }

    .btn-custom:hover {
        transform: translateY(-3px);
    }

    /* Footer */
    .site-footer {
        padding: 5rem 0 var(--spacing-2xl) 0;
    }
}


/* ========================================
   LARGE DESKTOP (1280px+)
   ======================================== */
@media (min-width: 1280px) {
    /* Container más ancho */
    .container-custom {
        max-width: 1280px;
    }

    /* Tipografía */
    h1 {
        font-size: 3.5rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 7rem 0;
    }

    .hero-section__title {
        font-size: 4rem;
    }

    /* Secciones */
    .section {
        padding: 6rem 0;
    }

    /* Cards */
    .card-service {
        padding: var(--spacing-3xl);
    }

    /* Footer */
    .site-footer {
        padding: 6rem 0 var(--spacing-2xl) 0;
    }
}


/* ========================================
   EXTRA LARGE DESKTOP (1536px+)
   ======================================== */
@media (min-width: 1536px) {
    .container-custom {
        max-width: 1400px;
    }

    .hero-section__title {
        font-size: 4.5rem;
    }
}


/* ========================================
   LANDSCAPE MODE (MÓVILES)
   ======================================== */
@media (max-height: 600px) and (orientation: landscape) {
    /* Reducir padding vertical en modo horizontal */
    .hero-section {
        padding: var(--spacing-2xl) 0;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .hero-section__title {
        font-size: 2rem;
    }

    .hero-section__subtitle {
        font-size: 1rem;
    }
}


/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    /* Ocultar navegación y footer al imprimir */
    .site-header,
    .site-footer,
    .scroll-to-top,
    .btn-custom {
        display: none !important;
    }

    /* Ajustar colores para impresión */
    body {
        color: #000;
        background: #fff;
    }

    /* Evitar saltos de página innecesarios */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    .card-service {
        page-break-inside: avoid;
    }

    /* Quitar sombras y efectos */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a {
        text-decoration: underline;
    }

    /* Mostrar URLs de enlaces */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}


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

    .scroll-to-top {
        transition: opacity 0.2s, visibility 0.2s;
    }
}


/* ========================================
   UTILIDADES RESPONSIVE
   ======================================== */

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

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
}

/* Ocultar en desktop */
.hide-desktop {
    display: block;
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none;
    }
}

/* Solo en tablet */
.show-tablet {
    display: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .show-tablet {
        display: block;
    }
}


/* ========================================
   GRID RESPONSIVE
   ======================================== */

/* Grid de servicios - responsivo */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-2xl);
    }
}
