/* --- VARIABLES Y BASE --- */
:root {
    --primary: #003366;
    --semco-blue: #0054A6;
    --semco-dark: #004080;
    --accent: #f4f7f9;
    --dark: #1a1a1a;
    --grey: #707070;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* --- HEADER --- */
.main-header {
    background: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { 
    height: 68px; 
    width: auto; 
    display: block;
    transition: transform 0.3s ease;
}
.brand-logo:hover { transform: scale(1.02); }

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* Línea animada izquierda → derecha */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--semco-blue);
    transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover { color: var(--semco-blue); }
.nav-links a:hover::after { width: 100%; }

/* El botón Contacto no lleva la línea debajo */
.btn-contact {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
}
.btn-contact::after { display: none; }

/* --- HERO SECTION --- */
.hero-split { display: flex; height: 80vh; }
.hero-panel { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 40px; position: relative; overflow: hidden; transition: flex 0.5s ease; }
.hero-panel:hover { flex: 1.2; }
.pfaudler { background: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), #003366; }
.semco { background: linear-gradient(rgba(0,84,166,0.85), rgba(0,84,166,0.85)), #0054A6; }
.partner-logo { height: 40px; margin-bottom: 20px; }

.hero-content h1, 
.hero-content h2 { 
    font-size: 2.5rem; 
    font-weight: 800; 
    margin-bottom: 15px; 
    line-height: 1.2; 
}

.btn-outline { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    margin-top: 25px; 
    min-width: 220px; 
    height: 55px; 
    padding: 0 30px; 
    box-sizing: border-box; 
    font-size: 0.95rem; 
    font-weight: 700; 
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid white; 
    color: white; 
    text-decoration: none; 
    transition: var(--transition); 
}

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

/* --- BRANDS SECTION & CARD LINKS --- */
.brands-grid-section { padding: 80px 0; background: var(--accent); }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; color: var(--primary); font-weight: 800; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.brand-card { background: white; padding: 40px 30px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition); text-align: center; }
.brand-card:hover { transform: translateY(-10px); border-bottom: 4px solid var(--semco-blue); }
.card-icon { font-size: 2.5rem; margin-bottom: 20px; color: var(--semco-blue); }

/* Mejora de enlaces en las tarjetas (Elimina subrayado azul) */
.card-link {
    text-decoration: none !important;
    color: var(--semco-blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--primary);
    transform: translateX(5px); /* Pequeño desplazamiento a la derecha */
}

/* --- ABOUT SECTION --- */
.about-section { padding: 100px 0; }
.flex-about { display: flex; align-items: flex-start; gap: 60px; }
.about-text { flex: 1.2; }
.intro-p { font-size: 1.05rem; color: var(--grey); margin: 20px 0 30px 0; line-height: 1.8; }
.value-pillars { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.pillar h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 5px; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.pillar h3 i { color: var(--semco-blue); font-size: 0.9rem; }
.pillar p { font-size: 0.95rem; color: var(--dark); line-height: 1.6; padding-left: 25px; }
.responsive-img { width: 100%; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); position: sticky; top: 120px; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 15px 40px; font-size: 1rem; font-weight: 600; margin-top: 10px; cursor: pointer; transition: var(--transition); }
.btn-primary:hover { background: var(--semco-blue); }

/* --- SECTORS SECTION (Links Industriales) --- */
.sectors-section { padding: 100px 0; background-color: #f4f7f9; }
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

.sector-button {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid #e0e0e0;
    padding: 40px 20px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
}

.sector-button span { 
    font-weight: 800; 
    font-size: 0.9rem; 
    letter-spacing: 1.5px; 
    color: var(--primary);
    text-decoration: none !important;
}

.sector-button i { 
    font-size: 2.8rem; 
    color: transparent; 
    -webkit-text-stroke: 1.5px var(--semco-blue); 
    transition: all 0.3s ease; 
}

.sector-button:hover { 
    transform: translateY(-10px); 
    background-color: var(--semco-blue); 
    color: var(--white); 
    border-color: var(--semco-blue); 
    box-shadow: 0 15px 30px rgba(0, 84, 166, 0.2); 
}

.sector-button:hover span { color: var(--white) !important; }
.sector-button:hover i { color: var(--white); -webkit-text-stroke: 1.5px var(--white); }

/* --- FOOTER --- */
.footer { text-align: center; padding: 40px; background: var(--dark); color: var(--white); font-size: 0.8rem; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .flex-about { flex-direction: column; }
    .responsive-img { position: static; }
    .nav-links { display: none; }
}

@media (max-width: 768px) {
    .brand-logo { height: 55px; }
    .hero-split { flex-direction: column; height: auto; }
    .hero-panel { height: 400px; }
    .sectors-grid { grid-template-columns: 1fr 1fr; }
    .btn-outline { min-width: 180px; height: 50px; font-size: 0.85rem; }
    .hero-content h1, .hero-content h2 { font-size: 2rem; }
}