/* ============================================
   Spedis Consulting - Tarjeta de Contacto
   Brand: Dark Navy + Purple Gradient
   Style: Apple glassmorphism
   ============================================ */

:root {
    --navy: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --purple-600: #7c3aed;
    --purple-500: #6d28d9;
    --purple-400: #a78bfa;
    --purple-300: #c4b5fd;
    --indigo-600: #4f46e5;
    --cyan-400: #22d3ee;
    --white: #ffffff;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --whatsapp-green: #25D366;

    --gradient-brand: linear-gradient(135deg, #7c3aed, #6d28d9, #4f46e5);
    --gradient-text: linear-gradient(135deg, #ffffff, #c4b5fd, #a78bfa);
    --gradient-glow: linear-gradient(135deg, #7c3aed, #a78bfa);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;

    --font-heading: 'Source Sans 3', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --radius: 16px;
    --radius-sm: 12px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(ellipse at 50% 0%, #1e293b 0%, var(--navy) 60%);
    color: var(--white);
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    padding: 2rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* ---- Header / Logo ---- */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 0.5rem;
}

.logo {
    height: 28px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 1;
}

/* ---- Hero: Foto + Identidad ---- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.photo-wrapper {
    position: relative;
}

.photo-border {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 2px;
    box-shadow:
        0 0 20px rgba(124, 58, 237, 0.2),
        0 0 40px rgba(124, 58, 237, 0.08);
    animation: glowPulse 4s ease-in-out infinite;
}

/* Arco de luz sutil con contraste cyan */
.photo-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #7c3aed,
        #6d28d9,
        #4f46e5,
        #22d3ee,
        #a78bfa,
        transparent 50%,
        transparent 75%,
        #7c3aed
    );
    animation: rotateBorder 6s linear infinite;
}

/* Resplandor difuso */
.photo-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        transparent 40%,
        rgba(34, 211, 238, 0.2) 50%,
        transparent 60%
    );
    animation: rotateBorder 6s linear infinite reverse;
    filter: blur(6px);
}

.photo-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--navy);
}

.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    display: block;
}

.name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--purple-300);
    letter-spacing: 0.02em;
}

.company {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 400;
}

/* ---- Acciones rapidas (Glass) ---- */
.actions {
    display: flex;
    gap: 0.625rem;
    width: 100%;
    justify-content: center;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex: 1;
    max-width: 120px;
    min-height: 76px;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.action-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.25);
    color: var(--whatsapp-green);
}

.action-btn.email:hover {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.25);
    color: var(--purple-400);
}

.action-btn.linkedin:hover {
    background: rgba(10, 102, 194, 0.12);
    border-color: rgba(10, 102, 194, 0.25);
    color: #0a66c2;
}

/* ---- CTA: Guardar Contacto (Glass rectangular) ---- */
.save-contact {
    width: 100%;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.12);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: 52px;
    box-shadow: 0 2px 20px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-sm);
}

.cta-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.cta-btn:hover::before {
    opacity: 0.3;
}

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

.cta-btn svg,
.cta-btn span {
    position: relative;
    z-index: 1;
}

/* ---- Ubicacion ---- */
.location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--gray-400);
}

.location svg {
    opacity: 0.6;
    flex-shrink: 0;
}

/* ---- Servicios (Tags) ---- */
.services {
    width: 100%;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.service-tag {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--purple-300);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ---- Bio (Glass) ---- */
.bio {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bio-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.bio p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--gray-300);
    text-align: left;
    text-wrap: pretty;
}

.bio strong {
    color: var(--purple-300);
    font-weight: 600;
}

/* ---- Redes Sociales ---- */
.social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding-top: 0.5rem;
}

.social-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-400);
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--white);
}

/* ---- Footer ---- */
.footer {
    text-align: center;
    padding-top: 0.5rem;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 0.925rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
}

.copyright {
    font-size: 0.75rem;
    color: var(--gray-400);
    opacity: 0.6;
}

/* ============================================
   Animaciones
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateBorder {
    to {
        transform: rotate(360deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(124, 58, 237, 0.2),
            0 0 40px rgba(124, 58, 237, 0.08);
    }
    50% {
        box-shadow:
            0 0 28px rgba(124, 58, 237, 0.3),
            0 0 56px rgba(124, 58, 237, 0.12);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

@media (min-width: 480px) {
    .container {
        padding: 3rem 2rem 4rem;
    }

    .photo-border {
        width: 180px;
        height: 180px;
    }

    .name {
        font-size: 2.25rem;
    }

    .action-btn {
        max-width: 140px;
    }
}

@media (min-width: 768px) {
    body {
        align-items: center;
    }

    .container {
        padding: 4rem 2.5rem 5rem;
        gap: 1.5rem;
    }

    .photo-border {
        width: 200px;
        height: 200px;
    }

    .name {
        font-size: 2.5rem;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none;
        opacity: 1;
    }

    .photo-border,
    .photo-border::before,
    .photo-border::after {
        animation: none;
    }

    .cta-btn,
    .action-btn,
    .social-link,
    .logo {
        transition: none;
    }
}
