:root {
    --primary: #0a1931;
    --primary-light: #1a2a4a;
    --accent: #f9a828;
    --accent-light: #ffc046;
    --light: #f8f9fa;
    --text-grey: #adb5bd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary);
    color: var(--light);
    overflow-x: hidden;
}

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

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Header --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(160deg, var(--primary) 60%, #000 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="p" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 0 L10 20 M0 10 L20 10" stroke="%23f9a828" stroke-width="0.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23p)"/></svg>');
    opacity: 0.05;
    animation: pan-bg 15s linear infinite;
}

@keyframes pan-bg { from { transform: translate(0, 0); } to { transform: translate(20px, 20px); } }

.hero-content { text-align: left; }
.hero .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero .logo span { color: var(--accent); font-style: italic; }

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.hero h1 .highlight { color: var(--accent); }

.hero p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    max-width: 600px;
    color: var(--text-grey);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    padding: 15px 35px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    cursor: pointer;
}
.btn:hover { color: var(--primary); background-color: var(--accent); }
.btn.small { padding: 10px 25px; font-size: 0.9rem; }
.btn.form-btn { width: 100%; font-size: 1.1rem; }

/* --- Section Styling --- */
.section {
    padding: 6rem 0;
    border-top: 1px solid rgba(249, 168, 40, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .subtitle {
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}
.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    margin-top: 0.5rem;
}

/* --- Carousel Section --- */
#carousel-section { background-color: var(--primary); }
.carousel-container { position: relative; max-width: 1200px; margin: auto; overflow: hidden; border-radius: 10px; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; position: relative; aspect-ratio: 16 / 9; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; background-color: #08142b; }
.carousel-slide .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(10, 25, 49, 0.9), transparent); padding: 4rem 2rem 2rem 2rem; color: white; }
.carousel-slide .overlay h3 { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; }
.carousel-slide .overlay p { font-family: 'Roboto', sans-serif; font-size: 1rem; color: var(--text-grey); }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 1rem; pointer-events: none; }
.carousel-nav button { background-color: rgba(10, 25, 49, 0.5); border: 1px solid var(--accent); color: var(--accent); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; pointer-events: all; font-size: 1.5rem; transition: background-color 0.3s; }
.carousel-nav button:hover { background-color: var(--accent); color: var(--primary); }

/* --- Diagnostics Section --- */
#diagnosticos { background-color: #08142b; }
.diagnostics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.diagnostic-card { background-color: var(--primary); border: 1px solid rgba(249, 168, 40, 0.2); padding: 2rem; border-radius: 10px; display: flex; flex-direction: column; }
.diagnostic-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; color: var(--light); margin-bottom: 0.5rem; }
.diagnostic-card p { color: var(--text-grey); font-family: 'Roboto', sans-serif; margin-bottom: 1.5rem; flex-grow: 1; }
.diagnostic-card .price { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; color: var(--accent); font-weight: 700; margin-bottom: 1.5rem; }

/* --- Investment Packages Section --- */
#packages { background-color: var(--primary); }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.investment-card { background: var(--primary-light); border: 1px solid rgba(249, 168, 40, 0.2); border-radius: 10px; padding: 2.5rem 2rem; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; position: relative; overflow: hidden; }
.investment-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-color: var(--accent); }
.investment-card .icon { font-size: 2rem; color: var(--accent); margin-bottom: 1rem; }
.investment-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--light); }
.investment-card p { font-family: 'Roboto', sans-serif; color: var(--text-grey); margin-bottom: 1.5rem; flex-grow: 1; }
.investment-card .price { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--light); margin-bottom: 1.5rem; }
.investment-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-grey); }
.investment-card.highlight { border-color: var(--accent); }
.highlight-banner { position: absolute; top: 15px; right: -35px; background: var(--accent); color: var(--primary); padding: 5px 40px; font-size: 0.8rem; font-weight: 700; font-family: 'Montserrat', sans-serif; transform: rotate(45deg); z-index: 1; }
.investment-card .private { font-size: 1.5rem; font-family: 'Montserrat', sans-serif; }

/* --- Tech Arsenal Section --- */
#arsenal { background-color: #08142b; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.tech-card { background: var(--primary); padding: 2rem; border-radius: 10px; border: 1px solid transparent; border-image: linear-gradient(to bottom right, rgba(249, 168, 40, 0.2), rgba(249, 168, 40, 0.05)) 1; transition: background-color 0.3s, border-color 0.3s; }
.tech-card:hover { background-color: var(--primary-light); border: 1px solid rgba(249, 168, 40, 0.5); }
.tech-card .icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }
.tech-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; margin-bottom: 1rem; }
.tech-card p { font-family: 'Roboto', sans-serif; color: var(--text-grey); font-size: 0.95rem; }

/* --- Footer --- */
footer { background-color: #061224; padding: 5rem 0 3rem 0; border-top: 3px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; align-items: center; }
.footer-col h3 { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800; }
.footer-col h3 span { color: var(--accent); font-style: italic; }
.footer-col p { font-family: 'Roboto', sans-serif; color: var(--text-grey); }
.footer-col.contact-col { text-align: right; }
.footer-col a { color: var(--light); text-decoration: none; display: block; margin: 0.5rem 0; font-size: 1.1rem; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--accent); }
.copyright { text-align: center; font-family: 'Roboto', sans-serif; margin-top: 4rem; padding-top: 2rem; opacity: 0.5; border-top: 1px solid rgba(249, 168, 40, 0.1); }

/* --- FORM MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.visible {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: var(--primary-light);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--accent);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.visible .modal-content {
    transform: scale(1);
}
.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.modal-header h2 { font-family: 'Montserrat', sans-serif; }
.modal-header p { color: var(--text-grey); }
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-grey);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}
.close-btn:hover { color: var(--accent); }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-grey);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    border: 1px solid rgba(249, 168, 40, 0.3);
    border-radius: 5px;
    color: var(--light);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group input[readonly] {
    background-color: #2c3e50;
    cursor: not-allowed;
}
textarea { resize: vertical; min-height: 100px; }


/* --- Responsive --- */
@media (max-width: 768px) {
    .hero { text-align: center; }
    .hero .logo { font-size: 3.5rem; }
    .hero p { margin: 1rem auto 2rem auto; }
    .footer-grid { text-align: center; }
    .footer-col.contact-col { text-align: center; }
}