
/* PIRUNSOFT | site.css consolidado | ASP.NET Core Razor Pages .NET 9 */

:root{
    --navy:#061f40;
    --deep:#00254e;
    --blue:#0879f5;
    --cyan:#06b7ee;
    --ink:#062651;
    --muted:#405d82;
    --pale:#eff8ff;
    --line:#cde7f8;
    --shadow:0 12px 32px rgba(5,47,91,.07);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:88px}
body{overflow-x:clip;margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:#fff;font-size:14px;line-height:1.48}
a{text-decoration:none;color:inherit}
button,input,textarea,select{font:inherit}
.wrap{width:min(1450px,calc(100% - 84px));margin:auto}
.skip-link{position:absolute;left:-9999px;z-index:99;background:white;padding:12px}
.skip-link:focus{left:10px;top:10px}

/* HEADER */

.site-header{background:#062443;position:sticky;top:0;z-index:30;box-shadow:0 2px 15px #031d3726}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:78px;gap:22px}
.brand{display:block;flex:0 0 auto}
.brand img{display:block;width:215px;height:auto}
.site-nav{display:flex;align-items:center;gap:30px}
.site-nav a{font-weight:600;color:#e9f5ff;padding:11px 0;white-space:nowrap}
.site-nav a:hover,.site-nav a:focus{color:#26c4f7}
.whatsapp-top,.btn-primary{background:linear-gradient(125deg,#00a8df,#0bc1f2);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 20px;border:0;border-radius:10px;font-weight:750;box-shadow:0 8px 20px #0086d022;cursor:pointer;white-space:nowrap}
.whatsapp-top:hover,.btn-primary:hover{background:#0079c7;color:white}
.whatsapp-top i,.btn-primary i{font-size:19px}
.menu-toggle{display:none;background:transparent;border:1px solid #9edbff;color:#fff;border-radius:8px;padding:5px 10px;font-size:24px}

/* PORTADA */

.hero{position:relative;isolation:isolate;overflow:hidden;min-height:445px;background:#f4fbff}
.hero-art{position:absolute;inset:0 0 0 30%;background-image:url('../images/hero-modernizacion.webp');background-repeat:no-repeat;background-size:cover;background-position:50% center;clip-path:none}
.hero-art::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#f4fbff 0%,rgba(244,251,255,.97) 9%,rgba(244,251,255,.45) 29%,transparent 52%)}
.hero::after{content:"";position:absolute;left:-8%;bottom:-130px;width:58%;height:180px;background:#bdeeff6b;border-radius:50%;pointer-events:none}
.hero-inner{position:relative;z-index:1;min-height:445px;display:flex;align-items:center;max-width:1450px}
.hero-copy{width:min(43%,510px);padding:26px 0 32px;position:relative;z-index:2}
.section-label{color:#0088d4;font-weight:800;letter-spacing:.18em;font-size:12px}
.hero h1{font-size:clamp(35px,3.2vw,56px);letter-spacing:-.055em;line-height:1.035;margin:12px 0 15px;font-weight:900;color:#06295a}
.hero h1 span{color:#067ef6}
.hero-copy p{font-size:15px;line-height:1.43;max-width:455px;margin:0 0 19px}
.hero-slogan{display:none}

/* SECCIONES Y SERVICIOS */

.section{margin-top:19px}
.section-title{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.section-title h2{font-size:14px;color:#008cde;letter-spacing:.14em;font-weight:850;margin:0;white-space:nowrap}
.section-title span{height:1px;background:linear-gradient(90deg,#2db5ff,#a2e3ff);flex:1;max-width:630px}
.service-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.service-card{border:1px solid #d9eefa;background:linear-gradient(150deg,#fff,#f2f9fd);border-radius:12px;min-height:180px;padding:17px 15px;box-shadow:var(--shadow)}
.service-head{display:flex;align-items:center;gap:11px;min-height:65px}
.service-head>i{width:55px;height:55px;flex:none;display:grid;place-items:center;border-radius:50%;font-size:27px;background:linear-gradient(135deg,#d7f3ff,#b6e4fb);color:#03447f}
.service-head h3{font-size:14px;line-height:1.2;margin:0;color:#062e79;font-weight:850}
.service-card p{margin:12px 0 0;color:#36567d;font-size:13px;line-height:1.43}

/* CATÁLOGO DE TECNOLOGÍAS */

.technologies{margin-top:12px;padding-top:0;padding-bottom:8px}
.technologies .section-title{gap:10px;margin-bottom:9px}
.technologies .section-title h2{font-size:13px;letter-spacing:.12em;font-weight:800}
.technologies .section-title>span{max-width:290px}
.tech-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tech-category{min-width:0;padding:14px 16px 17px;background:linear-gradient(180deg,#f8fcff,#edf8ff);border:1px solid #d7eafa;border-radius:11px}
.tech-category:first-child{grid-column:1/-1}
.tech-category h3{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:13px;line-height:1.35;font-weight:800;letter-spacing:.09em;color:#008de7}
.tech-category h3::after{content:"";height:1px;background:#4bc4ff;flex:1;min-width:12px}
.tech-logos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;justify-items:center;gap:12px 10px;min-height:84px}
.tech-category:first-child .tech-logos{grid-template-columns:repeat(9,minmax(0,1fr));gap:12px}
.tech-logos img{display:block;width:100%;height:72px;max-width:145px;object-fit:contain;object-position:center;transition:transform .2s ease}
.tech-category:first-child .tech-logos img{height:76px;max-width:150px}
.tech-logos img:hover{transform:scale(1.06)}
.tech-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;width:100%;text-align:center}
.tech-item img{height:53px;width:100%;max-width:125px;object-fit:contain}
.tech-item span{font-size:12px;line-height:1.25;font-weight:650;color:#092b57;overflow-wrap:anywhere}
.tech-category:first-child .tech-item img{height:57px}
.tech-doc-icon{display:flex;align-items:center;justify-content:center;width:95px;max-width:100%;height:55px;font-size:40px;color:#0879f5;transition:transform .2s ease}
.tech-item:hover .tech-doc-icon{transform:scale(1.08)}

/* PARTNER */

.partner-panel{border:1px solid #e1f0fa;background:linear-gradient(125deg,#f0f9ff,#e9f6fd);border-radius:12px;padding:19px 23px;display:grid;align-items:center;gap:24px;grid-template-columns:1.15fr 1.2fr 1.1fr}
.partner-brands{display:flex;align-items:center;gap:20px;white-space:nowrap}
.partner-brands .td{font-size:24px;color:#006d95}
.partner-brands .microsoft{font-size:20px;color:#666;display:inline-flex;align-items:center;gap:5px}
.ms-grid{display:inline-grid;grid-template-columns:repeat(2,9px);grid-template-rows:repeat(2,9px);gap:2px;flex:none}
.ms-grid i:nth-child(1){background:#f35022}
.ms-grid i:nth-child(2){background:#7fba00}
.ms-grid i:nth-child(3){background:#00a4ef}
.ms-grid i:nth-child(4){background:#ffb900}
.brand-divider{height:45px;width:1px;background:#4dc4ff}
.partner-panel p{margin:0;color:#355b8b;font-size:13px;border-left:1px solid #70cfff;padding-left:18px}
.partner-panel ul{list-style:none;padding:0 0 0 18px;margin:0;border-left:1px solid #70cfff;font-size:12px;color:#365a85}
.partner-panel li{margin:4px 0;display:flex;gap:9px;align-items:flex-start}
.partner-panel li i{color:#007ded;font-size:16px}
.partner-note{font-size:11px;color:#6782a0;margin:6px 4px 0}

/* ==========================================
   SOBRE MÍ - FOTOGRAFÍA CIRCULAR
   ========================================== */

.about{margin-top:30px;margin-bottom:35px}

.about-panel{
    display:grid;
    grid-template-columns:minmax(180px,250px) minmax(0,1.5fr) minmax(250px,1.15fr);
    align-items:center;
    gap:30px;
    padding:30px;
    background:linear-gradient(125deg,#f5fbff,#eaf6ff);
    border:1px solid #d4eaff;
    border-radius:16px;
    box-shadow:0 8px 24px rgba(5,47,91,.04);
}

/* FOTOGRAFÍA CIRCULAR */

.about-panel .portrait{
    position:relative;
    width:220px;
    height:220px;
    aspect-ratio:1 / 1;
    overflow:hidden;
    border-radius:50%;
    margin:0 auto;
    background:linear-gradient(135deg,#dff4ff,#9ddcff);
    box-shadow:0 10px 25px rgba(0,75,140,.10);
}

.about-panel .portrait::before{
    content:"";
    position:absolute;
    right:-50px;
    bottom:-60px;
    width:180px;
    height:180px;
    border-radius:50%;
    background:rgba(0,145,255,.18);
    z-index:0;
}

.about-panel .portrait img{
    position:relative;
    z-index:1;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 20%;
    border-radius:50%;
}

/* INFORMACIÓN PROFESIONAL */

.about-copy{min-width:0}
.about-copy h2{margin:0 0 20px;font-size:clamp(22px,2.2vw,32px);line-height:1.15;font-weight:850;letter-spacing:-.035em;color:#062d65}
.about-copy h2 span{color:#078df1}
.about-copy p{margin:0 0 15px;font-size:14px;line-height:1.7;color:#365b82}
.about-copy p:last-child{margin-bottom:0}
.about-facts{display:flex;flex-direction:column;gap:15px;min-width:0;padding-left:25px;border-left:1px solid #79cfff}
.about-fact,.about-facts>p{display:flex;align-items:center;gap:14px;margin:0;color:#214d80;font-size:13px;line-height:1.4;font-weight:500}
.about-fact>i,.about-facts>p>i{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#e0f2ff;color:#078df1;font-size:21px}
.about-fact span{font-size:13px;line-height:1.4;color:#214d80}
.about-facts a.about-linkedin{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;margin:12px 0 0;padding:12px 15px;border:1px solid #0879f5;border-radius:10px;background:linear-gradient(125deg,#0879e9,#06a9f0);color:#fff;font-size:13px;font-weight:750;text-align:center;box-shadow:0 8px 18px rgba(0,130,220,.15);transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.about-facts a.about-linkedin span{flex:1;color:#fff}
.about-facts a.about-linkedin i{color:#fff;font-size:20px}
.about-facts a.about-linkedin:hover{background:#0064b5;color:#fff;transform:translateY(-2px);box-shadow:0 12px 24px rgba(0,130,220,.22)}
.about-facts a.about-linkedin:focus-visible{outline:3px solid #003c80;outline-offset:3px}
.about-facts .linkedin-placeholder{display:flex;align-items:center;gap:12px;min-height:52px;margin:12px 0 0;padding:12px 15px;border:1px dashed #a7cce8;border-radius:10px;background:#edf7ff;color:#6383a4;font-size:13px}
.about-facts .linkedin-placeholder i{font-size:20px;color:#0086df}

/* PROCESO */

.process{margin-bottom:48px}
.process-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1.1fr);align-items:center;gap:24px;padding-bottom:16px}
.process-steps{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.process-step{display:flex;align-items:center;gap:10px}
.process-step>i{width:48px;height:48px;flex:none;border-radius:50%;background:#048ef0;color:#fff;display:grid;place-items:center;font-size:23px}
.process-step div{display:flex;flex-direction:column;color:#06337a;font-size:12px;line-height:1.25}
.process-step b{font-weight:850}
.process-arrow{color:#048ef0;font-size:18px}
.process-goal{display:flex;gap:16px;border-left:1px solid #5dbcf4;padding:12px 0 12px 25px;align-items:center;min-width:0}
.process-goal>i{font-size:49px;color:#078bff;flex:none}
.process-goal p{margin:0;font-size:12px;line-height:1.5;color:#355b84}
.process-goal strong{display:block;font-size:15px;line-height:1.25;color:#06377d}
.projects>p{color:#47648a;margin:0}

/* CONTACTO */

.contact{margin-bottom:35px}
.contact-layout{display:grid;grid-template-columns:1fr 1.3fr;gap:30px}
.contact-intro{padding:18px 0}
.contact-intro h2{font-size:25px;margin:0 0 13px}
.contact-intro p{color:#526f92;margin-bottom:20px}
.contact-form{padding:22px;border-radius:14px;background:#f3faff;border:1px solid #d7eaf7}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.form-grid>div{display:flex;flex-direction:column}
.form-grid .form-wide{grid-column:1/-1}
.form-grid label{font-size:12px;font-weight:700;margin-bottom:5px}
.form-grid input:not([type=checkbox]),.form-grid textarea,.form-grid select{width:100%;padding:10px 12px;border:1px solid #bdd6e7;border-radius:7px;background:#fff;color:#062651}
.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus{outline:2px solid #08aef0}
.form-grid .check{flex-direction:row;align-items:center;gap:9px;flex-wrap:wrap}
.form-grid .check label{margin:0}
.contact-form button{margin-top:15px}
.honeypot{position:absolute;left:-9999px}
.validation{color:#a52138;font-size:12px}
.alert-success{padding:12px;background:#dcf8e7;color:#155c36;border-radius:8px}

/* FOOTER */

.footer{background:#031f41;color:#fff}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:83px}
.footer-brand img{width:160px;height:auto}
.footer-nav,.footer-contact{display:flex;align-items:center;gap:17px}
.footer-nav a{font-size:12px;color:#e8f2ff;white-space:nowrap}
.footer-contact{gap:17px}
.footer-contact>a{display:inline-flex;gap:7px;align-items:center;color:white;font-size:12px}
.footer-contact>a>i{font-size:20px;color:#41baff}
.footer-place{font-size:12px;white-space:nowrap}
.footer-place i{font-size:20px;margin-right:6px}
.copyright{font-size:10px;opacity:.65;padding:0 0 12px}
.simple-page{min-height:55vh;padding:70px 0;max-width:850px}
.simple-page h1{font-size:36px}
.simple-page p{font-size:16px;color:#385778}
.simple-page .btn-primary{margin-top:20px}
.social-pending{font-size:20px;color:#5c93c3;opacity:.8;cursor:help}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media(max-width:1250px){
    .wrap{width:min(100% - 50px,1450px)}
    .header-inner{gap:12px}
    .site-nav{gap:16px}
    .hero-copy{width:45%}
    .hero h1{font-size:42px}
    .partner-panel{gap:12px}
    .partner-brands .td{font-size:18px}
    .partner-brands .microsoft{font-size:16px}
    .footer-inner{flex-wrap:wrap;padding:15px 0}
    .service-head{flex-direction:column;align-items:flex-start}
    .service-card{min-height:215px}
}

@media(max-width:1100px){
    .tech-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}
    .tech-category:first-child{grid-column:1/-1}
    .tech-category:first-child .tech-logos{grid-template-columns:repeat(5,minmax(0,1fr))}
    .about-panel{grid-template-columns:210px minmax(0,1fr);gap:25px}

    /* Fotografía circular tablet */
    .about-panel .portrait{
        width:200px;
        height:200px;
    }

    .about-facts{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-left:0;border-top:1px solid #79cfff;padding:20px 0 0}
    .about-facts a.about-linkedin,.about-facts .linkedin-placeholder{grid-column:1/-1}
}

@media(max-width:950px){
    .site-nav{gap:11px}
    .site-nav a{font-size:12px}
    .whatsapp-top{font-size:12px;padding:10px}
    .brand img{width:160px}
    .hero{min-height:455px}
    .hero-inner{min-height:455px}
    .hero-copy{width:52%}
    .hero h1{font-size:37px}
    .hero-copy p{font-size:13px}
    .hero-art{left:37%;background-position:50% center;clip-path:none}
    .service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .service-head{flex-direction:row}
    .service-card{min-height:190px}
    .partner-panel{grid-template-columns:1fr 1fr}
    .partner-panel ul{grid-column:1/-1}
    .process-row{grid-template-columns:1fr}
    .process-goal{border-left:0;border-top:1px solid #72c7ef;padding:16px 0 12px}
}

@media(max-width:700px){
    .wrap{width:calc(100% - 30px)}
    .header-inner{min-height:65px;flex-wrap:wrap}
    .brand img{width:170px}
    .menu-toggle{display:block;margin-left:auto}
    .whatsapp-top{display:none}
    .site-nav{display:none;flex-direction:column;align-items:stretch;order:3;width:100%;gap:0;padding:0 0 12px}
    .site-nav.open{display:flex}
    .site-nav a{font-size:14px;padding:11px 0;border-bottom:1px solid #335776}
    .hero{display:flex;flex-direction:column;min-height:0;background:#f7fcff}
    .hero-inner{order:0;min-height:0;height:auto;display:block;padding-bottom:25px}
    .hero-copy{width:100%;padding:22px 0 0}
    .hero h1{font-size:clamp(34px,9vw,49px);margin:8px 0 12px}
    .hero-copy p{font-size:14px;line-height:1.55;max-width:480px;margin-bottom:18px}
    .hero-art{order:1;position:relative;inset:auto;width:100%;height:clamp(250px,65vw,390px);background-size:cover;background-position:center center;clip-path:none}
    .hero-art::before{display:none}
    .hero::after{display:none}
    .section{margin-top:22px}
    .service-grid{grid-template-columns:1fr 1fr}
    .service-card{min-height:205px}
    .service-head{flex-direction:column}
    .partner-panel{grid-template-columns:1fr}
    .partner-panel p,.partner-panel ul{border-left:0;border-top:1px solid #70cfff;padding:12px 0 0}
    .process-steps{flex-wrap:wrap;justify-content:center}
    .process-arrow{display:none}
    .process-step{width:44%;margin:10px 0}
    .process{margin-bottom:36px}
    .contact-layout{grid-template-columns:1fr}
    .footer-inner{flex-direction:column;align-items:flex-start}
    .footer-nav,.footer-contact{flex-wrap:wrap}
    .footer-nav{gap:12px}
    .footer-contact{gap:18px}
}

@media(max-width:650px){
    .tech-catalog{grid-template-columns:1fr}
    .tech-category:first-child{grid-column:auto}
    .tech-category{padding:13px}
    .tech-category:first-child .tech-logos{grid-template-columns:repeat(3,minmax(0,1fr))}
    .tech-logos img,.tech-category:first-child .tech-logos img{height:66px;max-width:135px}
    .tech-item span{font-size:12px}
    .about-panel{grid-template-columns:1fr;gap:22px;padding:20px}

    /* Fotografía circular celular */
    .about-panel .portrait{
        width:190px;
        height:190px;
        margin:0 auto;
    }

    .about-copy h2{font-size:25px;margin-bottom:15px}
    .about-copy p{font-size:14px}
    .about-facts{grid-column:auto;grid-template-columns:1fr;gap:14px}
    .about-facts a.about-linkedin,.about-facts .linkedin-placeholder{grid-column:auto}
}

@media(max-width:420px){
    .service-grid{grid-template-columns:1fr}
    .service-head{flex-direction:row}
    .service-card{min-height:auto}
    .form-grid{grid-template-columns:1fr}
    .form-grid>div{grid-column:1/-1}
    .process-step{width:100%}
    .hero-art{height:255px;background-position:center center}
}

@media(max-width:380px){
    .tech-category:first-child .tech-logos{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(prefers-reduced-motion:reduce){
    html{scroll-behavior:auto}
    .tech-logos img,.tech-doc-icon,.about-facts a.about-linkedin{transition:none}
}

/* ==========================================
   PIRUNSOFT - SECCIÓN CLIENTES
   ========================================== */

.clients{
    padding-top:65px;
    padding-bottom:80px;
}

.clients-intro{
    max-width:720px;
    margin:0 auto 38px;
    text-align:center;
    font-size:1rem;
    line-height:1.7;
    color:#64748b;
}

.clients-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:22px;
}

.client-card{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:165px;
    padding:24px;
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:16px;
    box-shadow:0 4px 15px rgba(0,0,0,.04);
    transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;
}

.client-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 28px rgba(0,0,0,.10);
    border-color:#cbd5e1;
}

.client-card img{
    display:block;
    width:100%;
    max-width:190px;
    height:105px;
    object-fit:contain;
}

/* CLIENTES - TABLETS */

@media(max-width:900px){
    .clients-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

/* CLIENTES - CELULARES */

@media(max-width:520px){
    .clients{
        padding-top:45px;
        padding-bottom:55px;
    }

    .clients-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:12px;
    }

    .client-card{
        min-height:125px;
        padding:14px;
        border-radius:12px;
    }

    .client-card img{
        height:85px;
    }

    .clients-intro{
        font-size:.92rem;
        margin-bottom:28px;
    }
}

@media(prefers-reduced-motion:reduce){
    .client-card{
        transition:none;
    }

    .client-card:hover{
        transform:none;
    }
}
