# SDD — System Design Document

## Índice

- [Architecture Overview](#architecture-overview)
- [Components](#components)
- [Decisions](#decisions)

---

## Architecture Overview

```mermaid
graph TD
    subgraph Frontend
        F[Client App]
    end
    
    subgraph Backend
        A[API Gateway]
        S[Services]
        D[(Database)]
    end
    
    F --> A
    A --> S
    S --> D
```

### Contexto
_Describir el propósito del sistema y su alcance._

### Restricciones
- _Lista de restricciones técnicas o de negocio_

---

## Components

### Component Template

Ver `spec/sdd/components/.template.md` para el formato.

---

## Decisions

Ver `spec/sdd/decisions/` para ADRs.

---

## Diagrama de secuencia (ejemplo)

```mermaid
sequenceDiagram
    actor U as User
    participant API
    participant SVC as Service
    participant DB as Database
    
    U->>API: Request
    API->>SVC: Process
    SVC->>DB: Query
    DB-->>SVC: Result
    SVC-->>API: Response
    API-->>U: Data
```