/* ============================================================================
   OMAR LANDING - ESTILOS RESPONSIVOS
   ============================================================================ */

/* ============================================================================
   TABLETS (768px - 1024px)
   ============================================================================ */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .navbar-menu {
        gap: var(--spacing-lg);
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

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

    .package-card.featured {
        transform: scale(1);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }
}

/* ============================================================================
   MÓVILES GRANDES (600px - 768px)
   ============================================================================ */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .navbar-content {
        padding: var(--spacing-sm) 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 27, 46, 0.95);
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        border-bottom: 1px solid rgba(26, 140, 255, 0.2);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    .hero {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: var(--spacing-2xl);
    }

    .hero-content {
        text-align: center;
    }

    .hero-text-group {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-buttons {
        justify-content: center;
        gap: var(--spacing-sm);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }

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

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: var(--spacing-md);
    }

    .section-header p {
        font-size: 0.95rem;
    }

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

    .service-card {
        padding: var(--spacing-md);
    }

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

    .process-step {
        padding: var(--spacing-md);
    }

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

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

    .portfolio-card {
        padding: var(--spacing-md);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-text h2 {
        font-size: 1.75rem;
    }

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

    .testimonial-card {
        padding: var(--spacing-md);
    }

    .cta-content h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .modal-content {
        width: 95%;
        padding: var(--spacing-lg);
    }

    .modal-close {
        font-size: 1.5rem;
    }

    .form-group {
        margin-bottom: var(--spacing-md);
    }
}

/* ============================================================================
   MÓVILES PEQUEÑOS (360px - 600px)
   ============================================================================ */
@media (max-width: 600px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .navbar {
        padding: 0;
    }

    .navbar-content {
        padding: var(--spacing-sm) var(--spacing-sm);
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }

    .navbar-menu {
        top: 60px;
        padding: var(--spacing-md);
    }

    .navbar-link {
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 60px;
        padding-bottom: var(--spacing-lg);
    }

    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-lg);
    }

    .section-header h2 {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
        margin-bottom: var(--spacing-sm);
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-md);
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .process-step {
        padding: var(--spacing-md);
    }

    .process-step h3 {
        font-size: 1.1rem;
    }

    .step-list li {
        font-size: 0.85rem;
    }

    .package-card {
        padding: var(--spacing-md);
    }

    .package-card h3 {
        font-size: 1.25rem;
    }

    .price {
        font-size: 2rem;
    }

    .package-description {
        font-size: 0.85rem;
    }

    .features-list li {
        font-size: 0.8rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .portfolio-card {
        padding: var(--spacing-md);
    }

    .portfolio-card h3 {
        font-size: 1rem;
    }

    .portfolio-card p {
        font-size: 0.85rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-description p {
        font-size: 0.9rem;
    }

    .about-credentials h3 {
        font-size: 1.1rem;
    }

    .credentials-list li {
        font-size: 0.85rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .testimonial-card {
        padding: var(--spacing-md);
    }

    .testimonial-quote {
        font-size: 0.9rem;
    }

    .author-name {
        font-size: 0.95rem;
    }

    .author-role {
        font-size: 0.8rem;
    }

    .final-cta {
        padding: var(--spacing-lg) 0;
    }

    .cta-content h2 {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }

    .modal-content {
        width: 95%;
        padding: var(--spacing-md);
        max-height: 95vh;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }

    .modal-close {
        font-size: 1.25rem;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    .form-group {
        margin-bottom: var(--spacing-md);
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: var(--spacing-xs);
        font-size: 0.9rem;
    }

    .form-note {
        font-size: 0.75rem;
    }
}

/* ============================================================================
   ULTRA MÓVILES (< 360px)
   ============================================================================ */
@media (max-width: 360px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1rem;
        --spacing-2xl: 1.5rem;
    }

    .container {
        padding: 0 var(--spacing-xs);
    }

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

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .package-card h3 {
        font-size: 1.1rem;
    }

    .price {
        font-size: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.25rem;
    }

    .modal-content {
        width: 98%;
    }
}

/* ============================================================================
   ORIENTACIÓN HORIZONTAL (LANDSCAPE)
   ============================================================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-md);
    }

    section {
        padding: var(--spacing-lg) 0;
    }
}

/* ============================================================================
   IMPRESORA
   ============================================================================ */
@media print {
    .navbar,
    .modal,
    .btn,
    .cta-buttons {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ============================================================================
   PANTALLAS DE ALTA DENSIDAD (RETINA)
   ============================================================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ============================================================================
   MODO OSCURO (PREFERS-COLOR-SCHEME)
   ============================================================================ */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(to bottom, var(--dark-bg), var(--dark-secondary), var(--dark-tertiary));
    }
}

/* ============================================================================
   MODO CLARO (PREFERS-COLOR-SCHEME)
   ============================================================================ */
@media (prefers-color-scheme: light) {
    body {
        background: #f5f5f5;
        color: #333;
    }

    .navbar {
        background: rgba(255, 255, 255, 0.9);
    }

    .navbar-brand {
        color: var(--primary-blue);
    }
}

/* ============================================================================
   MOVIMIENTO REDUCIDO
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================================
   CONTRASTE ALTO
   ============================================================================ */
@media (prefers-contrast: more) {
    .btn {
        border: 2px solid currentColor;
    }

    .navbar-link {
        text-decoration: underline;
    }
}
