:root {
    --primary-dark: #1a2e5a;
    --accent-orange: #E8632A;
    --sky-blue: #e8f4f8;
    --light-blue: #cce7f0;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(180deg, #f5fafb 0%, #e8f4f8 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8fb 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(26, 46, 90, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-svg {
    width: 45px;
    height: 45px;
}

.logo-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--accent-orange);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    color: var(--accent-orange);
}

.hero {
    position: relative;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f5fafb 0%, #d4e9f0 50%, #c4dfe8 100%);
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-tagline {
    font-size: 0.9rem;
    color: var(--accent-orange);
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-orange);
    color: white;
    padding: 12px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    border: 2px solid var(--accent-orange);
}

.cta-button:hover {
    background-color: white;
    color: var(--accent-orange);
    transform: translateY(-2px);
}

.competencias-hero {
    padding: 50px 0;
    background: linear-gradient(135deg, #d4e9f0 0%, #c4dfe8 50%, #b8d8e3 100%);
}

.competencias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.competencia-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.3;
}

.competencia-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.section-header p {
    font-size: 1rem;
    color: #555;
}

.servicios {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f0 50%, #c4dfe8 100%);
}

.servicios-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.servicio-grande {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(204,231,240,0.7) 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-orange);
    box-shadow: 0 4px 15px rgba(26, 46, 90, 0.08);
}

.servicio-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(230,245,250,0.8) 100%);
    padding: 1.8rem;
    border-radius: 12px;
    border: 2px solid rgba(196, 223, 232, 0.5);
    border-left: 5px solid var(--accent-orange);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(26, 46, 90, 0.05);
}

.servicio-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 8px 24px rgba(232, 99, 42, 0.12);
    transform: translateY(-5px);
}

.servicio-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--accent-orange);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.servicio-grande h3,
.servicio-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.servicio-grande p,
.servicio-card p {
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.servicio-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.mision-vision-moderna {
    padding: 70px 0;
    background: linear-gradient(135deg, #f5fafb 0%, #e8f4f8 50%, #d4e9f0 100%);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.mv-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(230,245,250,0.8) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26, 46, 90, 0.08);
    border: 1px solid rgba(204, 231, 240, 0.5);
}

.mv-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.mv-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

.mv-card span {
    color: var(--accent-orange);
    font-weight: 600;
}

.valores {
    padding: 80px 0;
    background: linear-gradient(135deg, #d4e9f0 0%, #c4dfe8 50%, #b8d8e3 100%);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.valor-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(230,245,250,0.8) 100%);
    padding: 1.8rem;
    border-radius: 12px;
    border: 2px solid rgba(196, 223, 232, 0.5);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(26, 46, 90, 0.05);
}

.valor-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 8px 24px rgba(232, 99, 42, 0.15);
    transform: translateY(-5px);
}

.valor-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.valor-card h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1rem;
}

.quienes-moderna {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5fafb 0%, #e8f4f8 50%, #d4e9f0 100%);
}

.quienes-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(230,245,250,0.8) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26, 46, 90, 0.08);
    border: 1px solid rgba(204, 231, 240, 0.5);
    text-align: center;
}

.quienes-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.linkedin-section {
    margin-top: 2rem;
}

.linkedin-button {
    display: inline-block;
    background-color: var(--primary-dark);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    border: 2px solid var(--primary-dark);
}

.linkedin-button:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.blog {
    padding: 80px 0;
    background: linear-gradient(135deg, #d4e9f0 0%, #c4dfe8 50%, #b8d8e3 100%);
}

.blog-card-empty {
    max-width: 550px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(230,245,250,0.8) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed var(--accent-orange);
    box-shadow: 0 2px 10px rgba(26, 46, 90, 0.05);
}

.blog-card-empty h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.blog-card-empty p {
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.contacto {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5fafb 0%, #e8f4f8 50%, #d4e9f0 100%);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(230,245,250,0.8) 100%);
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26, 46, 90, 0.08);
    border: 1px solid rgba(204, 231, 240, 0.5);
}

.info-box h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.info-box a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.info-box a:hover {
    color: var(--primary-dark);
}

.contacto-form {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(230,245,250,0.8) 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26, 46, 90, 0.08);
    border: 1px solid rgba(204, 231, 240, 0.5);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.4rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(196, 223, 232, 0.5);
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(232, 99, 42, 0.1);
}

.submit-button {
    width: 100%;
    background-color: var(--accent-orange);
    color: white;
    padding: 11px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.footer {
    background: linear-gradient(135deg, #4a90a4 0%, #3a7a94 100%);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-brand {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.8rem;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .servicios-bento {
        grid-template-columns: 1fr;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .contacto-content {
        grid-template-columns: 1fr;
    }

    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid rgba(26, 46, 90, 0.3);
    color: var(--primary-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.lang-btn.active {
    background-color: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 600px) {
    .logo-svg {
        width: 40px;
        height: 40px;
    }

    .logo-title {
        font-size: 1rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
    }

    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .valores-grid {
        grid-template-columns: 1fr;
    }

    .competencias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .cta-button {
        padding: 10px 28px;
        font-size: 0.85rem;
    }
}

/* Admin Button */
.admin-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    transition: all 0.3s;
    margin-left: 1rem;
}

.admin-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 2px solid rgba(26, 46, 90, 0.2);
    border-radius: 6px;
    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(232, 99, 42, 0.1);
}

.modal-content button {
    width: 100%;
    padding: 10px;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

#admin-login-btn {
    background-color: var(--accent-orange);
    color: white;
}

#admin-login-btn:hover {
    background-color: var(--primary-dark);
}

#admin-close-btn {
    background-color: #ddd;
    color: var(--text-dark);
}

#admin-close-btn:hover {
    background-color: #ccc;
}

.error-msg {
    color: #e74c3c;
    font-weight: 600;
    margin-top: 1rem;
}

/* Admin Panel */
.admin-panel {
    display: none;
    position: fixed;
    z-index: 1999;
    top: 80px;
    right: 20px;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.admin-header {
    background: linear-gradient(135deg, var(--primary-dark), #2c4a7a);
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

#admin-logout-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.admin-content {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.admin-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.admin-content input,
.admin-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 2px solid rgba(26, 46, 90, 0.2);
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
}

.admin-content textarea {
    resize: vertical;
}

.admin-content input:focus,
.admin-content textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

#add-article-btn {
    width: 100%;
    background-color: var(--accent-orange);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

#add-article-btn:hover {
    background-color: var(--primary-dark);
}

.articles-list {
    padding: 1.5rem;
}

.articles-list h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.admin-article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: #f5f9fb;
    border-radius: 6px;
    border-left: 4px solid var(--accent-orange);
}

.admin-article-info h4 {
    color: var(--primary-dark);
    margin: 0 0 0.3rem 0;
    font-size: 0.95rem;
}

.admin-article-info p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.delete-btn:hover {
    background: #c0392b;
}

/* Articles Section */
.articulos {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5fafb 0%, #e8f4f8 50%, #d4e9f0 100%);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(230,245,250,0.8) 100%);
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(204, 231, 240, 0.5);
    box-shadow: 0 2px 12px rgba(26, 46, 90, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(232, 99, 42, 0.12);
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.article-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.article-card h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.article-date {
    background: var(--accent-orange);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    font-weight: 600;
}

.article-author {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.8rem 0;
    font-style: italic;
}

.article-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.article-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.article-link:hover {
    color: var(--primary-dark);
}

.articles-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #999;
}

@media (max-width: 768px) {
    .admin-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .language-selector {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .admin-btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
