/* ==========================================
   ECSE CONTADORES - MODERN UI/UX STYLES
   ========================================== */

:root {
    --primary: #0F172A;       /* Deep Slate Navy */
    --primary-soft: #E2E8F0;  /* Light Slate */
    --accent: #F59E0B;        /* Modern Amber/Gold */
    --accent-soft: #FEF3C7;   /* Soft Amber */
    --text-main: #334155;     /* Slate 700 */
    --text-muted: #64748B;    /* Slate 500 */
    --bg-light: #F8FAFC;      /* Slate 50 */
    --white: #FFFFFF;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   GLOBAL & TYPOGRAPHY
   ========================================== */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
}

.section-padding {
    padding: 100px 0;
}

.text-accent { color: var(--accent) !important; }
.bg-accent-soft { background-color: var(--accent-soft) !important; }
.bg-primary-soft { background-color: var(--primary-soft) !important; }
.ls-1 { letter-spacing: 1.5px; font-size: 0.85rem; }
.max-w-2xl { max-width: 600px; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background-color: #D97706;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.4);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* ==========================================
   NAVBAR
   ========================================== */
#mainNavbar {
    transition: var(--transition);
    padding: 20px 0;
    background: transparent;
}

#mainNavbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand .brand-accent {
    color: var(--accent);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.navbar-toggler:focus {
    box-shadow: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #3f70be 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.hero-graphic {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-graphic i {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.03);
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--primary);
    animation: float 6s ease-in-out infinite;
}

.floating-card i { font-size: 1.5rem; }
.floating-card.card-1 { top: 20%; right: 10%; animation-delay: 0s; }
.floating-card.card-2 { bottom: 20%; left: 10%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-image-wrapper {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--accent);
    color: var(--primary);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.vision-mission-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.vision-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-soft);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--white);
    transform: rotate(-5deg) scale(1.1);
}

/* ==========================================
   TEAM SECTION
   ========================================== */
.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid #E2E8F0;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.team-img-wrapper {
    height: 220px;
    background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
    border-color: var(--accent);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-hover-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent);
    color: var(--primary);
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.team-card:hover .team-hover-effect {
    transform: translateY(0);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item .icon-box {
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: var(--accent);
    flex-shrink: 0;
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
}

.form-control, .form-select {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1rem;
    background-color: var(--white);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.form-floating label {
    color: var(--text-muted);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer-section {
    background: var(--primary);
    padding: 60px 0 30px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-radius: 50%;
    margin-left: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ==========================================
   MODALS
   ========================================== */
.modal-content {
    border-radius: 24px;
    overflow: hidden;
}

.modal-body .btn-close {
    background-color: var(--bg-light);
    opacity: 1;
    padding: 10px;
    border-radius: 50%;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary);
        margin-top: 20px;
        padding: 20px;
        border-radius: 16px;
    }
    .hero-section { min-height: auto; padding: 150px 0 100px; }
    .section-padding { padding: 70px 0; }
    .experience-badge { right: 10px; bottom: -20px; padding: 15px; }
}

@media (max-width: 767px) {
    .floating-card { display: none; }
    .contact-form-wrapper { padding: 25px; }
    .team-hover-effect { display: none; } /* Hide hover effect on touch devices */
}