/* ===========================
   RESET Y VARIABLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales - Paleta profesional y política */
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --secondary-color: #f59e0b;
    --secondary-light: #fbbf24;
    
    /* Colores de acento */
    --accent-gold: #d4af37;
    --accent-red: #dc2626;
    
    /* Grises y neutros */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Redes sociales */
    --instagram: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --facebook: #1877f2;
    --tiktok: #000000;
    --twitter: #000000;
    --whatsapp: #25d366;
    --phone: #3b82f6;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Tipografía */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

/* ===========================
   ESTILOS GLOBALES
   =========================== */
body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animación de fondo */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    background: 
        radial-gradient(circle at 20% 50%, var(--primary-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--secondary-color) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, var(--accent-gold) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* ===========================
   CONTENEDOR PRINCIPAL
   =========================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
}

/* ===========================
   HEADER Y PERFIL
   =========================== */
.profile-header {
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 0.8s ease-out;
}

.profile-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto var(--spacing-md);
    animation: pulse 3s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-gold);
    box-shadow: 
        0 0 0 8px rgba(212, 175, 55, 0.2),
        var(--shadow-lg);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

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

.profile-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    animation: ringPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes ringPulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 130%;
        height: 130%;
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.name {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--accent-gold), var(--secondary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.nickname {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.location {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.location i {
    color: var(--accent-red);
}

/* ===========================
   PROFESIONES
   =========================== */
.professions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.profession-tag {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-light));
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.profession-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.profession-tag i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.profession-tag span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===========================
   SECCIÓN DE EMPRESA
   =========================== */
.company-section {
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.company-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-light));
    padding: var(--spacing-md);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 175, 55, 0.2);
}

.company-logo-container {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(212, 175, 55, 0.5);
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-info h3 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.company-info p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

/* ===========================
   BOTÓN GUARDAR CONTACTO
   =========================== */
.save-contact-section {
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn-save-contact {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 15px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-save-contact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

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

.btn-save-contact i {
    font-size: 1.3rem;
}

/* ===========================
   SECCIONES DE CONTACTO
   =========================== */
.contact-section {
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
}

.section-title i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* ===========================
   TARJETAS DE CONTACTO
   =========================== */
.contact-grid {
    display: grid;
    gap: var(--spacing-md);
}

.contact-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-light));
    padding: var(--spacing-md);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card.whatsapp {
    border-color: rgba(37, 211, 102, 0.3);
}

.contact-card.whatsapp:hover {
    border-color: var(--whatsapp);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(37, 211, 102, 0.3);
}

.contact-card.phone {
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-card.phone:hover {
    border-color: var(--phone);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(59, 130, 246, 0.3);
}

.icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    position: relative;
}

.whatsapp .icon-container {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.phone .icon-container {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

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

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===========================
   EMAILS
   =========================== */
.email-grid {
    display: grid;
    gap: var(--spacing-md);
}

.email-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-light));
    padding: var(--spacing-md);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.email-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.email-card:hover::before {
    left: 100%;
}

.email-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.email-card.personal {
    border-color: rgba(59, 130, 246, 0.3);
}

.email-card.personal:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(59, 130, 246, 0.3);
}

.email-card.company {
    border-color: rgba(212, 175, 55, 0.3);
}

.email-card.company:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(212, 175, 55, 0.3);
}

.email-card.foundation {
    border-color: rgba(245, 158, 11, 0.3);
}

.email-card.foundation:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.3);
}

.email-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.email-icon.logo-space {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    overflow: hidden;
}

.email-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.email-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.email-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.email-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
}

/* ===========================
   REDES SOCIALES
   =========================== */
.social-grid {
    display: grid;
    gap: var(--spacing-md);
}

.social-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-light));
    padding: var(--spacing-md);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-card:hover::before {
    left: 100%;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.8rem;
    color: white;
}

.instagram .social-icon {
    background: var(--instagram);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.instagram:hover {
    border-color: #e1306c;
}

.facebook .social-icon {
    background: var(--facebook);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.facebook:hover {
    border-color: var(--facebook);
}

.tiktok .social-icon {
    background: linear-gradient(135deg, #00f2ea, #ff0050);
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.4);
}

.tiktok:hover {
    border-color: #00f2ea;
}

.twitter .social-icon {
    background: var(--twitter);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.twitter:hover {
    border-color: #1da1f2;
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.social-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.social-handle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.footer-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.footer-text i {
    color: var(--accent-red);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===========================
   ANIMACIONES
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 480px) {
    .container {
        padding: var(--spacing-sm);
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .nickname {
        font-size: 1rem;
    }
    
    .title {
        font-size: 0.9rem;
    }
    
    .profile-image-container {
        width: 150px;
        height: 150px;
    }
    
    .profession-tag {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
    
    .company-logo-container {
        width: 70px;
        height: 70px;
    }
    
    .icon-container {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .email-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .contact-value,
    .email-value {
        font-size: 0.9rem;
    }
    
    .btn-save-contact {
        font-size: 1rem;
        padding: var(--spacing-sm);
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
}

/* ===========================
   UTILIDADES
   =========================== */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Mejora la apariencia de imágenes placeholder */
img[src*="placeholder"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(212, 175, 55, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mejora de accesibilidad */
a:focus,
button:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Mejora de rendimiento */
* {
    -webkit-tap-highlight-color: transparent;
}

.contact-card,
.email-card,
.social-card,
.btn-save-contact {
    -webkit-touch-callout: none;
}
