:root {
    --primary: #175ccf;
    --secondary: #f5f7fa;
    --accent: #ffbe3c;
    --success: #27ae60;
    --danger: #e74c3c;
    --text: #22223b;
    --muted: #6c757d;
    --footer: #0d3354;
    --white: #fff;
}

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

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: var(--secondary);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 0 0.5rem 0;
    box-shadow: 0 2px 8px rgba(23, 92, 207, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

header h1 {
    font-size: 2rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

header h1 span {
    color: var(--accent);
    font-style: italic;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style-type: none;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4em 1.2em;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

nav a.active, nav a:hover {
    background: var(--accent);
    color: var(--primary);
}

main {
    max-width: 900px;
    margin: 2rem auto 1rem auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(23, 92, 207, 0.08);
    padding: 2rem;
    flex: 1;
}

.main-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.main-image {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(23, 92, 207, 0.18);
    margin-bottom: 1rem;
}

.welcome-text {
    text-align: center;
}

.welcome-text h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.7rem;
}

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

h3 {
    color: var(--accent);
    font-size: 1.12rem;
    margin-bottom: 0.5rem;
}

section {
    margin-bottom: 2rem;
}

.vision-mision {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.vision-mision div {
    background: var(--secondary);
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    flex: 1 1 250px;
    box-shadow: 0 2px 8px rgba(23, 92, 207, 0.05);
    margin-bottom: 1rem;
}

.estructura-lista {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.estructura-lista li {
    background: var(--secondary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 2px 8px rgba(23, 92, 207, 0.05);
}

.proyectos-lista {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.proyectos-lista article {
    background: var(--secondary);
    border-left: 5px solid var(--success);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(23, 92, 207, 0.05);
}

.opinion-form {
    max-width: 480px;
    margin: 2em auto;
    padding: 2em;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(50, 50, 50, 0.05);
}
.opinion-form h3 {
    margin-bottom: 1em;
    color: #273c75;
    font-size: 1.2em;
    text-align: center;
}
.opinion-form label {
    display: block;
    margin-bottom: 0.4em;
    font-weight: 500;
    color: #222;
}
.opinion-form input[type="text"],
.opinion-form input[type="email"],
.opinion-form textarea {
    width: 100%;
    padding: 0.7em;
    margin-bottom: 1.2em;
    border: 1px solid #b2bec3;
    border-radius: 4px;
    font-size: 1em;
    background: #fff;
    resize: vertical;
    transition: border 0.2s;
}
.opinion-form input[type="text"]:focus,
.opinion-form input[type="email"]:focus,
.opinion-form textarea:focus {
    border-color: #273c75;
    outline: none;
}
.opinion-form textarea {
    min-height: 100px;
    max-height: 260px;
}
.opinion-form button[type="submit"] {
    background: #273c75;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.8em 1.5em;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.opinion-form button[type="submit"]:hover {
    background: #192a56;
}

.contacto-info p {
    margin-bottom: 0.7rem;
    color: var(--primary);
    font-weight: 500;
}

.redes-sociales {
    margin-top: 1.3rem;
}

.redes-sociales ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-left: 0;
}

.redes-sociales a {
    display: inline-block;
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.redes-sociales .facebook { background: white; }
.redes-sociales .instagram { background: white; }
.redes-sociales .whatsapp { background: white; }
.redes-sociales .youtube { background: white; }

.redes-sociales a:hover {
    filter: brightness(1.15);
    background: var(--accent);
    box-shadow: 0 2px 2px rgba(23, 92, 207, 0.13);
}

footer {
    background: var(--footer);
    color: var(--white);
    text-align: center;
    padding: 0.8rem 0;
    font-size: 1rem;
    margin-top: auto;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 900px) {
    main {
        max-width: 98vw;
        padding: 1.2rem;
    }
    .main-image {
        max-width: 98vw;
    }
}

@media (max-width: 650px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    header h1 {
        font-size: 1.2rem;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    .vision-mision {
        flex-direction: column;
        gap: 1rem;
    }
    .proyectos-lista article,
    .estructura-lista li,
    .vision-mision div {
        padding: 0.8rem 0.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    main {
        padding: 0.5rem;
    }
    .main-image {
        max-width: 96vw;
    }
}