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

body {
    font-family: 'Calibri', sans-serif;
    color: #313a63;
    background-color: #ffffff;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 100px;
    background-color: rgba(255, 255, 255, 0.95);
    animation: fadeInDown 0.8s ease-out;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(217, 217, 217, 0.2);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 160px;
    height: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.03);
}

nav {
    display: flex;
    gap: 55px;
}

nav a {
    text-decoration: none;
    color: #313a63;
    font-size: 14px;
    font-family: 'Calibri', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #313a63;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    opacity: 0.7;
}

.hero {
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(49, 58, 99, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(217, 217, 217, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1.2s ease-out 0.3s both;
}

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

.hero h1 {
    font-size: 72px;
    font-weight: 400;
    color: #313a63;
    line-height: 1.1;
    font-family: 'Old Standard TT', serif;
    letter-spacing: -0.097em;
    margin-bottom: 15px;
}

.hero .italic {
    font-style: italic;
    font-size: 72px;
    font-weight: 400;
    color: #313a63;
    font-family: 'Old Standard TT', serif;
    letter-spacing: -0.097em;
    opacity: 0.85;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInScroll 1s ease-out 1.5s both;
}

@keyframes fadeInScroll {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #313a63;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, #313a63, transparent);
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes scrollAnimation {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(20px); opacity: 1; }
}

.section {
    padding: 140px 100px;
    background-color: #ffffff;
    position: relative;
}

.section.alt-bg {
    background-color: #fafafa;
}

.section-title {
    font-size: 52px;
    font-weight: 400;
    color: #313a63;
    margin-bottom: 80px;
    font-family: 'Old Standard TT', serif;
    letter-spacing: -0.097em;
    text-align: left;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #313a63;
}

.section-subtitle {
    font-size: 18px;
    color: #313a63;
    opacity: 0.6;
    margin-bottom: 60px;
    max-width: 700px;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

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

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1600px;
}

.service-card {
    background: #fafafa;
    border: 1px solid rgba(49, 58, 99, 0.1);
    padding: 60px 45px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #313a63 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(49, 58, 99, 0.08);
    border-color: rgba(49, 58, 99, 0.2);
}

.service-number {
    font-size: 14px;
    color: #d9d9d9;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 600;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #313a63;
    margin-bottom: 25px;
    font-family: 'Calibri', sans-serif;
    letter-spacing: 0.3px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.9;
    color: #313a63;
    opacity: 1;
    font-family: 'Calibri', sans-serif;
    letter-spacing: 0.2px;
}

.cta-button {
    margin-top: 80px;
}

.cta-button button {
    background: #313a63;
    border: none;
    color: #ffffff;
    padding: 18px 60px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Calibri', sans-serif;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.6s ease;
}

.cta-button button:hover::before {
    left: 100%;
}

.cta-button button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(49, 58, 99, 0.3);
}

.industrias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1600px;
}

.industria-card {
    background: #fafafa;
    border: 1px solid rgba(49, 58, 99, 0.1);
    padding: 50px 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
}

.industria-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: #313a63;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.industria-card:hover::after {
    height: 100%;
}

.industria-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.industria-card:hover {
    transform: translateX(5px);
    box-shadow: -10px 20px 50px rgba(49, 58, 99, 0.06);
}

.industria-card h3 {
    font-size: 19px;
    color: #313a63;
    margin-bottom: 20px;
    font-family: 'Calibri', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.industria-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #313a63;
    opacity: 1;
    letter-spacing: 0.2px;
}

.investigacion-content {
    max-width: 1400px;
}

.investigacion-item {
    background: #ffffff;
    border-left: 3px solid #313a63;
    padding: 60px 70px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.investigacion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #313a63, #d9d9d9);
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.investigacion-item:hover::before {
    height: 100%;
}

.investigacion-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.investigacion-item:hover {
    transform: translateX(10px);
    box-shadow: -15px 15px 60px rgba(49, 58, 99, 0.05);
}

.investigacion-item h3 {
    font-size: 28px;
    color: #313a63;
    margin-bottom: 25px;
    font-family: 'Old Standard TT', serif;
    letter-spacing: -0.097em;
    font-weight: 400;
}

.investigacion-item p {
    font-size: 15px;
    line-height: 1.9;
    color: #313a63;
    opacity: 0.75;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

.nosotros-content {
    max-width: 1200px;
}

.nosotros-intro {
    margin-bottom: 100px;
}

.nosotros-intro p {
    font-size: 19px;
    line-height: 2;
    color: #313a63;
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: 0.3px;
}

.nosotros-intro p.visible {
    opacity: 0.85;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.value-card {
    background: #ffffff;
    border: 1px solid rgba(49, 58, 99, 0.1);
    padding: 45px 35px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #313a63;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.value-card.visible {
    opacity: 1;
    transform: scale(1);
}

.value-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 50px rgba(49, 58, 99, 0.08);
}

.value-card h4 {
    font-size: 17px;
    color: #313a63;
    margin-bottom: 18px;
    font-family: 'Calibri', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.value-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #313a63;
    opacity: 0.7;
    margin: 0;
    letter-spacing: 0.2px;
}

.contacto-wrapper {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contacto-info {
    opacity: 0;
    transform: translateX(-30px);
}

.contacto-info.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.contacto-info h3 {
    font-size: 32px;
    color: #313a63;
    margin-bottom: 25px;
    font-family: 'Old Standard TT', serif;
    letter-spacing: -0.097em;
}

.contacto-info p {
    font-size: 15px;
    line-height: 1.9;
    color: #313a63;
    opacity: 0.7;
    margin-bottom: 15px;
}

.contacto-content {
    background: #fafafa;
    border: 1px solid rgba(217, 217, 217, 0.3);
    padding: 60px 50px;
    opacity: 0;
    transform: translateY(40px);
}

.contacto-content.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    color: #313a63;
    margin-bottom: 12px;
    font-family: 'Calibri', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 18px 0;
    border: none;
    border-bottom: 1px solid rgba(217, 217, 217, 0.5);
    background: transparent;
    font-size: 15px;
    font-family: 'Calibri', sans-serif;
    color: #313a63;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #313a63;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    background: #313a63;
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Calibri', sans-serif;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.6s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(49, 58, 99, 0.3);
}

footer {
    background: #313a63;
    color: #ffffff;
    padding: 60px 100px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

footer h4 {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
    opacity: 0.6;
}

footer p, footer a {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

footer a:hover {
    opacity: 1;
}

.footer-tagline {
    font-size: 24px;
    font-family: 'Old Standard TT', serif;
    letter-spacing: -0.097em;
    font-style: italic;
    opacity: 0.9;
    margin-top: 20px;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 1200px) {
    .services-container,
    .industrias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-values {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 25px;
        padding: 20px 30px;
    }

    .logo {
        width: 140px;
    }

    nav {
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 12px;
    }

    .hero h1, .hero .italic {
        font-size: 42px;
    }

    .section {
        padding: 80px 30px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 50px;
    }

    .services-container,
    .industrias-grid,
    .team-values {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    footer {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }
}