/* ============================
   Latido — Main Styles
   ============================ */

:root {
    --primary: #8b5a6b;
    --secondary: #a24b5e;
    --accent: #4a8db7;
    --dark: #1a1520;
    --dark-2: #241a2e;
    --light: #f8f9fa;
    --warm: #c4707e;
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ---- Navbar ---- */
#mainNav {
    background: transparent !important;
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #2e1a30 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(74, 141, 183, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(162, 75, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(139, 90, 107, 0.08) 0%, transparent 50%);
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    opacity: 0.6;
    font-weight: 400;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    background: linear-gradient(135deg, #4a8db7 0%, #c4707e 50%, #a24b5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.8;
}

.phone-logo {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(162, 75, 94, 0.5));
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-ar {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(162, 75, 94, 0.3);
}

.btn-ar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(162, 75, 94, 0.4);
    color: #fff;
}

/* Phone Mockup */
.phone-mockup {
    width: 200px;
    height: 380px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    animation: float 3s ease-in-out infinite;
}

.phone-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---- How It Works Steps ---- */
.step-card-page {
    background: #fff;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.step-card-page:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary);
}

.step-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(162, 75, 94, 0.08);
    line-height: 1;
}

.step-icon {
    font-size: 48px;
    color: var(--secondary);
}

/* ---- Gallery Section ---- */
.gallery-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #eff1f5 100%);
    border-bottom: 1px solid rgba(162, 75, 94, 0.1);
}

.gallery-section h2 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.gallery-section > .container > p {
    color: #666;
}

.gallery-section .text-muted {
    color: #888 !important;
}

.gallery-section .display-1 {
    color: rgba(26, 21, 32, 0.15);
}

.gallery-section .lead {
    color: var(--dark);
}

/* ---- Gallery ---- */
.btn-filter {
    border: 2px solid #dee2e6;
    border-radius: 25px;
    padding: 8px 22px;
    margin: 0 4px;
    font-weight: 500;
    color: #666;
    background: transparent;
    transition: all 0.3s;
}

.btn-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #111;
}

.card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-card:hover .card-media {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.75));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover .card-overlay {
    opacity: 1;
}

.media-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(5px);
}

.media-badge.video {
    background: rgba(220, 53, 69, 0.85);
}

.media-badge.image {
    background: rgba(13, 202, 240, 0.85);
}

/* ---- Contact Section ---- */
.contact-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #2e1a30 100%);
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(74, 141, 183, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 90% 30%, rgba(162, 75, 94, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.contact-section h2 {
    color: #fff;
}

.contact-section .lead {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-section > .container > .row > div > p.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.contact-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--warm);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(162, 75, 94, 0.3);
}

.contact-card h4 {
    color: #fff;
}

.contact-card-text {
    color: rgba(255, 255, 255, 0.55) !important;
}

.contact-email {
    margin: 0;
}

.contact-email a {
    color: var(--warm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}

.contact-email a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-icon {
    font-size: 56px;
    color: var(--warm);
    animation: float 3s ease-in-out infinite;
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Footer ---- */
footer {
    background: var(--dark) !important;
}

footer .opacity-50 {
    font-family: 'Playfair Display', serif;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .card-img-wrapper {
        height: 180px;
    }

    .card-overlay {
        opacity: 1;
    }

    .step-card-page {
        padding: 20px 15px !important;
    }

    .btn-filter {
        padding: 6px 16px;
        font-size: 14px;
        margin-bottom: 5px;
    }

    .contact-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .contact-card {
        margin-top: 1.5rem;
    }

    .contact-section h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .contact-section .lead,
    .contact-section p {
        text-align: center;
    }

    .gallery-section {
        padding-left: 0;
        padding-right: 0;
    }
}
