/* ==========================================================
   CLEMAR SERVICIO TÉCNICO - ESTILO PLACA PCB & RESPONSIVE
   ========================================================== */

:root {
    --pcb-dark: #0a1811;          /* Verde placa muy oscuro de base */
    --pcb-card: rgba(13, 31, 23, 0.92); /* Tarjetas con transparencia sutil */
    --pcb-card-solid: #112d20;    /* Fondo sólido para tarjetas */
    --pcb-border: #1e4d35;        /* Bordes de pistas */
    --circuit-gold: #d4af37;      /* Dorado de contactos y detalles */
    --circuit-neon: #00ffcc;      /* Verde eléctrico / cian tecnológico */
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--pcb-dark);
    /* Fondo con textura simulada de circuito avanzado de alta densidad + patrón de puntos */
    background-image: 
        linear-gradient(90deg, rgba(30, 77, 53, 0.2) 1px, transparent 1px),
        linear-gradient(0deg, rgba(30, 77, 53, 0.2) 1px, transparent 1px),
        radial-gradient(var(--circuit-neon) 0.5px, transparent 0.5px);
    background-size: 60px 60px, 60px 60px, 20px 20px;
    background-position: 0 0, 0 0, 10px 10px;
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.st-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER Y NAVEGACIÓN RESPONSIVE --- */
.st-header {
    background-color: rgba(10, 24, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--pcb-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.st-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid var(--circuit-gold);
}

.st-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.st-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.st-nav a:hover {
    color: var(--circuit-neon);
}

.btn-back-main {
    background: transparent;
    border: 1px solid var(--circuit-gold);
    color: var(--circuit-gold) !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease !important;
}

.btn-back-main:hover {
    background: var(--circuit-gold);
    color: #000 !important;
}

/* --- HERO SECTION --- */
.st-hero {
    padding: 70px 0;
    background: linear-gradient(135deg, rgba(10,24,17,0.95) 0%, rgba(17,45,32,0.9) 100%);
    border-bottom: 2px solid var(--pcb-border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.badge-trayectoria {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--circuit-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.hero-text .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.slogan {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
    border-left: 3px solid var(--circuit-neon);
    padding-left: 15px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-st {
    background-color: #10b981;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: background 0.3s;
}

.btn-primary-st:hover {
    background-color: #059669;
}

.btn-secondary-st {
    background: var(--pcb-card-solid);
    border: 1px solid var(--pcb-border);
    color: var(--text-main);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: border-color 0.3s;
}

.btn-secondary-st:hover {
    border-color: var(--circuit-neon);
}

.hero-image-box img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--pcb-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* --- SECCIONES Y ESPECIALIDADES --- */
.st-section {
    padding: 70px 0;
}

.bg-darker {
    background-color: rgba(5, 15, 10, 0.85);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card-st {
    background-color: var(--pcb-card-solid);
    border: 1px solid var(--pcb-border);
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s, border-color 0.3s;
}

.card-st:hover {
    transform: translateY(-5px);
    border-color: var(--circuit-neon);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--circuit-neon);
    margin-bottom: 20px;
}

.card-st h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #fff;
}

.card-st p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- PROCESO EN 3 PASOS --- */
.proceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.paso-item {
    background-color: var(--pcb-card-solid);
    border: 1px solid var(--pcb-border);
    padding: 25px;
    border-radius: 10px;
}

.paso-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(0, 255, 204, 0.15);
    color: var(--circuit-neon);
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 1px solid var(--circuit-neon);
}

.paso-item h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #fff;
}

.paso-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* --- FOOTER --- */
.st-footer {
    background-color: rgba(5, 15, 10, 0.95);
    border-top: 2px solid var(--pcb-border);
    padding: 35px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 5px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-brand {
    text-align: right;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.3s;
}

.brand-link:hover {
    color: var(--circuit-neon);
}

.footer-tree-logo {
    height: 25px;
    width: auto;
}

/* ==========================================================
   DISEÑO RESPONSIVE (ADAPTABLE A MÓVILES Y TABLETS)
   ========================================================== */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .slogan {
        border-left: none;
        border-top: 3px solid var(--circuit-neon);
        padding-left: 0;
        padding-top: 15px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-box {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .st-nav {
        gap: 12px;
    }
    .st-nav a:not(.btn-back-main) {
        display: none; /* Oculta links secundarios en pantallas muy chicas para mantener orden, dejando el botón de retorno */
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-brand {
        text-align: center;
    }
}
/* --- ESTILO PARA EL CONTENEDOR DE IMAGEN EN TARJETAS --- */
.card-img-placeholder {
    width: 100%;
    height: 140px;
    background-color: rgba(5, 15, 10, 0.6);
    border: 1px dashed var(--pcb-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}