/* Responsive Design */

/* Tablets y dispositivos medianos (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .nosotros-content,
    .contacto-content {
        gap: 2rem;
    }
    
    .servicios-grid,
    .testimonios-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* Tablets pequeñas y móviles grandes (768px y menos) */
@media screen and (max-width: 768px) {
    /* Logo grande y legible para móviles */
    .logo {
        height: 75px;
        max-width: 250px;
    }
    
    /* Navegación móvil */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-medium);
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero section móvil */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .hero-placeholder i {
        font-size: 5rem;
    }
    
    /* Secciones móvil */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Nosotros móvil */
    .nosotros-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .nosotros-text h2 {
        text-align: center;
    }
    
    .caracteristica {
        justify-content: center;
    }
    
    /* Servicios móvil */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .servicio-card {
        padding: 1.5rem;
    }
    
    /* Testimonios móvil */
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonio-card {
        padding: 1.5rem;
    }
    
    /* Contacto móvil */
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contacto-info {
        text-align: center;
    }
    
    .info-item {
        justify-content: center;
    }
    
    /* Footer móvil */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section ul {
        text-align: center;
    }
}

/* Móviles pequeños (480px y menos) */
@media screen and (max-width: 480px) {
    /* Logo grande y legible para móviles */
    .logo {
        height: 65px;
        max-width: 200px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .hero-placeholder i {
        font-size: 4rem;
    }
    
    .servicio-icon {
        width: 60px;
        height: 60px;
    }
    
    .servicio-icon i {
        font-size: 1.5rem;
    }
    
    .testimonio-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Móviles muy pequeños (320px y menos) */
@media screen and (max-width: 320px) {
    /* Logo aún más grande */
    .logo {
        height: 45px;
        max-width: 140px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .hero-placeholder i {
        font-size: 3rem;
    }
    
    .servicio-card,
    .testimonio-card {
        padding: 1rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Orientación horizontal en móviles */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .nav-menu {
        padding-top: 1rem;
    }
}

/* Tablets en orientación vertical */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nosotros-content,
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Impresión */
@media print {
    .navbar,
    .footer,
    .btn,
    .nav-toggle {
        display: none !important;
    }
    
    .hero,
    section {
        padding: 2rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
    }
}