@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@400;700;900&display=swap');

:root {
    --primary-color: #0A192F;
    /* Deep Blue - Premium Force */
    --accent-color: #C5A059;
    /* Champagne Gold - Elegance */
    --text-dark: #cbd5e1;
    /* Lighter text for dark backgrounds */
    --text-light: #94a3b8;
    /* Muted text */
    --white: #ffffff;
    --bg-dark: #0A192F;
    /* Main background */
    --glass-border: rgba(197, 160, 89, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    /* Dark theme base */
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
header {
    background-color: rgba(10, 25, 47, 0.95);
    /* Deep Blue with slight transparency */
    color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 400;
    transition: all 0.3s;
}

nav a:hover {
    color: var(--accent-color);
    font-weight: 600;
}

/* Sections General */
section {
    padding: 3rem 0;
}

.section-content {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Hero Section */
#hero {
    background: radial-gradient(circle at center, #0f2440 0%, #0A192F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding: 2rem 0;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 400;
}

#hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -2px;
}

.about-text {
    font-size: 1.5rem;
    color: #cbd5e1;
    max-width: 850px;
    margin: 0 auto 4rem auto;
    font-weight: 300;
    line-height: 1.4;
}

/* Authority Strip */
.authority-strip {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem 0;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.authority-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logos-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.logo-item {
    font-weight: 600;
    color: var(--white);
    opacity: 0.5;
    transition: opacity 0.3s;
    font-family: 'Playfair Display', serif;
}

.logo-item:hover {
    opacity: 1;
    color: var(--accent-color);
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
}

.btn-diagnostic {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
}

.btn-diagnostic:hover {
    background-color: #d6b06a;
    color: var(--primary-color);
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.5);
}

/* Services Section */
#services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(10, 25, 47, 0.8);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.service-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.service-card p {
    color: var(--text-light);
}

/* AI Consultant Section */
#ai-consultant {
    background: linear-gradient(180deg, #0f2440 0%, #0A192F 100%);
}

.consultation-container {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(197, 160, 89, 0.05);
}

#aiConsultationForm textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 12px;
    color: var(--white);
    padding: 1.2rem;
    font-size: 1.1rem;
    resize: vertical;
    margin-top: 1rem;
}

#aiConsultationForm textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
    outline: none;
}

.ai-result-box {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}

.ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(197, 160, 89, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ai-recommendation {
    text-align: left;
    background: rgba(197, 160, 89, 0.05);
    border-left: 4px solid var(--accent-color);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recommendation-header {
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.recommendation-content {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.recommendation-content h4 {
    color: var(--white);
    margin: 1.5rem 0 0.5rem 0;
}

.recommendation-content ul {
    list-style-type: none;
    padding-left: 0;
}

.recommendation-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.recommendation-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.recommendation-footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

/* Calculator Section (Styled to pop) */
#calculator {
    background-color: var(--primary-color);
    color: var(--white);
}

.white-text {
    color: var(--white) !important;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    margin-top: -2.5rem;
}

.calc-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 160, 89, 0.15);
    padding: 4rem;
    border-radius: 24px;
    max-width: 550px;
    margin: 0 auto;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(197, 160, 89, 0.05);
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1rem;
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

#btnCalcular {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

#btnCalcular:hover {
    background: #3b82f6;
}

#result {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

#result.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-label {
    color: #cbd5e1;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.positive {
    color: #4ade80;
}

.negative {
    color: #f87171;
}

.neutral {
    color: #e2e8f0;
}

.secondary-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #cbd5e1;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Contact Section */
#contact {
    background: var(--bg-gray);
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: var(--white);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0px 5px 15px rgba(37, 211, 102, 0.4);
}

/* Calendly Integration Style */
#calendar {
    background: var(--bg-dark);
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        margin: 0 0.8rem;
    }

    #hero h1 {
        font-size: 3rem;
    }

    .authority-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .logos-grid {
        gap: 1.5rem;
    }
}