/* ===== VARIABLES CSS ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #10b981;
    --accent-light: #34d399;
    --bg-light: #f8fafc;
    --bg-blue-soft: #eff6ff;
    --bg-dark: #0f172a;
    --bg-card-dark: #1e293b;
    --text-main: #334155;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== UTILIDADES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
}

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 2.5rem 0;
    }
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.1;
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
        padding: 0 0.5rem;
    }
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-size: 1.15rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }
}

.bg-white {
    background-color: var(--white);
}

.bg-blue {
    background-color: var(--bg-blue-soft);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
    position: relative;
}

.bg-dark .section-title {
    color: var(--white);
}

.bg-dark .section-subtitle {
    color: var(--text-lighter);
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    max-width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-white-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-white-outline:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== HEADER ===== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    transition: all var(--transition-normal);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

@media (max-width: 480px) {
    nav {
        height: 70px;
    }
}

.logo {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem;
    height: auto;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: var(--bg-blue-soft);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 999;
        gap: 0;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        font-size: 1rem;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .cta-nav {
        width: auto;
        margin: 1rem auto 0 auto;
        display: inline-flex;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        top: 70px;
        padding: 1rem;
    }
    
    .nav-links a {
        padding: 0.85rem 0;
        font-size: 0.95rem;
    }
    
    .cta-nav {
        margin-top: 0.75rem;
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem;
    }
}

/* ===== HERO ===== */
.hero {
    padding-top: 160px;
    padding-bottom: 120px;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 25%, #f8fafc 50%, #dbeafe 75%, #f0f9ff 100%);
    background-size: 300% 300%;
    animation: gradientBG 20s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .hero h1 {
        font-size: 2.3rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .hero h1 span {
        display: inline-block;
        margin-top: 0.5rem;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 0.75rem;
        margin-bottom: 1.75rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        gap: 0.6rem;
        padding: 0 0.75rem;
    }
    
    .hero-buttons .btn {
        max-width: 280px;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 2rem;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
    }
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
}

/* ===== SERVICIOS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        gap: 1.25rem;
    }
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

@media (max-width: 480px) {
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

.service-card p {
    color: var(--text-light);
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .service-card p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }
}

.service-card li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .service-card li {
        font-size: 0.9rem;
        padding-left: 1.25rem;
        margin-bottom: 0.4rem;
    }
}

.service-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .service-link {
        font-size: 0.9rem;
    }
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===== PORTAFOLIO ===== */
.portfolio-section {
    position: relative;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .portfolio-filters {
        gap: 0.4rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-filters {
        gap: 0.3rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
        min-height: 36px;
    }
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        gap: 1.25rem;
    }
}

.portfolio-grid-dark .portfolio-item {
    background: var(--bg-card-dark);
    border-color: rgba(255,255,255,0.1);
}

.portfolio-grid-dark .portfolio-content h3 {
    color: var(--white);
}

.portfolio-grid-dark .portfolio-content p {
    color: var(--text-lighter);
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 480px) {
    .portfolio-item {
        border-radius: 12px;
    }
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.portfolio-thumb {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .portfolio-thumb {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .portfolio-thumb {
        height: 180px;
    }
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-btn {
    background: var(--white);
    color: var(--secondary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .portfolio-overlay-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

.portfolio-overlay-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.portfolio-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .portfolio-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .portfolio-content {
        padding: 1.25rem;
    }
}

.portfolio-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

@media (max-width: 480px) {
    .portfolio-category {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
}

.portfolio-content h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .portfolio-content h3 {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }
}

.portfolio-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .portfolio-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

@media (max-width: 480px) {
    .tech-tags {
        gap: 0.4rem;
    }
}

.tech-tags span {
    background: var(--bg-blue-soft);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .tech-tags span {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

/* Estilos para proyectos "Próximamente" */
.coming-soon-project .portfolio-thumb {
    position: relative;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.coming-soon-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

@media (max-width: 480px) {
    .coming-soon-content {
        padding: 1.5rem;
    }
}

.coming-soon-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

@media (max-width: 480px) {
    .coming-soon-content i {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
}

.coming-soon-content h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

@media (max-width: 480px) {
    .coming-soon-content h3 {
        font-size: 1.1rem;
    }
}

/* ===== TIENDA / SaaS ===== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .product-card {
        border-radius: 12px;
    }
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card-image-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .card-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .card-image-wrapper {
        height: 180px;
    }
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .card-image {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
    .badge {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

.badge.popular {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.card-body {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .card-body {
        padding: 1.25rem;
    }
}

.card-body h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 480px) {
    .card-body h3 {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }
}

.card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .card-body p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
    margin-top: auto;
}

@media (max-width: 480px) {
    .price-tag {
        font-size: 1.3rem;
    }
}

.price-sub {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
    display: block;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .price-sub {
        font-size: 0.85rem;
    }
}

/* Tarjeta "Próximamente" */
.coming-soon-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    .coming-soon-card {
        border-radius: 12px;
    }
}

.coming-soon-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
}

.coming-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .coming-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .coming-content {
        padding: 1.25rem;
    }
}

.coming-content h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .coming-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
}

.coming-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .coming-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    margin: 1.5rem 0;
    overflow: hidden;
}

@media (max-width: 480px) {
    .progress-bar {
        margin: 1.25rem 0;
    }
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    height: 100%;
    width: 80%;
    border-radius: 4px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .progress-text {
        font-size: 0.85rem;
    }
}

.coming-content small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .coming-content small {
        font-size: 0.8rem;
    }
}

/* ===== FAQ INTERACTIVO ===== */
.faq-section {
    position: relative;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .faq-accordion {
        padding: 0 0.75rem;
    }
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

@media (max-width: 480px) {
    .faq-item {
        margin-bottom: 10px;
        border-radius: 6px;
    }
}

.faq-item:hover {
    border-color: #2563eb;
}

.faq-item.active {
    border-color: #2563eb;
    border-width: 2px;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #ffffff;
    transition: background-color 0.2s ease;
    user-select: none;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 14px 16px;
        min-height: 60px;
    }
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-item.active .faq-question {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
    line-height: 1.4;
    padding-right: 10px;
}

@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .faq-question h3 {
        font-size: 15px;
        line-height: 1.3;
    }
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 480px) {
    .faq-icon {
        width: 20px;
        height: 20px;
        margin-left: 12px;
    }
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon i {
    font-size: 14px;
    color: #2563eb;
}

@media (max-width: 480px) {
    .faq-icon i {
        font-size: 12px;
    }
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer-content {
    padding: 0 24px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s, padding 0.3s ease;
}

@media (max-width: 768px) {
    .faq-answer-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .faq-answer-content {
        padding: 0 16px;
    }
}

.faq-item.active .faq-answer-content {
    opacity: 1;
    transform: translateY(0);
    padding: 24px;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .faq-item.active .faq-answer-content {
        padding: 20px;
        padding-top: 16px;
    }
}

@media (max-width: 480px) {
    .faq-item.active .faq-answer-content {
        padding: 16px;
        padding-top: 14px;
    }
}

.faq-answer-content p {
    color: #334155;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .faq-answer-content p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .faq-answer-content p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

@media (max-width: 480px) {
    .faq-answer-content ul,
    .faq-answer-content ol {
        padding-left: 18px;
        margin-bottom: 14px;
    }
}

.faq-answer-content li {
    color: #334155;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 15px;
}

@media (max-width: 480px) {
    .faq-answer-content li {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.5;
    }
}

.faq-answer-content li strong {
    color: #0f172a;
    font-weight: 600;
}

.faq-answer-content a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #2563eb;
    transition: all 0.2s ease;
}

/* ===== CONTACTO ===== */
.contact-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-light) 100%);
    position: relative;
    overflow: hidden;
}

.contact-content {
    text-align: center;
}

.contact-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .contact-options {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
}

@media (max-width: 480px) {
    .contact-options {
        gap: 1.25rem;
        margin-top: 2rem;
    }
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    min-width: 250px;
}

@media (max-width: 768px) {
    .contact-option {
        width: 100%;
        max-width: 300px;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-option {
        max-width: 280px;
        padding: 1rem;
        min-width: auto;
    }
}

.contact-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

.contact-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--white);
    text-align: left;
}

@media (max-width: 480px) {
    .contact-info h4 {
        font-size: 1rem;
    }
}

.contact-info p {
    color: var(--text-lighter);
    font-size: 0.9rem;
    text-align: left;
}

@media (max-width: 480px) {
    .contact-info p {
        font-size: 0.85rem;
    }
}

/* ===== FOOTER ===== */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2.5rem 0 1.25rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1.75rem;
        margin-bottom: 2.5rem;
    }
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.75rem;
}

@media (max-width: 480px) {
    .footer-col h3 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.6rem;
    }
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-col p {
    color: var(--text-lighter);
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .footer-col p {
        font-size: 0.95rem;
        margin-bottom: 0.85rem;
    }
}

.footer-links li {
    margin-bottom: 0.75rem;
}

@media (max-width: 480px) {
    .footer-links li {
        margin-bottom: 0.6rem;
    }
}

.footer-links a {
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .footer-links a {
        font-size: 0.9rem;
    }
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 480px) {
    .social-links {
        margin-top: 1.25rem;
    }
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-fast);
}

@media (max-width: 480px) {
    .social-links a {
        width: 38px;
        height: 38px;
    }
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-lighter);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .copyright {
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .copyright {
        padding-top: 1.25rem;
        font-size: 0.85rem;
    }
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 15px;
        right: 15px;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===== ESTILOS PERSONALIZADOS ===== */
.proximamente {
    padding: 3px 3px 4px;
    margin: 10px 0;
    border: 2px solid #577bcf;
    border-radius: 10px;
    text-align: center;
    font-weight: bolder;
    color: #2d3541;
    background: rgba(255,255,255,0.9);
    display: inline-block;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .proximamente {
        font-size: 0.85rem;
        padding: 2px 2px 3px;
        margin: 8px 0;
    }
}

span {
    color: #0f172a;
    font-weight: 500;
}

.Cloudd {
    padding: 4px 12px;
    border: 2px solid #577bcf;
    border-radius: 10px;
    width: 160px;
    text-align: center;
    display: inline-block;
    margin: 10px 0;
    background: rgba(255,255,255,0.9);
    color: #2d3541;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .Cloudd {
        width: 140px;
        font-size: 0.85rem;
        padding: 3px 10px;
        margin: 8px 0;
    }
}

.Cloud {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border: 2px solid #577bcf;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    background-color: #ffffff;
    color: #2d3541;
    width: auto;
    height: auto;
    text-align: center;
    z-index: 2;
}

@media (max-width: 480px) {
    .Cloud {
        top: 15px;
        right: 15px;
        padding: 3px 10px;
        font-size: 0.8rem;
    }
}

.saas {
    font-family: sans-serif;
    padding: 22px;
    border-radius: 30px;
    background-color: #17233d;
    border: 3px solid #334155;
    box-shadow: 2px 4px 5px #0f172a;
    color: white;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .saas {
        padding: 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .saas {
        padding: 16px;
        font-size: 0.9rem;
        line-height: 1.5;
        border-radius: 20px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ACCESIBILIDAD ===== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== TOUCH TARGETS PARA MÓVIL ===== */
@media (max-width: 768px) {
    .btn,
    .nav-links a,
    .portfolio-overlay-btn,
    .filter-btn,
    .faq-question {
        min-height: 44px;
        min-width: 44px;
    }
    
    .faq-question {
        min-height: 60px;
    }
    
    .contact-option {
        padding: 1rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .btn,
    .nav-links a,
    .portfolio-overlay-btn,
    .filter-btn {
        min-height: 40px;
        min-width: 40px;
    }
    
    .faq-question {
        min-height: 56px;
    }
}

/* ===== MODALES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.75rem;
    }
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

@media (max-width: 480px) {
    .modal-box {
        max-height: 95vh;
        border-radius: 12px;
    }
}

@media (min-width: 768px) {
    .modal-box {
        flex-direction: row;
    }
}

.modal-img {
    flex: 1;
    background: #eff6ff;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-img {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .modal-img {
        min-height: 200px;
    }
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-details {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .modal-details {
        padding: 1.5rem;
    }
}

.modal-details h2 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .modal-details h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .modal-details h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
}

.modal-details p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .modal-details p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }
}

.modal-features {
    margin-bottom: 2rem;
}

.modal-features h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .modal-features h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
}

.modal-features ul {
    padding-left: 1.5rem;
}

.modal-features li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    list-style-type: disc;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .modal-features li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 480px) {
    .modal-actions {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
    
    .modal-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

@media (max-width: 480px) {
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* ===== ANIMACIÓN DE ENTRADA SUAVE ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }

/* ===== ESTILOS PARA TEXTOS ESPECIALES ===== */
.service-card span,
.card-body span {
    color: var(--primary);
    font-weight: 600;
}

/* ===== CORRECCIÓN DE ESPACIOS ===== */
.coming-content h3,
.card-body h3,
.portfolio-content h3 {
    margin-top: 0.5rem;
}

/* ===== AJUSTES DE CONTENIDO ===== */
.service-card p:last-child {
    margin-bottom: 0;
}

.portfolio-grid-dark .tech-tags span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
}

/* ===== HOVER EFFECTS MEJORADOS ===== */
@media (hover: hover) {
    .service-card:hover .icon-box {
        transform: scale(1.1);
        transition: transform var(--transition-normal);
    }
    
    .product-card:hover .badge {
        transform: scale(1.1);
        transition: transform var(--transition-normal);
    }
}

/* ===== PROGRESS BAR ANIMATION ===== */
@keyframes progressPulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.7);
    }
}

.progress-fill {
    animation: progressPulse 2s ease-in-out infinite;
}

/* ===== MEJORAS ESPECÍFICAS PARA MÓVILES ===== */
@media (max-width: 480px) {
    /* Mejorar legibilidad en móviles */
    body {
        font-size: 15px;
    }
    
    /* Reducir padding excesivo */
    .service-card,
    .portfolio-content,
    .card-body,
    .coming-content {
        padding: 1.25rem !important;
    }
    
    /* Botones más compactos */
    .hero-buttons .btn,
    .contact-content .btn {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.9rem;
    }
    
    /* Textos más ajustados */
    h1, h2, h3, h4 {
        line-height: 1.2;
    }
    
    /* Mejorar espaciado de secciones */
    .section-padding {
        padding: 2rem 0;
    }
    
    /* Ajustar altura del hero para móviles */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    /* Mejorar grid en móviles */
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ajustar altura de imágenes en móviles */
    .portfolio-thumb,
    .card-image-wrapper {
        height: 160px;
    }
    
    /* Ajustar tamaño de íconos en móviles */
    .icon-box {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    /* Mejorar botones de filtro */
    .portfolio-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .portfolio-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .portfolio-filters::-webkit-scrollbar-track {
        background: #f1f5f9;
    }
    
    .portfolio-filters::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }
    
    /* Asegurar que el menú móvil no tape contenido */
    .nav-links.active {
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    /* Mejorar botones de contacto en móviles */
    .contact-content .btn {
        margin: 0.5rem 0;
        width: 100%;
        max-width: 280px;
    }
}

/* ===== CORRECCIÓN ESPECÍFICA PARA EL BOTÓN "CONTACTAR" ===== */
.cta-nav {
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    display: inline-flex !important;
}

@media (max-width: 768px) {
    .cta-nav {
        margin-top: 1rem !important;
        width: auto !important;
        max-width: 200px !important;
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    .cta-nav {
        max-width: 180px !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
}
/* ===== FAQ INTERACTIVO ===== */
.faq-section {
    position: relative;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #2563eb;
}

.faq-item.active {
    border-color: #2563eb;
    border-width: 2px;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #ffffff;
    transition: background-color 0.2s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-item.active .faq-question {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon i {
    font-size: 14px;
    color: #2563eb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer-content {
    padding: 0 24px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s, padding 0.3s ease;
}

.faq-item.active .faq-answer-content {
    opacity: 1;
    transform: translateY(0);
    padding: 24px;
    padding-top: 20px;
}

.faq-answer-content p {
    color: #334155;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 400;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.faq-answer-content li {
    color: #334155;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 15px;
}

.faq-answer-content li strong {
    color: #0f172a;
    font-weight: 600;
}

.faq-answer-content a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #2563eb;
    transition: all 0.2s ease;
}

.faq-answer-content a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* ===== PLANES ===== */
.plans-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .plans-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.plan {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.plan h4 {
    color: #2563eb;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.plan ul {
    padding-left: 16px;
    margin: 0;
}

.plan li {
    color: #334155;
    font-size: 14px;
    margin-bottom: 6px;
    position: relative;
}

.plan li::before {
    content: "•";
    position: absolute;
    left: -12px;
    color: #2563eb;
    font-weight: bold;
}

/* ===== MÉTODOS DE PAGO ===== */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

@media (min-width: 480px) {
    .payment-methods {
        grid-template-columns: repeat(4, 1fr);
    }
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.payment-method i {
    font-size: 22px;
    color: #475569;
    margin-bottom: 8px;
}

.payment-method span {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
}

/* ===== CTA DEL FAQ ===== */
.faq-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.faq-cta p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 16px;
}