:root {
    --primary-color: #273B3A;
    --accent-color: #E6D4C7;
    --text-dark: #1a2525;
    --text-light: #f8f9fa;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: #fcfcfc;
    -webkit-user-select: none; 
    -moz-user-select: none;    
    -ms-user-select: none;     
    user-select: none;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

.logo {
    max-width: 250px; 
    height: auto;
    display: block; 
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
    color: var(--accent-color);
}

.bg-darker-light {
    background-color: #e9ecef !important; 
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-accent-custom {
    background-color: var(--accent-color) !important;
    color: var(--primary-color);
}

.text-accent-custom {
    color: var(--accent-color) !important;
}

.btn-custom {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 1px solid var(--accent-color);
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-custom:hover {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-custom-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.btn-custom-outline:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.btn-submit-custom {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-submit-custom:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 767.98px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
    }
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-icon-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.navbar {
    padding: 1rem 0;
    transition: all 0.4s;
    background-color: var(--primary-color);
}

.nav-link {
    color: rgba(230, 212, 199, 0.8) !important;
    font-weight: 400;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.hero-section {
    min-height: 90vh;
    background: linear-gradient(rgba(39, 59, 58, 0.85), rgba(39, 59, 58, 0.7)), url('https://www.csjn.gov.ar/imagenes/galeria/g005.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
}

.area-card {
    background: white;
    border: none;
    border-radius: 4px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-bottom-color 0.3s ease;
    height: 100%;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(39, 59, 58, 0.2);
    border-bottom-color: var(--accent-color);
}

.area-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.staff-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
}

.staff-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    filter: grayscale(80%); 
    transition: filter 0.5s ease, transform 0.5s ease;
}

.staff-wrapper:hover .staff-img {
    filter: grayscale(0%);
}

.staff-wrapper:hover .staff-img {
    transform: scale(1.02);
}

.linkedin-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background-color: #9B8B66;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.linkedin-badge:hover {
    transform: scale(1.1);
    background-color: #867857; 
}

.staff-email {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.staff-email:hover {
    opacity: 1;
    text-decoration: underline;
}

.founder-quote {
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.form-control, .form-select {
    border-radius: 0;
    border: 1px solid #ced4da;
    padding: 12px;
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: rgba(39, 59, 58, 0.9); 
    color: var(--accent-color); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1000;
    text-decoration: none;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
}

.whatsapp-float:hover {
    background-color: var(--accent-color); 
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

@media (max-width: 767px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

[x-cloak] { display: none !important; }

.fade-elem {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}