/* =========================
   VARIABLES
========================= */

:root {
    --primary-color: #163a70;
    --primary-dark: #0f2a52;
    --primary-deep: #091d3a;

    --secondary-color: #24c4d8;
    --secondary-dark: #1599aa;

    --text-color: #243040;
    --text-light: #5f6b7a;

    --background-color: #ffffff;
    --background-soft: #f4f8fc;
    --background-blue: #eaf4fa;

    --border-color: #dbe5ee;

    --shadow-small: 0 8px 24px rgba(15, 42, 82, 0.08);
    --shadow-medium: 0 16px 40px rgba(15, 42, 82, 0.12);
    --shadow-large: 0 28px 70px rgba(15, 42, 82, 0.16);

    --border-radius-small: 12px;
    --border-radius: 20px;
    --border-radius-large: 30px;

    --content-width: 1200px;
    --text-width: 780px;
}


/* =========================
   RESET Y BASE
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    overflow-x: hidden;

    color: var(--text-color);
    background-color: var(--background-color);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

p {
    margin-top: 0;
}

h1,
h2,
h3 {
    margin-top: 0;

    color: var(--primary-dark);
    line-height: 1.18;
}

h1 {
    overflow-wrap: break-word;

    font-size: clamp(2.5rem, 4.8vw, 4.3rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.3rem;
}

section {
    padding: 110px 24px;
    scroll-margin-top: 90px;
}

.section-header {
    width: min(100%, var(--text-width));
    margin: 0 auto 54px;

    text-align: center;
}

.section-header h2 {
    margin-bottom: 22px;
}

.section-label,
.hero-label {
    margin-bottom: 18px;

    color: var(--secondary-dark);

    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.section-intro {
    margin-bottom: 0;

    color: var(--text-light);

    font-size: 1.08rem;
    line-height: 1.75;
}


/* =========================
   SKIP LINK
========================= */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;

    padding: 12px 18px;

    border-radius: 8px;

    color: #ffffff;
    background-color: var(--primary-dark);

    text-decoration: none;

    transform: translateY(-180%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}


/* =========================
   NAVEGACIÓN
========================= */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;

    min-height: 72px;
    padding: 16px 24px;

    background-color: rgba(22, 58, 112, 0.96);
    box-shadow: 0 4px 20px rgba(15, 42, 82, 0.15);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

nav a {
    position: relative;

    color: #ffffff;

    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 100%;
    height: 2px;

    background-color: var(--secondary-color);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}

nav a:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

nav a:hover::after {
    transform: scaleX(1);
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(280px, 0.9fr);

    align-items: center;
    gap: clamp(40px, 5vw, 70px);

    min-height: calc(100vh - 72px);

    padding:
        95px
        max(24px, calc((100vw - var(--content-width)) / 2));

    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(36, 196, 216, 0.22),
            transparent 30%
        ),
        radial-gradient(
            circle at 72% 80%,
            rgba(22, 58, 112, 0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f9fc 52%,
            #e9f6fa 100%
        );
}

.hero::before {
    content: "";

    position: absolute;
    right: -170px;
    bottom: -190px;

    width: 440px;
    height: 440px;

    border-radius: 50%;

    background-color: rgba(22, 58, 112, 0.06);
}

.hero::after {
    content: "";

    position: absolute;
    top: 110px;
    right: 8%;

    width: 110px;
    height: 110px;

    border: 20px solid rgba(36, 196, 216, 0.08);
    border-radius: 50%;
}

.hero-text {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 700px;
    min-width: 0;
}

.hero h1 {
    margin-bottom: 26px;
}

.hero-slogan {
    margin-bottom: 24px;

    color: var(--primary-color);

    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.45;
}

.hero-text > p:not(.hero-label):not(.hero-slogan) {
    max-width: 650px;
    margin-bottom: 34px;

    color: var(--text-light);

    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 20px;
}

.hero-photo {
    position: relative;
    z-index: 2;

    display: block;

    width: min(100%, 360px);
    height: auto;

    object-fit: contain;

    filter: drop-shadow(
        0 24px 45px rgba(15, 42, 82, 0.18)
    );
}


/* =========================
   BOTONES
========================= */

.cta-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    padding: 15px 27px;

    border: 2px solid var(--primary-color);
    border-radius: 999px;

    font-weight: 800;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cta-button {
    color: #ffffff;
    background-color: var(--primary-color);

    box-shadow: 0 10px 24px rgba(22, 58, 112, 0.18);
}

.cta-button:hover {
    border-color: var(--secondary-dark);
    background-color: var(--secondary-dark);

    transform: translateY(-3px);

    box-shadow: 0 14px 28px rgba(21, 153, 170, 0.24);
}

.secondary-button {
    color: var(--primary-color);
    background-color: transparent;
}

.secondary-button:hover {
    color: #ffffff;
    background-color: var(--primary-color);

    transform: translateY(-3px);
}


/* =========================
   PROBLEMA
========================= */

.problem {
    background-color: var(--background-color);
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;

    width: min(100%, 940px);
    margin: 0 auto;
}


/* =========================
   SOLUCIÓN
========================= */

.services {
    background-color: var(--background-soft);
}


/* =========================
   TARJETAS GENERALES
========================= */

.service-cards,
.benefit-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;

    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.card,
.benefit-card {
    position: relative;
    overflow: hidden;

    padding: 34px 28px;

    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);

    background-color: #ffffff;
    box-shadow: var(--shadow-small);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.card::before,
.benefit-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--primary-color),
            var(--secondary-color)
        );
}

.card:hover,
.benefit-card:hover {
    border-color: rgba(36, 196, 216, 0.5);

    transform: translateY(-7px);

    box-shadow: var(--shadow-medium);
}

.card-number {
    display: inline-block;
    margin-bottom: 22px;

    color: var(--secondary-dark);

    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.card h3,
.benefit-card h3 {
    margin-bottom: 14px;
}

.card p,
.benefit-card p {
    margin-bottom: 0;

    color: var(--text-light);
}


/* =========================
   PROCESO
========================= */

.process {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(36, 196, 216, 0.13),
            transparent 28%
        ),
        var(--primary-dark);
}

.process .section-label {
    color: var(--secondary-color);
}

.process .section-header h2 {
    color: #ffffff;
}

.process .section-intro {
    color: rgba(255, 255, 255, 0.75);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;

    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.process-step {
    padding: 38px 30px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--border-radius);

    background-color: rgba(255, 255, 255, 0.06);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.process-step:hover {
    border-color: rgba(36, 196, 216, 0.42);
    background-color: rgba(255, 255, 255, 0.1);

    transform: translateY(-5px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    margin-bottom: 24px;

    border-radius: 50%;

    color: var(--primary-dark);
    background-color: var(--secondary-color);

    font-size: 1.1rem;
    font-weight: 900;
}

.process-step h3 {
    margin-bottom: 14px;

    color: #ffffff;
}

.process-step p {
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.76);
}


/* =========================
   BENEFICIOS
========================= */

.benefits {
    background-color: var(--background-blue);
}


/* =========================
   SOBRE MÍ
========================= */

.about {
    background-color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(320px, 0.95fr);

    align-items: center;
    gap: 80px;

    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.about-text h2 {
    margin-bottom: 28px;
}

.about-text > p {
    margin-bottom: 22px;

    color: var(--text-light);

    font-size: 1.06rem;
}

.about-text blockquote {
    margin: 32px 0 0;
    padding: 24px 28px;

    border-left: 5px solid var(--secondary-color);
    border-radius:
        0
        var(--border-radius-small)
        var(--border-radius-small)
        0;

    color: var(--primary-dark);
    background-color: var(--background-soft);

    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.5;
}

.about-principles {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.principle {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;

    padding: 25px;

    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);

    background-color: var(--background-soft);
}

.principle > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    color: #ffffff;
    background-color: var(--primary-color);

    font-size: 0.88rem;
    font-weight: 900;
}

.principle h3 {
    margin-bottom: 8px;

    font-size: 1.13rem;
}

.principle p {
    margin-bottom: 0;

    color: var(--text-light);
}


/* =========================
   BLOG
========================= */

.blog-preview {
    background-color: var(--background-soft);
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;

    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.blog-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 390px;
    padding: 36px 30px;

    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);

    background-color: #ffffff;
    box-shadow: var(--shadow-small);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.blog-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--primary-color),
            var(--secondary-color)
        );
}

.blog-card:hover {
    border-color: rgba(36, 196, 216, 0.5);

    transform: translateY(-7px);

    box-shadow: var(--shadow-medium);
}

.blog-category {
    margin-bottom: 18px;

    color: var(--secondary-dark);

    font-size: 0.77rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.blog-card h3 {
    margin-bottom: 18px;

    font-size: 1.45rem;
    line-height: 1.3;
}

.blog-card-content > p:not(.blog-category) {
    margin-bottom: 28px;

    color: var(--text-light);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;
    margin-top: auto;

    color: var(--primary-color);

    font-weight: 800;
    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.blog-link:hover {
    gap: 13px;

    color: var(--secondary-dark);
}

.blog-actions {
    display: flex;
    justify-content: center;

    margin-top: 46px;
}


/* =========================
   CONTACTO
========================= */

.contact {
    text-align: center;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(36, 196, 216, 0.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            rgba(22, 58, 112, 0.99),
            rgba(15, 42, 82, 1)
        );
}

.contact-content {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.contact .section-label {
    color: var(--secondary-color);
}

.contact h2 {
    max-width: 800px;
    margin-right: auto;
    margin-bottom: 24px;
    margin-left: auto;

    color: #ffffff;
}

.contact-content > p:not(.section-label) {
    max-width: 750px;
    margin-right: auto;
    margin-bottom: 34px;
    margin-left: auto;

    color: rgba(255, 255, 255, 0.78);

    font-size: 1.08rem;
}

.contact .cta-button {
    margin-bottom: 60px;

    border-color: var(--secondary-color);

    color: var(--primary-dark);
    background-color: var(--secondary-color);
}

.contact .cta-button:hover {
    border-color: #ffffff;
    background-color: #ffffff;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.contact-item {
    padding: 30px 22px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--border-radius);

    background-color: rgba(255, 255, 255, 0.07);
}

.contact-item h3 {
    margin-bottom: 12px;

    color: var(--secondary-color);
}

.contact-item p {
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.82);
}

.contact-item a {
    color: #ffffff;

    text-decoration: none;
}

.contact-item a:hover {
    color: var(--secondary-color);
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 70px 24px 35px;

    color: rgba(255, 255, 255, 0.74);
    background-color: var(--primary-deep);

    text-align: center;
}

.footer-title {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 1.65rem;
    letter-spacing: -0.02em;
}

.footer-slogan {
    margin-bottom: 28px;

    color: var(--secondary-color);

    font-weight: 700;
    line-height: 1.65;
}

.footer p {
    margin-bottom: 10px;
}

.footer a {
    color: #ffffff;

    text-decoration: none;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;

    width: min(100%, 700px);
    margin: 32px auto 0;
    padding-top: 28px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.copyright {
    margin-top: 32px;

    color: rgba(255, 255, 255, 0.48);

    font-size: 0.9rem;
}


/* =========================
   PORTÁTIL Y TABLET
========================= */

@media (max-width: 1150px) {

    .hero {
        grid-template-columns: 1fr;
        gap: 50px;

        min-height: auto;
        padding-top: 85px;
        padding-bottom: 85px;

        text-align: center;
    }

    .hero-text {
        max-width: 780px;
        margin: 0 auto;
    }

    .hero-text > p:not(.hero-label):not(.hero-slogan) {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        width: min(100%, 520px);
        margin: 0 auto;
    }

    .service-cards,
    .benefit-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 55px;

        max-width: 820px;
    }
}


/* =========================
   TABLET PEQUEÑA
========================= */

@media (max-width: 900px) {

    /* Navegación */

    nav {
        gap: 18px;
        padding: 16px 20px;
    }

    nav a {
        font-size: 0.9rem;
    }

    /* Hero */

    .hero {
        gap: 45px;
        padding: 75px 24px;
        text-align: center;
    }

    .hero-text {
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-photo {
        width: min(100%, 320px);
    }

    /* Grids */

    .problem-cards,
    .process-steps {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .service-cards,
    .benefit-cards,
    .blog-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-info {
        grid-template-columns: 1fr;
        max-width: 720px;
        margin: 0 auto;
    }

    /* About */

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

    .about-principles {
        max-width: 700px;
        margin: 0 auto;
    }
}
/* =========================
   MÓVIL
========================= */

@media (max-width: 700px) {

    /* NAVEGACIÓN */

    nav {
        position: relative;

        flex-wrap: wrap;
        gap: 12px 18px;

        padding: 16px;
    }

    nav a {
        font-size: 0.88rem;
    }


    /* SECCIONES */

    section {
        padding: 72px 18px;
    }


    /* HERO */

    .hero {
        gap: 42px;

        min-height: auto;
        padding: 64px 18px 70px;

        text-align: center;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero h1 {
        margin-bottom: 22px;

        font-size: clamp(2.2rem, 10.5vw, 2.75rem);
        line-height: 1.08;
    }

    .hero-slogan {
        margin-bottom: 20px;

        font-size: 1.1rem;
        line-height: 1.45;
    }

    .hero-text > p:not(.hero-label):not(.hero-slogan) {
        margin-right: auto;
        margin-bottom: 28px;
        margin-left: auto;

        font-size: 1rem;
        line-height: 1.65;
    }


    /* BOTONES */

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-button,
    .secondary-button {
        width: 100%;
        max-width: 390px;

        padding: 13px 20px;

        font-size: 0.92rem;
        line-height: 1.35;
    }


    /* IMAGEN CIRCULAR */

    .hero-visual {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0;
    }

    .hero-photo {
        width: min(100%, 280px);
        height: auto;
    }


    /* TARJETAS */

    .problem-cards,
    .service-cards,
    .process-steps,
    .benefit-cards,
    .blog-cards,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .blog-card {
        min-height: auto;
    }

    .card,
    .benefit-card,
    .process-step,
    .blog-card,
    .contact-item {
        padding: 27px 22px;
    }


    /* SOBRE MÍ */

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

    .about-text blockquote {
        padding: 21px;

        font-size: 1.08rem;
    }

    .principle {
        grid-template-columns: auto 1fr;
        gap: 15px;
    }


    /* FOOTER */

    .footer-links {
        flex-direction: column;
        gap: 14px;
    }
}
/* =========================
   MÓVILES PEQUEÑOS
========================= */

@media (max-width: 390px) {

    .hero h1 {
        font-size: 2.08rem;
    }

    h2 {
        font-size: 1.85rem;
    }

    nav {
        gap: 9px 14px;
    }

    nav a {
        font-size: 0.82rem;
    }

    .hero-label,
    .section-label {
        font-size: 0.72rem;
    }

    .hero-visual {
        max-width: 270px;
    }

    .hero-photo {
        width: min(100%, 240px);
    }

    .cta-button,
    .secondary-button {
        font-size: 0.87rem;
    }

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

/* =========================
   ACCESIBILIDAD
========================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}