/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: light;
    background: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background: #e8e8e8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Business Card */
.business-card {
    width: 100%;
    max-width: 900px;
    height: 550px;
    background: #ffffff;
    display: grid;
    grid-template-columns: 35% 65%;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

/* Left Side - Graphic Section */
.card-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: visible;
    --clip-shape: polygon(0 0, 100% 0, 50% 50%, 100% 100%, 0 100%);
    --pointer-x: 0;
    --pointer-y: 0;
}

.card-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    clip-path: var(--clip-shape);
    z-index: 0;
}

.card-left::after {
    content: none;
}

.geometric-bg {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    clip-path: var(--clip-shape);
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    will-change: transform, opacity;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.shape-1 {
    width: 460px;
    height: 460px;
    top: -170px;
    left: -150px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(2px);
    opacity: 0.35;
}

.shape-2 {
    width: 270px;
    height: 270px;
    bottom: -90px;
    right: -80px;
    background: rgba(255, 255, 255, 0.15);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    opacity: 0.3;
}

.shape-3 {
    width: 260px;
    height: 260px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.12);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    opacity: 0.38;
}

.shape-4 {
    width: 510px;
    height: 280px;
    top: 58%;
    left: -240px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 55% 45% 60% 40% / 48% 52% 48% 52%;
    opacity: 0.26;
}

.shape-5 {
    width: 160px;
    height: 480px;
    top: -140px;
    right: -90px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05) 55%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 45% 55% 55% 45%;
    opacity: 0.24;
}

.avatar-container {
    position: relative;
    z-index: 4;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.18);
    border: 4px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    animation: scaleIn 0.8s ease-out 0.3s both;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.35s ease;
    cursor: pointer;
}

.avatar-container:hover {
    transform: scale(1.08);
}

.avatar-container:active {
    transform: scale(1.16);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Right Side - Information Section */
.card-right {
    background: #ffffff;
    padding: 3rem 3rem 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.info-content {
    animation: slideRight 0.8s ease-out 0.4s both;
}

.name {
    font-size: 1.95rem;
    font-weight: 800;
    color: #1a2332;
    letter-spacing: 0.25px;
    margin-bottom: 0.35rem;
    line-height: 1.1;
    text-align: left;
}

.profession {
    font-size: 0.95rem;
    font-weight: 500;
    color: #5D6D7E;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E8E8E8;
    text-align: left;
}

.description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #34495E;
    margin-bottom: 1.15rem;
    font-weight: 400;
    max-width: 100%;
}

.description:last-of-type {
    margin-bottom: 1.2rem;
}

/* Contact Information */
.contact-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.1), rgba(44, 62, 80, 0.06));
    border: 1px solid rgba(26, 35, 50, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.16), rgba(44, 62, 80, 0.1));
}

.info-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.info-item span:last-child {
    font-size: 0.9rem;
    color: #1a2332;
    font-weight: 600;
    letter-spacing: 0.25px;
}

.scroll-hint {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 65px;
    height: 65px;
    display: flex;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 9;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
    overflow: visible; /* para que el halo no se recorte */
}

/* Fondo difuminado en una capa aparte */
.scroll-hint::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.9) 25%,
        rgba(255, 255, 255, 0.6) 40%,
        rgba(255, 255, 255, 0.2) 60%,
        rgba(255, 255, 255, 0) 120%
    );
    filter: blur(5px); /* 🔥 solo el fondo */
    z-index: -1; /* queda detrás del SVG */
}



.scroll-hint.hidden {
    opacity: 0;
    transform: translateY(12px);
}

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

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .business-card {
        max-width: 800px;
        height: 450px;
    }

    .name {
        font-size: 1.8rem;
    }

    .avatar-container {
        width: 180px;
        height: 180px;
    }
    
    .card-left {
        justify-content: center;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    body {
        position: static;
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 0 0 0 0;
        display: block;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .business-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        height: auto;
        background: transparent;
        box-shadow: none;
        grid-template-columns: none;
        grid-template-rows: none;
        touch-action: auto;
        margin: 0 auto;
        gap: 1.5rem;
        padding: 0;
    }

    .card-left {
        position: relative;
        width: 100%;
        min-height: 100px;
        justify-content: center;
        padding: 0;
        margin: 0;
        --clip-shape: polygon(100% 0, 100% 100%, 50% 80%, 0 100%, 0 0);
    }

    .card-left::before,
    .card-left .geometric-bg {
        width: 100vw;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .card-right {
        padding: 0 1.25rem;
        overflow: visible;
        background: transparent;
    }

    .avatar-container {
        width: 250px;
        height: 250px;
    }

    .name {
        font-size: 1.25rem;
        text-align: left;
        margin-bottom: 0.2rem;
        letter-spacing: 0.15px;
        white-space: nowrap;
    }

    .profession {
        font-size: 0.82rem;
        margin-bottom: 0.9rem;
        text-align: left;
    }

    .description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        text-align: left;
        line-height: 1.5;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .info-item {
        width: 100%;
        justify-content: center;
    }

    .scroll-hint {
        display: flex;
        opacity: 1;
        animation: softBounce 2s ease-in-out infinite;
        pointer-events: none;
    }

    .scroll-hint.hidden {
        opacity: 0;
        animation-play-state: paused;
    }
}

@media (max-width: 480px) {
    .business-card {
        padding: 0;
    }

    .card-left {
        min-height: 220px;
    }

    .avatar-container {
        width: 200px;
        height: 200px;
    }

    .name {
        font-size: 1.2rem;
        letter-spacing: 0.1px;
    }

    .profession {
        font-size: 0.8rem;
    }

    .description {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .info-item span:last-child {
        font-size: 0.9rem;
    }

    .info-item {
        padding: .50rem 1rem;

    }

    .info-icon {
        width: 20px;
        height: 20px;
    }
}
