/* Reset y estilos base */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 10px; /* Compensa la altura del header fijo globalmente */
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width:400px;
    height: 60px;
    object-fit: contain;
    border-radius: 9px;
}

.logo h1 {
    font-weight: 700;
    font-size: 2 rem;
    color: #222368;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #6366f1;
}

.btn-contact {
    padding: 0.5rem 1.5rem;
    border: 2px solid #1a1a2e;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #1a1a2e;
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 600px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
    font-weight: 400;
}

.btn-primary {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    color: white;
    text-decoration: none;
}

/* Hero Visuals */
.hero-visuals {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.phone-3d {
    position: absolute;
    left: 10%;
    top: 20%;
    width: 200px;
    height: 300px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 30px;
    transform: rotateY(-15deg) rotateX(10deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    background: #1e293b;
    margin: 10px;
    height: calc(100% - 20px);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #ec4899, #6366f1);
    border-radius: 8px;
}

.desktop-3d {
    position: absolute;
    right: 15%;
    top: 30%;
    width: 300px;
    height: 200px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 20px;
    transform: rotateY(15deg) rotateX(-10deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.desktop-screen {
    background: #1e293b;
    margin: 10px;
    height: calc(100% - 20px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.chart {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 60px;
}

.bar {
    width: 20px;
    background: linear-gradient(to top, #ec4899, #f97316);
    border-radius: 4px;
}

.bar1 { height: 40px; }
.bar2 { height: 60px; }
.bar3 { height: 30px; }

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    width: 25px;
    height: 25px;
    border-radius: 6px;
}

.btn-blue { background: #6366f1; }
.btn-pink { background: #ec4899; }

/* Background Lines */
.background-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #ec4899, transparent);
    height: 2px;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.line1 {
    top: 20%;
    left: -100%;
    width: 300px;
    animation-delay: 0s;
}

.line2 {
    top: 60%;
    right: -100%;
    width: 400px;
    animation-delay: 2s;
}

.line3 {
    bottom: 30%;
    left: -100%;
    width: 250px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(100vw); opacity: 1; }
}

/* Companies Section */
.companies {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1a1a2e;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.company {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.company:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #6366f1;
}

.company-logo {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;

}



/* Services Section */
.services {
    padding: 4rem 0;
    background: #f8fafc;
    scroll-margin-top: 50px; /* Compensa la altura del header fijo */
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.service-card h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #6366f1;
    margin-bottom: 1.5rem;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-illustration {
    text-align: center;
    margin: 1.5rem 0;
}

.service-illustration-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.service-illustration-image:hover {
    transform: scale(1.02);
}

.service-features h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.service-features p {
    color: #64748b;
    font-size: 0.95rem;
}

.crm-illustration {
    text-align: center;
    margin: 2rem 0;
}

.hubspot-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.hubspot-logo {
    width: 300px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
/*
.hubspot-logo:hover {
    transform: scale(1.05);
}
*/
.crm-text {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.2rem;
}

.link-arrow {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-arrow:hover {
    color: #4f46e5;
}

/* HubSpot Form Section */
.hubspot-form {
    padding: 4rem 0;
    background: white;
    scroll-margin-top: 50px; /* Compensa la altura del header fijo */
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Contact: 2 columnas (form + WhatsApp) */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 formulario, 1/3 CTA */
    gap: 2rem;
    align-items: start;
  }
  
  .form-col .section-title {
    margin-bottom: 1.5rem;
  }
  
  .whatsapp-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 96px; /* queda visible mientras scrolleás el form */
  }
  
  .whatsapp-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    color: #0f172a;
  }
  
  .whatsapp-sub {
    color: #475569;
    margin: 0 0 1rem;
  }
  
  .btn-whatsapp {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.05rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
    margin-bottom: 1rem;
  }
  .btn-whatsapp:hover { transform: translateY(-2px); background: #20ba57; }
  
  .whatsapp-bullets {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0;
    color: #334155;
  }
  .whatsapp-bullets li { margin: .25rem 0; }
  
  /* Responsive: en móvil apilamos */
  @media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .whatsapp-col { position: static; }
  }

/* Team Section */
.team {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    scroll-margin-top: 10px; /* Compensa la altura del header fijo */
}

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

.team-image {
    text-align: center;
}

.team-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.btn-connect {
    background: white;
    color: #1a1a2e;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* LinkedIn Logo Styles */
.linkedin-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.linkedin-link:hover {
    transform: scale(1.1);
}

.linkedin-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.linkedin-logo:hover {
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visuals {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav {
        display: none;
    }
}

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

.service-card,
.company,
.team-content {
    animation: fadeInUp 0.8s ease-out;
}

/* HubSpot chat: fuerza posición fija abajo-derecha, ids pueden ser dinámicos */
#hubspot-messages-iframe-container,
body > [id^="hubspot-messages-iframe-container"] {
    position: fixed !important;
    inset: auto 20px 20px auto !important;
    z-index: 2147483647 !important;
}

/* Asegura que el iframe interno herede posicionamiento correcto */
#hubspot-messages-iframe-container iframe,
body > [id^="hubspot-messages-iframe-container"] iframe {
    position: fixed !important;
    inset: auto 20px 20px auto !important;
    z-index: 2147483647 !important;
}