/* Estilos generales */
:root {
    --brand-green: #39b54a;
    --brand-purple: #5b2e91;
    --brand-text: #111111;
}

/* Aplicar bold a toda la tipografía excepto iconos */
*:not(i):not([class*="fa-"]) {
    font-weight: bold !important;
}

/* Asegurar que los iconos mantengan su peso normal */
i, [class*="fa-"], [class*="fab"], [class*="fas"], [class*="far"] {
    font-weight: normal !important;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

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

.section {
    padding: 80px 0;
    text-align: center;
}

.bg-light {
    background-color: #e9ecef;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 600;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--brand-purple);
}

/* Header (Hero) */
.hero {
    position: relative;
    background-color: #f7f7f9; /* slightly darker than white */
    color: var(--brand-text);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 2.4em;
    font-weight: 300;
    color: #000;
    line-height: 1.2;
    margin-top: 0;
}

.btn {
    display: inline-block;
    background-color: var(--brand-green);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s, transform 0.1s;
}

.btn:hover {
    background-color: var(--brand-purple);
}

.btn:active {
    transform: translateY(1px);
}

/* Sección de Habilidades */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-item i {
    font-size: 3em;
    color: var(--brand-purple);
    margin-bottom: 15px;
}

/* Sección de Servicios */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background-color: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--brand-purple);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card p {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Sección Quiénes somos */
.about-content {
    max-width: 900px;
    margin: 50px auto 0;
    text-align: left;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-content .about-cta {
    text-align: center;
    font-size: 1.15rem;
    color: var(--brand-purple);
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(91, 46, 145, 0.05), rgba(57, 181, 74, 0.05));
    border-radius: 10px;
    border-left: 4px solid var(--brand-green);
}

/* Sección de Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.project-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card h3 {
    color: #007bff;
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--brand-purple);
    text-decoration: none;
    font-weight: 600;
}

.project-link:hover {
    text-decoration: underline;
}

/* Contacto */
.contact-links {
    margin-top: 30px;
}

.contact-btn {
    color: var(--brand-purple);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2em;
    transition: color 0.3s;
}

.contact-btn:hover {
    color: #4a2578;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Logo */
.logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: clamp(120px, 28vh, 256px);
    margin: 0 auto 5px;
}

.logo--image {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    mix-blend-mode: multiply;
    filter: saturate(1) contrast(1) brightness(1);
    transition: filter 200ms ease, transform 120ms ease;
}

.logo--image:hover,
.logo-area:hover .logo--image {
    filter: saturate(1.7) contrast(1.2) brightness(1.07) drop-shadow(0 6px 16px rgba(0,0,0,0.08));
}

@media (min-width: 768px) {
    .logo { max-height: 320px; }
}

/* Logo area */
.logo-area {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

/* Canvas background for subtle cells */
#cells-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

/* (removed brand wordmark styles per request) */

/* Tech Banner */
.tech-banner {
    background: transparent;
    padding: 60px 0;
    margin: 0;
}

.banner-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--brand-purple);
    margin-bottom: 40px;
    font-weight: 800;
}

.tech-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.tech-item:hover {
    opacity: 0.7;
}

.tech-item i {
    font-size: 3em;
    color: var(--brand-purple);
    margin-bottom: 8px;
}

.tech-item span {
    font-weight: 600;
    color: var(--brand-text);
    font-size: 0.9em;
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .tech-grid {
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .tech-grid {
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tech-item i {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .tech-grid {
        gap: 20px;
    }
    
    .tech-item i {
        font-size: 2em;
    }
    
    .tech-item span {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        gap: 15px;
    }
    
    .tech-item i {
        font-size: 1.8em;
    }
}

/* Accesibilidad: enfoque visible */
.btn:focus-visible,
.contact-btn:focus-visible,
.project-link:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Navbar */
.navbar{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #eee;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.nav-brand img{height:36px}
.nav-menu{list-style:none;display:flex;gap:22px;margin:0;padding:0}
.nav-menu a{color:var(--brand-text);text-decoration:none;font-weight:600;font-size:1.1em}
.nav-toggle{display:none}

/* Mobile */
@media (max-width: 992px){
  .nav-toggle{display:inline-flex;flex-direction:column;gap:4px;background:none;border:0;cursor:pointer}
  .nav-toggle span{width:24px;height:2px;background:#333}
  .nav-menu{position:fixed;inset:64px 0 auto 0;background:#fff;flex-direction:column;gap:10px;padding:16px;border-top:1px solid #eee;display:none}
  .nav-menu.open{display:flex}
}