/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #341C54;   /* Color principal institucional */
    --light-purple-bg: #FAF9FC;  /* Fondo premium claro */
    --text-dark: #1E1625;        /* Contraste oscuro refinado */
    --text-muted: #5A5260;       /* Gris corporativo suave */
    --white: #FFFFFF;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   NAVBAR & LOGO SUPERIOR OFICIAL
   ========================================================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(52, 28, 84, 0.06);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Ajuste 3: Altura a 38px y colores nativos originales */
.brand-logo-img {
    height: 38px; 
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.brand-logo-img:hover {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-purple);
    transform: translateY(-1px);
}

/* ==========================================================================
   PANTALLA 1: HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('hero-truppia.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(52, 28, 84, 0.72) 0%,
        rgba(26, 12, 45, 0.65) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0,0,0,0.35);
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: #ffffff;
    margin-bottom: 45px;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.30);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-purple);
    color: #ffffff;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: #ffffff;
    color: var(--primary-purple);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* ==========================================================================
   PANTALLA 2: INTRODUCCIÓN CORPORATIVA
   ========================================================================== */
.intro-section {
    padding: 120px 4%;
    background-color: var(--white);
}

.intro-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-text-side h2 {
    font-size: clamp(28px, 4vw, 38px);
    color: var(--primary-purple);
    line-height: 1.3;
    margin-bottom: 28px;
}

.intro-text-side p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.intro-image-side img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(52, 28, 84, 0.06);
}

/* ==========================================================================
   PANTALLA 3: PILARES Y SOLUCIONES
   ========================================================================== */
.pillars-section {
    padding: 100px 4% 120px 4%;
    background-color: var(--light-purple-bg);
}

.pillars-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pillars-main-title {
    text-align: center;
    font-size: clamp(26px, 3.5vw, 36px);
    color: var(--primary-purple);
    margin-bottom: 64px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.pillar-card {
    background-color: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.02);
    border-top: 4px solid var(--primary-purple);
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(52, 28, 84, 0.05);
}

.pillar-image-wrapper {
    height: 220px;
    overflow: hidden;
}

.pillar-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-image-wrapper img {
    transform: scale(1.05);
}

.pillar-info {
    padding: 35px 30px;
}

.pillar-info h3 {
    font-size: 22px;
    color: var(--primary-purple);
    margin-bottom: 14px;
}

.pillar-info p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   PANTALLA 4: BANNER PROPÓSITO INTERMEDIO
   ========================================================================== */
.purpose-banner {
    background-color: var(--primary-purple);
    padding: 90px 6%;
    text-align: center;
}

.purpose-container {
    max-width: 950px;
    margin: 0 auto;
}

.purpose-banner p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    color: var(--white);
    font-weight: 400;
    line-height: 1.5;
}

/* ==========================================================================
   PANTALLA 5: PROGRAMA DESTACADO
   ========================================================================== */
.featured-section {
    padding: 120px 4%;
    background-color: var(--light-purple-bg);
    display: flex;
    justify-content: center;
}

.featured-box {
    background-color: var(--white);
    max-width: 850px;
    width: 100%;
    padding: 60px 50px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(52, 28, 84, 0.04);
    border-top: 4px solid var(--primary-purple);
}

.featured-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #9C7BFF;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 20px;
}

.featured-box h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    color: var(--primary-purple);
    margin-bottom: 20px;
}

.featured-box p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-dark-purple {
    display: inline-block;
    background-color: #7A5CA8;
    color: var(--white);
    padding: 15px 35px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-dark-purple:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   PANTALLA 6: BANNER EVOLUCIÓN
   ========================================================================== */
.evolution-banner {
    position: relative;
    padding: 120px 4%;
    background: url('futuro-truppia.jpeg') no-repeat center center/cover;
    text-align: center;
}

.evolution-overlay {
    background: linear-gradient(
        rgba(52, 28, 84, 0.50),
        rgba(52, 28, 84, 0.60)
    );
}

.evolution-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
}

.evolution-content h2 {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 25px;
}

.evolution-sub {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 18px;
}

.evolution-highlight {
    font-size: 28px;
    font-weight: 800;
    color: #c3a3dc;
    line-height: 1.2;
}
/* ==========================================================================
   PANTALLA 7: CONTACTO & FOOTER INTEGRADO
   ========================================================================== */
.contact-section {
    padding: 120px 4% 120px 4%;
    background-color: var(--white);
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(36px, 6vw, 54px);
    color: var(--primary-purple);
    margin-bottom: 16px;
    font-weight: 700;
}

.contact-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.email-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--light-purple-bg);
    padding: 14px 28px;
    border-radius: 30px;
    border: 1px solid rgba(52, 28, 84, 0.08);
}

.email-icon {
    color: var(--primary-purple);
    font-size: 18px;
}

.email-badge a {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-purple);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.email-badge a:hover {
    opacity: 0.8;
}

/* Footer */
.main-footer {
    border-top: 1px solid rgba(52, 28, 84, 0.06);
    padding: 60px 4% 40px 4%;
    text-align: center;
    background-color: var(--white);
}

.footer-logo {
    margin-bottom: 24px;
}
.footer-services {
    margin-top: 15px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-purple);
}

.footer-email {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Último Ajuste: Altura a 55px y eliminación del filtro */
.footer-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-purple-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    text-decoration: none;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid rgba(52, 28, 84, 0.05);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background-color: var(--primary-purple);
    color: var(--white);
    transform: scale(1.1);
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }
    .brand-logo-img {
        height: 52px; /* Reducción controlada para armonía en pantallas móviles */
    }
    .nav-menu {
        gap: 20px;
    }
    .intro-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .intro-image-side {
        order: -1; 
    }
    .featured-box {
        padding: 40px 24px;
    }
}
