:root {
    --primary-color: #c8955b;
    --primary-dark: #8e6137;
    --accent-blush: #d793ab;
    --accent-rose: #f3c8d8;
    --text-dark: #2f231b;
    --text-light: #6c5a4d;
    --bg-light: #f7f1ea;
    --bg-white: #ffffff;
    --border-color: #e7d9ca;
    --shadow: 0 16px 40px rgba(67, 43, 24, 0.1);
    --shadow-hover: 0 24px 56px rgba(67, 43, 24, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

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

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    position: relative;
    padding: 48px 0 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 251, 246, 0.92), transparent 34%),
        radial-gradient(circle at right 20%, rgba(224, 191, 155, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(250, 245, 239, 0.98) 0%, rgba(243, 234, 224, 0.98) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.card-container {
    position: relative;
    z-index: 1;
}

.card {
    background: transparent;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 720px;
    padding: 36px;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(160deg, #f0dfcb 0%, #c8955b 58%, #8e6137 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.card-image > * {
    min-width: 0;
}

.hero-logo-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 182px;
    padding: 18px 16px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 56%),
        linear-gradient(160deg, rgba(255, 249, 244, 0.98), rgba(247, 227, 214, 0.94) 54%, rgba(231, 203, 177, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 26px 56px rgba(58, 31, 18, 0.22),
        0 10px 22px rgba(130, 82, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    animation: logoEntrance 0.9s ease-out 0.15s both, heroLogoFloat 5s ease-in-out 1.15s infinite;
}

.hero-logo-badge::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(214, 171, 127, 0.45), rgba(255, 255, 255, 0.75));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-logo-badge::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 26px;
    border: 1px solid rgba(200, 149, 91, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hero-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(72, 40, 21, 0.18));
}

.card-image::before {
    content: "";
    position: absolute;
    inset: -4%;
    z-index: 0;
    background-image: url("photo.jpg");
    background-size: cover;
    background-position: center top;
    filter: blur(22px) saturate(0.92) brightness(0.88);
    transform: scale(1.08);
    pointer-events: none;
}

.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(28, 22, 16, 0.58) 0%, rgba(28, 22, 16, 0.26) 42%, rgba(255, 255, 255, 0.02) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(17, 12, 8, 0.14));
    pointer-events: none;
}

.card-image img {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
    height: auto;
    max-height: 684px;
    margin-left: auto;
    align-self: flex-end;
    object-fit: contain;
    object-position: center bottom;
    border: 6px solid rgba(255, 255, 255, 0.42);
    border-radius: 28px 28px 18px 18px;
    filter: drop-shadow(0 26px 45px rgba(44, 26, 11, 0.24));
    box-shadow:
        0 24px 60px rgba(44, 26, 11, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.card-content {
    position: absolute;
    left: 36px;
    bottom: 36px;
    z-index: 3;
    width: min(100%, 430px);
    padding: 32px 30px 34px;
    color: white;
    text-align: left;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(20px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 10px 24px rgba(18, 11, 6, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.brand-mark-copy {
    min-width: 0;
}

.brand-mark-label {
    margin: 0;
    color: rgba(255, 248, 236, 0.96);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-mark-subtitle {
    margin: 2px 0 0;
    color: rgba(255, 248, 236, 0.78);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.profession {
    margin-bottom: 10px;
    color: rgba(255, 246, 237, 0.96);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.partners {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.9;
}

.card-content h1 {
    margin: 18px 0 16px;
    color: white;
    font-size: clamp(2.1rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.04em;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.card-content h1 span {
    display: block;
    font-weight: 600;
}

.card-content h1 em {
    color: #ffe3c1;
    font-style: italic;
}

.cedula {
    margin: 12px 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tagline {
    min-height: 3.4em;
    margin: 18px 0 26px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
    font-style: italic;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 12px 28px rgba(212, 165, 116, 0.24);
}

.cta-buttons .btn-primary {
    animation: ctaIntroGlow 1.2s ease-out 0.2s both, ctaPulse 3.6s ease-in-out 1.5s infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(212, 165, 116, 0.34);
}

.btn-secondary {
    position: relative;
    overflow: hidden;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
}

.cta-buttons .btn::before {
    content: "";
    position: absolute;
    top: -140%;
    left: -30%;
    width: 42%;
    height: 320%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
    transform: rotate(24deg);
    opacity: 0;
    pointer-events: none;
}

.cta-buttons .btn:hover::before {
    animation: shimmerSweep 1s ease;
    opacity: 1;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-whatsapp {
    color: white;
    background: #25d366;
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp .icon-whatsapp {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-buttons .btn {
    flex: 0 1 168px;
    min-height: 44px;
    letter-spacing: 0.2px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.services,
.plans,
.wealth,
.contact,
.contact-data {
    padding: 80px 0;
}

.services {
    background: var(--bg-white);
}

.plans {
    background: var(--bg-light);
}

.wealth {
    background: linear-gradient(180deg, #fffaf4 0%, #f6efe5 100%);
}

.section-label {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.3px;
}

.services h2,
.plans h2,
.wealth h2,
.contact h2,
.contact-data h2 {
    margin-bottom: 40px;
    color: var(--text-dark);
    font-size: clamp(2rem, 4vw, 2.625rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.services h2 em,
.plans h2 em,
.wealth h2 em,
.contact-data h2 em {
    color: var(--primary-color);
    font-style: italic;
}

.services-category {
    margin-bottom: 30px;
}

.services-category h3 {
    margin-bottom: 30px;
    color: var(--text-dark);
    font-size: 25px;
    font-weight: 600;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.wealth-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: rgba(255, 253, 250, 0.96);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 12px 28px rgba(67, 43, 24, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.plans .service-card {
    background-color: rgba(251, 246, 239, 0.98);
}

.wealth-card {
    background-color: rgba(255, 252, 248, 0.99);
}

.wealth-emoji {
    font-size: 34px;
    line-height: 1;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: inherit;
    background-size: 150px 150px;
    opacity: 0.05;
    mix-blend-mode: multiply;
}

.service-card::after,
.contact-data-card::after,
.social-contact-card::after,
.contact-qr::after,
.card-content::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 20% 20%, rgba(243, 200, 216, 0.18), rgba(243, 200, 216, 0) 38%),
        radial-gradient(circle at 80% 85%, rgba(200, 149, 91, 0.14), rgba(200, 149, 91, 0) 36%);
    opacity: 0.9;
    pointer-events: none;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow:
        0 18px 40px rgba(212, 165, 116, 0.2),
        0 0 28px rgba(243, 200, 216, 0.22);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 2px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(200, 149, 91, 0.12), rgba(142, 97, 55, 0.08));
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.service-details h4 {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.service-companies {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
}

.service-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding: 8px 0 8px 25px;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-service:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
}

.contact {
    color: white;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(135deg, #bb8751, #8e6137);
}

.contact h2 {
    margin-bottom: 20px;
    color: white;
}

.contact p {
    margin-bottom: 20px;
    font-size: 18px;
    opacity: 0.95;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    align-items: center;
}

.contact-copy {
    text-align: left;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.social-links-contact {
    margin-top: 22px;
}

.contact-qr {
    position: relative;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 30px;
    background: rgba(255, 248, 240, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
}

.qr-label {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.qr-frame {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
    border: 3px solid rgba(212, 165, 116, 0.2);
    border-radius: 32px;
    background: white;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

#page-qr {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.qr-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#page-qr.loaded + .qr-loading {
    opacity: 0;
    pointer-events: none;
}

.qr-hint {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.contact-data {
    background: var(--bg-white);
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 32px;
    align-items: start;
}

.contact-shell-copy h2 {
    margin-bottom: 28px;
}

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

.contact-data-card {
    position: relative;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fcf7f1 100%);
    box-shadow: 0 10px 24px rgba(67, 43, 24, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-data-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 32px rgba(44, 44, 44, 0.08),
        0 0 24px rgba(243, 200, 216, 0.18);
}

.contact-data-icon {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 28px;
}

.contact-data-card h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 18px;
}

.contact-data-card a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.contact-summary {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.contact-social-stack {
    display: grid;
    gap: 18px;
}

.social-contact-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 18px;
    align-items: center;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(212, 165, 116, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(200, 149, 91, 0.2), transparent 38%),
        linear-gradient(180deg, #fffdfa 0%, #f5ebdf 100%);
    box-shadow: 0 18px 40px rgba(67, 43, 24, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-contact-card::before {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -38px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.12);
    filter: blur(8px);
    pointer-events: none;
}

.social-contact-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 22px 42px rgba(44, 44, 44, 0.12),
        0 0 28px rgba(243, 200, 216, 0.18);
}

.social-contact-copy {
    position: relative;
    z-index: 1;
}

.social-contact-label {
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.social-contact-copy h3 {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 20px;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.social-contact-meta {
    margin-bottom: 14px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

.social-qr-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 190px;
    padding: 14px;
    border: 2px solid rgba(212, 165, 116, 0.18);
    border-radius: 24px;
    background: white;
    box-shadow: 0 18px 40px rgba(44, 44, 44, 0.08);
}

.social-qr-frame-compact {
    max-width: 128px;
    margin-left: auto;
    padding: 10px;
    border-radius: 20px;
}

.social-qr-frame::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(212, 165, 116, 0.22);
    border-radius: 16px;
    pointer-events: none;
}

.social-qr-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.social-contact-card-light {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    box-shadow:
        0 12px 30px rgba(67, 43, 24, 0.06),
        0 0 20px rgba(243, 200, 216, 0.12);
    backdrop-filter: blur(8px);
}

.contact-data-card,
.social-contact-card,
.service-card,
.card-content,
.contact-qr {
    max-width: 100%;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

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

.footer {
    padding: 40px 0;
    color: white;
    text-align: center;
    background: var(--text-dark);
}

.footer p {
    margin: 8px 0;
    font-size: 14px;
    opacity: 0.9;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmerSweep {
    0% {
        left: -36%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

@keyframes ctaPulse {
    0%,
    100% {
        box-shadow: 0 12px 28px rgba(212, 165, 116, 0.24);
        transform: translateY(0);
    }

    50% {
        box-shadow: 0 16px 34px rgba(212, 165, 116, 0.34);
        transform: translateY(-1px);
    }
}

@keyframes ctaIntroGlow {
    0% {
        opacity: 0.92;
        transform: translateY(4px) scale(0.985);
        box-shadow: 0 0 0 rgba(212, 165, 116, 0);
    }

    55% {
        opacity: 1;
        transform: translateY(-1px) scale(1.01);
        box-shadow: 0 18px 38px rgba(212, 165, 116, 0.36);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 12px 28px rgba(212, 165, 116, 0.24);
    }
}

@keyframes sealFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-4px) rotate(-2deg);
    }
}

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

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

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.88) rotate(-8deg);
    }

    65% {
        opacity: 1;
        transform: translateY(-2px) scale(1.04) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes mobileButtonGlow {
    0%,
    100% {
        box-shadow:
            0 16px 34px rgba(215, 147, 171, 0.28),
            0 12px 26px rgba(200, 149, 91, 0.22),
            0 0 0 rgba(255, 210, 226, 0);
        transform: translateY(0);
    }

    50% {
        box-shadow:
            0 22px 42px rgba(215, 147, 171, 0.4),
            0 14px 30px rgba(200, 149, 91, 0.3),
            0 0 24px rgba(255, 210, 226, 0.38);
        transform: translateY(-2px) scale(1.015);
    }
}

@keyframes buttonLuxeSweep {
    0% {
        transform: translateX(-160%) rotate(18deg);
        opacity: 0;
    }

    18% {
        opacity: 0.15;
    }

    42% {
        opacity: 0.72;
    }

    68% {
        opacity: 0.22;
    }

    100% {
        transform: translateX(240%) rotate(18deg);
        opacity: 0;
    }
}

@media (max-width: 980px) {
    .container {
        width: min(1200px, calc(100% - 32px));
    }

    .hero,
    .services,
    .plans,
    .wealth,
    .contact-data,
    .contact {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .card-image {
        min-height: 620px;
        padding: 24px;
    }

    .hero-logo-badge {
        top: 22px;
        right: 22px;
        width: 160px;
        padding: 15px 14px;
    }

    .card-image img {
        width: min(100%, 560px);
        max-height: 520px;
    }

    .card-content {
        left: 24px;
        bottom: 24px;
        width: min(100%, 390px);
        padding: 24px 22px 26px;
    }

    .contact-shell {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-data-grid {
        gap: 18px;
    }

    .contact-social-stack {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .hero,
    .services,
    .plans,
    .wealth,
    .contact-data,
    .contact {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .card-image {
        display: grid;
        grid-template-rows: minmax(300px, 54vw) auto;
        min-height: auto;
        padding: 16px;
        border-radius: 26px;
        align-items: stretch;
    }

    .hero-logo-badge {
        top: 16px;
        right: 16px;
        width: 138px;
        padding: 12px;
        border-radius: 24px;
    }

    .card-image img {
        grid-row: 1;
        width: min(100%, 420px);
        height: 100%;
        max-height: none;
        margin: 0 auto;
        border-width: 4px;
        border-radius: 22px 22px 14px 14px;
        object-position: center top;
    }

    .card-content {
        position: relative;
        grid-row: 2;
        left: auto;
        bottom: auto;
        width: min(100%, 88%);
        margin-left: auto;
        margin-right: auto;
        margin-top: -10px;
        padding: 22px 18px 22px;
        text-align: left;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(76, 48, 27, 0.76), rgba(94, 61, 34, 0.58));
        backdrop-filter: blur(20px);
    }

    .brand-mark {
        margin-bottom: 14px;
        padding: 9px 12px;
    }

    .brand-mark-label {
        font-size: 12px;
    }

    .brand-mark-subtitle {
        font-size: 10px;
    }

    .profession {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .partners {
        margin-bottom: 16px;
        font-size: 12px;
        line-height: 1.65;
    }

    .card-content h1 {
        margin: 14px 0;
        line-height: 1;
    }

    .cedula {
        margin: 10px 0;
    }

    .tagline {
        min-height: auto;
        margin: 14px 0 22px;
        font-size: 15px;
        line-height: 1.6;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-buttons .btn {
        width: 100%;
        flex-basis: auto;
    }

    .social-links,
    .contact-actions {
        justify-content: center;
    }

    .services-grid,
    .contact-grid,
    .contact-data-grid,
    .wealth-grid,
    .contact-social-stack {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-copy {
        text-align: center;
    }

    .contact-qr {
        padding: 22px 18px;
    }

    .qr-frame,
    .social-qr-frame {
        max-width: 220px;
        padding: 14px;
        border-radius: 22px;
    }

    .social-contact-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 20px 18px;
        gap: 12px;
        background:
            radial-gradient(circle at top right, rgba(200, 149, 91, 0.18), transparent 38%),
            linear-gradient(180deg, #fffdfa 0%, #f7ede1 100%);
    }

    .contact-data-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .contact-summary {
        margin-top: 16px;
        font-size: 13px;
        line-height: 1.7;
    }

    .social-contact-copy {
        text-align: center;
    }

    .social-contact-copy h3 {
        font-size: 19px;
    }

    .social-contact-meta {
        margin-bottom: 12px;
        font-size: 13px;
        line-height: 1.6;
    }

    .social-contact-copy .btn-service {
        align-self: center;
        width: 100%;
    }

    .social-qr-frame-compact {
        margin-left: 0;
        max-width: 160px;
    }

    .btn-large {
        width: 100%;
        padding: 14px 22px;
    }

    .btn,
    .btn-service,
    .social-link {
        position: relative;
        overflow: hidden;
        box-shadow:
            0 14px 32px rgba(215, 147, 171, 0.22),
            0 8px 20px rgba(200, 149, 91, 0.2);
    }

    .btn::after,
    .btn-service::after,
    .social-link::after {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        background:
            radial-gradient(circle at top, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 42%),
            radial-gradient(circle at 20% 20%, rgba(243, 200, 216, 0.2), rgba(243, 200, 216, 0) 38%),
            radial-gradient(circle at 80% 85%, rgba(200, 149, 91, 0.16), rgba(200, 149, 91, 0) 36%);
        opacity: 0.95;
        pointer-events: none;
    }

    .cta-buttons .btn::before {
        content: "";
        position: absolute;
        top: -140%;
        left: -30%;
        width: 42%;
        height: 320%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 244, 248, 0.95), rgba(255, 255, 255, 0));
        transform: rotate(18deg);
        opacity: 0;
        pointer-events: none;
        animation: buttonLuxeSweep 5.2s ease-in-out 1.2s infinite;
        z-index: 1;
    }

    .btn-primary {
        background: linear-gradient(135deg, #e4a5bc 0%, #d79ab0 28%, var(--primary-color) 62%, var(--primary-dark) 100%);
        box-shadow:
            0 18px 36px rgba(215, 147, 171, 0.34),
            0 12px 26px rgba(200, 149, 91, 0.28),
            0 0 18px rgba(255, 210, 226, 0.2);
        animation: ctaIntroGlow 1.2s ease-out 0.2s both, mobileButtonGlow 3.4s ease-in-out 1.2s infinite;
    }

    .btn-secondary,
    .social-link {
        color: #fff9fc;
        border-color: rgba(255, 215, 229, 0.72);
        background: linear-gradient(135deg, rgba(255, 214, 229, 0.18), rgba(255, 255, 255, 0.12));
        box-shadow:
            inset 0 0 0 1px rgba(255, 228, 238, 0.16),
            0 14px 30px rgba(215, 147, 171, 0.22),
            0 0 16px rgba(255, 214, 229, 0.14);
    }

    .cta-buttons .btn-secondary {
        animation: mobileButtonGlow 3.8s ease-in-out 1.5s infinite;
    }

    .btn-service {
        background: linear-gradient(135deg, rgba(255, 241, 246, 0.88), rgba(255, 250, 245, 0.96));
        border: 1px solid rgba(215, 147, 171, 0.16);
    }

    .btn-service:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .social-link:hover {
        box-shadow:
            0 20px 38px rgba(215, 147, 171, 0.34),
            0 12px 24px rgba(200, 149, 91, 0.28),
            0 0 22px rgba(255, 210, 226, 0.26);
    }

    .btn > *,
    .btn-service > *,
    .social-link > * {
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(1200px, calc(100% - 28px));
    }

    .hero,
    .services,
    .plans,
    .wealth,
    .contact-data,
    .contact {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .card-image {
        grid-template-rows: minmax(220px, 64vw) auto;
        padding: 12px;
    }

    .card-image img {
        width: min(100%, 320px);
    }

    .card-content {
        margin-top: -6px;
        padding: 18px 16px 20px;
        border-radius: 22px;
        text-align: center;
        background:
            radial-gradient(circle at top, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 46%),
            linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(246, 234, 223, 0.96) 62%, rgba(235, 216, 197, 0.94));
        border: 1px solid rgba(255, 255, 255, 0.82);
        box-shadow:
            0 24px 48px rgba(36, 23, 12, 0.2),
            0 10px 28px rgba(200, 149, 91, 0.16),
            0 0 30px rgba(255, 240, 246, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }

    .card-content::after {
        opacity: 1;
        background:
            radial-gradient(circle at top, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 42%),
            radial-gradient(circle at 18% 18%, rgba(243, 200, 216, 0.24), rgba(243, 200, 216, 0) 38%),
            radial-gradient(circle at 84% 84%, rgba(200, 149, 91, 0.18), rgba(200, 149, 91, 0) 36%);
    }

    .card-content,
    .card-content h1,
    .profession,
    .partners,
    .cedula,
    .tagline {
        color: var(--text-dark);
    }

    .card-content h1 em {
        color: var(--primary-dark);
    }

    .profession,
    .cedula,
    .partners,
    .tagline,
    .brand-mark-label,
    .brand-mark-subtitle {
        color: rgba(47, 35, 27, 0.82);
    }

    .brand-mark {
        width: 100%;
        justify-content: center;
        margin-bottom: 12px;
        padding: 10px 12px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(252, 242, 234, 0.74));
        border-color: rgba(200, 149, 91, 0.22);
        box-shadow:
            0 12px 24px rgba(67, 43, 24, 0.1),
            0 0 18px rgba(255, 240, 246, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.85);
    }

    .brand-mark-label {
        font-size: 11px;
    }

    .brand-mark-subtitle {
        font-size: 10px;
    }

    .card-content h1 {
        font-size: 1.85rem;
        letter-spacing: -0.03em;
        text-shadow: 0 2px 10px rgba(255, 255, 255, 0.22);
    }

    .partners,
    .cedula,
    .profession,
    .tagline {
        word-break: break-word;
    }

    .partners {
        margin-bottom: 14px;
    }

    .tagline {
        margin: 12px 0 18px;
        font-size: 14px;
    }

    .service-card {
        padding: 18px;
    }

    .service-icon {
        width: 68px;
        height: 68px;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
    }

    .social-link,
    .btn,
    .btn-service {
        width: 100%;
    }

    .contact p {
        font-size: 16px;
    }

    .social-links {
        flex-direction: column;
    }

    .qr-frame,
    .social-qr-frame {
        max-width: 200px;
        padding: 12px;
    }

    .contact-data-card {
        padding: 18px 14px;
    }

    .contact-data-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .social-contact-card {
        gap: 12px;
        padding: 16px 14px;
    }

    .social-contact-copy h3 {
        font-size: 18px;
    }

    .social-contact-meta {
        font-size: 13px;
    }

    .social-qr-frame-compact {
        max-width: 148px;
    }

    .hero-logo-badge {
        top: 12px;
        right: 12px;
        width: 116px;
        padding: 8px;
        border-radius: 20px;
        box-shadow:
            0 24px 46px rgba(58, 31, 18, 0.24),
            0 10px 24px rgba(200, 149, 91, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.92);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .cta-buttons .btn-primary {
        animation: none;
    }

    .cta-buttons .btn:hover::before {
        animation: none;
        opacity: 0;
    }

    .hero-logo-badge {
        animation: none;
    }

    .btn-primary,
    .cta-buttons .btn-secondary,
    .cta-buttons .btn::before {
        animation: none;
    }
}
