@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
    scroll-padding-top:90px;
}

body {
    margin:0;
    background:#fafbf9;
    color:var(--ink);
    font:16px 'DM Sans',sans-serif;
}

a {
    color:inherit;
    text-decoration:none;
}

button {
    font:inherit;
    cursor:pointer;
}

nav {
    height:88px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    max-width:1320px;
    margin:auto;
    padding:0 48px;
    border-bottom:1px solid var(--line);
}

.logo {
    font:800 36px Manrope,sans-serif;
    letter-spacing:-2px;
}

.logo i {
    color:#649bce;
    font-style:normal;
}

.links {
    display:flex;
    gap:30px;
    align-items:center;
    font-size:14px;
}

.pill {
    border:1px solid var(--ink);
    border-radius:40px;
    padding:13px 22px;
    display:inline-flex;
    gap:24px;
    align-items:center;
}

.solid {
    background:var(--ink);
    color:white;
    border-color:var(--ink);
}

main {
    overflow:hidden;
}

.wrap {
    max-width:1320px;
    margin:auto;
    padding:0 48px;
}

.hero {
    padding-top:85px;
    padding-bottom:74px;
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:45px;
    align-items:center;
}

.eyebrow {
    font-size:16px;
    letter-spacing:2px;
    text-transform:uppercase;
    display:flex;
    gap:12px;
    align-items:center;
    font-weight:700;
}

.dot {
    height:7px;
    width:7px;
    border-radius:50%;
    background:#5b9acd;
    display:inline-block;
}

h1 {
    font:500 clamp(42px,5.2vw,74px)/1.08 Manrope,sans-serif;
    letter-spacing:-3px;
    margin:26px 0;
}

h1 em {
    font-style:normal;
    color:#5c92c3;
}

p {
    line-height:1.7;
    color:var(--muted);
}

.hero p {
    max-width:490px;
    font-size:17px;
}

.actions {
    display:flex;
    gap:14px;
    margin:30px 0;
}

.note {
    font-size:12px;
    color:var(--muted);
}

.visual {
    position:relative;
    height:460px;
    background:#e5eef5;
    border-radius:48% 48% 12% 12%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.orb {
    position:absolute;
    width:260px;
    height:260px;
    border:1px solid #a8c6de;
    border-radius:50%;
    right:-40px;
    top:10px;
}

.screen {
    width:90%;
    background:white;
    border:7px solid #173449;
    border-radius:13px;
    box-shadow:0 30px 60px #17344926;
    transform:rotate(-5deg);
    overflow:hidden;
}

.screenbar {
    background:#f2f5f8;
    padding:9px;
    font-size:8px;
    color:#6d8391;
}

.dashboard {
    display:grid;
    grid-template-columns:65px 1fr;
    min-height:235px;
}

.sidebar {
    background:#19374c;
    padding:18px 9px;
    color:#d5e4ef;
    font-size:7px;
    line-height:3;
}

.dashbody {
    padding:22px;
}

.dashbody h3 {
    font-size:14px;
    margin:0 0 20px;
}

.stats {
    display:flex;
    gap:8px;
}

.stat {
    background:#f0f5f9;
    padding:10px;
    flex:1;
    font-size:7px;
    color:#61788a;
}

.stat b {
    display:block;
    font-size:19px;
    color:#19374c;
    margin-top:6px;
}

.chart {
    height:80px;
    display:flex;
    align-items:end;
    gap:10px;
    border-bottom:1px solid #cad9e3;
    margin-top:20px;
}

.chart span {
    flex:1;
    background:#76aadb;
    border-radius:3px 3px 0 0;
}

.phone {
    position:absolute;
    right:-3px;
    bottom:20px;
    background:#fff;
    width:130px;
    height:245px;
    border:6px solid #173449;
    border-radius:25px;
    transform:rotate(8deg);
    box-shadow:0 15px 30px #18364b25;
    padding:15px 10px;
}

.phone small {
    font-size:8px;
}

.phone h4 {
    font-size:16px;
    margin:20px 0 12px;
}

.phonebox {
    background:#e8f1f8;
    padding:12px 7px;
    margin:9px 0;
    border-radius:8px;
    font-size:8px;
}

.floating {
    position:absolute;
    left:-20px;
    bottom:10px;
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    padding:14px 20px;
    font-size:12px;
    box-shadow:0 8px 25px #1734490c;
}

.caption {
    text-align:center;
    font-size:10px;
    color:#60798d;
    margin-top:12px;
}

.section {
    padding:90px 0;
}

.sectiontop {
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:30px;
    margin-bottom:36px;
}

h2 {
    font:500 clamp(30px,3.4vw,46px)/1.17 Manrope,sans-serif;
    letter-spacing:-1.7px;
    margin:18px 0 0;
}

.sectiontop p {
    max-width:360px;
    margin:0;
    font-size:17px;
}

.services {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border-top:1px solid var(--line);
}

.service {
    padding:30px 26px 24px 0;
    border-bottom:1px solid var(--line);
    margin-right:28px;
}

.num {
    color:#7298b8;
    font-size:12px;
}

.service h3 {
    font:600 21px Manrope;
    margin:22px 0 12px;
}

.service p {
    font-size:14px;
    margin:0;
}

.projects-section {
    background:#edf2f5;
}

.filters {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:30px 0;
}

.filter {
    border:1px solid #cbd7df;
    background:transparent;
    border-radius:30px;
    padding:9px 17px;
    color:var(--muted);
    font-size:13px;
}

.filter.active {
    background:var(--ink);
    color:white;
    border-color:var(--ink);
}

.projects {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:34px 26px;
}

.project[hidden] {
    display:none;
}

.projectart {
    height:255px;
    padding:30px;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    overflow:hidden;
    border-radius:5px;
    background:#dce8ed;
}

.projectart .mini {
    background:white;
    width:80%;
    box-shadow:0 14px 30px #122a3b1a;
    border-radius:7px;
    overflow:hidden;
    transform:rotate(-3deg);
}

.minibar {
    padding:11px 14px;
    border-bottom:1px solid #e9eef1;
    font-size:10px;
    font-weight:700;
}

.minicontent {
    padding:18px;
    font-size:10px;
}

.minirow {
    display:flex;
    gap:8px;
    margin:12px 0;
}

.minirow div {
    height:45px;
    background:#eef3f7;
    flex:1;
    border-radius:4px;
}

.minilines {
    height:5px;
    background:#dde7ee;
    width:90%;
    margin:10px 0;
}

.tag {
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:1.3px;
    color:#64829a;
    margin-top:22px;
}

.project h3 {
    font:600 24px Manrope;
    margin:9px 0;
}

.project p {
    font-size:17px;
    margin:0;
    max-width:490px;
}

.projectlink {
    display:inline-block;
    font-size:13px;
    border-bottom:1px solid #8295a4;
    margin-top:15px;
    padding-bottom:4px;
}

.mint {
    background:#d7e9e1;
}

.lavender {
    background:#e5e2ef;
}

.sand {
    background:#eee4d3;
}

.dark {
    background:#17394b;
}

.mobileart {
    width:105px;
    height:207px;
    background:white;
    border:5px solid #223b4c;
    border-radius:19px;
    padding:17px 8px;
    box-shadow:0 15px 25px #122a3b24;
    transform:rotate(-8deg);
}

.mobileart:nth-child(2) {
    transform:rotate(8deg);
    margin-left:25px;
    margin-top:30px;
}

.mobileart h4 {
    font-size:10px;
    margin:10px 0;
}

.landscape {
    height:70px;
    background:linear-gradient(155deg,#b6d1c7 40%,#7c9e82 41%,#577968 65%,#38584c 66%);
    border-radius:4px;
}

.qr {
    width:75px;
    height:75px;
    margin:20px auto;
    background:repeating-conic-gradient(#173449 0% 25%,white 0% 50%) 0/13px 13px;
    border:7px solid white;
    outline:1px solid #cedce7;
}

.soon {
    position:absolute;
    top:18px;
    right:18px;
    background:#fff;
    padding:7px 12px;
    border-radius:20px;
    font-size:10px;
}

.artlabel {
    position:absolute;
    bottom:10px;
    left:14px;
    font-size:9px;
    color:#526e80;
}

.about {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:85px;
}

.about p {
    font-size:17px;
}

.principle {
    padding:18px 0;
    border-bottom:1px solid var(--line);
    display:flex;
    gap:25px;
    align-items:baseline;
}

.principle span {
    color:#75a1c4;
    font-size:12px;
}

.principle h3 {
    font-size:17px;
    font-weight:500;
    margin:0;
}

.contact {
    background:#142f41;
    color:white;
    padding:70px 0;
}

.contact h2 {
    font-size:52px;
    max-width:650px;
}

.contact p {
    color:#b6c9d6;
}

.contact .wrap {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

.contact .pill {
    background:#95bfe3;
    border:0;
    color:#142f41;
    white-space:nowrap;
}

.email {
    display:block;
    margin-top:17px;
    color:#c4d8e7;
    font-size:14px;
}

footer {
    padding:28px 0;
}

footer .wrap {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
    font-size:12px;
    color:var(--muted);
}

.footlinks {
    display:flex;
    gap:20px;
}

.menu {
    display:none;
    border:0;
    background:none;
    font-size:23px;
}

/* Iconos Phosphor */
.pill .ph {
    font-size: 20px;
}

.num .ph {
    font-size: 28px;
}

.projectlink .ph,
.footlinks .ph {
    margin-left: 6px;
    vertical-align: middle;
}

.phonebox .ph,
.floating .ph {
    margin-right: 6px;
    vertical-align: middle;
}

.play-profile {
    margin-top: 35px;
}

.projectart.projectart-image {
    height: auto;
    padding: 0;
    background: transparent;
}

.projectart-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Páginas legales */
.legal-page {
    padding: 55px 0 85px;
}

.legal-page > .wrap {
    max-width: 1060px;
}

.legal-header {
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 35px;
    color: var(--muted);
    font-size: 14px;
}

.legal-back:hover {
    color: var(--ink);
}

.legal-back .ph {
    font-size: 18px;
}

.legal-header h1 {
    margin: 20px 0 15px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.15;
    letter-spacing: -2px;
}

.legal-header > p {
    max-width: 650px;
    margin: 0;
    font-size: 17px;
}

.legal-content {
    padding-top: 30px;
}

.legal-content p,
.legal-content li,
.legal-content dd {
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted);
}

.legal-content p {
    margin: 0 0 16px;
}

.legal-content a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.legal-content a:hover {
    text-decoration-color: var(--ink);
}

.legal-section {
    margin-top: 32px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.legal-section h2,
.legal-contact h2 {
    margin: 0 0 18px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(20px, 2.5vw, 25px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.legal-details {
    margin: 0 0 22px;
    padding: 8px 24px;
    background: var(--light);
    border-radius: 14px;
}

.legal-details > div {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.legal-details > div:last-child {
    border-bottom: 0;
}

.legal-details dt {
    padding-top: 3px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.legal-details dd {
    margin: 0;
}

.legal-content ul {
    margin: 15px 0 20px;
    padding-left: 23px;
}

.legal-content li {
    margin-bottom: 12px;
}

.legal-content address {
    margin-top: 6px;
    font-style: normal;
}

.legal-contact {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 40px;
    padding: 25px;
    background: var(--light);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.legal-contact > .ph {
    flex-shrink: 0;
    color: var(--ink);
    font-size: 32px;
}

.legal-contact h2 {
    margin-bottom: 8px;
    font-size: 19px;
}

.legal-contact p {
    margin: 0;
}

.about-certification {
    margin-top: 38px;
}

.about-certification img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.about-cv {
    margin-top: 28px;
    font-size: 15px;
}

@media (max-width: 800px) {
    .about-certification {
        margin-top: 28px;
    }

    .about-certification img {
        width: 150px;
    }
}

@media (max-width: 600px) {
    .legal-page {
        padding: 35px 0 55px;
    }

    .legal-header h1 {
        letter-spacing: -1px;
    }

    .legal-details {
        padding: 8px 18px;
    }

    .legal-details > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .legal-contact {
        gap: 12px;
        padding: 20px;
    }
}

/* Tabla de la política de cookies */
.legal-table-wrap {
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.legal-table caption {
    padding: 16px;
    color: var(--ink);
    font-weight: 600;
    text-align: left;
}

.legal-table th {
    background: var(--light);
    color: var(--ink);
    font-weight: 600;
}

.legal-table th,
.legal-table td {
    padding: 16px;
    border-top: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.7;
}

.legal-table td {
    color: var(--muted);
}

.legal-table code {
    overflow-wrap: anywhere;
}

.legal-cookie-button {
    background: transparent;
    color: var(--ink);
}

/* Aviso informativo */
.cookie-notice[hidden] {
    display: none;
}

.cookie-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    max-height: calc(100dvh - 48px);
    margin: 0 auto;
    padding: 24px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 15px 55px rgba(18, 42, 59, 0.15);
}

.cookie-notice-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--light);
    color: var(--ink);
    border-radius: 14px;
    font-size: 28px;
}

.cookie-notice-content {
    flex: 1;
    min-width: 0;
}

.cookie-notice-content h2 {
    margin: 0 0 7px;
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}

.cookie-notice-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.cookie-notice-content a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-notice-button {
    flex-shrink: 0;
    justify-content: center;
}

@media (max-width: 600px) {
    .cookie-notice {
        right: 14px;
        bottom: 14px;
        left: 14px;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 14px;
        max-height: calc(100dvh - 28px);
        padding: 20px;
    }

    .cookie-notice-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 23px;
    }

    .cookie-notice-content {
        flex-basis: calc(100% - 52px);
    }

    .cookie-notice-button {
        width: 100%;
    }
}

.legal-principles {
    margin: 0;
    padding-left: 25px;
}

.legal-principles > li {
    margin-bottom: 25px;
    padding-left: 8px;
}

.legal-principles > li::marker {
    color: var(--ink);
    font-weight: 600;
}

.legal-principles h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.legal-principles p {
    margin: 0;
}

.actions .pill.solid:hover {
    background-color: #26485e;
    border-color: #26485e;
    color: #ffffff;
}

.actions .pill.solid {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hero-art {
    width: 100%;
    min-width: 0;
}

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
}

/* Títulos de los proyectos */
.project h3 {
    color: #4d82b3;
    font-size: 28px;
    font-weight: 700;
}

/* Enlaces de los proyectos */
.project .projectlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    padding: 12px 22px;
    background-color: #eaf2fa;
    border: 1px solid #c5dbee;
    border-radius: 12px;
    color: #163b58;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project .projectlink .ph {
    margin-left: 0;
    font-size: 21px;
}

.project .projectlink:hover {
    background-color: #d9e9f7;
    border-color: #76aadb;
    color: #122a3b;
    transform: translateY(-2px);
}

.project .projectlink:focus-visible {
    outline: 2px solid #163b58;
    outline-offset: 4px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    display: block;
    width: auto;
    height: 58px;
    object-fit: contain;
}

#servicios .sectiontop > p {
    max-width: 420px;
    font-size: 18px;
    line-height: 1.8;
}

#servicios .service {
    padding-top: 35px;
    padding-bottom: 30px;
}

#servicios .service h3 {
    font-size: 25px;
    line-height: 1.4;
}

#servicios .service p {
    font-size: 17px;
    line-height: 1.8;
}

#servicios .num .ph {
    font-size: 34px;
}

@media (max-width: 800px) {
    #servicios .services {
        grid-template-columns: 1fr;
    }

    #servicios .service {
        margin-right: 0;
        padding-right: 0;
    }

    #servicios .service h3 {
        font-size: 23px;
    }
}

@media (max-width: 800px) {
    .logo img {
        height: 48px;
    }
}

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

    .project .projectlink:hover {
        transform: none;
    }
}

@media(max-width:800px) {
    nav {
        padding:0 22px;
        height:74px;
    }

    .menu {
        display:block;
    }

    .links {
        display:none;
        position:absolute;
        top:74px;
        left:0;
        right:0;
        background:#fafbf9;
        padding:25px;
        z-index:9;
        border-bottom:1px solid var(--line);
        flex-direction:column;
    }

    .links.open {
        display:flex;
    }

    .wrap {
        padding:0 22px;
    }

    .hero {
        grid-template-columns:1fr;
        padding-top:45px;
        gap:30px;
    }

    h1 {
        letter-spacing:-2px;
    }

    .visual {
        height:370px;
        max-width:500px;
        width:100%;
        margin:auto;
    }

    .phone {
        right:0;
    }

    .floating {
        left:0;
    }


    .section {
        padding:60px 0;
    }

    .sectiontop {
        display:block;
    }

    .sectiontop p {
        margin-top:20px;
    }

    .services {
        grid-template-columns:1fr 1fr;
    }

    .service {
        margin-right:15px;
    }

    .service h3 {
        font-size:18px;
    }

    .projects {
        grid-template-columns:1fr;
    }

    .about {
        grid-template-columns:1fr;
        gap:25px;
    }

    .contact .wrap {
        display:block;
    }

    .contact h2 {
        font-size:36px;
    }

    .contact .pill {
        margin-top:20px;
    }

    footer .wrap {
        align-items:start;
        flex-direction:column;
    }

    .projectart {
        height:240px;
    }

}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto;
    }

}
