/* =========================================================
   MARCO POLO AGENCIA — styles.css
   Paleta: #000814 / #001D3D / #003566 / #FFC300
   ========================================================= */

:root {
    --ink: #000814;
    --navy: #001d3d;
    --blue: #003566;
    --gold: #ffc300;
    --gold-soft: #ffd85a;
    --white: #f8fafc;
    --muted: #9caec0;
    --text-dark: #4f6175;
    --line-dark: rgba(255, 255, 255, 0.14);
    --line-light: #dbe3eb;
    --container: 1180px;
    --header-height: 90px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: Manrope, Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 0.82;
    transition: opacity 0.2s ease;
}

.brand-iso {
    height: 30px;
    width: auto;
   
    transition: transform 0.3s ease;
    flex-shrink: 0;
    
}

.brand:hover .brand-iso {
    transform: rotate(-8deg) scale(1.05);
}

button,input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* Estructura global */
.wrap {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding: 132px 0;
    position: relative;
}

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

.dark {
    background: var(--navy);
    color: var(--white);
}

/* Header y navegación */
header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 30;
}

.nav {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--white);
}

.brand {
    display: inline-block;
    color: var(--white);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 0.82;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.85;
}

.brand i {
    color: var(--gold);
    font-style: normal;
}

.brand small {
    margin-top: 6px;
    color: #d3dfec;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-align: right;
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav nav a {
    position: relative;
    color: #dbe5ef;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav nav a:not(.cta)::after {
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    content: "";
    transition: width 0.25s ease;
}

.nav nav a:not(.cta):hover {
    color: var(--white);
}

.nav nav a:not(.cta):hover::after {
    width: 100%;
}

.nav .cta {
    border: 1px solid var(--gold);
    padding: 9px 16px;
    color: var(--gold);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav .cta:hover {
    transform: translateY(-2px);
    background: var(--gold);
    color: var(--ink);
}

#menu {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: var(--gold);
    font-size: 1.35rem;
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(860px, 100vh);
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 24%, rgba(0, 93, 177, 0.4), transparent 19%),
        radial-gradient(circle at 95% 45%, rgba(255, 195, 0, 0.17), transparent 15%),
        linear-gradient(118deg, var(--ink) 12%, var(--navy) 63%, #0d365f 100%);
    color: var(--white);
}

.hero::before {
    position: absolute;
    top: 18%;
    right: -11rem;
    width: 33rem;
    height: 33rem;
    border: 1px solid rgba(255, 195, 0, 0.28);
    border-radius: 50%;
    box-shadow: 0 0 130px rgba(255, 195, 0, 0.15);
    content: "";
    animation: pulse-orbit 7s ease-in-out infinite;
}

.hero::after {
    position: absolute;
    right: 12%;
    bottom: 12%;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: rgba(0, 125, 235, 0.19);
    box-shadow: 0 0 100px rgba(0, 125, 235, 0.25);
    content: "";
    animation: float-orbit 6s ease-in-out infinite;
}

.grid {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: linear-gradient(to bottom, black 5%, transparent 88%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 88px;
}

.tag,
.num {
    margin: 0;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4;
}

.hero h1 {
    max-width: 950px;
    margin: 20px 0 24px;
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(3.25rem, 7.4vw, 7.15rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.94;
}

.hero h1 em {
    display: block;
    color: var(--gold);
    font-style: normal;
}

.intro {
    max-width: 610px;
    margin: 0;
    color: #c7d5e3;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 35px;
    border: 1px solid var(--gold);
    padding: 0 23px;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.button:hover {
    transform: translateY(-3px);
    background: var(--gold-soft);
    box-shadow: 0 12px 30px rgba(255, 195, 0, 0.18);
}

.button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 46px;
    margin-top: 88px;
}

.stats b {
    display: grid;
    color: var(--gold);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
}

.stats small {
    margin-top: 4px;
    color: #9caec0;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 400;
}

/* Propuesta y metodología */
.split {
    display: grid;
    grid-template-columns: minmax(155px, 0.65fr) minmax(0, 1.6fr);
    gap: 90px;
}

.split > div {
    max-width: 750px;
}

.light .num,
.light .blue {
    color: var(--blue);
}

h2,
h3 {
    margin: 0;
    font-family: "Manrope", Arial, sans-serif;
}

h2 {
    margin: 15px 0 27px;
    font-size: clamp(2.7rem, 5.2vw, 5.25rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.98;
}

.light p:not(.tag):not(.num) {
    max-width: 700px;
    color: var(--text-dark);
}

.light .lead {
    color: #253c56 !important;
    font-size: 1.18rem;
    font-weight: 500;
}

.light p + p {
    margin-top: 18px;
}
/* 1) TÍTULOS: entrada desde el centro (zoom + fade) */
.reveal-center {
    opacity: 0;
    transform: scale(0.55);
    transform-origin: center center;
    transition:
        opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
}

.reveal-center.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Respeta a usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .reveal-center,
    .reveal-card {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* 2) TARJETAS DE SERVICIOS: animación sutil de aparición */
.cards article.reveal-card {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    border: 1px solid transparent;
    border-radius: 14px;
}

.cards article.reveal-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Hover discreto, sin rotaciones ni saltos grandes */
.cards article.reveal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.cards article.reveal-card b {
    display: inline-block;
    transition: color 0.35s ease, transform 0.35s ease;
}

.cards article.reveal-card:hover b {
    transform: translateY(-2px);
}

.cards article.reveal-card h3 {
    transition: color 0.3s ease;
}

/* Tarjetas de servicios */
.dark > .wrap > h2 {
    max-width: 750px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 54px;
    border: 1px solid var(--line-dark);
    background: var(--line-dark);
}

.cards article {
    position: relative;
    min-height: 285px;
    overflow: hidden;
    padding: 30px;
    background: rgba(0, 29, 61, 0.88);
    transition: transform 0.28s ease, background 0.28s ease;
}

.cards article::after {
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 95px;
    height: 95px;
    border: 1px solid rgba(255, 195, 0, 0.28);
    border-radius: 50%;
    content: "";
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.cards article:hover {
    transform: translateY(-6px);
    background: var(--blue);
}

.cards article:hover::after {
    opacity: 1;
    transform: scale(1.15);
}

.cards article > b {
    color: var(--gold);
    font-size: 0.73rem;
    letter-spacing: 0.1em;
}

.cards h3 {
    max-width: 260px;
    margin-top: 55px;
    font-size: 1.28rem;
    line-height: 1.2;
}

.cards p {
    margin-bottom: 0;
    color: #a8b8c9;
    font-size: 0.93rem;
}

/* Lista de metodología */
.split ol {
    margin: 40px 0 0;
    border-top: 1px solid var(--line-light);
    padding: 0;
    list-style: none;
}

.split li {
    position: relative;
    padding: 21px 0 21px 42px;
    border-bottom: 1px solid var(--line-light);
    color: var(--text-dark);
}

.split li::before {
    position: absolute;
    top: 22px;
    left: 0;
    color: var(--gold);
    content: "0" counter(list-item);
    font-size: 0.76rem;
    font-weight: 700;
}

.split li b {
    color: var(--blue);
}

/* Contacto */
.contact {
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 14%, rgba(255, 195, 0, 0.2), transparent 18%),
        linear-gradient(133deg, #003566 0%, #001d3d 48%, #000814 100%);
    color: var(--white);
}

.contact::after {
    position: absolute;
    right: -100px;
    bottom: -130px;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(255, 195, 0, 0.18);
    border-radius: 50%;
    content: "";
}

.contact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 90px;
}

.contact-grid > div > p:not(.tag):not(.goldtxt) {
    max-width: 560px;
    color: #bac9d8;
}

.goldtxt {
    margin-top: 35px;
    color: var(--gold);
    font-size: 0.95rem;
    line-height: 2;
}

form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
    border: 1px solid var(--line-dark);
    padding: 34px;
    background: rgba(0, 8, 20, 0.46);
    backdrop-filter: blur(8px);
}

form label {
    display: grid;
    gap: 8px;
    color: #dbe6f0;
    font-size: 0.78rem;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    outline: none;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

select option {
    background: var(--white);
    color: var(--ink);
}

textarea {
    min-height: 132px;
    resize: vertical;
}

::placeholder {
    color: #9daebf;
}

.wide {
    grid-column: 1 / -1;
}

.bot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#msg {
    min-height: 23px;
    margin: 0;
    color: #d9e5f0;
    font-size: 0.86rem;
}

/* Footer */
footer {
    padding: 25px 20px;
    background: var(--ink);
    color: #8fa1b4;
    font-size: 0.78rem;
    text-align: center;
}

/* Animaciones decorativas */
@keyframes pulse-orbit {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes float-orbit {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -24px, 0); }
}

/* Responsive */
@media (max-width: 900px) {
    .section {
        padding: 100px 0;
    }

    .split,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

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

    .contact-grid {
        gap: 55px;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 76px;
    }

    .wrap {
        width: min(100% - 32px, var(--container));
    }

    .nav {
        min-height: var(--header-height);
    }

    .brand {
        font-size: 1.45rem;
    }

    #menu {
        display: grid;
        place-items: center;
    }

    .nav nav {
        position: absolute;
        top: 67px;
        right: 16px;
        left: 16px;
        display: none;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line-dark);
        padding: 10px;
        background: rgba(0, 29, 61, 0.98);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
    }

    .nav nav.open {
        display: flex;
    }

    .nav nav a {
        padding: 12px;
    }

    .nav nav a:not(.cta)::after {
        display: none;
    }

    .nav .cta {
        margin-top: 5px;
        text-align: center;
    }

    .hero {
        min-height: 740px;
    }

    .hero::before {
        top: 15%;
        right: -13rem;
        width: 27rem;
        height: 27rem;
    }

    .hero h1 {
        font-size: clamp(3.15rem, 14vw, 5rem);
    }

    .hero-content {
        padding-top: 70px;
    }

    .stats {
        gap: 20px;
        margin-top: 62px;
    }

    .stats b {
        font-size: 1.27rem;
    }

    .stats small {
        font-size: 0.66rem;
    }

    .section {
        padding: 78px 0;
    }

    .cards {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .cards article {
        min-height: 235px;
    }

    form {
        grid-template-columns: 1fr;
        padding: 23px;
    }

    .wide {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-iso {
    height: 30px;
    width: auto;
    display: block;
    transition: transform .3s ease;
}

.brand:hover .brand-iso {
    transform: rotate(-8deg) scale(1.05);
}
 .hero {
    position: relative;
    overflow: hidden;
}

.hero-wheel {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 320px;
    height: 320px;
    transform: translateY(-50%);
    opacity: .18;
    pointer-events: none;
    z-index: 1;
}

.hero-wheel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: wheel-spin 24s linear infinite;
}

@keyframes wheel-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .hero-wheel {
        width: 200px;
        height: 200px;
        right: -20px;
        opacity: .12;
    }
}   
 .hero h1.hero-title-compass {
    background-image: url('assets/img/logo-marco-polo-iso-b.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* La parte en dorado ("llegar más lejos") se mantiene sólida, sin textura */
.hero h1.hero-title-compass em {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
}

/* Respaldo para navegadores que no soporten background-clip: text */
@supports not (background-clip: text) {
    .hero h1.hero-title-compass {
        background: none;
        color: var(--white);
        -webkit-text-fill-color: var(--white);
    }
}   

.split-media {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.split-img {
     width: 100%;
    max-width: 340px;
    border-radius: 12px;
    object-fit: contain;
    display: block;
}

@media (max-width: 900px) {
    .split-media {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .split-img {
        max-width: 90px;
    }
}

