:root {
    --primary: #1e293b;
    --accent: #2563eb;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --text: #334155;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--primary);
    line-height: 1.6;
}

/* HEADER CON LOGO */
header {
    background: #1e293b;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

/* Estilo para la imagen del logo */
.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.logo-text p {
    font-size: 0.8rem;
    opacity: 0.7;
}

.header-title {
    text-align: right;
}

.header-title h2 {
    font-size: 1.2rem;
}

.header-title p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* NAV */
nav {
    background: white;
    text-align: center;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

/* CONTAINER */
.container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 20px;
}

/* CARD */
.card {
    background: var(--white);
    padding: 1.8rem;
    margin-bottom: 1.8rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

.card p {
    color: var(--text);
}

/* VALORES */
.valores-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
}

.valor-item {
    background: #eef2ff;
    color: #1e3a8a;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* CONTACTO */
.contacto-separado {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 1rem;
}

.contacto-header {
    background: #1e293b;
    color: white;
    padding: 1.8rem;
    text-align: center;
}

.contacto-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.contacto-body {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.8rem;
}

.contacto-info {
    flex: 1;
}

.contacto-info h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.info-item {
    margin-bottom: 0.8rem;
    color: var(--text);
}

.contacto-formulario {
    flex: 1.5;
}

.contacto-formulario h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1rem;
}

input, textarea {
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

button:hover {
    background: #1d4ed8;
}

.mensaje-exito {
    background: #dcfce7;
    color: #166534;
    padding: 0.7rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
}

/* FOOTER */
footer {
    background: #0f172a;
    color: #cbd5f5;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    .header-title {
        text-align: center;
    }
    nav a { margin: 0 0.8rem; font-size: 0.9rem; }
    .contacto-body {
        flex-direction: column;
    }
    .card {
        padding: 1.2rem;
    }
}