/* ============================================
   APR Innovation - Estilos Responsivos
   ============================================ */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .cards-grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile (< 768px) */
@media screen and (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    html {
        font-size: 14px;
    }
    
    /* Top Bar */
    .top-bar-content {
        justify-content: center;
        font-size: 0.75rem;
    }
    
    /* Header */
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        box-shadow: var(--box-shadow-lg);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-sm);
        width: 100%;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .btn-header {
        display: none;
    }
    
    /* Logo */
    .navbar-brand .logo {
        height: 120px;
    }
    
    .footer-logo .logo-footer {
        height: 120px;
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
        height: 70vh;
        max-height: 600px;
    }
    
    .carousel-slide {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .carousel-controls {
        padding: 0 var(--spacing-xs);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .subsection-title {
        font-size: 1.5rem;
    }
    
    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .cards-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: var(--spacing-sm);
    }
    
    .card-service {
        padding: var(--spacing-md);
    }
    
    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .project-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .stat-box {
        width: 100%;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-form-wrapper,
    .contact-info {
        padding: var(--spacing-md);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    /* Modal */
    .modal-content {
        margin: var(--spacing-sm);
        max-width: calc(100% - 2rem);
    }
    
    .modal-body {
        padding: var(--spacing-md);
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small Mobile (< 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .project-stats {
        gap: var(--spacing-xs);
    }
    
    .stat-box {
        min-width: auto;
        padding: var(--spacing-sm);
    }
    
    .stat-box .stat-number {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .header,
    .carousel-controls,
    .carousel-indicators,
    .footer,
    .btn {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

