body {
    background-color: #f5f5f5;
    margin: 0;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.card {
    width: 100%;
    max-width: 600px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 32px auto;
    animation: fadeIn 1s ease-in-out;
}

.card-header {
    background-color: #333;
    color: white;
    padding: 30px 20px;
    text-align: center;
    animation: slideDown 1s ease-in-out;
}

.card-header img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 15px;
    animation: bounceIn 1s ease-in-out;
}

.card-header h5 {
    margin: 10px 0;
    font-size: 1.5rem;
    color: white;
}

.card-header p {
    color: #86b7fe;
    margin: 0;
    font-size: 0.9rem;
}

.icon-row {
    display: flex;
    justify-content: space-around;
    padding: 20px 0 0 0;
}

.icon-row .col {
    text-align: center;
    flex: 1;
    padding: 10px;
    cursor: pointer;
    animation: fadeIn 1s ease-in-out;
}

.icon-row .col i {
    font-size: 24px;
}

.icon-row .col p {
    margin-top: 5px;
    color: white;
    font-size: 0.85rem;
}

.icon-row .col:hover {
    color: purple;
}

.card-body {
    padding: 20px;
    background-color: white;
    animation: fadeIn 1s ease-in-out;
}


.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 0.05px solid #dee2e6;
}

.contact-info:last-child {
    border-bottom: none;
}

.contact-info i {
    font-size: 18px;
    margin-right: 10px;
    color: #6c757d;
}

.contact-info .info-text {
    font-size: 0.9rem;
}

.contact-info .info-text span {
    display: block;
    font-size: 0.8rem;
    color: gray;
}

.border-top {
    border-top: 0.06px solid #676767 !important;
}

.border-left {
    border-left: 0.03px solid #676767 !important;
}

.border-right {
    border-right: 0.03px solid #676767 !important;
}

.animated-gradient {
    background-image: url('/src/fondo.jpg');
    background-size: cover;
    background-position: center;
}

.text-justify {
    text-align: justify;
}

.social-media {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-media a {
    color: #333;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s;
    animation: fadeIn 1s ease-in-out;
}

.social-media a:hover {
    color: purple;
}

.save-contact-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #333;
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-contact-btn:hover {
    background-color: purple;
}

@keyframes animateBg {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    body {
        padding: 0;
        min-height: 100vh;
        width: 100vw;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .card {
        width: 100vw;
        max-width: 100vw;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        overflow-y: auto;
    }
    .card-header {
        padding: 16px 4px 12px 4px;
    }
    .card-body {
        padding: 8px 4px;
    }
}

@media (orientation: landscape) and (max-width: 1025px) {
    .card {
        width: 100vw;
        max-width: 100vw;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        overflow-y: auto;
    }
}

@keyframes staggeredFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-row .col,
.contact-info,
.social-media a,
.card-body p,
.card-body .info-text a {
    opacity: 0;
    animation: staggeredFadeIn 0.5s ease-in-out forwards;
}

.icon-row .col:nth-child(1) {
    animation-delay: 0.2s;
}

.icon-row .col:nth-child(2) {
    animation-delay: 0.4s;
}

.icon-row .col:nth-child(3) {
    animation-delay: 0.6s;
}

.icon-row .col:nth-child(4) {
    color: white;
    animation-delay: 0.8s;
}

.card-body p {
    animation-delay: 0.8s;
}

.contact-info:nth-child(1) {
    animation-delay: 1s;
}

.contact-info:nth-child(2) {
    animation-delay: 1.2s;
}

.contact-info:nth-child(3) {
    animation-delay: 1.4s;
}

.contact-info:nth-child(4) {
    animation-delay: 1.6s;
}

.contact-info:nth-child(5) {
    animation-delay: 1.8s;
}

.contact-info:nth-child(6) {
    animation-delay: 2s;
}

.contact-info:nth-child(7) {
    animation-delay: 2.2s;
}


.social-media a:nth-child(1) {
    animation-delay: 2.4s;
}

.social-media a:nth-child(2) {
    animation-delay: 2.6s;
}

.social-media a:nth-child(3) {
    animation-delay: 2.8s;
}

.social-media a:nth-child(4) {
    animation-delay: 3s;
}

.save-contact-btn {
    display: inline-block;
    padding: 5px 10px;
    margin-top: 20px;
    background-color: #333;
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 14px;
    animation: staggeredFadeIn 3.5s ease-in-out forwards;
}

.save-contact-btn i {
    margin-right: 5px;
}

.save-contact-btn:hover {
    background-color: purple;
    transform: scale(1.05);
}

.save-contact-container {
    display: flex;
    justify-content: center;
}