@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #583384;
    --primary-dark: #3a2258;
    --primary-light: #7a4da4;
    --accent: #ABC215;
    --accent-dark: #8ea312;
    --bg-white: #FFFFFF;
    --bg-gray: #F8F9FA;
    --text-main: #1A1A1A;
    --text-muted: #6B7280;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: normal;
    overflow-x: hidden;
}

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

section {
    padding: 120px 0;
}

/* --- Navigation --- */
    header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 1);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 70px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white; /* Default for Hero section */
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

header.scrolled .nav-links a { 
    color: var(--text-main); 
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #000;
    padding: 0;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(88, 51, 132, 0.6) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: white;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* --- Components --- */
.btn {
    padding: 16px 40px;
    background: var(--accent);
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(171, 194, 21, 0.4);
    background: var(--accent-dark);
}

.section-head {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* --- Nosotros --- */
.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nosotros-card {
    padding: 60px 40px;
    background: var(--bg-gray);
    border-radius: 40px;
    transition: var(--transition);
}

.nosotros-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(88, 51, 132, 0.1);
    color: var(--primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

/* --- Valores --- */
.valores {
    background: #F1F4F9;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.valor-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.valor-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.valor-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

/* --- Servicios --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 50px;
    border-radius: 40px;
    border: 1px solid #EEE;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--primary);
    color: white;
}

.service-card h3 {
    margin-bottom: 30px;
    font-size: 1.75rem;
    color: var(--primary);
}

.service-card:hover h3 { color: white; }

.service-list {
    list-style: none;
}

.service-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.service-list i {
    color: var(--accent);
}

/* --- Expertise --- */
.expertise {
    background: #F8F9FA;
}

.expertise-container {
    display: flex;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #EEE;
    min-height: 500px;
}

.expertise-tabs {
    width: 300px;
    background: var(--primary);
    padding: 60px 0;
    display: flex;
    flex-direction: column;
}

.expertise-tab {
    padding: 25px 40px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    width: 100%;
    text-align: left;
    font-weight: 700;
}

.expertise-tab i {
    width: 20px;
}

.expertise-tab.active {
    background: rgba(255,255,255,0.05);
    color: var(--accent);
    position: relative;
}

.expertise-tab.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent);
}

.expertise-content {
    flex: 1;
    padding: 80px;
}

.expertise-panel {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.expertise-panel.active {
    display: block;
}

.expertise-panel h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.expertise-panel p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.expertise-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-item {
    padding: 15px 30px;
    background: var(--bg-gray);
    border: 1px solid #EEE;
    border-radius: 12px;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.skill-item:hover {
    background: var(--primary);
    color: white;
}

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

@media (max-width: 1024px) {
    .expertise-container { flex-direction: column; }
    .expertise-tabs { width: 100%; padding: 30px 20px; flex-direction: row; justify-content: center; }
    .expertise-tab { padding: 15px 25px; width: auto; flex-direction: column; text-align: center; }
    .expertise-tab.active::after { width: 100%; height: 3px; bottom: 0; top: auto; right: auto; }
}

/* --- Validation --- */
.validation {
    text-align: center;
    padding: 150px 0;
}

.validation h2 {
    font-size: 3rem;
    color: var(--primary);
    max-width: 1100px;
    margin: 0 auto 30px;
    line-height: 1.2;
}

/* --- Footer --- */
footer {
    background: #0A0510;
    color: white;
    padding: 100px 0 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-bottom: 80px;
}

.footer-info img {
    height: 60px;
    margin-bottom: 30px;
}

.footer-info p {
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.7;
}

.footer-form {
    background: rgba(255,255,255,0.05);
    padding: 50px;
    border-radius: 40px;
}

.footer-form input, .footer-form textarea {
    width: 100%;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    color: white;
    margin-bottom: 20px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* --- Animations --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nosotros-grid, .valores-grid, .servicios-grid, .tab-content, .footer-main {
        grid-template-columns: 1fr;
    }
}
