/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --text-light: #f1f5f9;
    --text-gray: #cbd5e1;
    --text-dark: #64748b;
    --card-bg: #1e293b;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

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

/* ===== NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    /*background: rgba(15, 23, 42, 0.95);*/
    background-image: 
        /* Capa 1: El velo oscuro semi-transparente que ya tenías */
        linear-gradient(rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.20)),
        /* Capa 2: Tu imagen de fondo */
        url('images/MenuFondo.png');
    background-size: cover;
    background-position: center;    
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-menu a:hover::after {
    width: 100%;
}

.contact-btn {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
/* ===== HERO SECTION ===== */
.hero {
    /* --- TU INTERRUPTOR DE FONDO --- */
    /* Aquí pones la ruta a tu imagen. */
    /* Si no quieres imagen, escribe: none */

    /*--imagen-de-fondo: none;*/
    --imagen-de-fondo: url('images/Fondo.png');

    /* Ejemplo si SÍ quieres imagen: */
    /* --imagen-de-fondo: url('images/mi-fondo-genial.jpg'); */
    
    /* --- FIN DEL INTERRUPTOR --- */
    
    
    /* El resto de los estilos (no tocar) */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem 3rem;
    
    /* Esto aplica tu imagen O el fondo oscuro */
    background-image: 
        var(--imagen-de-fondo), /* Tu imagen */
        radial-gradient(ellipse at top, rgba(37, 99, 235, 0.1) 0%, transparent 50%), /* La luz azul */
        radial-gradient(ellipse at bottom, rgba(245, 158, 11, 0.1) 0%, transparent 50%); /* La luz naranja */
    
    background-color: var(--dark-bg); /* El fondo oscuro base */
    background-size: cover;
    background-position: center;
}

.hero-content {
    flex: 65;
    /*max-width: 600px;*/
    
    display: flex;            /* 1. Lo convierte en contenedor flex */
    flex-direction: column;   /* 2. Apila los elementos verticalmente */
    align-items: flex-start;  /* 3. Pone todo a la izquierda (por defecto) */
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 0.0rem;
    background: var(--text-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
    align-self: center;
}

.hero p {
    font-size: 1.25rem;
    color: #e28308;
    /*color: var(--text-gray);*/
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
    align-self: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.3);
}

.hero-image {
    flex: 35;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease 0.6s both;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    /*box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);*/
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

/* ===== SECTIONS ===== */
section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

section p {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SERVICIOS SECTION ===== */
.servicios {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
}

.service-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /*height: 400px;*/
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 1.5rem 1rem 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.service-card p {
    padding: 0 1rem;
    color: var(--text-gray);
    flex-grow: 1;
}

.service-btn {
    display: none;
    /*display: inline-block;*/
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1rem;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.swiper {
    width: 100%;
    /*height: 400px;*/
    height: auto;
    padding: 2rem 0;
}

.swiper-slide {
    height: auto;
}

.swiper-pagination-bullet {
    background: var(--accent-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* ===== DESARROLLOS SECTION ===== */
.desarrollos {
    background: var(--dark-bg);
}

.desarrollo-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.desarrollo-item.reversed {
    direction: rtl;
}

.desarrollo-item.reversed .desarrollo-content {
    direction: ltr;
}

.desarrollo-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.desarrollo-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.desarrollo-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.desarrollo-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.desarrollo-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ===== FAQ SECTION ===== */
.faq {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
}

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

.faq-item {
    margin-bottom: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(37, 99, 235, 0.1);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(37, 99, 235, 0.05);
}

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

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

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contacto {
    background: var(--darker-bg);
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item h4 {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 80px;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-light);
    font-family: 'Nunito', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* ===== FOOTER ===== */
footer {
    background: var(--darker-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--text-gray);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 8rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .desarrollo-item,
    .desarrollo-item.reversed {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .desarrollo-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section ul {
        text-align: left;
    }

    section h2 {
        font-size: 2rem;
    }

    .servicios {
        padding: 3rem 0;
    }

    .swiper {
        height: 300px;
    }

    .service-card {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    nav {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .desarrollo-content h3 {
        font-size: 1.5rem;
    }

    .desarrollo-features {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HOVER EFFECTS ===== */
.hover-glow {
    position: relative;
    overflow: hidden;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
    transition: left 0.5s ease;
}

.hover-glow:hover::before {
    left: 100%;
}