
/*
    Picasso Tech - Home profesional
    ------------------------------------------------------------
    Diseño responsivo, cálido y corporativo, sin dependencias externas.
*/
:root {
    --bg: #fffaf2;
    --bg-soft: #f8efe2;
    --surface: #fffdfa;
    --surface-2: #fff6e9;
    --text: #101923;
    --muted: #52616c;
    --teal: #087986;
    --teal-dark: #005b64;
    --amber: #d9831f;
    --gold: #f3c15f;
    --line: rgba(146, 101, 45, .18);
    --shadow: 0 18px 45px rgba(58, 43, 23, .10);
    --radius: 18px;
    --container: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 80% 15%, rgba(244, 194, 107, .20), transparent 34%), var(--bg);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}
.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 999;
    padding: 10px 14px;
    background: var(--text);
    color: #fff;
    border-radius: 10px;
    transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 252, 247, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.header-grid {
    min-height: 70px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 26px;
}
.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand-logo-wrap {
    width: 250px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}
.brand-logo {
    max-width: 250px;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.brand-divider {
    width: 1px;
    height: 44px;
    background: var(--line);
}
.brand-person { display: grid; gap: 2px; white-space: nowrap; }
.brand-person strong { font-size: 1.02rem; }
.brand-person small { color: var(--muted); font-weight: 600; }
.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.3vw, 42px);
    font-weight: 700;
    font-size: .94rem;
}
.main-nav a {
    position: relative;
    padding: 25px 0 23px;
    transition: color .22s ease;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 3px;
    border-radius: 999px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--teal); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 91, 100, .14); }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; }
.btn-secondary, .btn-outline { color: var(--teal-dark); border-color: var(--teal); background: rgba(255,255,255,.72); }
.btn-agenda { white-space: nowrap; }

/* HERO */
.hero {
    padding: 30px 0 24px;
    background: linear-gradient(90deg, #fffdf8 0%, #fff7eb 56%, #fff1dc 100%);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% 50%;
    height: 220px;
    background: radial-gradient(circle, rgba(243, 193, 95, .32), transparent 65%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(520px, 800px);
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.eyebrow {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 900;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    margin-bottom: 16px;
    max-width: 760px;
    font-size: clamp(2.25rem, 4.3vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.045em;
}
h1 span { color: var(--teal); }
.hero-tags { font-weight: 700; color: #24313b; margin-bottom: 16px; }
.hero-text { max-width: 780px; color: #263642; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.hero-visual {
    min-width: 0;
    animation: floatSoft 5.5s ease-in-out infinite;
    filter: drop-shadow(0 22px 35px rgba(99, 63, 17, .12));
}
.hero-visual img { width: 100%; border-radius: 12px; }

/* METRICS */
.metrics-strip { background: rgba(255, 250, 242, .92); border-bottom: 1px solid var(--line); }
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 70px;
}
.metric-item {
    display: grid;
    grid-template-columns: 44px auto;
    column-gap: 14px;
    align-content: center;
    padding: 12px 30px;
    border-left: 1px solid var(--line);
}
.metric-item:first-child { border-left: 0; }
.metric-item svg { grid-row: span 2; width: 36px; height: 36px; color: var(--amber); }
.metric-item:nth-child(even) svg { color: var(--teal); }
.metric-item strong { font-size: .95rem; }
.metric-item span { color: #1f2d36; font-size: .92rem; }

/* SECTIONS */
.section { padding: 34px 0; }
.section-heading { text-align: center; margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(1.6rem, 2.2vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.service-card, .project-card {
    background: rgba(255, 253, 250, .88);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(84, 59, 29, .055);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(8, 121, 134, .28);
}
.service-card { padding: 22px 18px; min-height: 158px; }
.card-icon { color: var(--teal); margin-bottom: 12px; }
.service-card:nth-child(3n) .card-icon, .service-card:nth-child(6) .card-icon { color: var(--amber); }
.card-icon svg { width: 38px; height: 38px; }
.service-card h3, .project-card h3 { margin-bottom: 8px; font-size: 1rem; line-height: 1.15; }
.service-card p, .project-card p { margin-bottom: 12px; color: #304250; font-size: .92rem; }
.service-card a, .project-card a, .footer-cta a { color: var(--teal-dark); font-weight: 900; font-size: .9rem; }

/* ABOUT */
.about-band {
    padding: 20px 0;
    background: linear-gradient(90deg, var(--surface-2), #fffaf4);
    border-block: 1px solid var(--line);
}
.about-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.3fr) 2fr;
    gap: 34px;
    align-items: center;
}
.about-copy { display: flex; align-items: center; gap: 22px; }
.about-copy img {
    width: 96px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(40, 26, 11, .16);
}
.about-copy p:last-child { margin: 0; font-size: .95rem; color: #263642; }
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.about-stats article {
    min-height: 86px;
    padding: 10px 18px;
    border-left: 1px solid var(--line);
    display: grid;
    grid-template-columns: 52px 1fr;
    align-content: center;
    align-items: center;
}
.about-stats svg { grid-row: span 2; width: 48px; height: 48px; color: var(--teal); }
.about-stats strong { font-size: 1.1rem; color: var(--teal-dark); }
.about-stats span { font-weight: 700; }

/* TECH */
.tech-section { padding: 20px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.tech-grid { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: center; }
.tech-grid h2 { color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; margin: 0; }
.tech-list { display: grid; grid-template-columns: repeat(10, minmax(70px, 1fr)); gap: 14px; align-items: center; }
.tech-pill {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid transparent;
    font-weight: 900;
    color: #16313a;
    box-shadow: 0 6px 18px rgba(38, 26, 12, .05);
    transition: transform .22s ease, border-color .22s ease;
}
.tech-pill:hover { transform: translateY(-3px); border-color: var(--line); }
.tech-oracle { color: #e32222; }
.tech-mysql, .tech-dotnet, .tech-wazuh, .tech-pfsense { color: #087986; }
.tech-php { color: #58639a; }
.tech-power-bi { color: #d99b00; }

/* PROJECTS */
.projects { padding-top: 24px; }
.compact { margin-bottom: 10px; text-align: left; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px; align-items: center; }
.project-card img { width: 180px; height: 100px; object-fit: cover; border-radius: 9px; }

/* FOOTER */
.site-footer {
    padding-top: 34px;
    background: linear-gradient(180deg, #fff9f0, #fff4e5);
    border-top: 1px solid var(--line);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1.25fr 1.2fr .8fr 1.4fr;
    gap: 34px;
    align-items: start;
}
.footer-brand img { width: 220px; max-height: 86px; object-fit: contain; object-position: left center; margin-bottom: 16px; }
.footer-brand p, .footer-cta p { color: #263642; max-width: 270px; }
.site-footer h2 { font-size: 1rem; margin-bottom: 14px; }
.footer-contact { font-style: normal; }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.footer-contact svg { color: var(--text); }
.footer-links div { display: grid; grid-template-columns: repeat(2, minmax(90px, 1fr)); gap: 12px 28px; }
.footer-links a:hover, .footer-cta a:hover, .service-card a:hover, .project-card a:hover { color: var(--amber); }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-weight: 900;
}
.social-icons a:nth-child(2) { background: #17232d; font-size: .76rem; }
.copyright { margin-top: 30px; padding: 14px 20px; border-top: 1px solid var(--line); text-align: center; color: #52616c; font-size: .9rem; }

/* ANIMACIONES */
.section-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatSoft {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* RESPONSIVE */
@media (max-width: 1280px) {
    .header-grid { grid-template-columns: auto auto; }
    .main-nav { order: 3; grid-column: 1 / -1; justify-self: center; }
    .btn-agenda { grid-column: 2; grid-row: 1; }
    .hero-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero-visual { max-width: 880px; margin-inline: auto; }
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card { grid-template-columns: 220px 1fr; }
    .project-card img { width: 220px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .header-grid { min-height: 64px; grid-template-columns: 1fr auto; gap: 14px; }
    .brand-logo-wrap { width: 136px; height: 54px; }
    .brand-logo { max-width: 136px; max-height: 54px; }
    .brand-divider, .brand-person { display: none; }
    .btn-agenda { display: none; }
    .nav-toggle {
        display: inline-grid;
        place-items: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: 10px;
    }
    .nav-toggle span:not(.sr-only) { width: 22px; height: 2px; background: var(--text); display: block; }
    .main-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding: 8px 0 16px;
        flex-direction: column;
        gap: 0;
        background: #fffaf2;
        border-top: 1px solid var(--line);
    }
    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; padding: 12px 8px; text-align: center; }
    .main-nav a::after { bottom: 4px; left: 42%; right: 42%; }
    .hero { padding-top: 20px; }
    .hero-actions { gap: 12px; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-item { border-top: 1px solid var(--line); }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .about-copy { align-items: flex-start; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: 1fr; }
    .tech-list { grid-template-columns: repeat(5, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
    .hero-tags { font-size: .92rem; }
    .btn { width: 100%; }
    .metrics-grid, .cards-grid, .about-stats, .footer-grid { grid-template-columns: 1fr; }
    .metric-item, .about-stats article { border-left: 0; border-top: 1px solid var(--line); }
    .about-copy { flex-direction: column; text-align: center; align-items: center; }
    .tech-list { grid-template-columns: repeat(2, 1fr); }
    .project-card { grid-template-columns: 1fr; }
    .project-card img { width: 100%; height: auto; max-height: 180px; }
    .footer-brand img { width: 180px; }
}

/* Respeta usuarios que prefieren menos movimiento. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .section-reveal { opacity: 1; transform: none; }
}
