@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0A192F; /* Azul Marino Corporativo */
    --secondary-color: #E2E8F0; /* Plata/Gris claro */
    --accent-color: #0070F3; /* Azul eléctrico para botones */
    --text-dark: #1E293B;
    --text-light: #F8FAFC;
    --bg-color: #FFFFFF;
    --section-bg: #F1F5F9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

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

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

.cta-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(0, 112, 243, 0.39);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.5);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    background-color: var(--section-bg);
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 50%;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 2rem;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image {
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Problema vs Solucion */
.solution-section {
    padding: 5rem 5%;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.solution-image {
    flex: 1;
}

.solution-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.solution-text {
    flex: 1;
}

.solution-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.solution-text ul {
    list-style: none;
    margin-top: 1.5rem;
}

.solution-text li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.solution-text li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Servicios */
.services-section {
    padding: 5rem 5%;
    background-color: var(--section-bg);
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

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

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 5%;
}

/* Contact Section & Form */
.contact-section {
    padding: 5rem 5%;
    background-color: var(--bg-color);
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    color: #475569;
    font-size: 1.1rem;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1rem;
}

.form-status {
    text-align: center;
    font-weight: 600;
    margin-top: 0.5rem;
    min-height: 20px;
}

.form-status.success { color: #10B981; }
.form-status.error { color: #EF4444; }

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Mock UI Chat */
.mock-ui {
    width: 100%;
    background: #1E293B;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mock-ui-header {
    background: #0F172A;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }
.mock-ui-title { color: #94A3B8; font-size: 0.9rem; margin: 0 auto;}
.mock-ui-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 250px;
}
.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}
.chat-message.user {
    background: #334155;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}
.chat-message.assistant {
    background: var(--accent-color);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.chat-message.assistant.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
}
.typing-indicator span {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Diagram */
.comparison-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.diagram-side {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
}
.cloud-side { background: #FEF2F2; border: 1px solid #FCA5A5; }
.local-side { background: #F0FDF4; border: 1px solid #86EFAC; }
.diagram-icon { font-size: 3rem; margin-bottom: 10px; }
.vs-badge {
    background: var(--text-dark);
    color: white;
    padding: 10px 12px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
}
.data-flow {
    margin-top: 15px;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}
.data-flow.out { background: #FEE2E2; color: #DC2626; animation: floatUp 2s infinite ease-in-out; }
.data-flow.in { background: #DCFCE7; color: #16A34A; }

@keyframes floatUp {
    0%, 100% { transform: translateY(0); opacity: 1;}
    50% { transform: translateY(-8px); opacity: 0.6;}
}

/* Services */
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
