/* Design System for CITS - Professional & Elegant */

:root {
    --primary-gradient: linear-gradient(135deg, #4b367c 0%, #d91b5c 100%);
    --primary-color: #4b367c;
    --secondary-color: #d91b5c;
    --accent-color: #7d5fff;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --bg-light: #fdfdfd;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header */
header {
    height: 90px;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 10rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 80vh;
}

}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 12, 41, 0.85), rgba(48, 43, 99, 0.4));
    z-index: -1;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: center;
    margin: 0 auto;
    max-width: 850px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* Bordado para visibilidad */
}

.hero-text p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4); /* Bordado para visibilidad */
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Specific override for hero secondary button on dark background */
.hero .btn-secondary {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(217, 27, 92, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(217, 27, 92, 0.3);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    z-index: -1;
}

.hero-refuerzo {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-refuerzo span {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-refuerzo span i {
    color: var(--secondary-color);
}

/* Section Layout */
.section {
    padding: 4.5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
    cursor: pointer;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Special Services Section */
.special-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.special-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer; /* Indicate it's clickable */
}

.special-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.special-card-content {
    padding: 3rem;
}

.special-card .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.profile-pic-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    margin: 0 auto;
    transition: var(--transition);
}

.about-content.profile-clickable:hover .profile-pic-container {
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 0%; /* Adjusted to show the face clearly */
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tag {
    padding: 0.5rem 1.2rem;
    background: #f0f0f0;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Contact & Social Buttons */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.floating-btn.wa {
    background: #25d366;
}

.floating-btn.ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Footer Refinements */
footer {
    padding: 6rem 0 2rem;
    background: #0f0c29; /* Darker, sophisticated background */
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    color: white;
}

.footer-links ul li:hover {
    color: var(--secondary-color);
}

/* Brands Slider */
.brands-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
}

.brands-wrapper::before,
.brands-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.brands-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.brands-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.brands-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.brand-item {
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    height: 40px;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.brand-item span {
    font-weight: 800;
    color: #ccc;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.brand-item:hover img {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 3.5rem;
    border-radius: 30px;
    max-width: 650px;
    width: 95%;
    max-height: 90vh; /* Prevent covering whole screen */
    overflow-y: auto; /* Enable scroll if content is long */
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

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

#modalBody h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

#modalBody ul {
    margin-bottom: 2rem;
}

#modalBody ul li {
    margin-bottom: 0.8rem;
    display: flex;
    gap: 0.8rem;
}

#modalBody ul li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
}

/* Responsive */
}

/* Statistics Section */
.stats-section {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 0;
}

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

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Who we help section */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.help-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    transition: var(--transition);
}

.help-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.help-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.help-item span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Services Sales Grid */
.services-sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.sales-card {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sales-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.sales-header {
    margin-bottom: 2rem;
}

.sales-icon {
    display: block;
    margin-bottom: 2rem;
    width: 100%;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sales-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.sales-card:hover .sales-icon img {
    transform: scale(1.1);
}

.sales-card h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--primary-color);
}

.sales-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.sales-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.sales-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.sales-footer {
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.sales-footer p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Simple Features Grid (Why CITS) */
.features-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-simple-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-simple-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.feature-simple-item i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.feature-simple-item p {
    font-weight: 600;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f8f9fa;
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 2rem;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    padding: 1.5rem 2rem;
    max-height: 300px;
}

.faq-item.active .faq-question {
    background: #f8f9fa;
    color: var(--secondary-color);
}

.faq-item.active i {
    transform: rotate(45deg);
}

@media (max-width: 992px) {
    .hero-content, .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .nav-links {
        display: none; /* Add hamburger menu logic later */
    }

    .special-services {
        grid-template-columns: 1fr;
    }
}

/* Contact Form */
.contact-form {
    background: #fdfdfd;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
    margin-bottom: 1.5rem;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(217, 27, 92, 0.05);
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Translator Section */
.translator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.translator-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.translator-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.term-box {
    padding: 2rem;
}

.term-box.technical {
    background: #f1f2f6;
    border-bottom: 2px dashed var(--border-color);
}

.term-box label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.term-box.simple {
    background: white;
}

/* Calendar Section */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.calendar-item {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    align-items: center;
}

.calendar-date {
    background: var(--primary-gradient);
    color: white;
    min-width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.calendar-date .day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.calendar-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.calendar-info h4 {
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.calendar-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.add-btn {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 700;
    transition: var(--transition);
}

.add-btn:hover {
    text-decoration: underline;
}

/* Quiz Section */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fdfdfd;
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.quiz-step {
    display: none;
    flex: 1;
}

.quiz-step.active {
    display: block;
    animation: fadeInStep 0.5s ease;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-step h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.quiz-step p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.options {
    display: grid;
    gap: 1rem;
}

.option {
    padding: 1.5rem;
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.option:hover {
    border-color: var(--secondary-color);
    background: #fffcfd;
}

.option input {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
}

.quiz-nav {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
}

.result-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}
