/* ==========================================================================
   CONCEPTOS - Digital Experience Renewal Landing Page
   Author: CONCEPTOS Creative Agency
   Version: 1.0.0
   ========================================================================== */

/* Import Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Design Tokens */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Refined Color Palette */
    --color-bg-fallback: #F3F4F6;
    --color-primary: #09090b;
    --color-primary-hover: #18181b;
    --color-text-main: #18181b;
    --color-text-muted: #52525b;
    --color-whatsapp: #25d366;
    --color-whatsapp-dark: #20ba5a;
    --color-border: rgba(255, 255, 255, 0.45);
    
    /* Layout & Spacing */
    --radius-card: 28px;
    --radius-btn: 14px;
    
    /* Animations */
    --transition-main: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Core Styling */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: -webkit-fill-available;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    width: 100%;
    margin: 0;
    padding: 24px;
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-fallback);
    
    /* Flexbox Center alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
    /* Prevent horizontal overflow */
    overflow-x: hidden;
}

/* Blurred background image layer */
body::before {
    content: '';
    position: fixed;
    top: -12px; /* Offset to prevent border artifacts from the blur */
    left: -12px;
    right: -12px;
    bottom: -12px;
    z-index: -2;
    background-image: url('../assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(3px) saturate(1.2) contrast(1.05);
    pointer-events: none;
}

/* Semi-transparent white overlay layer (55% opacity) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

/* Glassmorphism Presentation Card */
.card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 620px;
    
    /* Modern Glassmorphism Styling */
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    
    padding: 60px 48px;
    box-shadow: 
        0 10px 30px -10px rgba(0, 0, 0, 0.03),
        0 20px 60px -15px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* Entrance Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: cardEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Styling */
.brand-logo-wrapper {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-bottom: 44px;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.brand-logo {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* Main Text Content */
.text-content {
    margin-bottom: 40px;
    width: 100%;
}

.headline {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 18px;
    letter-spacing: -0.025em;
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

.supporting-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    font-weight: 400;
    max-width: 490px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

/* Primary CTA Button (WhatsApp) */
.action-wrapper {
    width: 100%;
    margin-bottom: 44px;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    padding: 18px 36px;
    
    background-color: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-btn);
    border: 1px solid var(--color-primary);
    box-shadow: 0 10px 25px -5px rgba(9, 9, 11, 0.15);
    
    transition: var(--transition-main);
    cursor: pointer;
}

.btn-primary svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: var(--transition-main);
}

/* Hover & Active States with Premium Micro-interactions */
.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    box-shadow: 0 15px 35px -8px rgba(9, 9, 11, 0.08);
    transform: translateY(-2px);
}

.btn-primary:hover svg {
    transform: scale(1.05) rotate(8deg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--color-whatsapp);
    outline-offset: 4px;
}

/* Contact Info Layout */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    border-top: 1px solid rgba(9, 9, 11, 0.08);
    padding-top: 36px;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.0s;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition-main);
    width: fit-content;
    margin: 0 auto;
    position: relative;
    padding-bottom: 2px;
}

/* Premium bottom line transition on hover */
.contact-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-item:hover {
    color: var(--color-primary-hover);
}

.contact-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Footer Section */
.footer-panel {
    border-top: 1px solid rgba(9, 9, 11, 0.05);
    padding-top: 24px;
    width: 100%;
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s;
}

.copyright-text {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.services-text {
    letter-spacing: 0.01em;
}

/* Common Keyframe Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet & Smaller Desktop */
@media (max-width: 768px) {
    body {
        padding: 32px 20px;
    }
    
    .card-container {
        padding: 50px 36px;
    }
    
    .headline {
        font-size: 2.1rem;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    body {
        padding: 16px;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .card-container {
        padding: 40px 24px 32px 24px;
        margin: 16px 0;
        border-radius: 24px;
    }
    
    .brand-logo-wrapper {
        margin-bottom: 32px;
    }
    
    .headline {
        font-size: 1.75rem;
        margin-bottom: 14px;
    }
    
    .supporting-text {
        font-size: 0.95rem;
    }
    
    .action-wrapper {
        margin-bottom: 36px;
    }
    
    .btn-primary {
        padding: 16px 28px;
        font-size: 1rem;
    }
    
    .contact-info-panel {
        padding-top: 28px;
        margin-bottom: 28px;
    }
    
    .contact-item {
        font-size: 0.95rem;
    }
    
    .footer-panel {
        font-size: 0.8rem;
    }
}

/* Accessibility: Support for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .card-container, .brand-logo-wrapper, .headline, .supporting-text, .action-wrapper, .contact-info-panel, .footer-panel {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .btn-primary, .btn-primary svg, .contact-item::after {
        transition: none !important;
    }
}
