/* Mobile-First Responsive Fixes */

/* Base mobile styles */
@media (max-width: 768px) {
    /* Global fixes */
    html {
        overflow-x: hidden;
    }
    
body {
        overflow-x: hidden;
        font-size: 14px;
    }
    
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
.section {
        padding: 35px 0 !important;
    }
    
    /* Header fixes */
    .header {
        padding: 0.5rem 0;
    }
    
    .nav {
        padding: 0.5rem 0;
    }
    
    .nav__logo {
        gap: 8px;
    }
    
    .logo-circle {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav__actions .btn {
        display: none;
    }
    
    .nav__toggle {
        display: flex !important;
        cursor: pointer !important;
        z-index: 999 !important;
        position: relative !important;
        padding: 10px !important;
        margin-right: -10px !important;
    }
    
    /* Hero section fixes */
.hero {
        padding: 70px 0 30px !important;
        min-height: auto;
    }
    
    .hero__container {
        padding: 0 15px;
        grid-template-columns: 1fr !important;
        text-align: center !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
.hero__title {
        font-size: 1.6rem;
        line-height: 1.15;
        margin-bottom: 1rem;
        text-align: center !important;
    }
    
    .hero__title-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero__subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        text-align: center !important;
        padding: 0 10px;
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }
    
.btn-large {
        width: 100%;
        padding: 12px 24px !important;
        font-size: 1rem !important;
    }
    
    .hero__image {
        display: none; /* Hide mockups on mobile */
    }
    
    .hero__stats {
        margin-top: 2rem;
        justify-content: center;
        width: 100%;
    }
    
    .stat-card {
        padding: 1rem;
        margin: 0 auto;
    }
    
    /* Service cards fixes */
    .services__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 15px;
        margin-top: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin: 0 0 2rem 0;
        overflow: visible !important;
        border-radius: 20px;
        position: relative;
        padding-top: 2.5rem;
        border: 1.5px solid rgba(148, 163, 184, 0.3) !important;
        box-shadow: 
            0 15px 40px rgba(148, 163, 184, 0.6),
            0 5px 15px rgba(0, 0, 0, 0.1),
            -10px -10px 30px rgba(255, 255, 255, 1),
            inset 0 0 1px rgba(255, 255, 255, 0.5) !important;
        background: #f1f5f9 !important;
    }
    
    .service-card__offer {
        font-size: 0.65rem;
        padding: 0.3rem 1rem;
        margin: 0;
        border-radius: 15px;
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        letter-spacing: 0.5px;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
        white-space: nowrap;
        height: 24px;
        display: flex;
        align-items: center;
    }
    
    .service-card__badge {
        font-size: 0.65rem !important;
        top: -12px !important;
        right: auto !important;
        left: 20px !important;
        padding: 0.3rem 0.8rem !important;
        z-index: 10;
        border-radius: 15px !important;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        font-weight: 700 !important;
        transform: translateY(0) !important;
    }
    
    /* Adjust popular card to have both badges aligned */
    .service-card--popular .service-card__offer {
        left: auto !important;
        right: 20px !important;
        transform: translateY(0) !important;
        top: -12px !important;
        height: 24px !important;
    }
    
    /* Override any desktop styles for perfect alignment */
    .service-card--popular .service-card__badge,
    .service-card--popular .service-card__offer {
        position: absolute !important;
        top: -12px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.3rem 0.8rem !important;
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        transform: translateY(0) !important;
        line-height: 1 !important;
        margin: 0 !important;
    }
    
    .service-card--popular {
        border: 2px solid #3b82f6 !important;
        box-shadow: 
            0 15px 40px rgba(148, 163, 184, 0.6),
            0 5px 15px rgba(59, 130, 246, 0.15),
            -10px -10px 30px rgba(255, 255, 255, 1),
            inset 0 0 1px rgba(255, 255, 255, 0.5) !important;
        background: #f1f5f9 !important;
    }
    
    .price-container {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .price-original {
        font-size: 1rem;
    }
    
    .price-circle {
        width: 80px;
        height: 80px;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .service-card__title {
        font-size: 1.3rem;
    }
    
    .service-card__description {
        font-size: 0.9rem;
    }
    
    .service-card__features {
        gap: 0.8rem;
    }
    
    .service-card__features li {
        font-size: 0.85rem;
        margin-bottom: 0.7rem;
    }
    
    /* Custom development section */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comparison-card {
        padding: 1.5rem;
    }
    
    .custom-features {
        gap: 1.5rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* Process section */
    .process__timeline {
        gap: 1.5rem;
    }
    
    .timeline-connector {
        display: none;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Hide decorations on mobile to avoid content overlap */
    .hero__decorations {
        display: none !important;
    }
    
    /* Alternative: if you want to keep them but make them smaller and repositioned */
    /* .decoration-1 {
        width: 40px;
        height: 40px;
        top: 5%;
        right: 5%;
        opacity: 0.3;
    }
    
    .decoration-2 {
        width: 30px;
        height: 30px;
        bottom: 10%;
        left: 5%;
        opacity: 0.3;
    }
    
    .decoration-3 {
        display: none;
    } */
    
    /* Benefits section */
    .benefits__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .benefit-stat {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    /* Technology section */
    .tech__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .tech-circle {
        width: 70px;
        height: 70px;
    }
    
    .tech-name {
        font-size: 0.75rem;
    }
    
    /* About section */
    .about__content {
        text-align: center;
    }
    
    .about__main-card {
        text-align: center;
    }
    
    .about__main-card .section__title {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .about__description {
        text-align: center;
        padding: 0 10px;
    }
    
    .about__values {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .value-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    /* FAQ section */
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 2rem;
    }
    
    .faq-answer {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Contact section */
    .contact__content {
        grid-template-columns: 1fr;
    }
    
    .contact__form-container {
        padding: 1.5rem;
    }
    
    .contact__buttons {
        flex-direction: column;
        max-width: 100%;
    }
    
    .btn-whatsapp,
    .btn-form-toggle {
        width: 100%;
    }
    
    /* Footer fixes */
    .footer {
        padding: 2rem 0 1.5rem !important;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
    
    .footer__section {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .footer__brand {
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .footer__title {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .footer__link {
        font-size: 0.85rem !important;
        margin-bottom: 0.3rem;
    }
    
    .footer__description {
        font-size: 0.85rem !important;
        margin-bottom: 1rem;
    }
    
    .footer__logo {
        margin-bottom: 0.5rem;
    }
    
    .footer__bottom {
        padding-top: 1rem !important;
    }
    
    .footer__copyright {
        font-size: 0.75rem !important;
    }
    
    /* Button fixes */
    .btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    /* Title fixes */
    .section__title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section__subtitle {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 10px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero__container {
        padding: 0 10px;
    }
    
    .hero__title {
        font-size: 1.5rem;
    }
    
    .hero__title-card {
        padding: 1rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero__content {
        padding: 0;
        margin: 0;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .price-circle {
        width: 70px;
        height: 70px;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .tech__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-circle {
        width: 60px;
        height: 60px;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    /* Contact form mobile fixes */
    .form__group {
        margin-bottom: 1.5rem;
    }
    
    .form__input,
    .form__textarea,
    .form__select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Landscape mobile fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 30px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero__title {
        font-size: 1.5rem;
    }
}
