:root {
    --primary-color: #1F4EDB;
    --dark-bg: #02080E;
    --text-color: #E6E6F2;
    --white: #FFFFFF;
    --accent: #1F4EDB;
    font-size: 14px;
}

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


header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: calc(100% - 3rem);
    top: 1rem;
    left: 1.5rem;
    z-index: 1000;
    background: rgba(2, 8, 14, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 3rem;
}

.logo i {
    font-size: 2rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.logo:hover i {
    transform: translateY(-2px);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--white);
}

nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.85;
}

nav a:hover {
    opacity: 1;
    color: var(--white);
}

nav .cta-button {
    background: var(--accent);
    color: var(--white);
    font-weight: 500;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    opacity: 1;
}

nav .cta-button:hover {
    transform: translateY(-2px);
    background: #2857e3;
    box-shadow: 0 4px 15px rgba(31, 78, 219, 0.2);
}





.hero-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(31, 78, 219, 0.2);
    position: relative;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    z-index: 10;
}

.cta-button.primary {
    background: var(--accent);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-button.secondary::after {
    content: '→';
    font-size: 1.2rem;
    opacity: 1;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.primary:hover {
    background: #2857e3;
    box-shadow: 0 6px 20px rgba(31, 78, 219, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary:hover::after {
    transform: translateX(5px);
}

#hero::before,
#hero::after {
    display: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    z-index: 2;
    position: relative;
}

.hero-content::before,
.hero-content::after {
    display: none;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    word-spacing: 0.05em;
    padding: 0 1rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}



.cta-button.primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(31, 78, 219, 0.3);
}

.cta-button.primary::after,
.hero-content .cta-button::after,
.cta-button::after {
    display: none;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-weight: 600;
    padding: 1rem 2.2rem;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary::after {
    content: '→';
    font-size: 1.2rem;
    opacity: 1;
    transition: transform 0.3s ease;
}

.cta-button.secondary:hover::after {
    transform: translateX(5px);
}

.floating-shapes {
    display: none;
}

.shape {
    display: none;
}

section {
    padding: 2rem 5%;
    position: relative;
    z-index: 1;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#servicios, #contacto {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(31, 78, 219, 0.5);
    box-shadow: 0 10px 30px rgba(31, 78, 219, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.7;
    font-size: 1.15rem;
}

input, textarea {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--white);
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(31, 78, 219, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(31, 78, 219, 0.1);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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



#contacto {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 1;
}

#contacto h2 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--white) 0%, #a3b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(31, 78, 219, 0.1);
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    width: auto;
    min-width: 200px;
    background: var(--accent);
    color: var(--white);
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 1rem auto 0;
}

#contact-form button:hover {
    background: #2857e3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 78, 219, 0.3);
}

#contact-form button:active {
    transform: translateY(1px);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    #contact-form {
        padding: 2rem;
    }
    
    #contacto h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

footer {
    background: rgba(2, 8, 14, 0.95);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

main {
    padding-top: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
        width: calc(100% - 2rem);
        left: 1rem;
        top: 0.5rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    nav {
        gap: 1rem;
    }

    nav a:not(.cta-button) {
        display: none; /* Ocultamos los enlaces normales en móvil */
    }

    nav .cta-button {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 1rem;
    }

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

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

    .cta-group {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .cta-button.primary,
    .cta-button.secondary {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    #contact-form {
        padding: 2rem;
    }
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.7;
    font-size: 1.1rem;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.smooth-scroll {
    transition: all 1.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}


body {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

#nosotros {
    padding: 6rem 2rem;
    background: var(--dark-bg);
}

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

.about-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--white) 0%, #a3b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-header p {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

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

.feature-card p {
    color: var(--text-color);
    opacity: 0.9;
    font-size: 1.15rem;
    line-height: 1.7;
}

.vision-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(31, 78, 219, 0.2);
    padding: 2rem;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.vision-box p {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.2rem;
}

.vision-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    #nosotros {
        padding: 4rem 1.5rem;
    }
    
    .features-grid {
        gap: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cta-group {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-button.primary,
    .cta-button.secondary {
        width: 100%;
        justify-content: center;
    }
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(2, 8, 14, 0.9), rgba(2, 8, 14, 0.95));
    padding-top: 120px;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    #contact-form {
        padding: 1.5rem;
        width: 90%;
    }

    #contact-form input,
    #contact-form textarea {
        padding: 1rem;
    }
}
