/* EJ Quality Software Solutions - Landing Page Premium */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;700;900&display=swap');

:root {
    --primary: #1e3a8a;
    --secondary: #0ea5e9;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.8;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Top Bar */
.top-bar {
    background: var(--primary);
    color: white;
    padding: 1.2rem 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 1.2rem;
}

.top-info-pill {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-info-pill:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-info-pill i {
    color: var(--secondary);
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    transform: rotate(360deg) scale(1.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.social-icon.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
}

.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;
}

header {
    background: white;
    padding: 1.2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 80px;
    /* Incrementado para mayor legibilidad */
    transition: var(--transition);
}

.main-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    margin-left: 1.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
}

/* Hero Section */
.hero {
    padding: 12rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)),
        url('../assets/logo2.png.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* Sections General */
section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

/* Quienes Somos */
.about-section {
    background: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.5)),
        /* Ajustado para que se distinga mucho más el fondo */
        url('../assets/top-bg.png');
    background-size: cover;
    background-position: center 40px;
    /* Bajando la imagen para ver el logo */
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* Cambiado a scroll para mayor control de posición */
    padding: 8rem 0;
    display: flex;
    align-items: center;
}

.about-section .container {
    display: flex;
    justify-content: flex-end;
    /* Empuja el contenido a la derecha */
    width: 100%;
}

.content-text-wrapper {
    max-width: 650px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    transition: var(--transition);
}

.content-text-wrapper:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.2);
}

.content-text-wrapper .section-header {
    margin-bottom: 1rem;
    /* Reducido de 4rem original para que no esté despegado */
}

.content-text-wrapper .section-title {
    margin-bottom: 0.5rem;
}

.content-text p {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.6;
    text-align: justify;
    letter-spacing: -0.02em;
    word-spacing: -0.05em;
}

/* Misión y Visión */
.mv-section {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.55)),
        /* Ajustado para que se distinga mucho más el fondo */
        url('../assets/logo3.png.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.mv-card {
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    /* Preparado para iluminación */
    transition: var(--transition);
}

.mv-card:hover {
    border-color: var(--primary);
    /* Iluminación azul rey */
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.15);
    transform: translateY(-5px);
}

.mv-card p {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    text-align: justify;
    letter-spacing: -0.02em;
    word-spacing: -0.05em;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 2.5rem;
    color: var(--secondary);
}

/* Valores */
.values-section {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.55)),
        /* Ajustado para que se distinga mucho más el fondo */
        url('../assets/server-cloud.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
}

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

.value-card {
    padding: 2.5rem;
    background: var(--light);
    border-radius: 15px;
    border: 2px solid transparent;
    /* Preparado para iluminación */
    transition: var(--transition);
    background: rgba(248, 250, 252, 0.9);
    /* Un poco de transparencia */
}

.value-card:hover {
    background: var(--white);
    border-color: var(--primary);
    /* Iluminación azul rey */
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.15);
    transform: translateY(-8px);
}

.value-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.value-card p {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.5;
    text-align: center;
}

/* Fundadores */
.founders-section {
    background: #f8fafc;
    padding: 8rem 0;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.founder-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--secondary);
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    border-top-color: var(--primary);
}

/* Flip Card Effect */
.founder-card.flip-card {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-top: none;
    perspective: 1000px;
}

.founder-card.flip-card:hover {
    transform: translateY(-10px);
    box-shadow: none;
}

.flip-card-inner {
    display: grid;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    height: 100%;
}

.flip-card-inner.flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    grid-area: 1 / 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;

    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
}

.founder-card.flip-card:hover .flip-card-front,
.founder-card.flip-card:hover .flip-card-back {
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    border-top-color: var(--primary);
}

.flip-card-back {
    transform: rotateY(180deg);
    background: var(--primary);
    border-top-color: var(--secondary);
    color: #ffffff;
    /* Asegurar que el texto sea blanco siempre */
}

.flip-card-back h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.flip-card-back p {
    color: rgba(255, 255, 255, 0.9);
}

.flip-card-back .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    margin-top: auto;
}

.flip-card-back .btn-outline:hover {
    background: #ffffff;
    color: var(--primary);
}

.founder-image {
    width: 120px;
    height: 120px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.founder-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.founder-info h4 {
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.founder-info p {
    color: var(--text-main);
    line-height: 1.6;
    text-align: justify;
    letter-spacing: -0.02em;
    word-spacing: -0.05em;
}

/* Servicios */
.services-section {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.55)),
        url('../assets/logo5.png.jpeg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 8rem 0;
}

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

.s-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    border: 2px solid transparent;
    /* Preparado para iluminación */
    transition: var(--transition);
}

.s-item:hover {
    border-color: var(--primary);
    /* Iluminación azul rey */
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.1);
    transform: translateY(-5px);
}

.s-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    background: var(--primary);
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
    transition: var(--transition);
}

.s-item:hover .s-number {
    background: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.s-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.s-content p {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.5;
    text-align: justify;
    letter-spacing: -0.02em;
    word-spacing: -0.05em;
    font-weight: 400;
}

/* Productos */
.products-section {
    background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.45)),
        url('../assets/server-cloud.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
}

.products-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.p-item {
    padding: 2.5rem;
    background: var(--white);
    color: var(--text-main);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.p-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    background: var(--secondary);
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
    transition: var(--transition);
}

.p-item:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.15);
    transform: translateY(-5px);
}

.p-item:hover .p-number {
    background: var(--primary);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.p-content h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.p-content p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
    letter-spacing: -0.02em;
    word-spacing: -0.05em;
    color: var(--text-main);
}

/* Contacto */
.contact-section {
    background: var(--primary);
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info-panel h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-list {
    margin-top: 2rem;
    list-style: none;
}

.contact-list li {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.social-icons-contact {
    display: flex;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.social-icon-footer {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

.social-icon-footer:hover {
    transform: translateY(-5px);
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-icon-footer.facebook:hover {
    background-color: #1877F2;
}

.social-icon-footer.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon-footer.whatsapp:hover {
    background-color: #25D366;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    border: 3px solid transparent;
    transition: var(--transition);
}

.contact-form:hover {
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-section .section-title {
    color: white;
}

.input-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.form-actions {
    text-align: center;
    margin-top: 1rem;
    width: 100%;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

/* ==========================================================
   Responsive Design / Diseño Adaptable
   ========================================================== */
@media (max-width: 992px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
    }

    .main-logo {
        height: 55px;
    }

    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1.5rem;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        flex-shrink: 0;
        margin-left: 0;
        margin-right: 0;
        font-size: 0.95rem;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
        flex-shrink: 0;
    }

    .hero {
        padding: 8rem 0;
        background-attachment: scroll !important;
    }

    section {
        padding: 5rem 0;
        background-attachment: scroll !important;
    }

    .mv-section,
    .values-section,
    .founders-section,
    .services-section,
    .products-section,
    .about-section {
        background-attachment: scroll !important;
    }

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

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

@media (max-width: 768px) {

    body,
    html {
        overflow-x: hidden;
    }

    .container {
        padding: 0 1.5rem;
    }

    .mv-grid,
    .products-list-grid,
    .contact-wrapper,
    .values-grid,
    .founders-grid,
    .services-list-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info-panel,
    .contact-form {
        padding: 2rem 1.5rem !important;
    }

    .contact-list li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-info-panel h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .about-section {
        background-position: center;
    }

    .about-section .container {
        justify-content: center;
    }

    .content-text-wrapper {
        padding: 1.5rem;
        max-width: 100%;
        width: 100%;
    }

    .s-item,
    .p-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }

    .s-content p,
    .p-content p {
        text-align: justify;
    }

    .contact-wrapper {
        gap: 3rem;
    }

    .contact-info-panel,
    .contact-info-panel p {
        text-align: center;
    }

    .contact-list li {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .content-text-wrapper,
    .mv-card,
    .value-card,
    .s-item,
    .p-item,
    .contact-form {
        padding: 1.2rem;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Language Toggle Button */
.lang-toggle-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: normal;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.lang-toggle-btn:hover {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-2px) rotate(15deg);
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

/* =========================
   DARK MODE STYLES
   ========================= */
body.dark-mode {
    --primary: #38bdf8;
    --secondary: #22d3ee;
    --dark: #f8fafc;
    --light: #0f172a;
    --white: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    background-color: #0f172a;
    color: var(--text-main);
}

body.dark-mode header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-links a {
    color: var(--text-main);
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

body.dark-mode .top-bar {
    background: #020617;
}

/* High Contrast Section Overlays */
body.dark-mode .hero {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url('../assets/logo2.png.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.dark-mode .about-section {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url('../assets/top-bg.png');
    background-size: cover;
}

body.dark-mode .mv-section {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url('../assets/logo3.png.jpeg');
    background-size: cover;
    background-attachment: fixed;
}

body.dark-mode .values-section {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url('../assets/server-cloud.png');
    background-size: cover;
    background-attachment: fixed;
}

body.dark-mode .services-section {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url('../assets/logo5.png.jpeg');
    background-size: cover;
    background-attachment: fixed;
}

body.dark-mode .products-section {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url('../assets/server-cloud.png');
    background-size: cover;
    background-attachment: fixed;
}

/* Card Enhancements in Dark Mode */
body.dark-mode .content-text-wrapper,
body.dark-mode .mv-card,
body.dark-mode .value-card,
body.dark-mode .s-item,
body.dark-mode .p-item,
body.dark-mode .contact-form,
body.dark-mode .contact-info-panel {
    background: rgba(30, 41, 59, 0.7);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

body.dark-mode .s-item:hover,
body.dark-mode .p-item:hover,
body.dark-mode .value-card:hover,
body.dark-mode .mv-card:hover,
body.dark-mode .contact-form:hover,
body.dark-mode .content-text-wrapper:hover {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

body.dark-mode .main-logo {
    filter: invert(1) hue-rotate(180deg) brightness(1.2);
    mix-blend-mode: screen;
}

body.dark-mode .section-title {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

body.dark-mode .text-gradient {
    background: linear-gradient(45deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

body.dark-mode .btn-outline:hover {
    background: var(--primary);
    color: #0f172a;
}

body.dark-mode input,
body.dark-mode textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

body.dark-mode footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .theme-toggle-btn,
body.dark-mode .lang-toggle-btn {
    border-color: var(--primary);
    color: var(--primary);
}

body.dark-mode .theme-toggle-btn:hover,
body.dark-mode .lang-toggle-btn:hover {
    background: var(--primary);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

body.dark-mode .founder-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Solo aplicar el efecto de brillo cuando la tarjeta está volteada (clic en View Profile) */
body.dark-mode .flip-card-inner.flipped .flip-card-back {
    border-top-color: var(--primary);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
}

body.dark-mode .flip-card-back {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

body.dark-mode .founders-section {
    background: #111827;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .founders-section p {
    color: var(--text-main) !important;
}

body.dark-mode .contact-section {
    background: #070b14;
    /* Un tono aún más profundo y sutil */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .contact-info-panel h3 {
    color: var(--primary);
}

body.dark-mode .contact-list li {
    color: var(--text-main);
}

body.dark-mode .social-icon-footer {
    background: rgba(30, 41, 59, 0.8);
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .social-icon-footer:hover {
    background: var(--primary);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

body.dark-mode .flip-card-back {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

body.dark-mode .nav-cta {
    background: var(--primary);
    color: #0f172a !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

body.dark-mode .nav-cta:hover {
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
    transform: translateY(-2px);
}