:root {
    --primary: #26a69a;
    --primary-dark: #1f8a7f;
    --dark: #1e293b;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-image: url('./fondo.png');
    /* Propiedades complementarias necesarias */
    background-size: cover;      /* Ajusta la imagen para cubrir todo el espacio */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se duplique */
    height: 400px;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* NAVBAR */
.navbar-container {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
}

.navbar-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 900px;
    padding: 10px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.logo { font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }

/* CONTENEDOR DE LINKS (CÁPSULA) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    background: #f1f5f9;
    padding: 6px 15px;
    border-radius: 50px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding: 8px 15px;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 4px;
    left: 15px;
    right: 15px;
    background-color: var(--primary);
    transition: width 0.3s ease;
    margin: 0 auto;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: calc(100% - 30px); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span { width: 25px; height: 3px; background: var(--dark); border-radius: 2px; }

/* SECCIONES */
section { padding: 120px 0 60px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; }

/* NOSOTROS */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge { background: #e2e8f0; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.nosotros-text h1 { font-size: 3rem; margin: 20px 0; }
.nosotros-text h1 span { color: var(--primary); }
.nosotros-img img { width: 100%; }
.btn-primary-simple { background: var(--primary); color: white; border: none; padding: 12px 30px; border-radius: 50px; cursor: pointer; font-weight: 600; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card { background: white; padding: 40px; border-radius: 24px; text-align: center; box-shadow: var(--shadow); }

/* PORTFOLIO CON COLOR EN FOOTER */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.project-card {
    background: rgb(172, 103, 103);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover { transform: translateY(-10px); }
.card-img { height: 220px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.card-img img { max-height: 100%; }

.card-info {
    padding: 25px 20px;
    text-align: center;
    background-color: var(--dark); /* COLOR DEL CONTENEDOR */
    color: var(--white);
    margin-top: auto;
}

.card-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.card-info p { font-size: 0.85rem; opacity: 0.7; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 75px; left: 0; right: 0;
        background: white; flex-direction: column;
        display: none; padding: 20px; border-radius: 20px;
    }
    .nav-links.active { display: flex; }
    .nav-links a::after { display: none; }
    .nosotros-grid, .features-grid { grid-template-columns: 1fr; text-align: center; }
    .nosotros-img { order: -1; }
}