/* =============================================
   WEBCOMUNICA - Microsite Gimnasio Monda
   Estilos coherentes con la marca principal
   ============================================= */

:root {
    /* Colores corporativos WEBCOMUNICA */
    --primary-color: #0081BA;
    --secondary-color: #005a85;
    --accent-color: #1a9bd1;

    /* Colores del proyecto Gimnasio (azul deportivo) */
    --project-color: #4a8ac7;
    --project-light: #6ba3d6;
    --project-dark: #3a7ab7;

    /* Neutros */
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;

    /* Sombras */
    --shadow-sm: 0 1px 2px 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);

    /* Transiciones */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   BARRA SUPERIOR
   ============================================= */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 1001;
    padding: 0.5rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-3px);
}

.back-link i {
    font-size: 0.75rem;
}

.project-label {
    color: white;
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-label i {
    font-size: 0.75rem;
}

/* =============================================
   NAVEGACIÓN
   ============================================= */

.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    height: 80px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem !important;
}

.btn-nav:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-nav::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--project-color) 0%, var(--project-dark) 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 80%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(100px);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #10b981;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    display: block;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.hero-stats .stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--project-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Image / Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    background: white;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.device-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-screen {
    background: linear-gradient(135deg, var(--project-color) 0%, var(--project-light) 100%);
    border-radius: 12px;
    overflow: hidden;
    width: 400px;
    height: 300px;
}

.mockup-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.mockup-dots span:first-child {
    background: #ff5f57;
}

.mockup-dots span:nth-child(2) {
    background: #febc2e;
}

.mockup-dots span:last-child {
    background: #28c840;
}

.mockup-url {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-family: monospace;
}

.mockup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 50px);
    padding: 2rem;
    text-align: center;
}

.mockup-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mockup-icon i {
    font-size: 2.5rem;
    color: white;
}

.mockup-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

.mockup-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* =============================================
   CLIENTE SECTION
   ============================================= */

.cliente-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.cliente-card-simple {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cliente-left {
    background: linear-gradient(135deg, var(--project-color) 0%, var(--project-light) 100%);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.cliente-logo-box {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cliente-logo-box img {
    width: 150px;
    height: auto;
}

.cliente-datos {
    width: 100%;
}

.cliente-datos p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin: 0;
}

.cliente-datos p:last-child {
    border-bottom: none;
}

.cliente-datos strong {
    color: white;
}

.cliente-right {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cliente-label {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    width: fit-content;
}

.cliente-right h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--project-color);
    margin-bottom: 1rem;
}

.cliente-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cliente-desc strong {
    color: var(--text-color);
}

.cliente-reto {
    background: linear-gradient(135deg, rgba(74, 138, 199, 0.05), rgba(74, 138, 199, 0.1));
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.cliente-reto h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--project-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cliente-reto p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.cliente-link {
    display: inline-block;
    color: var(--project-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.cliente-link:hover {
    color: var(--project-dark);
    text-decoration: underline;
}

/* =============================================
   SECTION HEADERS
   ============================================= */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header.light h2,
.section-header.light p {
    color: white;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--project-color), var(--project-light));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   FUNCIONALIDADES SECTION
   ============================================= */

.funcionalidades-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--project-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--project-color), var(--project-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-card > p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.feature-list li i {
    color: var(--project-color);
    font-size: 0.8rem;
}

/* =============================================
   IA/HARDWARE INTEGRATION SECTION
   ============================================= */

.ia-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #005a82 0%, var(--project-color) 50%, var(--project-dark) 100%);
    position: relative;
    overflow: hidden;
}

.ia-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.ia-highlight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ia-highlight.ia-with-image {
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.ia-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ia-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--project-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.ia-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.ia-content > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.ia-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.ia-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ia-feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.ia-feature-text h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.ia-feature-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

.ia-flow {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flow-number {
    width: 30px;
    height: 30px;
    background: var(--project-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.flow-text {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.flow-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* =============================================
   TECNOLOGÍA SECTION
   ============================================= */

.tecnologia-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--project-color) 0%, var(--project-dark) 100%);
    position: relative;
}

.tecnologia-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.tecnologia-section .container {
    position: relative;
    z-index: 1;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tech-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.tech-card h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.tech-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.highlight-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.highlight-item i {
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.highlight-item h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =============================================
   BENEFICIOS SECTION
   ============================================= */

.beneficios-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.beneficio-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.beneficio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.beneficio-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--project-color), var(--project-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.beneficio-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.beneficio-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =============================================
   CTA SECTION
   ============================================= */

.cta-section {
    padding: 100px 0;
    background: white;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-benefits {
    list-style: none;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-color);
    font-size: 1rem;
}

.cta-benefits li i {
    color: #10b981;
    font-size: 1.2rem;
}

.cta-card {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.cta-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-card h3 i {
    color: var(--project-color);
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
    outline: none;
    border-color: var(--project-color);
    box-shadow: 0 0 0 4px rgba(74, 138, 199, 0.1);
}

.cta-form textarea {
    resize: vertical;
    min-height: 100px;
}

.cta-form .btn {
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    background: var(--project-color);
    color: white;
}

.cta-form .btn:hover {
    background: var(--project-dark);
}

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-note i {
    color: #10b981;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    background: var(--project-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    max-width: 220px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1) contrast(1.2);
    object-fit: contain;
    display: block;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    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;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--project-dark);
}

.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);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-bottom-content p {
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .nav-brand .logo {
        height: 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .device-mockup {
        transform: none;
    }

    .mockup-screen {
        width: 350px;
        height: 260px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tech-highlights {
        grid-template-columns: 1fr;
    }

    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ia-highlight {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ia-content h2 {
        font-size: 2rem;
    }

    .cta-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Ocultar icono de pesa en hero móvil */
    .mockup-icon {
        display: none;
    }

    /* Textos justificados en móvil */
    .hero-subtitle,
    .cliente-desc,
    .cliente-reto p,
    .feature-card > p,
    .ia-content > p,
    .ia-feature-text p,
    .highlight-item p,
    .cta-text p {
        text-align: justify;
    }

    /* Stats en una sola línea */
    .hero-stats {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .stat {
        flex: 1;
        min-width: auto;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    /* Logo cliente más grande */
    .cliente-logo-box {
        padding: 1.5rem;
    }

    .cliente-logo-box img {
        width: 180px;
        max-width: 100%;
    }

    .ia-highlight.ia-with-image {
        grid-template-columns: 1fr;
    }

    .ia-image {
        order: -1;
        margin-bottom: 1rem;
    }

    .ia-image img {
        max-width: 250px;
    }

    .top-bar {
        padding: 0.4rem 0;
    }

    .top-bar .container {
        justify-content: center;
    }

    .project-label {
        display: none;
    }

    .back-link {
        font-size: 0.8rem;
    }

    .navbar {
        top: 28px;
        padding: 0.6rem 0;
    }

    .nav-brand .logo {
        height: 55px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        gap: 0;
        max-height: calc(100vh - 85px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
        font-size: 1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
        margin-top: 0.5rem;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
        padding: 1rem !important;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 125px 0 50px;
        min-height: auto;
    }

    .hero .container {
        gap: 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-content h1 span {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 10px;
    }

    .hero-buttons .btn-primary {
        box-shadow: 0 4px 20px rgba(74, 138, 199, 0.4);
    }

    .hero-buttons .btn-secondary {
        background: white;
        border: 2px solid var(--project-color);
        color: var(--project-color);
    }

    .hero-image {
        margin-top: 1.5rem;
    }

    .device-mockup {
        transform: none !important;
    }

    .mockup-screen {
        width: 280px;
        height: 200px;
    }

    .mockup-url {
        font-size: 0.6rem;
    }

    .cliente-section {
        padding: 50px 0;
    }

    .cliente-card-simple {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .cliente-left {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .cliente-datos p {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }

    .cliente-right {
        padding: 1.5rem;
    }

    .cliente-right h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .feature-card > p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .feature-list li {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .ia-section {
        padding: 50px 0;
    }

    .ia-highlight {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ia-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .ia-content h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .ia-content > p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .ia-features {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .ia-feature {
        gap: 1rem;
    }

    .ia-feature-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }

    .ia-feature-text h4 {
        font-size: 0.95rem;
    }

    .ia-feature-text p {
        font-size: 0.8rem;
    }

    .ia-flow {
        padding: 1rem;
        gap: 0.8rem;
    }

    .flow-step {
        width: 100%;
        justify-content: flex-start;
        background: rgba(255,255,255,0.05);
        padding: 0.8rem;
        border-radius: 8px;
    }

    .flow-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .flow-text {
        font-size: 0.85rem;
    }

    .flow-arrow {
        display: none;
    }

    .tecnologia-section {
        padding: 50px 0;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .tech-card {
        padding: 1.2rem 1rem;
    }

    .tech-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .tech-card h4 {
        font-size: 0.9rem;
    }

    .tech-card p {
        font-size: 0.75rem;
    }

    .tech-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .highlight-item {
        padding: 1.2rem;
    }

    .highlight-item h4 {
        font-size: 1rem;
    }

    .highlight-item p {
        font-size: 0.85rem;
    }

    .beneficios-section {
        padding: 50px 0;
    }

    .beneficios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .beneficio-card {
        padding: 1.5rem;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    .beneficio-number {
        font-size: 2rem;
        min-width: 60px;
    }

    .beneficio-card h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .beneficio-card p {
        font-size: 0.8rem;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-text h2 {
        font-size: 1.5rem;
    }

    .cta-text p {
        font-size: 0.9rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .cta-card h3 {
        font-size: 1.15rem;
        margin-bottom: 1.2rem;
    }

    .cta-form {
        gap: 0.8rem;
    }

    .cta-form input,
    .cta-form select,
    .cta-form textarea {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .cta-form textarea {
        min-height: 100px;
    }

    .cta-card .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 10px;
        margin-top: 0.5rem;
    }

    .form-note {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
        font-weight: 600;
    }

    .btn-primary {
        box-shadow: 0 4px 15px rgba(74, 138, 199, 0.3);
    }

    .btn-secondary {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .footer {
        padding: 50px 0 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section:first-child {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .footer-logo {
        height: 40px;
        margin: 0 auto 1rem;
        display: block;
    }

    .footer-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        color: rgba(255,255,255,0.8);
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        color: white;
        font-weight: 600;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-section ul li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        width: 100%;
        text-align: center;
    }

    .footer-section ul li a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-section ul li a:hover {
        color: white;
    }

    .social-links {
        display: flex !important;
        gap: 1rem;
        justify-content: center !important;
        width: 100%;
    }

    .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;
        color: white;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .social-links a:hover {
        background: var(--project-dark);
        transform: translateY(-3px);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 2rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .footer-bottom p {
        font-size: 0.85rem;
        color: rgba(255,255,255,0.6);
    }

    .legal-links {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .legal-links a {
        font-size: 0.85rem;
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .legal-links a:hover {
        color: white;
    }

    .legal-links .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content h1 span {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 0.8rem;
    }

    .stat {
        flex: 1 1 45%;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .mockup-screen {
        width: 240px;
        height: 170px;
    }

    .client-logo {
        max-width: 60px !important;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .cliente-right h2 {
        font-size: 1.3rem;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .tech-card {
        padding: 0.8rem 0.5rem;
    }

    .tech-icon {
        font-size: 1.5rem;
    }

    .tech-card h4 {
        font-size: 0.7rem;
    }

    .tech-card p {
        display: none;
    }

    .beneficio-card {
        padding: 1rem;
    }

    .beneficio-number {
        font-size: 1.8rem;
        min-width: 50px;
    }

    .cta-text h2 {
        font-size: 1.3rem;
    }

    .cta-features li {
        font-size: 0.85rem;
    }

    .ia-content h2 {
        font-size: 1.2rem;
    }

    .ia-feature {
        flex-direction: column;
        text-align: center;
    }

    .ia-feature-icon {
        margin: 0 auto;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .btn-nav {
        padding: 0.8rem 1.2rem !important;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section ul li {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* =============================================
   AJUSTE DE ANCLAS PARA HEADER FIJO
   ============================================= */

section[id] {
    scroll-margin-top: 140px;
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 110px;
    }
}

/* =============================================
   ANIMACIONES
   ============================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation-delay: 0.2s;
}
