/* ============================================
   DISEÑOSTHONY - CSS RESPONSIVE PARA PRODUCCIÓN
   Versión: 1.0 | Fecha: 2025
   ============================================ */

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets y laptops pequeñas (hasta 1024px) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .proceso-timeline::before {
        left: 40px;
    }
    
    .proceso-item {
        flex-direction: row !important;
        margin-left: 80px;
    }
    
    .proceso-content {
        width: 100%;
    }
    
    .proceso-number {
        left: 0;
        transform: translateX(-50%);
    }
    
    .zonas-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    /* Cookie banner responsive */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Portfolio responsive */
    .portafolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    /* Testimonios responsive */
    .testimonio-card {
        padding: 2rem;
    }
    
    /* Contacto responsive */
    .contacto-container {
        gap: 2rem;
    }
}

/* Tablets (hasta 768px) */
@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Navegación responsive */
    .nav-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-btn {
        display: none;
    }
    
    /* Servicios responsive */
    .servicios-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .servicio-card {
        padding: 2rem 1.5rem;
    }
    
    /* Proceso responsive */
    .proceso-timeline::before {
        left: 30px;
    }
    
    .proceso-item {
        margin-left: 60px;
    }
    
    .proceso-content {
        padding: 1.5rem;
    }
    
    .proceso-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Portfolio responsive */
    .portafolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .portafolio-item {
        height: 250px;
    }
    
    /* Testimonios responsive */
    .testimonios-slider {
        margin: 0 1rem;
    }
    
    .testimonio-card {
        padding: 1.5rem;
    }
    
    .testimonio-text {
        font-size: 1rem;
        padding: 0;
    }
    
    .author-img {
        width: 50px;
        height: 50px;
    }
    
    /* Contacto responsive */
    .contacto-container {
        grid-template-columns: 1fr;
    }
    
    .contacto-form {
        padding: 1.5rem;
    }
    
    /* Zonas responsive */
    .zonas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .zona-item {
        padding: 1rem;
    }
    
    /* Breadcrumb responsive */
    .breadcrumb {
        margin-top: 70px;
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Cookie modal responsive */
    .cookie-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cookie-modal-btn {
        width: 100%;
    }
    
    /* Footer responsive */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Google Adsense responsive */
    .adsbygoogle {
        margin: 1rem auto;
    }
}

/* Móviles (hasta 480px) - INCLUYE TECNO SPARK C20 */
@media (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hero {
        padding-top: 4rem;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Servicios responsive */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .servicio-card {
        padding: 1.5rem;
    }
    
    .servicio-icon {
        font-size: 2.5rem;
    }
    
    .servicio-card h3 {
        font-size: 1.3rem;
    }
    
    /* Proceso responsive */
    .proceso-item {
        margin-left: 40px;
    }
    
    .proceso-content {
        padding: 1.2rem;
    }
    
    .proceso-content h3 {
        font-size: 1.2rem;
    }
    
    .proceso-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        box-shadow: 0 0 0 6px var(--primary);
    }
    
    /* Portfolio responsive */
    .portafolio-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .portafolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portafolio-item {
        height: 220px;
    }
    
    .portafolio-overlay {
        padding: 1.5rem;
    }
    
    .portafolio-info h3 {
        font-size: 1.3rem;
    }
    
    .portafolio-info p {
        font-size: 0.9rem;
    }
    
    /* Testimonios responsive */
    .testimonio-card {
        padding: 1.2rem;
    }
    
    .testimonio-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonio-author {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .author-info h4 {
        font-size: 1.1rem;
    }
    
    .slider-controls {
        margin-top: 1.5rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Contacto responsive */
    .contacto-info h3 {
        font-size: 1.5rem;
    }
    
    .contacto-detail {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .contacto-icon {
        width: 45px;
        height: 45px;
    }
    
    .contacto-text h4 {
        font-size: 1rem;
    }
    
    .contacto-text p {
        font-size: 0.9rem;
    }
    
    .contacto-social {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .form-textarea {
        min-height: 120px;
    }
    
    .submit-btn {
        padding: 0.9rem;
        font-size: 1rem;
    }
    
    /* Zonas responsive */
    .zonas-title {
        font-size: 1.5rem;
    }
    
    .zonas-subtitle {
        font-size: 1rem;
    }
    
    .zonas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .zona-icon {
        font-size: 1.8rem;
    }
    
    .zona-item h4 {
        font-size: 1.1rem;
    }
    
    /* Logo y navegación mobile */
    .header-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .logo i {
        font-size: 1.2rem;
    }
    
    .nav-mobile-links a {
        font-size: 1.5rem;
    }
    
    .header-btn-mobile {
        display: inline-block;
        background-color: var(--accent);
        color: var(--primary);
        padding: 0.6rem 1.2rem;
        border-radius: 30px;
        font-weight: 600;
        font-size: 0.85rem;
        margin-top: 2rem;
    }
    
    /* Cookie banner mobile */
    .cookie-text h3 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Footer mobile */
    .footer-logo {
        font-size: 1.8rem;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
    
    .footer-copy {
        font-size: 0.8rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb {
        margin-top: 60px;
        font-size: 0.7rem;
    }
    
    /* Modal mobile */
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* Acordeón mobile */
    .accordion-header {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-content {
        font-size: 0.9rem;
    }
    
    /* Badges mobile */
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Tooltips mobile */
    .tooltip .tooltiptext {
        width: 150px;
        font-size: 0.8rem;
    }
}

/* Móviles muy pequeños (hasta 360px) - TECNO SPARK C20 y similares */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .logo {
        font-size: 1.3rem;
        max-width: 65%;
    }
    
    .logo i {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .servicio-card {
        padding: 1.2rem;
    }
    
    .servicio-card h3 {
        font-size: 1.2rem;
    }
    
    .servicio-card p {
        font-size: 0.9rem;
    }
    
    .proceso-content {
        padding: 1rem;
    }
    
    .proceso-content h3 {
        font-size: 1.1rem;
    }
    
    .proceso-content p {
        font-size: 0.9rem;
    }
    
    .portafolio-item {
        height: 200px;
    }
    
    .portafolio-overlay {
        padding: 1rem;
    }
    
    .portafolio-info h3 {
        font-size: 1.2rem;
    }
    
    .portafolio-info p {
        font-size: 0.85rem;
    }
    
    .testimonio-card {
        padding: 1rem;
    }
    
    .testimonio-text {
        font-size: 0.9rem;
    }
    
    .testimonio-rating {
        font-size: 1rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .slider-dots {
        gap: 0.5rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .contacto-info h3 {
        font-size: 1.3rem;
    }
    
    .contacto-info p {
        font-size: 0.95rem;
    }
    
    .contacto-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .checkbox-group label {
        font-size: 0.85rem;
    }
    
    .recaptcha-notice {
        font-size: 0.8rem;
    }
    
    .footer-logo {
        font-size: 1.6rem;
    }
    
    .footer-tagline {
        font-size: 0.95rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-copy p {
        font-size: 0.75rem;
    }
    
    /* Cookie buttons mobile */
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    /* Modal mobile */
    .modal-content {
        padding: 1.2rem;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb {
        padding: 0.6rem 0.8rem;
        font-size: 0.65rem;
    }
    
    /* Google Adsense mobile */
    .adsbygoogle {
        margin: 0.8rem auto;
    }
}

/* Dispositivos con pantalla muy alta (modo retrato) */
@media (max-height: 700px) and (orientation: portrait) {
    .hero {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        margin-bottom: 1.5rem;
    }
    
    .nav-mobile-links {
        gap: 1.5rem;
    }
    
    .nav-mobile-links a {
        font-size: 1.5rem;
    }
}

/* Dispositivos con pantalla muy ancha (modo paisaje) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .hero-btns {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hero-btn {
        width: auto;
    }
    
    .nav-mobile {
        justify-content: flex-start;
        padding-top: 5rem;
    }
    
    .nav-mobile-links {
        gap: 1rem;
    }
    
    .nav-mobile-links a {
        font-size: 1.2rem;
    }
}

/* Tablets en modo retrato */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portafolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacto-container {
        grid-template-columns: 1fr;
    }
}

/* Tablets en modo paisaje */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portafolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Monitores grandes (más de 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1300px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .section-title h2 {
        font-size: 3rem;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .portafolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contacto-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Impresión */
@media print {
    header,
    .cookie-consent-banner,
    .cookie-modal,
    .cookie-notification,
    .breadcrumb,
    .hero-btns,
    .footer-social,
    .contacto-form,
    .adsbygoogle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    section {
        padding: 1rem 0 !important;
        page-break-inside: avoid;
    }
    
    .hero {
        min-height: auto;
        padding-top: 1rem !important;
        background: white !important;
    }
    
    .hero h1,
    .section-title h2,
    .servicio-card h3,
    .zona-item h4,
    .proceso-content h3,
    .portafolio-info h3,
    .testimonio-card h4,
    .contacto-info h3 {
        color: black !important;
    }
    
    .hero p,
    .servicio-card p,
    .zona-item p,
    .proceso-content p,
    .portafolio-info p,
    .testimonio-text,
    .contacto-info p,
    .footer-copy {
        color: #333 !important;
    }
    
    .btn,
    .servicio-link,
    .social-link {
        display: none !important;
    }
    
    footer {
        background: white !important;
        border-top: 1px solid #ccc;
    }
    
    .footer-logo,
    .footer-tagline,
    .footer-links a {
        color: black !important;
    }
    
    .logo,
    .footer-logo {
        color: black !important;
    }
    
    .logo span,
    .footer-logo span {
        color: #333 !important;
    }
}