:root {
    --primary-color: #0081BA;
    --secondary-color: #005a85;
    --accent-color: #1a9bd1;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    font-display: swap;
}

/* Optimizaciones de rendimiento */
img {
    max-width: 100%;
    height: auto;
}

/* Preloader para mejorar la percepción de carga */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mejora de animaciones con will-change */
.hero-image img,
.logo,
.service-card {
    will-change: transform;
}

/* Lazy loading placeholder - REMOVIDO */

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

/* Header y Navegación */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 55px; /* Posicionado debajo de la top-bar ajustada al tamaño de iconos */
    z-index: 1001;
}

.navbar {
    padding: 1.5rem 0 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    height: 80px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    border-bottom-color: #0081BA;
}

.btn-contact {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
}

.btn-contact:hover {
    background: var(--secondary-color);
}

/* Top Bar - Barra superior fija */
.top-bar {
    background: #0081BA;
    color: white;
     padding-bottom: 10px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1002;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-bar .social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.top-bar .social-links a {
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.top-bar .social-links a:hover {
    color: #f0f0f0;
    transform: translateY(-2px);
}

.top-bar-right {
    display: flex;
    align-items: center;
}

/* Language Selector - Top Bar */
.top-bar .language-selector {
    position: relative;
}

.top-bar .language-btn {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 0.4rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.top-bar .language-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.top-bar .language-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 1003;
    border: 1px solid rgba(0, 129, 186, 0.1);
}

.top-bar .language-dropdown:hover .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-bar .language-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
    font-size: 0.7rem;
    font-weight: 500;
}

.top-bar .language-option:hover {
    background: #f0f9ff;
    color: var(--primary-color);
}

.top-bar .language-option:first-child {
    border-radius: 8px 8px 0 0;
}

.top-bar .language-option:last-child {
    border-radius: 0 0 8px 8px;
}

.top-bar .flag-icon {
    width: 16px;
    height: auto;
    border-radius: 2px;
}

/* Language Selector - Main Header (removido) */
.header .language-selector {
    display: none;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 129, 186, 0.05);
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.language-btn span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.language-btn i {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.language-dropdown:hover .language-btn i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-dropdown:hover .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 0;
}

.language-option:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.language-option:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.language-option:hover {
    background: var(--bg-light);
}

.language-option span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Ajustado para top-bar + header */
.hero {
    padding: 160px 0 60px; /* Ajustado para compensar top-bar pequeña + header con padding aumentado */
    background: 
        linear-gradient(135deg, rgba(0, 129, 186, 0.9) 0%, rgba(0, 90, 133, 0.9) 100%),
        url('../img/fondo.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    margin-top: 2px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.02); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.floating-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
    position: relative;
    z-index: 2;
}

.hero-text {
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    animation: fadeInUp 0.8s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content h1 span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    display: block;
    font-size: 2.8rem;
    margin-top: 0.5rem;
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s 0.1s both;
    text-align: left;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    animation: fadeInUp 0.8s 0.2s both;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 0.8s 0.6s both;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stat {
    text-align: center;
    flex: 1;
    min-width: 140px;
    max-width: 180px;
}

.hero-stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.hero-stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
    text-transform: lowercase;
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s 0.3s both;
}


.polaroid-frame {
    max-width: 450px;
    background: white;
    padding: 20px 20px 80px 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2), 0 10px 50px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    display: block;
    margin: 2rem auto;
    position: relative;
    border-radius: 4px;
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.shop-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.polaroid-caption {
    position: absolute;
    bottom: 15px;
    left: 20px;
    right: 20px;
    text-align: center;
    font-family: 'Kalam', cursive;
    font-size: 16px;
    color: #333;
    font-weight: 400;
    line-height: 1.2;
}

.hero-image-info {
    text-align: center;
}

.hero-image-info h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-image-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.hero-image-info .address {
    color: var(--primary-color);
    font-weight: 600;
}

.placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e5e7eb 100%);
    border: 2px dashed var(--border-color);
    color: var(--text-light);
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.placeholder-image p {
    font-size: 0.9rem;
    margin: 0;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--secondary-color);
}

.btn-primary i {
    transition: transform 0.3s;
}

.btn-primary:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    backdrop-filter: blur(10px);
}

.btn-secondary i {
    transition: transform 0.3s;
}

.btn-secondary:hover i {
    transform: translateX(5px);
}

/* Services Section */
.services {
    padding: 60px 0 60px;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 129, 186, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover i {
    animation: serviceIconBounce 0.6s ease-in-out;
    color: var(--primary-color);
    transform: scale(1.1);
}

@keyframes serviceIconBounce {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.3); }
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    text-align: justify;
}

/* Clients Section */
.clients {
    padding: 60px 0;
    background: var(--bg-light);
    overflow: hidden;
}

.clients-subtitle {
    text-align: justify;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.clients-slideshow-new {
    margin: 2rem auto;
    max-width: 800px;
    height: 250px;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 129, 186, 0.15);
    border: 2px solid rgba(0, 129, 186, 0.1);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.slide-group {
    display: none;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide-group.active {
    display: flex;
    opacity: 1;
}

.slide-group img {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.slide-group img:hover {
    transform: scale(1.1);
}




/* About Section */
.about {
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

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

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.about-image {
    position: relative;
}

.founder-image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.founder-info {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    position: absolute;
    bottom: -20px;
    left: 20px;
    right: 20px;
}

.founder-info h4 {
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

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

/* AI Division Section */
.ai-division {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(0, 129, 186, 0.05) 100%);
    border-radius: 1rem;
    border: 2px solid rgba(0, 129, 186, 0.1);
}

.ai-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}

.ai-logo {
    width: 300px;
    height: auto;
    object-fit: contain;
}

.ai-text h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.ai-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: justify;
    font-size: 1.1rem;
}

/* Instagram Section */
.instagram-feed {
    padding: 80px 0;
    background: var(--bg-light);
}

.instagram-container {
    text-align: center;
}

.instagram-follow {
    display: inline-block;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.instagram-follow:hover {
    transform: scale(1.05);
}

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

/* Portfolio Section - Slideshow compacto */
.portfolio {
    padding: 60px 0;
    background: var(--bg-white);
}

.portfolio-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.portfolio-item {
    min-width: 100%;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.portfolio-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-info h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.portfolio-tags .tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 129, 186, 0.2);
}

.portfolio-info .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    pointer-events: all;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-prev {
    transform: translateX(-50%);
}

.carousel-next {
    transform: translateX(50%);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: var(--bg-light);
}

.pricing-header-content {
    text-align: center;
    margin-bottom: 4rem;
}

.section-slogan {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-weight: 500;
}

.pricing-grid.desktop-pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* Las dos primeras tarjetas (premium y professional) ocupan exactamente la mitad menos el gap */
.pricing-grid.desktop-pricing .pricing-card.premium,
.pricing-grid.desktop-pricing .pricing-card.professional {
    width: calc(50% - 1rem);
    flex: 0 0 calc(50% - 1rem);
}

/* El contenedor de la tercera tarjeta (sin plan) ocupa el ancho completo en una nueva línea */
.pricing-grid.desktop-pricing .no-plan-container {
    width: 100%;
    flex-basis: 100%;
    margin-top: 1rem;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 550px;
}

.pricing-card.premium {
    position: relative;
    z-index: 2;
    border: 2px solid #FCCC0B;
    /* Removido transform: scale que causaba problemas de layout */
}

.premium-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FCCC0B, #e6b800);
    color: #000000;
    padding: 0.7rem 1.5rem;
    border-radius: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(252, 204, 11, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin: 1rem 0;
}

.price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.price .period {
    font-size: 1rem;
    color: var(--text-light);
    margin-left: 0.25rem;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.pricing-features li i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.pricing-rates {
    margin-bottom: 2rem;
}

.pricing-rates h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rates {
    display: grid;
    gap: 0.75rem;
}

.rates div {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rates div strong {
    color: var(--text-color);
    font-weight: 600;
}

.pricing-btn {
    width: 100%;
    text-align: center;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.pricing-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* No Plan Section - Solo para versiones que no son desktop */
.no-plan-container {
    margin-top: 1rem;
}

.pricing-card.no-plan {
    background: white;
    color: #000000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    border: 2px solid #FCCC0B;
    position: relative;
    overflow: hidden;
    min-height: auto !important;
    height: auto !important;
}

.pricing-card.no-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FCCC0B 0%, #e6b800 100%);
}

.no-plan-column-left {
    background: linear-gradient(135deg, #FCCC0B 0%, #e6b800 100%);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(252, 204, 11, 0.3);
}

.no-plan-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #000000;
}

.no-plan-subtitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.8);
}

.no-plan-column-right {
    padding: 1rem 0;
}

.no-plan-rates-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.no-plan-rates {
    display: grid;
    gap: 0.75rem;
}

.no-plan-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FCCC0B;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(252, 204, 11, 0.2);
}

.rate-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000;
}

.rate-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000;
}

.no-plan-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

.pricing-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.pricing-footer p {
    color: var(--text-light);
    font-size: 1rem;
}

.pricing-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.pricing-footer a:hover {
    text-decoration: underline;
}


.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--accent-color);
}

/* Contact Section */
.contact {
    padding: 60px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 30px;
}

.info-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.info-item p, .info-item a {
    color: var(--text-light);
    text-decoration: none;
}

.info-item a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.contact-form button:hover {
    background: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1) contrast(1.2);
}

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

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--secondary-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.7);
    position: relative;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    border: none;
    background: none;
}

.legal-links a:hover {
    color: white !important;
    text-decoration: none !important;
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Asegurar que los enlaces legales no tengan estilos por defecto */
.footer-bottom .legal-links a,
.footer-bottom-content .legal-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-weight: normal !important;
    border-bottom: none !important;
    outline: none !important;
}

.footer-bottom .legal-links a:hover,
.footer-bottom-content .legal-links a:hover {
    color: white !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        gap: 10px;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .legal-links .separator {
        display: none;
    }
}

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

/* Removed mobile-specific pricing styles - using responsive desktop version only */


/* Responsive - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .hero-text {
        padding-right: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content h1 span {
        font-size: 2.4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-content {
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .pricing-grid.desktop-pricing {
        max-width: 900px;
        gap: 1.5rem;
    }
    
    /* En tablet, usar calc para asegurar que quepan juntas */
    .pricing-grid.desktop-pricing .pricing-card.premium,
    .pricing-grid.desktop-pricing .pricing-card.professional {
        width: calc(50% - 0.75rem);
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    .pricing-card.premium {
        border: 2px solid #FCCC0B;
        /* Sin transform scale en tablet */
    }
    
    .pricing-grid.desktop-pricing .no-plan-container {
        width: 100%;
        margin: 1rem 0 0 0;
    }
    
    .recommended-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .portfolio-item {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    
    .portfolio-image img {
        max-width: 250px;
    }
}

/* Responsive - Mobile Large */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Top Bar Mobile */
    .top-bar {
        padding: 4px 0;
        position: fixed;
    }
    
    .top-bar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        min-height: 36px;
    }
    
    .top-bar-left {
        gap: 0.5rem;
        flex: 1;
        padding-left: 25px;
    }
    
    .social-text {
        display: none;
    }
    
    .top-bar .social-links {
        gap: 0.5rem;
    }
    
    .top-bar .social-links a {
        font-size: 0.9rem;
    }
    
    .top-bar-right {
        flex-shrink: 0;
    }
    
    .top-bar .language-btn {
        padding: 0.2rem 0.3rem;
        font-size: 0.65rem;
        min-width: 45px;
    }
    
    
    .social-links {
        gap: 1rem;
    }
    
    .language-selector {
        order: -1;
    }
    
    /* Header Mobile */
    .header {
        top: 36px;
    }
    
    .navbar {
        padding: 2.1rem 0 1.5rem 0;
    }
    
    .nav-brand .logo {
        height: 55px;
    }
    
    .hero {
        padding: 185px 0 60px;
        min-height: calc(100vh - 185px);
    }
    
    .nav-menu {
        position: fixed;
        top: 160px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        text-align: center;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1000;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Mobile */
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        justify-self: center;
    }
    
    .polaroid-frame {
        max-width: 350px;
        padding: 15px 15px 60px 15px;
        transform: rotate(-1deg);
        margin: 1.5rem auto;
    }
    
    .polaroid-caption {
        font-size: 14px;
        bottom: 12px;
        left: 15px;
        right: 15px;
    }
    
    .hero-slogan {
        font-size: 1.3rem;
        margin: 1rem 0;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Sections Mobile */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .services,
    .about,
    .contact,
    .portfolio,
    .pricing {
        padding: 60px 0;
    }
    
    .clients {
        padding: 40px 0;
    }
    
    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        position: relative;
        padding: 0 20px;
    }
    
    .founder-image {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        display: block;
    }
    
    .founder-info {
        position: static;
        margin-top: 1rem;
        left: auto;
        right: auto;
        bottom: auto;
    }
    
    .ai-division {
        margin-top: 3rem;
        padding: 1.5rem;
    }
    
    .ai-content {
        grid-template-columns: 1fr;
    }
    
    .ai-text h3 {
        font-size: 1.3rem !important;
        line-height: 1.3;
    }
    
    .ai-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        gap: 2rem;
        text-align: center;
    }
    
    .ai-logo {
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .service-card i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    /* Pricing mobile responsive - removed problematic rules */
    .pricing-grid.desktop-pricing {
        flex-direction: column;
        gap: 2rem;
    }
    
    .pricing-grid.desktop-pricing .pricing-card.premium,
    .pricing-grid.desktop-pricing .pricing-card.professional {
        width: 100%;
    }
    
    .pricing-grid.desktop-pricing .no-plan-container {
        width: 100%;
        margin: 0;
    }
    
    /* Asegurar que SIN PLAN se mantenga horizontal en móvil */
    .pricing-card.no-plan {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        align-items: center;
    }
    
    .no-plan-column-left {
        padding: 1.5rem;
    }
    
    .no-plan-title {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .no-plan-subtitle {
        font-size: 0.8rem;
    }
    
    .no-plan-rates-title {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .no-plan-rate {
        padding: 0.6rem 0.8rem;
    }
    
    .rate-label {
        font-size: 0.75rem;
    }
    
    .rate-value {
        font-size: 0.8rem;
    }
    
    /* Portfolio Mobile */
    .portfolio-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .portfolio-image {
        order: -1;
        min-height: 150px;
    }
    
    .portfolio-image img {
        max-width: 200px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .portfolio-tags {
        justify-content: center;
    }
    
    /* Clients Mobile */
    .clients-slideshow-new {
        margin-top: 2rem;
    }
    
    .slide-group img {
        max-height: 60px;
        width: auto;
    }
    
    /* Contact Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        order: -1;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
}

/* Responsive - Mobile Small */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Top Bar Very Small */
    .top-bar-content {
        padding: 0 10px;
    }
    
    .social-text {
        display: none;
    }
    
    /* Hero Very Small */
    .hero-slogan {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .polaroid-frame {
        max-width: 240px;
        padding: 10px 10px 45px 10px;
        transform: rotate(-1deg);
        margin: 1rem auto;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15), 0 5px 25px rgba(0, 0, 0, 0.1);
    }
    
    .polaroid-caption {
        font-size: 10px;
        bottom: 6px;
        left: 10px;
        right: 10px;
        line-height: 1.1;
    }
    
    /* Sections Very Small */
    .section-title {
        font-size: 1.8rem;
        padding: 0;
    }
    
    .pricing-header-content .section-slogan {
        font-size: 1rem;
    }
    
    .project-info h3 {
        font-size: 1.6rem;
    }
    
    .project-info h4 {
        font-size: 1.1rem;
    }
    
    .project-features li {
        font-size: 0.85rem;
    }
    
    .project-tags .tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Pricing Very Small */
    .price .amount {
        font-size: 2rem;
    }
    
    .pricing-features ul {
        padding-left: 0;
    }
    
    .pricing-features li {
        font-size: 0.85rem;
    }
    
    /* Buttons Very Small */
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}


/* ========================================
   AJUSTE DE ANCLAS PARA HEADER FIJO
   ======================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Compensar el espacio del header fijo para que las anclas se posicionen correctamente */
section[id] {
    scroll-margin-top: 120px; /* Altura del header + top-bar + margen */
}

/* Ajuste específico para pantallas más pequeñas */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 90px; /* Altura menor en mobile */
    }
}
