@font-face {
    font-family: 'Montserrat';
    src: url('assets/montserrat.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Playball';
    src: url('assets/playball.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

:root {
    /* Ale Beauty - Vibrant Chic & Luxury Editorial */
    --bg-color: #FFF2F2;
    --bg-gradient: linear-gradient(145deg, #FFF5F2 0%, #FDEAE8 50%, #FCE3E2 100%);
    --text-main: #2D241F;
    --text-muted: #6B5B53;
    --accent-chic: #B76E79;
    --accent-rose: #C47A85;
    --accent-soft: #F9E4E4;
    --accent-pink: #F5CECE;
    --accent-mauve: #A38484;

    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playball', cursive, Georgia, serif;

    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-border-subtle: rgba(163, 132, 132, 0.16);
    --shadow-soft: 0 10px 30px rgba(45, 36, 31, 0.06);
    --shadow-card: 0 12px 35px rgba(183, 110, 121, 0.1);
    --shadow-hover: 0 14px 40px rgba(45, 36, 31, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Background Atmospheric Orbs (Efectos originales refinados) */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.55;
    transform: translateZ(0);
    will-change: transform;
}

.shape-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(245, 206, 206, 0.6) 0%, rgba(245, 206, 206, 0) 70%);
    top: -160px;
    right: -200px;
    animation: simpleFloat 14s infinite alternate ease-in-out;
}

.shape-2 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -120px;
    left: -180px;
    animation: simpleFloatReverse 12s infinite alternate-reverse ease-in-out;
}

@keyframes simpleFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-35px, 45px, 0) scale(1.08); }
}

@keyframes simpleFloatReverse {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(35px, -35px, 0) scale(1.06); }
}

/* Main Container - Tarjeta Digital Centrada */
.vcard-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 2.2rem 1.25rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.85rem;
    position: relative;
    z-index: 1;
}

/* 1. Profile Header */
.profile-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: blurReveal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.profile-img-wrap {
    width: 124px;
    height: 124px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #FFB6C1 0%, var(--accent-chic) 50%, #FFB6C1 100%);
    background-size: 200% auto;
    box-shadow: 0 10px 30px rgba(183, 110, 121, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.7);
    animation: profilePulse 3s infinite alternate ease-in-out;
    position: relative;
    cursor: default;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #FFFFFF;
    display: block;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.brand-title {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
    line-height: 1.15;
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.brand-motto {
    font-family: var(--font-serif);
    font-size: 27px;
    color: var(--accent-chic);
    line-height: 1.25;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(183, 110, 121, 0.15);
}

/* 2. Main Action: WhatsApp */
.main-action-section {
    width: 100%;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease, background-color 0.2s ease;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.link-btn.primary {
    background: linear-gradient(135deg, #2D241F 0%, #3F332C 100%);
    color: #FFF9F7;
    box-shadow: 0 10px 25px rgba(45, 36, 31, 0.2);
    border: 1px solid rgba(245, 206, 206, 0.3);
    min-height: 56px;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.link-btn.primary:hover {
    background: linear-gradient(135deg, #231C18 0%, #342A24 100%);
    box-shadow: 0 14px 30px rgba(45, 36, 31, 0.28);
    transform: translateY(-2px);
}

.link-btn.primary:active {
    transform: scale(0.97);
}

.link-btn.primary .icon {
    background: rgba(255, 255, 255, 0.15);
    color: #FFF9F7;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Section Headings */
.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.section-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.section-accent {
    font-family: var(--font-serif);
    font-size: 19px;
    color: var(--accent-chic);
}

/* 3. Services Section (Refined Boutique Macaron Cards) */
.services-section {
    display: flex;
    flex-direction: column;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.service-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(183, 110, 121, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
    min-height: 124px;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-4px);
    background: #FFFFFF;
    box-shadow: 0 14px 34px rgba(183, 110, 121, 0.2);
    border-color: rgba(183, 110, 121, 0.35);
}

.service-card:active {
    transform: scale(0.97);
}

.service-name {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 400;
    color: var(--accent-chic);
    line-height: 1.15;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.service-card:hover .service-name {
    color: #9E535E;
}

.service-desc {
    font-size: 11px;
    line-height: 1.35;
    color: var(--text-muted);
    margin-bottom: 8px;
    max-width: 170px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-main);
    background: var(--accent-soft);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.2px;
    border: 1px solid rgba(163, 132, 132, 0.12);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.service-card:hover .service-badge {
    background: var(--accent-chic);
    color: #FFFFFF;
    border-color: transparent;
    transform: scale(1.04);
}

/* 4. Galería Fotográfica Horizontal con Snap */
.gallery-section {
    display: flex;
    flex-direction: column;
}

.gallery-scroll-wrap {
    position: relative;
}

.gallery-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-chic);
    margin-bottom: 8px;
    padding-right: 4px;
}

.gallery-scroll {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(183, 110, 121, 0.3) transparent;
}

.gallery-scroll::-webkit-scrollbar {
    height: 5px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: rgba(183, 110, 121, 0.3);
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 145px;
    height: 175px;
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 20px rgba(45, 36, 31, 0.08);
    cursor: pointer;
    background: #FFFFFF;
    padding: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.gallery-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(183, 110, 121, 0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item .item-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(45, 36, 31, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

/* 5. Quick Links (Guardar, Llamar, Instagram, Maps) */
.quick-links-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.link-btn.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    padding: 12px 14px;
    min-height: 52px;
    font-size: 12.5px;
    border-radius: 16px;
}

.link-btn.glass:hover {
    background: #FFFFFF;
    border-color: rgba(183, 110, 121, 0.3);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.link-btn.glass:active {
    transform: scale(0.97);
}

.link-btn.glass .icon {
    color: var(--accent-chic);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.share-container {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.share-btn {
    background: transparent;
    border: 1px dashed rgba(163, 132, 132, 0.3);
    border-radius: 20px;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-chic);
    color: var(--text-main);
}

/* 6. Footer TrezeLabs */
.vcard-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border-subtle);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-copy a {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-chic);
}

.footer-copy a:hover {
    border-bottom-style: solid;
}

/* Accessible focus outline */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--text-main);
    outline-offset: 3px;
}

/* Modal Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.lightbox-content-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleUp 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    text-align: center;
    letter-spacing: 0.3px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(45, 36, 31, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFF9F7;
    padding: 0;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.toast:not(:empty) {
    padding: 12px 20px;
}

/* Animaciones */
@keyframes profilePulse {
    0% {
        box-shadow: 0 10px 30px rgba(183, 110, 121, 0.35), inset 0 0 15px rgba(255, 255, 255, 0.6);
        background-position: 0% 50%;
    }
    100% {
        box-shadow: 0 14px 40px rgba(183, 110, 121, 0.55), inset 0 0 20px rgba(255, 255, 255, 0.8);
        background-position: 100% 50%;
    }
}

@keyframes blurReveal {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Micro-ajustes para pantallas estrechas (320px) */
@media (max-width: 350px) {
    .vcard-container {
        padding: 1.6rem 0.75rem 3rem;
        gap: 1.5rem;
    }

    .brand-title {
        font-size: 23px;
    }

    .brand-motto {
        font-size: 24px;
    }

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

    .service-card {
        padding: 12px 6px 10px;
        min-height: 114px;
        border-radius: 16px;
    }

    .service-name {
        font-size: 17.5px;
    }

    .service-desc {
        font-size: 9.5px;
    }

    .service-badge {
        font-size: 9px;
        padding: 2px 7px;
    }

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

    .gallery-item {
        flex: 0 0 130px;
        height: 160px;
    }
}

/* Soporte para movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .bg-blur {
        animation: none !important;
    }
}
