* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; }
body { background-color: #f3f4f6; color: #111827; line-height: 1.7; overflow-x: hidden; }

/* Cabecera corporativa y minimalista */
header { 
    background-color: #064e3b; 
    background-image: linear-gradient(to right, #022c22, #064e3b);
    color: white; 
    padding: 7rem 2rem 9rem 2rem; 
    text-align: center; 
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); 
}

.badge { 
    background-color: #fcd34d; 
    color: #064e3b; 
    padding: 0.4rem 1.2rem; 
    border-radius: 2px; 
    font-weight: 700; 
    font-size: 0.9rem; 
    display: inline-block; 
    margin-bottom: 2rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 { 
    font-size: 3.5rem; 
    text-transform: uppercase; 
    font-weight: 800; 
    letter-spacing: -1px; 
    margin-bottom: 1.5rem; 
    line-height: 1.1;
}

.tagline { 
    font-size: 1.25rem; 
    font-weight: 300; 
    max-width: 800px; 
    margin: 0 auto; 
    color: #d1fae5; 
}

.container { 
    max-width: 1000px; 
    margin: -4rem auto 3rem auto; 
    padding: 0 2rem; 
    position: relative; 
    z-index: 10; 
}

/* Estilo de Tarjetas Editorial */
.card { 
    background: white; 
    padding: 3rem; 
    margin-bottom: 2rem; 
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); 
    border-top: 4px solid #059669; 
}

.card h2 { 
    font-size: 1.8rem; 
    color: #111827; 
    margin-bottom: 1.5rem; 
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.card h3 { 
    font-size: 1.2rem; 
    color: #059669; 
    margin: 2rem 0 0.75rem 0; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card p, .card li { 
    font-size: 1.05rem; 
    color: #4b5563; 
    margin-bottom: 1.2rem; 
}

.card ul { 
    margin-left: 1.5rem; 
    margin-bottom: 1.5rem; 
}

.card li {
    margin-bottom: 0.8rem;
}

/* Grid Tecnológico sin estridencias */
.tech-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    margin-top: 2rem; 
}

.tech-box { 
    background: #f9fafb; 
    padding: 2rem; 
    border: 1px solid #e5e7eb;
    border-left: 3px solid #111827; 
}

.tech-box h4 {
    font-size: 1.1rem;
    color: #111827;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Estilos para los huecos de las imágenes del software */
.software-img {
    width: 100%; 
    height: 180px; 
    background-color: rgba(255, 255, 255, 0.05); 
    border: 1px dashed #22c55e; 
    border-radius: 4px; 
    margin-bottom: 1rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #94a3b8; 
    font-size: 0.9rem;
}

.cta-container {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: #111827;
    color: white;
}

.cta-container h2 {
    color: white;
    border: none;
    margin-bottom: 1rem;
}

.cta-button { 
    display: inline-block; 
    background-color: #10b981; 
    color: #111827; 
    padding: 1rem 3rem; 
    font-size: 1rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    text-decoration: none; 
    letter-spacing: 1px;
    transition: all 0.3s ease; 
    margin-top: 1.5rem; 
}

.cta-button:hover { 
    background-color: #059669; 
    color: white; 
}

.back-nav { 
    text-align: center; 
    margin-top: 3rem; 
    padding-bottom: 3rem; 
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.back-nav a { 
    color: #6b7280; 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.3s ease;
}

.back-nav a:hover {
    color: #111827;
}

/* =========================================
   SECCIÓN ACORDEÓN (FAQ / PROFUNDIZACIÓN)
   ========================================= */
details.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.2rem 0;
}

details.faq-item:last-child {
    border-bottom: none;
}

summary.faq-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    list-style: none; /* Oculta la flecha por defecto del navegador */
    position: relative;
    padding-right: 2rem;
    transition: color 0.3s ease;
}

summary.faq-title::-webkit-details-marker {
    display: none; /* Oculta la flecha en Safari/Chrome */
}

summary.faq-title:hover {
    color: #059669;
}

/* El símbolo + y - mediante CSS puro */
summary.faq-title::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #059669;
    font-weight: 400;
}

details[open] summary.faq-title::after {
    content: "−";
}

.faq-content {
    padding-top: 1rem;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.8;
}

.faq-content p {
    margin-bottom: 1rem;
}

/* =========================================
   BOTÓN DE CAMBIO DE IDIOMA (DISEÑO PÍLDORA)
   ========================================= */
.lang-switch {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: #9ca3af; /* Fondo gris sólido de tu foto */
    padding: 0.4rem 1.2rem;
    border-radius: 8px; /* Bordes redondeados */
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lang-btn {
    color: #ffffff; /* Letras blancas para el idioma inactivo */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: Arial, sans-serif;
    transition: opacity 0.2s ease;
}

.lang-btn:hover {
    opacity: 0.8;
}

.lang-active {
    color: #00fceb; /* Color cyan/menta brillante para el idioma activo */
    font-weight: 800;
    font-size: 1.05rem;
    font-family: Arial, sans-serif;
    cursor: default;
}

.lang-divider {
    color: #ffffff;
    font-weight: 400;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* =========================================
   ADAPTACIÓN PERFECTA PARA MÓVILES
   ========================================= */
@media (max-width: 768px) {
    header { padding: 4rem 1.5rem 6rem 1.5rem; }
    h1 { font-size: 2.2rem; }
    .tagline { font-size: 1.1rem; }
    .container { padding: 0 1rem; margin-top: -2rem; }
    .card { padding: 2rem 1.5rem; }
    .tech-grid { grid-template-columns: 1fr; } /* Fuerza a que sea 1 sola columna */
    .cta-button { padding: 1rem 2rem; width: 100%; text-align: center; }
    .lang-switch {
        top: 1rem;
        right: 1rem;
        padding: 0.3rem 1rem;
    }
}