/* VIVA Studio - Estilos CSS Finales */

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

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #d946ef;
    --primary-dark: #c026d3;
    --secondary-color: #f0abfc;
    --background-color: #fdf4ff;
    --surface-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --gradient-start: #d946ef;
    --gradient-end: #c026d3;
    --hero-bg: #fdf4ff;
    --hero-text: #1a1a1a;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --header-bg: #ffffff;
    --header-text: #1a1a1a;
    --chat-bg: #ffffff;
    --chat-input-bg: #f5f5f5;
    --chat-border: #e0e0e0;
    --chat-user-msg: #d946ef;
    --chat-bot-msg: #f5f5f5;
    --chat-bot-text: #1a1a1a;
    --vibo-bg: #ffffff;
}

[data-theme="dark"] {
    --background-color: #0f0a14;
    --surface-color: #1a1420;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --card-background: #2a1f35;
    --border-color: #3d2d4a;
    --hero-bg: #0f0a14;
    --hero-text: #ffffff;
    --footer-bg: #020202;
    --footer-text: #ffffff;
    --header-bg: #1a1420;
    --header-text: #ffffff;
    --chat-bg: #1a1420;
    --chat-input-bg: #2a1f35;
    --chat-border: #3d2d4a;
    --chat-user-msg: #d946ef;
    --chat-bot-msg: #2a1f35;
    --chat-bot-text: #e0e0e0;
    --vibo-bg: #1a1420;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container-content {
    width: 90%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
.header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(217, 70, 239, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 30px;
    max-width: 1700px;
    margin: 0 auto;
    width: 90%;
}

.logo {
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--header-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(217, 70, 239, 0.3);
}

.btn-vibo-image {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(217, 70, 239, 0.2);
}

.btn-vibo-image img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.btn-vibo-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(217, 70, 239, 0.4);
}

/* Hero Section - AJUSTADO */
.hero {
    background: var(--hero-bg);
    color: var(--hero-text);
    padding: 140px 0 60px;
    min-height: 80vh;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

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

.hero-text h1 {
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Primera línea más pequeña */
.hero-line-1 {
    font-size: 2.2rem;
    display: block;
}

/* Segunda y tercera línea (highlight) mismo tamaño */
.hero-text .highlight {
    color: var(--primary-color);
    font-size: 2.2rem;
    display: inline-block;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* About Section - SOLO TEXTO, SIN IMAGEN */
.about {
    padding: 80px 0;
    background-color: var(--surface-color);
    transition: background-color 0.3s ease;
}

.about-text-only {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text-only p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-text-only strong {
    color: var(--primary-color);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--background-color);
    transition: background-color 0.3s ease;
}

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

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card-large {
    background: var(--card-background);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(217, 70, 239, 0.1);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.service-card-large:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(217, 70, 239, 0.25);
    border-color: var(--primary-color);
}

.service-icon-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.service-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card-large:hover .service-icon-image {
    transform: scale(1.1);
}

.service-card-large h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card-large p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ViBO Section */
.vibo-section {
    padding: 100px 0;
    background: var(--vibo-bg);
    transition: background-color 0.3s ease;
}

.vibo-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.vibo-text h2 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.vibo-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.vibo-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.vibo-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-text p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.vibo-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(217, 70, 239, 0.2);
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: var(--surface-color);
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.team-grid {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.team-grid::-webkit-scrollbar {
    height: 8px;
}

.team-grid::-webkit-scrollbar-track {
    background: var(--surface-color);
    border-radius: 10px;
}

.team-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.team-card {
    background: var(--card-background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(217, 70, 239, 0.1);
    transition: all 0.4s ease;
    text-align: center;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.team-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 30px 60px rgba(217, 70, 239, 0.3);
}

.team-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.linkedin-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(217, 70, 239, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(5px);
}

.linkedin-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.team-card:hover .linkedin-icon {
    opacity: 1;
}

.linkedin-icon:hover {
    background: var(--primary-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.team-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--background-color);
    transition: background-color 0.3s ease;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(217, 70, 239, 0.15);
}

.btn-phone {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-phone:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
}

.btn-email {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.btn-email:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(217, 70, 239, 0.3);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    transition: all 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content,
    .vibo-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-line-1,
    .hero-text .highlight {
        font-size: 1.8rem;
    }

    .vibo-text h2 {
        font-size: 2rem;
    }

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

    .team-card {
        min-width: 260px;
        max-width: 260px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .btn-contact {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container-content {
        padding: 0 15px;
    }

    .hero-line-1,
    .hero-text .highlight {
        font-size: 1.5rem;
    }

    .vibo-text h2 {
        font-size: 1.8rem;
    }

    .team-card {
        min-width: 240px;
        max-width: 240px;
    }
}