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

:root {
    /* Paleta de colores solicitada */
    --bg-black: #0a0b10;
    --bg-dark-blue: #0d1b2a;
    --bg-card: #1b263b;
    --text-main: #e0e1dd;
    --text-muted: #a9b0ba;
    --accent-orange: #ff6f00;
    --accent-orange-hover: #e66400;
    --footer-gray: #cccccc;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: var(--accent-orange);
    transition: color 0.3s ease;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.section-title.left-align {
    text-align: left;
}

/* Header */
.navbar {
    background-color: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 90px;
    width: auto;
    mix-blend-mode: screen; /* Hace transparente el fondo oscuro del logo generado */
    filter: drop-shadow(0 0 5px rgba(255, 111, 0, 0.3)); /* Resalta el logo sobre el header */
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

/* Navigation Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
}

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

.nav-menu a.nav-btn {
    border: 2px solid var(--accent-orange);
    padding: 8px 20px;
    border-radius: 6px;
    color: var(--accent-orange);
    transition: all 0.3s ease;
}

.nav-menu a.nav-btn:hover {
    background-color: var(--accent-orange);
    color: #fff;
}

.legal-rif {
    text-align: right;
    font-size: 0.9rem;
}

.legal-rif p {
    font-weight: 600;
    color: var(--text-main);
}

.legal-rif span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Buttons */
.btn-cta {
    display: inline-block;
    background-color: var(--accent-orange);
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-cta:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 16, 0.75); /* Oscurece el video */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Sections General */
section {
    padding: 80px 0;
}

/* Services Grid */
.services {
    background-color: var(--bg-dark-blue);
}

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

.service-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-orange);
}

.service-card h3 {
    color: var(--accent-orange);
}

/* Social Proof */
.social-proof {
    position: relative;
    background-color: var(--bg-black);
    overflow: hidden;
}

.social-proof-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.25; /* Transparente para que se mezcle con el fondo oscuro */
}

.social-proof .container {
    position: relative;
    z-index: 2;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--bg-dark-blue);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-orange);
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.review-author {
    font-weight: 600;
    color: var(--accent-orange);
}

/* FAQ */
.faq {
    background-color: var(--bg-dark-blue);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    background-color: var(--bg-card);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-orange);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    background-color: rgba(0,0,0,0.2);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px;
}

/* Contact Section */
.contact {
    background-color: var(--bg-black);
    position: relative;
    overflow: hidden;
}

.contact-bg-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
    animation: pulseIllustration 8s ease-in-out infinite alternate;
}

@keyframes pulseIllustration {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.12; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.18; }
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    list-style: none;
    margin-top: 30px;
}

.contact-details li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    background-color: var(--accent-orange);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(255, 111, 0, 0.3);
}

.contact-icon {
    color: #fff;
    width: 20px;
    height: 20px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-dark-blue);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

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

.btn-submit {
    width: 100%;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    animation: fadeInDown 0.4s ease;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Footer */
.site-footer {
    background-color: #050608;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-img {
    height: 60px;
    opacity: 0.8;
}

.footer-legal {
    text-align: right;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.elaborated-by {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 5px;
    font-weight: 600;
}

.copyright {
    font-size: 0.85rem;
    color: var(--footer-gray);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-orange);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-5px) scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero {
        padding: 60px 0;
    }
    .contact-wrapper {
        flex-direction: column;
    }
    .navbar .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .legal-rif {
        text-align: center;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal {
        text-align: center;
    }
}
