:root {
    --primary-color: #D95B5B; /* Rojo tenue */
    --secondary-color: #F4A261; /* Naranja */
    --accent-color: #F2994A; /* Naranja quemado suave */
    --text-color: #333333;
    --light-bg-color: #FDF6F2;
    --white-color: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--white-color);
    line-height: 1.7;
}

/* --- Navigation --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.main-nav .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--primary-color); }

@media (max-width: 768px) {
  .main-nav { position: relative; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav ul { position: absolute; top: 64px; right: 16px; left: 16px; background:#fff; flex-direction: column; gap:1rem; padding:1rem; border-radius:12px; box-shadow: var(--box-shadow); display:none; }
  .main-nav.open ul { display:flex; }
}

/* --- Sections --- */
main > section {
    padding: 6rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (max-width: 768px) {
  main > section { padding: 4rem 1.25rem; }
  .hero-section { padding-top: 9rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.8rem; }
  .section-image, .section-image-bottom { max-width: 100%; }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 2.8rem;
    color: var(--white-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 12rem;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('hero-background.png');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero-section .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-section .context {
    font-size: 1.1em;
    font-weight: 300;
}


/* --- Content Sections --- */
.content-section {
    text-align: center;
}

.alt-bg {
    background-color: var(--light-bg-color);
}

/* --- Cards --- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

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

.card p {
    font-size: 1.1em;
}

.card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
}

/* --- Feature List --- */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.feature-item h3 {
    color: var(--primary-color);
}

.feature-item p {
    font-size: 1.1em;
}

.section-image, .section-image-bottom {
    width: 100%;
    max-width: 500px;
    margin-top: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

@media (min-width: 768px) {
    #software .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
        text-align: left;
    }
}


/* --- Humanware Section --- */
.humanware-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    text-align: left;
}

@media (min-width: 768px) {
    .humanware-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.humanware-card {
    background-color: var(--light-bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary-color);
}

.humanware-card h3 {
    color: var(--primary-color);
}
.humanware-card p {
    font-size: 1.1em;
}

.full-width {
    grid-column: 1 / -1;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.cta-section h2 {
    color: var(--white-color);
}
.cta-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 1rem auto 2rem auto;
}

.cta-button {
    background-color: #ccc;
    color: #666;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: not-allowed;
    text-transform: uppercase;
    box-shadow: var(--box-shadow);
}

/* --- Footer --- */
.main-footer {
    background-color: #333;
    color: #f0f0f0;
    text-align: center;
    padding: 1.5rem 2rem;
}