:root {
    --bg-dark: #05070a;
    --bg-card: #0d1117;
    --accent-blue: #007aff;
    --text-main: #e6edf3;
    --text-dim: #8b949e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Evita desbordamiento de texto global */
p, h1, h2, h3 {
    overflow-wrap: break-word;
    word-break: break-word;
}

#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* NAV */
nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 5%;
    align-items: center;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 100;
    background: rgba(5,7,10,0.6);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px; 
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent-blue);
}

/* HEADER */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 10% 0 10%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 122, 255, 0.05) 0%, transparent 40%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, #007aff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    max-width: 600px;
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.img-responsive {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 122, 255, 0.2);
    object-fit: contain;
}

/* SERVICIOS */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

#servicios {
    padding-top: 4rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 10% 5rem 10%;
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.1);
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.1);
}

/* NOSOTROS (AQUÍ ESTABA TU PROBLEMA PRINCIPAL) */
#nosotros {
    padding: 5rem 10%;
    display: flex;
    justify-content: center;
}

.nosotros {
    max-width: 900px;
    text-align: center;
}

.nosotros h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.nosotros p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* BOTONES */
.btn-primary {
    background: var(--accent-blue);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}
/* FORMULARIO */
.contact-section { padding: 100px 10%; }
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}


.form-group { margin-bottom: 1.2rem; }
input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 10px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent-blue);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem 10%;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}