/* CLAUDER - Mobile Responsive Styles */
/* Solo se aplican en dispositivos móviles - No afecta desktop */

@media only screen and (max-width: 768px) {
    
    /* RESET MOBILE */
    * {
        box-sizing: border-box;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* HEADER MOBILE */
    .header-section {
        min-height: 100vh;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .header-content {
        width: 100%;
        padding: 0;
    }
    
    /* NAVBAR TOP MOBILE */
    .navbar-top .container {
        display: none !important;
    }
    
    .contact-info {
        font-size: 12px;
        padding: 6px 12px;
        width: fit-content;
        margin: 0 auto;
    }
    
    /* NAVBAR MOBILE FORZADO */
    .mobile-menu-toggle {
        display: block !important;
        background: none !important;
        border: none !important;
        color: var(--primary) !important;
        font-size: 24px !important;
        cursor: pointer !important;
        padding: 8px !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: white !important;
        flex-direction: column !important;
        padding: 60px 20px 20px !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.2) !important;
        border-radius: 0 !important;
        z-index: 9999 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .nav-item {
        margin: 8px 0 !important;
        list-style: none !important;
    }
    
    .nav-item a {
        display: block !important;
        padding: 12px 16px !important;
        color: #333 !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
    }
    
    .nav-item a:hover {
        background: #f0f0f0 !important;
        color: #1976d2 !important;
    }
    
    .nav-item a.active {
        background: #1976d2 !important;
        color: white !important;
    }
    
    /* HERO BANNER MOBILE */
    .hero-banner {
        padding: 30px 15px;
        text-align: center;
    }
    
    .hero-content h4 {
        font-size: 14px;
        margin-bottom: 15px;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 48px !important;
        margin-bottom: 15px;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 28px !important;
        margin-bottom: 30px;
        line-height: 1.2;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 90%;
        max-width: 280px;
        padding: 15px 20px;
        font-size: 14px;
        justify-content: center;
    }
    
    /* SOCIAL SIDEBAR MOBILE */
    .social-sidebar {
        position: fixed;
        bottom: 20px;
        right: 15px;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        background: rgba(255, 255, 255, 0.95);
        padding: 8px;
        border-radius: 25px;
        gap: 8px;
        z-index: 1000;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    /* SERVICES SECTION MOBILE */
    .services-section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .service-card {
        padding: 25px 20px;
        margin: 0 10px;
        border-radius: 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .service-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .service-description {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    /* SECTION TITLES MOBILE */
    .section-title {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .section-subtitle {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .section-heading {
        font-size: 24px !important;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    /* CATEGORIES MOBILE */
    .categories-section {
        padding: 40px 0;
    }
    
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-top: 30px;
        padding: 0 15px;
        max-width: 100%;
    }
    
    .category-card {
        position: relative;
        margin: 0;
        border-radius: 15px;
        aspect-ratio: 16/10;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    }
    
    .category-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .category-card:hover .category-image {
        transform: scale(1.05);
    }
    
    .category-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 94, 255, 0.8) 0%, rgba(5, 0, 101, 0.9) 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .category-card:hover .category-overlay {
        opacity: 1;
    }
    
    .category-overlay h3 {
        color: white;
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 10px;
        transform: translateY(20px);
        transition: transform 0.3s ease 0.1s;
    }
    
    .category-card:hover .category-overlay h3 {
        transform: translateY(0);
    }
    
    .category-overlay p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        line-height: 1.4;
        padding: 0 10px;
        transform: translateY(20px);
        transition: transform 0.3s ease 0.2s;
    }
    
    .category-card:hover .category-overlay p {
        transform: translateY(0);
    }
    
    /* COLLABORATORS MOBILE */
    .collaborators-section {
        padding: 40px 0;
    }
    
    .collaborator-carousel {
        margin-top: 30px;
        margin: 30px 15px 0;
        border-radius: 15px;
    }
    
    .collaborator-slide {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        gap: 25px;
    }
    
    .collaborator-content {
        order: 2;
    }
    
    .collaborator-name {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .collaborator-description {
        font-size: 16px;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    .collaborator-image {
        width: 150px;
        height: 150px;
        order: 1;
        margin: 0 auto;
    }
    
    .carousel-controls {
        position: static;
        justify-content: center;
        margin-top: 20px;
        padding: 0;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    /* SERVICES CAROUSEL MOBILE */
    .services-carousel-section {
        padding: 40px 0;
    }
    
    .services-carousel {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
        overflow-x: visible;
    }
    
    .service-carousel-card {
        min-width: 100% !important;
        max-width: 100% !important;
        margin: 0;
        height: auto !important;
    }
    
    .service-carousel-image {
        height: 180px !important;
    }
    
    .service-carousel-content {
        padding: 20px !important;
    }
    
    .service-carousel-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .service-carousel-schedule {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .service-view-btn {
        width: 35px !important;
        height: 35px !important;
        top: 12px !important;
        right: 12px !important;
        font-size: 12px !important;
    }
    
    .service-description {
        font-size: 13px;
        line-height: 1.4;
    }
    
    /* FOOTER MOBILE */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 0 15px;
    }
    
    .footer-brand h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .footer-brand p {
        font-size: 14px;
        line-height: 1.5;
        padding: 0 10px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding-top: 20px;
        font-size: 12px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* MODALS MOBILE */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .modal-title {
        font-size: 18px !important;
        margin-bottom: 10px;
    }
    
    .close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    
    .principal, .principalPagos {
        padding: 15px;
    }
    
    /* MODAL CONSEJOS MOBILE */
    .stats-simple {
        flex-direction: column;
        gap: 20px;
        margin: 20px 0;
    }
    
    .stat-item i {
        font-size: 2rem !important;
    }
    
    .counter {
        font-size: 2rem !important;
    }
    
    .label {
        font-size: 14px;
    }
    
    .message {
        margin: 20px 0;
        padding: 15px;
    }
    
    .message h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .message p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .infinite-carousel {
        padding: 8px 0;
        margin-top: 10px;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 2px 6px;
        border-radius: 4px;
        background: rgba(0,0,0,0.05);
    }
    
    /* MODAL CONTENT MOBILE */
    .row_p {
        flex-direction: column !important;
        gap: 20px;
    }
    
    #naranja {
        width: 100%;
        text-align: center;
    }
    
    #verde {
        width: 100%;
    }
    
    .popou_img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        object-fit: cover;
        border-radius: 10px !important;
        margin-bottom: 10px;
    }
    
    .frm_pagos {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        line-height: 1.3;
    }
    
    .content_pagos p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        text-align: justify;
    }
    
    .content_pagos h5 {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 10px;
        color: #1976d2;
    }
    
    .content_pagos h6 {
        font-size: 14px;
        margin-top: 15px;
        margin-bottom: 8px;
        color: #1976d2;
    }
    
    /* PROMOCIONES MODAL MOBILE */
    .btnwssp {
        width: 100%;
        padding: 12px 20px;
        background: #25d366;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        margin-top: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .btnwssp:hover {
        background: #20b358;
        transform: translateY(-1px);
    }
    
    /* SCROLL INDICATOR MOBILE */
    .icon-scroll {
        display: none;
    }
    
    /* UTILITIES MOBILE */
    .mb-4 {
        margin-bottom: 20px !important;
    }
    
    .text-center {
        text-align: center !important;
    }
    
    .img-fluid {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* PREVENT HORIZONTAL SCROLL */
    .container, .modal-dialog, .services-carousel, .collaborator-carousel {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* CONTACT FORM MOBILE */
    .contact-form-section {
        padding: 30px 0;
    }
    
    .contact-form-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }
    
    .contact-form-content {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        text-align: center;
    }
    
    .section-title {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .modern-contact-form {
        width: 100%;
        margin: 0 auto;
        padding: 25px 20px;
    }
    
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .form-input {
        width: 100%;
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        margin-top: 10px;
    }
    
    .contact-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .contact-illustration {
        padding: 20px;
    }
    
    /* SERVICES PAGE MOBILE */
    .services-section {
        padding: 30px 0;
    }
    
    .services-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 20px 0;
        padding: 0 15px;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .service-card {
        margin: 0;
        border-radius: 15px;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .service-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .service-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        justify-content: center;
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .pagination-container {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    /* TOUCH IMPROVEMENTS */
    .btn, .btn-outline, .service-view-btn, .social-link, .carousel-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* MODAL SCROLL FIX */
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* EXTRA SMALL DEVICES */
@media only screen and (max-width: 480px) {
    
    .hero-title {
        font-size: 36px !important;
    }
    
    .hero-subtitle {
        font-size: 22px !important;
    }
    
    .section-heading {
        font-size: 20px !important;
    }
    
    .service-card {
        margin: 0 5px;
        padding: 20px 15px;
    }
    
    .collaborator-name {
        font-size: 20px;
    }
    
    .collaborator-description {
        font-size: 14px;
    }
    
    .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .social-sidebar {
        bottom: 15px;
        right: 10px;
        padding: 6px;
        gap: 6px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}