/* ========================================
   ANDREAHUB - Landing Card Styles
   Mobile-First Design
   ======================================== */

/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores por defecto (se sobrescriben dinámicamente) */
    --bg-color: #1a1a2e;
    --button-color: #6c63ff;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --card-bg: #16213e;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --gradient-start: rgba(108, 99, 255, 0.8);
    --gradient-end: rgba(108, 99, 255, 0.3);
    --hover-scale: 1.02;
    --transition: all 0.3s ease;
}

/* Body y estructura básica */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.landing-section {
    min-height: 100vh;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.card-wrapper {
    width: 100%;
}

/* ========================================
   CARD PRINCIPAL
   ======================================== */
.digital-card {
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--card-shadow);
    animation: fadeInUp 0.6s ease-out;
}

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

/* Header con Gradiente */
.card-header {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.header-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ========================================
   PERFIL
   ======================================== */
.profile-section {
    position: relative;
    margin-top: -60px;
    text-align: center;
    padding: 0 20px;
}

.profile-photo {
    display: inline-block;
    position: relative;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--card-bg);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

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

.profile-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--card-bg);
    background: var(--button-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   INFORMACIÓN
   ======================================== */
.info-section {
    text-align: center;
    padding: 20px 25px;
}

.name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.2;
}

.title {
    font-size: 16px;
    font-weight: 500;
    color: var(--button-color);
    margin-bottom: 15px;
}

.bio {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   ENLACES SOCIALES
   ======================================== */
.links-section {
    padding: 10px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--button-color);
    opacity: 0.1;
    transition: width 0.3s ease;
}

.social-link:hover::before {
    width: 100%;
}

.social-link:hover {
    transform: translateX(5px);
    border-color: var(--button-color);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.3);
}

.social-link:active {
    transform: scale(0.98);
}

.link-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--button-color);
    border-radius: 12px;
    margin-right: 15px;
    font-size: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.social-link:hover .link-icon {
    transform: rotate(5deg) scale(1.1);
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.link-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.link-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.link-arrow {
    font-size: 16px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover .link-arrow {
    transform: translateX(5px);
    color: var(--button-color);
}

/* Estilos específicos por tipo */
.social-link-whatsapp .link-icon { background: #25D366; }
.social-link-instagram .link-icon { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-link-facebook .link-icon { background: #1877F2; }
.social-link-twitter .link-icon { background: #1DA1F2; }
.social-link-linkedin .link-icon { background: #0077B5; }
.social-link-tiktok .link-icon { background: #000000; }
.social-link-youtube .link-icon { background: #FF0000; }
.social-link-github .link-icon { background: #333333; }

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-desc {
    font-size: 13px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.newsletter-form {
    max-width: 450px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--button-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--button-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 16px;
}

.form-message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: rgba(40, 199, 111, 0.15);
    border: 1px solid rgba(40, 199, 111, 0.3);
    color: #28c76f;
}

.form-message.error {
    background: rgba(234, 84, 85, 0.15);
    border: 1px solid rgba(234, 84, 85, 0.3);
    color: #ea5455;
}

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

/* ========================================
   FOOTER
   ======================================== */
.card-footer {
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.footer-views {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ========================================
   RESPONSIVE - TABLET Y DESKTOP
   ======================================== */
@media (min-width: 768px) {
    .landing-section {
        padding: 40px 20px;
    }

    .digital-card {
        border-radius: 35px;
    }

    .card-header {
        height: 140px;
    }

    .profile-section {
        margin-top: -70px;
    }

    .profile-img,
    .profile-placeholder {
        width: 140px;
        height: 140px;
    }

    .name {
        font-size: 32px;
    }

    .title {
        font-size: 18px;
    }

    .bio {
        font-size: 15px;
    }

    .links-section {
        padding: 15px 30px 25px;
        gap: 14px;
    }

    .social-link {
        padding: 18px 24px;
    }

    .link-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .link-title {
        font-size: 16px;
    }

    .link-desc {
        font-size: 14px;
    }

    .newsletter-section {
        padding: 30px 30px;
    }

    .section-title {
        font-size: 20px;
    }

    .newsletter-desc {
        font-size: 14px;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Animaciones de carga */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
