:root {
    /* Palette */
    --ivory: #FBF6EF;
    --porcelain: #FFFDF9;
    --camel: #E8D9C5;
    --camel-soft: #F1E6D6;
    --gold: #C6952C;
    --gold-deep: #A87A1E;
    --espresso: #3B2E23;
    --rosewood: #8C5A45;
    --text-muted: #7A6A58;
    --border-soft: #E4D6C2;

    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Karla', 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
    --shadow-soft: 0 15px 40px rgba(59, 46, 35, 0.08);
    --shadow-lift: 0 25px 55px rgba(59, 46, 35, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--ivory);
    color: var(--espresso);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--espresso);
    color: var(--porcelain);
    padding: 12px 20px;
    border-radius: 0 0 10px 0;
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--gold-deep);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Brand mark */
.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--espresso);
}

em {
    font-style: italic;
    font-weight: 500;
    color: var(--rosewood);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-deep);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    margin-bottom: 18px;
}

.eyebrow.center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.section-title {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    text-align: center;
    max-width: 760px;
    margin: 0 auto 18px auto;
    line-height: 1.2;
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 56px auto;
    font-size: 1.05rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--gold);
    color: var(--porcelain);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--gold);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--gold-deep);
    border-color: var(--gold-deep);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(198, 149, 44, 0.3);
}

.btn-secondary {
    background-color: var(--porcelain);
    color: var(--espresso);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--border-soft);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-secondary:hover {
    border-color: var(--rosewood);
    color: var(--rosewood);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background-color: rgba(251, 246, 239, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(59, 46, 35, 0.04);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--espresso);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: var(--espresso);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--gold-deep);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--espresso);
    cursor: pointer;
    padding: 8px;
}

/* Hero */
.hero-section {
    position: relative;
    padding: 60px 5% 100px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-arc {
    position: absolute;
    width: 1100px;
    height: 1100px;
    border-radius: 50%;
    border: 2px solid rgba(198, 149, 44, 0.18);
    top: -420px;
    right: -320px;
    z-index: 0;
    pointer-events: none;
}

.hero-arc::before {
    content: '';
    position: absolute;
    inset: 70px;
    border-radius: 50%;
    border: 2px solid rgba(140, 90, 69, 0.12);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
}

.hero-content {
    max-width: 520px;
    position: relative;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 34px;
}

.hero-kicker-mark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.hero-cross {
    position: absolute;
    top: 4px;
    left: -34px;
    font-size: 1.1rem;
    color: var(--gold);
    opacity: 0.6;
}

.hero-tagline {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rosewood);
    line-height: 1.7;
    margin-bottom: 20px;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 84px;
    margin: 0 0 20px 0;
}

.hero-divider span {
    flex: 1;
    height: 1px;
    background: var(--border-soft);
}

.hero-divider i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.hero-instagram-link {
    display: inline-flex;
    align-items: center;
    color: var(--rosewood);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.hero-instagram-link:hover {
    color: var(--gold-deep);
}

.title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.12;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 34px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-bottom: 34px;
}

.btn-primary.btn-primary {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-convenios {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 22px;
    border-top: 1px solid var(--border-soft);
}

.hero-convenios > span:first-child {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-convenios-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: 600;
    color: var(--espresso);
}

.hero-convenios-list span[aria-hidden] {
    color: var(--gold);
    font-weight: 400;
}

/* Hero image */
.hero-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: min(420px, 40vw);
}

.hero-portrait {
    position: relative;
    border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%;
    overflow: hidden;
    aspect-ratio: 711 / 820;
    box-shadow: var(--shadow-lift);
    border: 6px solid var(--porcelain);
    outline: 2px solid var(--camel);
    outline-offset: 8px;
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 253, 249, 0.96);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 240px;
}

.card-specialties {
    top: 8%;
    left: -14%;
}

.card-plans {
    bottom: 6%;
    right: -12%;
}

.icon-wrapper {
    width: 42px;
    height: 42px;
    background-color: var(--camel-soft);
    color: var(--rosewood);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.icon-wrapper.gold {
    background-color: #FBEED0;
    color: var(--gold-deep);
}

.floating-card strong {
    display: block;
    color: var(--espresso);
    font-weight: 700;
    font-size: 0.92rem;
}

.floating-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Services */
.services-section {
    padding: 110px 5% 60px 5%;
}

.service-group {
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.service-group-title {
    font-size: 1.3rem;
    color: var(--rosewood);
    margin-bottom: 26px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
}

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

.service-card {
    background: var(--porcelain);
    padding: 34px 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--border-soft);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
    border-color: var(--gold);
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 22px;
    background: var(--camel-soft);
    color: var(--rosewood);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--porcelain);
    transform: scale(1.06);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Results */
.results-section {
    padding: 60px 5% 110px 5%;
    background: var(--camel-soft);
}

.case-viewer {
    max-width: 1160px;
    margin: 0 auto;
}

.case-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.case-tab {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--espresso);
    background: var(--porcelain);
    border: 1px solid var(--border-soft);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.case-tab:hover {
    border-color: var(--rosewood);
}

.case-tab[aria-selected="true"] {
    background: var(--espresso);
    border-color: var(--espresso);
    color: var(--porcelain);
}

.case-frame-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.case-track-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    transition: height 0.45s ease;
}

.case-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.2, 1);
    cursor: grab;
    touch-action: pan-y;
}

.case-track:active {
    cursor: grabbing;
}

.case-slide {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 2px;
    background: var(--porcelain);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-lift);
}

.case-slide > * {
    padding-left: 26px;
    padding-right: 26px;
}

.case-slide .case-frame {
    margin-top: 26px;
}

.case-slide .case-details {
    padding-bottom: 26px;
}

.case-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--porcelain);
    border: 1px solid var(--border-soft);
    color: var(--espresso);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.case-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--porcelain);
}

.case-frame {
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    overflow: hidden;
    background: var(--camel-soft);
}

.case-frame-labels {
    display: flex;
    justify-content: space-between;
    padding: 16px 22px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.case-label-right {
    color: var(--text-muted);
}

.case-image-box {
    position: relative;
    background: var(--camel-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.case-image-box--icon {
    height: clamp(220px, 34vw, 320px);
    color: var(--rosewood);
    font-size: clamp(3rem, 8vw, 4.5rem);
}

.case-credit-tag {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(59, 46, 35, 0.55);
    color: rgba(255, 253, 249, 0.85);
    font-size: 0.62rem;
    letter-spacing: 0.01em;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 4px;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.case-credit-tag:hover {
    opacity: 1;
}

.case-image-box img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(280px, 52vw, 520px);
    border-radius: 4px;
}

.case-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding-top: 24px;
    flex-wrap: wrap;
}

.case-details h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.case-details p {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 520px;
}

.case-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

#case-counter-current {
    color: var(--espresso);
}

.case-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.case-dot {
    width: 8px;
    height: 8px;
    border-radius: 50px;
    background: var(--border-soft);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.case-dot[aria-selected="true"] {
    width: 26px;
    background: var(--gold);
}

.case-disclaimer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .case-frame-row {
        gap: 10px;
    }
    .case-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    .case-slide > * {
        padding-left: 16px;
        padding-right: 16px;
    }
    .case-slide .case-frame {
        margin-top: 16px;
    }
    .case-slide .case-details {
        padding-bottom: 16px;
    }
    .case-details {
        align-items: flex-start;
    }
}

/* Convenios */
.convenios-section {
    padding: 100px 5%;
}

.convenios-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.convenio-item {
    background: var(--porcelain);
    padding: 34px 52px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 200px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.convenio-item i {
    font-size: 1.8rem;
    color: var(--gold-deep);
}

.convenio-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: var(--gold);
}

.convenio-item strong {
    color: var(--espresso);
    font-size: 1.1rem;
}

/* Location */
.location-section {
    padding: 100px 5% 120px 5%;
    background: var(--camel-soft);
}

.location-container {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--porcelain);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    min-height: 480px;
    border: 1px solid var(--border-soft);
}

.location-info {
    flex: 1;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-soft);
}

.location-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 26px;
}

.contact-item i {
    width: 46px;
    height: 46px;
    background: var(--camel-soft);
    color: var(--rosewood);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--espresso);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.contact-item span, .contact-item a {
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

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

.location-cta {
    margin-top: 12px;
    align-self: flex-start;
}

.location-map {
    flex: 1;
    min-height: 400px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
}

.location-media {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 56px 48px;
}

.location-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lift);
}

.location-map-btn {
    justify-content: center;
    width: 100%;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 50px 20px;
    background: var(--espresso);
    color: #D9C9B4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--porcelain);
}

.site-footer a[aria-label] {
    color: var(--porcelain);
    font-size: 1.4rem;
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a[aria-label]:hover {
    color: var(--gold);
}

.site-footer p {
    font-size: 0.9rem;
    color: #B8A489;
}

/* Responsive */
@media (max-width: 1080px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 640px;
    }
    .hero-buttons, .eyebrow {
        justify-content: center;
    }
    .hero-kicker, .hero-divider {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cross {
        display: none;
    }
    .hero-convenios {
        align-items: center;
    }
    .hero-image-wrapper {
        width: min(360px, 70vw);
        margin-top: 20px;
    }
    .card-specialties, .card-plans {
        display: none;
    }
    .hero-arc {
        right: -420px;
    }
}

@media (max-width: 900px) {
    .location-container {
        flex-direction: column;
    }
    .location-map {
        min-height: 320px;
    }
    .location-info {
        padding: 44px 32px;
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
    }
    .location-media {
        padding: 44px 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--porcelain);
        flex-direction: column;
        padding: 20px 5%;
        gap: 20px;
        box-shadow: var(--shadow-soft);
        display: none;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
    }
    .nav-cta {
        display: none;
    }
    .services-section, .results-section, .convenios-section, .location-section {
        padding-left: 6%;
        padding-right: 6%;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons a {
        justify-content: center;
    }
    .convenio-item {
        padding: 26px 32px;
        min-width: 150px;
    }
}
