/* Estilos responsive para Pichincha Rural Vive */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-slider {
        height: 450px;
    }
    
    .slide-content {
        left: 5%;
        bottom: 15%;
        max-width: 500px;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape (576px - 768px) */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-links {
        margin-bottom: 0.5rem;
    }
    
    .search-box input {
        width: 180px;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .logo {
        width: 100%;
        margin-bottom: 1rem;
        justify-content: center;
        text-align: center;
    }
    
    .logo a {
        flex-direction: column;
        text-align: center;
    }
    
    .logo img {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .submenu {
        position: static;
        box-shadow: none;
        width: 100%;
        display: none;
        background-color: #f9f9f9;
    }
    
    .submenu.active {
        display: block;
    }
    
    .submenu a {
        padding-left: 2rem;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .slide-content {
        position: relative;
        left: 0;
        bottom: 0;
        padding: 2rem;
        text-align: center;
        background: linear-gradient(transparent, rgba(0,0,0,0.7));
        width: 100%;
        max-width: 100%;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-card {
        margin-bottom: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Mobile Portrait (hasta 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .slider-btn {
        display: none;
    }
    
    .slider-indicators {
        bottom: 1rem;
    }
    
    .service-card,
    .news-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .news-image {
        height: 180px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

/* Pantallas muy pequeñas (hasta 360px) */
@media (max-width: 360px) {
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .search-box input {
        width: 150px;
        font-size: 0.9rem;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .btn-hero {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card h3,
    .news-content h3 {
        font-size: 1.1rem;
    }
}