:root {
    --primary-color: #1a365d;
    --secondary-color: #2563eb;
    --accent-color: #f59e0b;
    --success-color: #059669;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f8fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2563eb 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;

    &.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-md);
    }
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0;

    p {
        color: var(--primary-color);
    }
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;

    .logo {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
        text-decoration: none;
        
        img {
            height: auto;
            width: 70px;
        }
    }
}

.colegiado-info {
    font-size: 10px;
    color: #666;
    margin: 0;
    font-weight: 500;
    text-align: center;
}

/* Opcional: Para pantallas pequeñas */
@media (max-width: 768px) {
    .colegiado-info {
        font-size: 10px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    
    .nav-link {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
        transition: color 0.3s ease;
        position: relative;

        &:hover {
            color: var(--secondary-color);
        }

        &.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--accent-color);
            border-radius: 1px;
        }
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.25rem;
    
    &.btn-primary {
        background: var(--gradient-primary);
        color: var(--white);
        box-shadow: var(--shadow-md);

        &:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
    }

    &.btn-secondary {
        background: var(--white);
        color: var(--primary-color);
        border: 2px solid var(--primary-color);

        &:hover {
            background: var(--primary-color);
            color: var(--white);
        }
    }

    &.btn-accent {
        background: var(--gradient-accent);
        color: var(--white);
        box-shadow: var(--shadow-md);

        &:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
    }
    
    &.btn-large {
        font-size: 1.125rem;
        padding: 1rem 2rem;
        margin-top: 1rem;
    }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;

    span {
        width: 24px;
        height: 2px;
        background: var(--text-dark);
        transition: all 0.3s ease;
    }
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    
    .hero-content {
        position: relative;
        z-index: 1;
        text-align: center;
        color: var(--white);
        max-width: 800px;
        margin: 0 auto;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        font-size: 0.875rem;
        font-weight: 500;
        margin-bottom: 2rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hero-title {
        font-family: 'Playfair Display', serif;
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 600;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        font-weight: 300;
        margin-bottom: 2.5rem;
        opacity: 0.9;
        line-height: 1.6;
    }

    .hero-cta {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        margin-top: 4rem;
        padding-top: 3rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hero-stat {
        text-align: center;
    }

    .hero-stat-number {
        font-size: 2rem;
        font-weight: 700;
        color: var(--accent-color);
        display: block;
    }

    .hero-stat-label {
        font-size: 0.875rem;
        opacity: 0.8;
        margin-top: 0.5rem;
    }
}


/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-block;
    background: var(--background-light);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
}


/* Value Proposition */
.value-prop {
    background: var(--background-light);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;

    &>div {
        min-height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .value-card {
        background: var(--white);
        padding: 2rem;
        border-radius: 1rem;
        box-shadow: var(--shadow-sm);
        transition: all 0.3s ease;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-left: 4px solid var(--accent-color);

        &:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }
        
        .value-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 1rem;
        }

        .value-description {
            color: var(--text-light);
            line-height: 1.6;
        }
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
    
    .service-card {
        background: var(--white);
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
        border: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        height: 100%;

        &:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-xl);
        }
        
        .service-header {
            background: var(--gradient-primary);
            color: var(--white);
            padding: 2rem;
            text-align: center;
            flex-shrink: 0;
            min-height: 160px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            .service-title {
                font-size: 1.5rem;
                font-weight: 600;
                margin-bottom: 0.5rem;
            }

            .service-subtitle {
                opacity: 0.9;
                font-size: 0.875rem;
            }
        }

        .service-content {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;

            .btn {
                margin-top: auto;
                align-self: flex-start;
            }
            
            .service-description {
                color: var(--text-light);
                margin-bottom: 1.5rem;
                line-height: 1.6;
            }

            .service-features {
                list-style: none;
                margin-bottom: 2rem;
                flex-grow: 1;

                li {
                    display: flex;
                    align-items: flex-start;
                    gap: 0.75rem;
                    margin-bottom: 0.75rem;
                    font-size: 0.875rem;
                    color: var(--text-light);

                    &::before {
                        content: '✓';
                        color: var(--success-color);
                        font-weight: 600;
                        flex-shrink: 0;
                    }
                }
            }
        }
    }
}

/* About */
.about {
    background: var(--background-light);
    
    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        
        .about-image {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;

            &::before {
                content: '';
                position: absolute;
                top: 2rem;
                left: 2rem;
                right: -2rem;
                bottom: -2rem;
                background: var(--gradient-accent);
                border-radius: 1rem;
                z-index: -1;
            }

            img {
                width: 100%;
                height: auto;
                max-width: 100%;
                object-fit: cover;
                object-position: center top;
                border-radius: 1rem;
                box-shadow: var(--shadow-lg);
                aspect-ratio: 4/5;
            }
        }

        .about-content {
            padding-left: 2rem;

            .about-title {
                font-family: 'Playfair Display', serif;
                font-size: 2.5rem;
                font-weight: 600;
                color: var(--text-dark);
                margin-bottom: 1.5rem;
                line-height: 1.2;
            }

            .about-text {
                color: var(--text-light);
                margin-bottom: 1.5rem;
                line-height: 1.7;
            }

            .about-credentials {
                display: flex;
                flex-wrap: wrap;
                gap: 1rem;
                margin: 2rem 0;
                
                .credential {
                    background: var(--white);
                    padding: 0.75rem 1rem;
                    border-radius: 0.5rem;
                    font-size: 0.875rem;
                    font-weight: 500;
                    color: var(--primary-color);
                    border: 1px solid var(--primary-color);
                }
            }
        }
    }
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    border-left: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.0625rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.testimonial-info h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Results */
.results {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.result-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-number {
    font-size: 3rem !important;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 0.25rem 0;

    &:focus {
        top: 0;
    }
}

/* CTA */
.cta {
    background: var(--background-light);
    padding: 6rem 0;
    text-align: center;
    
    .cta-content {
        max-width: 600px;
        margin: 0 auto;

        .cta-title {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        .cta-description {
            font-size: 1.125rem;
            color: var(--text-light);
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .cta-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    
    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-section{
        h3 {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--accent-color);
        }
        p, li {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
        }
        ul {
            list-style: none;
        }
        a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s ease;

            &:hover {
                color: var(--accent-color);
            }
        }
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.6);
    }
}

/* Acordeón FAQ */
.faq-accordion {
    border-radius: 0.75rem;
    overflow: hidden;
}

.faq-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;

    &:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}

.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;

    &:hover {
        background: var(--background-light);
    }

    &:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: -2px;
    }
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

.faq-panel {
    overflow: hidden;
}

.faq-panel[hidden] {
    display: block !important;
    height: 0;
}

.faq-content {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        gap: 1rem;

        &.active {
            display: flex;
        }
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        padding-left: 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Timeline mejorado */
.timeline-item {
    min-height: 150px;
    align-items: center;

    &:hover {
        transform: translateX(5px);
    }

    &:nth-child(4),
    &:nth-child(5) {
        position: relative;
        margin-left: -2rem;
        margin-right: -2rem;
        padding: 1.5rem 2rem !important;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column !important;
    }

    .timeline-item>div:first-child,
    .timeline-item>div:last-child {
        text-align: center !important;
        padding: 1rem !important;
    }
}

/* Timeline mejorado con destacados */
.timeline-item[data-reveal] {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .timeline-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1rem !important;
    }

    .timeline-item > div {
        text-align: left !important;
        padding: 1rem 0 !important;
    }

    .timeline-item > div:first-child {
        display: none;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MEJORAS COMPLETAS
   ============================================ */

/* Extra Large Devices (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Large Devices - Tablets Landscape & Small Desktops (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices - Tablets Portrait (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 1rem;
    }

    .hero {
        padding: 7rem 0 5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .hero-stat-number {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Small Devices - Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    /* Header Mobile */
    .nav {
        padding: 0.5rem 0;
    }

    .logo-container .logo img {
        width: 55px;
    }

    .colegiado-info {
        font-size: 8px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero Mobile */
    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-stat {
        padding: 1rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .hero-stat-label {
        font-size: 0.75rem;
    }

    /* Sections Mobile */
    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* Value Cards Mobile */
    .value-grid {
        gap: 1rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.25rem;
    }

    /* About Mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-content {
        padding-left: 0;
        text-align: center;
    }

    .about-credentials {
        justify-content: center;
    }

    /* Testimonials Mobile */
    .testimonials {
        padding: 3rem 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial {
        padding: 1.5rem;
    }

    .testimonial-quote {
        font-size: 1rem;
    }

    /* Results Mobile */
    .results {
        padding: 3rem 0;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .result-item {
        padding: 1.5rem;
    }

    .result-number {
        font-size: 2.5rem !important;
    }

    .result-label {
        font-size: 1rem;
    }

    /* FAQ Mobile */
    .faq {
        padding: 3rem 0;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .faq-content {
        padding: 0 1rem 1rem;
        font-size: 0.9375rem;
    }

    /* CTA Mobile */
    .cta {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Footer Mobile */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3 {
        margin-bottom: 1rem;
    }

    .footer-section ul {
        padding-left: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1.5rem;
    }
}

/* Extra Small Devices - Mobile Portrait (max 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 0.75rem;
    }

    /* Header XS */
    .logo-container .logo img {
        width: 50px;
    }

    .colegiado-info {
        font-size: 7px;
    }

    /* Hero XS */
    .hero {
        padding: 5.5rem 0 3rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .hero-stat {
        padding: 0.75rem;
    }

    .hero-stat-number {
        font-size: 1.25rem;
    }

    .hero-stat-label {
        font-size: 0.6875rem;
    }

    /* Sections XS */
    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.375rem;
    }

    /* Buttons XS */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }

    .btn.btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Cards XS */
    .value-card,
    .service-card,
    .testimonial,
    .result-item {
        padding: 1.25rem;
    }

    /* Result Numbers XS */
    .result-number {
        font-size: 2rem !important;
    }

    /* FAQ XS */
    .faq-question {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .service-card:hover,
    .value-card:hover {
        transform: none;
    }

    .nav-link:hover::after {
        display: none;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 5rem 0 3rem;
    }

    .hero-stats {
        margin-top: 1.5rem;
    }

    .nav-links {
        top: 60px;
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.25rem 0;
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-menu-btn,
    .cta,
    .footer {
        display: none;
    }

    .hero {
        background: none;
        color: var(--text-dark);
        padding: 2rem 0;
    }

    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}

/* ============================================
   FIXES ADICIONALES PARA MÓVIL
   ============================================ */

/* Ocultar info colegiado en móvil muy pequeño */
@media (max-width: 400px) {
    .colegiado-info {
        display: none;
    }
}

/* Arreglar about section con CSS nesting */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: -2rem;
    bottom: -2rem;
    background: var(--gradient-accent);
    border-radius: 1rem;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
}

.about-content {
    padding-left: 2rem;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.credential {
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* About responsive mejorado */
@media (max-width: 991px) {
    .about-grid {
        gap: 3rem;
    }

    .about-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-width: 280px;
        margin: 0 auto;
        order: -1;
    }

    .about-image::before {
        top: 1rem;
        left: 1rem;
        right: -1rem;
        bottom: -1rem;
    }

    .about-content {
        padding-left: 0;
        text-align: center;
    }

    .about-title {
        font-size: 1.75rem;
    }

    .about-credentials {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .about-image {
        max-width: 220px;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .credential {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Philosophy Grid - Sobre Mi */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.philosophy-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.philosophy-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.philosophy-card p {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

@media (max-width: 991px) {
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .philosophy-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .philosophy-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .philosophy-card:last-child {
        max-width: none;
    }

    .philosophy-card h3 {
        font-size: 1.125rem;
    }

    .philosophy-card p {
        font-size: 0.9375rem;
    }
}