:root {
    --primary-color: #00548f;
    --accent-color: #ff6900;
    --dark: #0f172a;
    --gray-bg: #f8fafc;
    --text-color: #334155;
    --white: #ffffff;
    --font-main: 'Lato', sans-serif;
    --radius: 20px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #e6e6e6;
    /* Changed from #fff to 10% black gray */
    overflow-x: hidden;
}

/* HEADER */
.main-header {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 55px;
    width: auto;
    cursor: pointer;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-link.btn-contact {
    color: var(--accent-color);
    font-weight: 700;
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

.nav-link.btn-contact:hover {
    background: var(--accent-color);
    color: white;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
    padding-bottom: 15px;
    /* Increase hit area downwards */
}

/* Invisible bridge to prevent menu from closing when moving cursor */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    /* Bridges the gap to the dropdown content */
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--primary-color);
    /* Changed to blue */
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* 10% black border */
    top: 100%;
    /* Positioned right after the parent */
    padding: 0.8rem 0;
    margin-top: 0;
    /* Removed gap that was causing the issue */
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 0.8rem 1.5rem;
    display: block;
    color: var(--white) !important;
    /* Changed text to white */
    text-decoration: none;
    cursor: pointer;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Subtle hover effect */
    color: var(--white) !important;
}

/* SECCIONES HOME */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003a63 100%);
    color: white;
    padding: 8rem 8% 6rem;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 8%;
    background: var(--gray-bg);
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-item p {
    font-weight: 600;
    color: #64748b;
}

.section-title {
    text-align: center;
    padding: 3rem 2rem 0;
    /* Reduced top padding */
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0;
}

.section-title div {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto;
}

/* MÓDULOS CONTAINER */
.module-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 1rem;
    /* Reduced bottom padding from 4rem to 1rem */
    animation: fadeIn 0.8s ease-out;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
    /* Reduced vertical margin from 3rem to 2rem */
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: 0.4s;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

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

.card-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.client-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1.5rem;
    display: block;
}

/* FOOTER / CTA */
.cta-section {
    background: #e6e6e6;
    /* Changed to 10% black gray */
    color: var(--dark);
    /* Changed text to dark for contrast */
    padding: 3rem 2rem;
    border-radius: 0;
    text-align: center;
}

.btn-cta {
    background: var(--accent-color);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cta:hover {
    background: #e65f00;
    box-shadow: 0 0 30px rgba(255, 105, 0, 0.4);
}

/* Footer Main */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 2rem;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 0 2rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item span {
    font-size: 1.2rem;
}

.contact-item p {
    margin: 0;
    line-height: 1.4;
}

/* Logo Center */
.footer-logo {
    text-align: center;
}

.footer-logo-img {
    max-width: 180px;
    /* Adjusted size for footer */
    height: auto;
    filter: brightness(0) invert(1);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
}

.social-icons a {
    color: var(--white);
    font-size: 1.8rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

input,
textarea,
select {
    width: 100%;
    padding: 1rem;
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    background-color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
}

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

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .header-container {
        padding: 1rem 5%;
    }
}

/* INTEGRATIONS */
.integrations-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 1rem;
    animation: fadeIn 0.8s ease-out;
}

.integration-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    min-height: 280px;
}

.integration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.logo-wrapper {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.integration-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-arca {
    transform: scale(0.85);
}

.integration-card h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

/* TESTIMONIALS */
.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 1rem;
}

.testimonials-container .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .testimonials-container .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .testimonials-container .features-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: flex-start;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: auto;
    padding-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h5 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: #64748b;
}

/* CTA REDESIGN */
.cta-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6rem;
    text-align: left;
}

.cta-content {
    flex: 1;
    text-align: center;
}

.cta-visuals {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.img-main {
    width: 85%;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg);
    transition: 0.5s;
}

.img-main:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    z-index: 10;
}

.cta-floating-imgs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.img-float-1 {
    position: absolute;
    width: 45%;
    bottom: 20px;
    right: 0;
    z-index: 3;
    transform: translateY(20px);
    animation: float 6s ease-in-out infinite;
}

.img-float-2 {
    position: absolute;
    width: 40%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.9;
    transform: translateY(-20px);
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 968px) {
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cta-visuals {
        width: 100%;
        height: 300px;
    }

    .img-main {
        transform: none;
        width: 70%;
    }

    .img-main:hover {
        transform: none;
    }

    .img-float-1 {
        width: 40%;
        bottom: 0px;
        right: 10%;
    }

    .img-float-2 {
        width: 35%;
        top: 10px;
        left: 10%;
    }
}

/* UTILITIES */
.hidden {
    display: none !important;
}

/* SUCCESS MESSAGE (Inline) */
.success-message-container {
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 1rem;
    display: block;
}

.success-title {
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.success-text {
    color: #64748b;
    margin-bottom: 2rem;
}

.card-stars {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    min-height: 24px;
    line-height: 1;
    display: flex;
    gap: 4px;
}

.card-stars i {
    color: var(--accent-color) !important;
}