* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #4a90a4 0%, #357a7a 50%, #2d6a4f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.container {
    perspective: 1000px;
    width: 100%;
    max-width: 420px;
}

.business-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, #52b788 0%, #40916c 50%, #2d6a4f 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 8px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 12px 20px rgba(0, 0, 0, 0.15);
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(184, 242, 230, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 242, 230, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* Elementos decorativos de fondo */
.bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.circle-1, .circle-2, .circle-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(184, 242, 230, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 60px;
    height: 60px;
    top: -30px;
    right: -30px;
    animation-delay: 0s;
}

.circle-2 {
    width: 40px;
    height: 40px;
    bottom: 20px;
    left: -20px;
    animation-delay: 2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: -40px;
    animation-delay: 4s;
}

.wave-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23b8f2e6"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23b8f2e6"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23b8f2e6"/></svg>') no-repeat;
    background-size: cover;
    opacity: 0.1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

/* Header sofisticado */
.card-header {
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    font-size: 20px;
    color: #b8f2e6;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(184, 242, 230, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 3s ease-in-out infinite;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 22px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.soc {
    color: white;
    animation: shimmer 3s ease-in-out infinite;
}

.separator {
    color: #b8f2e6;
    font-weight: 300;
    animation: pulse 2s ease-in-out infinite alternate;
}

.aimx {
    color: #b8f2e6;
    animation: shimmer 3s ease-in-out infinite 0.5s;
}

.company-tagline {
    position: relative;
}

.tagline-text {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.8px;
    color: #b8f2e6;
    text-transform: uppercase;
}

.tagline-underline {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #b8f2e6 50%, transparent 100%);
    margin-top: 2px;
    animation: expand 2s ease-in-out infinite;
}

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

@keyframes glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes shimmer {
    0%, 100% { text-shadow: 0 0 5px rgba(184, 242, 230, 0.3); }
    50% { text-shadow: 0 0 10px rgba(184, 242, 230, 0.6), 0 0 15px rgba(184, 242, 230, 0.4); }
}

@keyframes expand {
    0%, 100% { transform: scaleX(0.3); }
    50% { transform: scaleX(1); }
}

/* Main content optimizado */
.card-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Container para profile e info */
.profile-info-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.profile-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.profile-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 0 4px rgba(184, 242, 230, 0.1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.3),
        0 0 0 6px rgba(184, 242, 230, 0.2),
        0 0 20px rgba(184, 242, 230, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.profile-image:hover img {
    transform: scale(1.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 10px;
    color: #b8f2e6;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.certification-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.badge-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shine 3s ease-in-out infinite;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.badge-icon {
    font-size: 14px;
    color: #ffd700;
    animation: bounce 2s ease-in-out infinite;
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.office-name {
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.badge-stars {
    display: flex;
    gap: 2px;
}

.badge-stars i {
    font-size: 8px;
    color: #ffd700;
    animation: twinkle 1.5s ease-in-out infinite;
}

.badge-stars i:nth-child(2) {
    animation-delay: 0.3s;
}

.badge-stars i:nth-child(3) {
    animation-delay: 0.6s;
}

.badge-stars i:nth-child(4) {
    animation-delay: 0.9s;
}

.badge-stars i:nth-child(5) {
    animation-delay: 1.2s;
}

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

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Info section compacta */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.name-title {
    text-align: center;
}

.name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    color: white;
}

.title {
    font-size: 14px;
    font-weight: 400;
    color: #b8f2e6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2px;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(184, 242, 230, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(184, 242, 230, 0.2);
}

.contact-header i {
    color: #b8f2e6;
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.contact-title {
    font-size: 11px;
    color: #b8f2e6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-content {
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-value {
    font-size: 13px;
    color: white;
    font-weight: 500;
    display: block;
}

.btn-small {
    padding: 8px 12px;
    font-size: 10px;
    border-radius: 10px;
    align-self: flex-start;
    margin-top: 6px;
}

.btn-small .btn-content {
    gap: 4px;
}

.btn-small .btn-content i {
    font-size: 10px;
}

.btn-small .btn-content span {
    font-size: 10px;
}

.address {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.address span {
    font-size: 13px;
    color: white;
    font-weight: 500;
}

/* Descripción compacta */
.description-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.description-section p {
    font-size: 12px;
    line-height: 1.4;
    color: #e8f5e8;
    text-align: center;
    margin: 0;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes count-up {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Sección de compartir */
.share-section {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.share-section .btn {
    width: auto;
    min-width: 120px;
}

.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    transition: all 0.4s ease;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 2;
    color: white;
    transition: all 0.3s ease;
}

.btn-content i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-content span {
    font-weight: 500;
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.6s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn:hover .btn-content i {
    transform: scale(1.1);
}

.btn:active .btn-ripple {
    transform: translate(-50%, -50%) scale(1);
}

/* Colores específicos para cada botón */
.btn-call:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 
        0 8px 20px rgba(34, 197, 94, 0.2),
        0 4px 10px rgba(34, 197, 94, 0.1);
}

.btn-email:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 8px 20px rgba(59, 130, 246, 0.2),
        0 4px 10px rgba(59, 130, 246, 0.1);
}

.btn-location:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 
        0 8px 20px rgba(239, 68, 68, 0.2),
        0 4px 10px rgba(239, 68, 68, 0.1);
}

.btn-share:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 
        0 8px 20px rgba(168, 85, 247, 0.2),
        0 4px 10px rgba(168, 85, 247, 0.1);
}

/* Modal de compartir */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal.show {
    opacity: 1;
}

.share-modal-content {
    background: linear-gradient(135deg, #52b788 0%, #40916c 100%);
    border-radius: 20px;
    padding: 25px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal.show .share-modal-content {
    transform: scale(1);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.share-modal-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn i {
    font-size: 20px;
}

.share-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.4);
}

.share-btn.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: rgba(0, 136, 204, 0.4);
}

.share-btn.copy:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.4);
}

.share-btn.email:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
}

/* Responsive design optimizado */

/* Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 500px;
    }
    
    .business-card {
        max-width: 500px;
        padding: 25px;
    }
    
    .profile-info-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    
    .profile-section {
        flex-shrink: 0;
    }
    
    .profile-image {
        width: 110px;
        height: 110px;
    }
    
    .info-section {
        flex: 1;
    }
    
    .name-title {
        text-align: left;
    }
    
    .name {
        font-size: 22px;
    }
    
    .company-name {
        font-size: 24px;
    }
}

/* Móviles grandes (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .business-card {
        padding: 22px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .name {
        font-size: 21px;
    }
}

/* Móviles (hasta 480px) */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .business-card {
        padding: 18px;
        border-radius: 18px;
    }
    
    .profile-image {
        width: 85px;
        height: 85px;
    }
    
    .name {
        font-size: 18px;
    }
    
    .company-name {
        font-size: 20px;
    }
    
    .contact-item {
        font-size: 12px;
    }
    
    .description-section p {
        font-size: 11px;
    }
    
    .btn {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .btn i {
        font-size: 12px;
    }
}

/* Móviles pequeños (hasta 360px) */
@media (max-width: 360px) {
    .business-card {
        padding: 15px;
    }
    
    .card-main {
        gap: 12px;
    }
    
    .profile-info-container {
        gap: 12px;
    }
    
    .profile-image {
        width: 75px;
        height: 75px;
    }
    
    .name {
        font-size: 16px;
    }
    
    .company-name {
        font-size: 18px;
    }
    
    .company-tagline {
        font-size: 8px;
    }
    
    .contact-item {
        font-size: 11px;
    }
    
    .action-buttons {
        gap: 6px;
    }
    
    .btn {
        padding: 7px 8px;
        font-size: 10px;
    }
}

/* Landscape móviles */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 5px;
    }
    
    .business-card {
        padding: 15px;
    }
    
    .card-main {
        gap: 10px;
    }
    
    .profile-info-container {
        flex-direction: row;
        gap: 15px;
    }
    
    .profile-section {
        flex-shrink: 0;
    }
    
    .profile-image {
        width: 70px;
        height: 70px;
    }
    
    .name-title {
        text-align: left;
    }
}
